Re: Re: NuttX SocketCAN implementation

2020-02-13 Thread Xiang Xiao
is still unacceptable, we can bypass VFS and implement CAN MAC driver directly on top of can_ops_s: CAN MAC driver->can_ops_s(CAN lowhalf driver) Then we can reuse all CAN low half drivers without change, and the user can even sel

RE: Re: NuttX SocketCAN implementation

2020-02-13 Thread Peter Van Der Perk
deally I would implement it as shown >below. The question is though then how do deal with existing CAN character >device implementation? > NuttX SocketCAN implementation > Proposal >+-

NuttX SocketCAN implementation

2020-02-11 Thread Peter Van Der Perk
Hi all, This is a follow up to the SocketCAN integration into NuttX discussion. As discussed before we proposed the idea to include SocketCAN support in NuttX to provide a generic well-known interface for CAN transmission. The initial feedback was great and Gregory Nutt looked into the possibil

RE: Re: NuttX SocketCAN implementation

2020-02-11 Thread spudaneco
:48 AM (GMT-06:00) To: dev@nuttx.apache.org Subject: RE: Re: NuttX SocketCAN implementation >I believe that both sides would be the same.  Both would use BSD sockets, SocketCAN would be added to the network stacks, and the CAN drivers would be a network drivers.>>Your picture shows the

RE: Re: NuttX SocketCAN implementation

2020-02-11 Thread Peter Van Der Perk
d go through the CAN driver -> Char driver -> VFS -> Socket -> user space. This would add unnecessary delay and jitter which would be certainly worse. Ideally I would implement it as shown below. The question is though then how do deal with existing CAN character device implem

Re: NuttX SocketCAN implementation

2020-02-11 Thread Xiang Xiao
I amn't familiar with CAN, but is it possible to implement a general CAN MAC driver on top of CAN CHAR driver like this? +---+ | NuttX Network driver | | ++ ++ | | |Syscall glue| |BSD Socket | | | || |glue| | | +-

Re: NuttX SocketCAN implementation

2020-02-11 Thread Gregory Nutt
NuttX CAN Implementation NuttX Ethernet Implementation +---+ +---+ | Application | | Application | +---+ +---+ +--

RE: NuttX SocketCAN implementation

2020-02-11 Thread David Sidrane
+pavel -Original Message- From: Peter Van Der Perk [mailto:peter.vanderp...@nxp.com] Sent: Tuesday, February 11, 2020 6:58 AM To: dev@nuttx.apache.org Subject: NuttX SocketCAN implementation Hi all, This is a follow up to the SocketCAN integration into NuttX discussion. As discussed

NuttX SocketCAN implementation

2020-02-11 Thread Peter Van Der Perk
Hi all, This is a follow up to the SocketCAN integration into NuttX discussion. As discussed before we proposed the idea to include SocketCAN support in NuttX to provide a generic well-known interface for CAN transmission. The initial feedback was great and Gregory Nutt looked into the possibil