On 12/10/20 11:26 PM, Christian Gagneraud wrote: >>>> Yes, your device is quite special :) [...] >> I think you have to implement the polling yourself. Start a transfer on >> ndo_open(). In the completion handler handle the received data. In case you have >> recieved a CAN frame, submit a new transfer in case you haven't received data >> yet, schedule delayed work with a delay, e.g. 1ms. Once you have that running >> you have fine tune the number of running transfers and delays. > > Thanks Marc for the hints. > I'll look into that, this will certainly take time, I'm not in a rush. > Full disclosure: I am actually an employee of Navico (the manufacturer > of the device), Nice! There are several CAN devices which have mainline Linux spport by their manufacturers. Is there any driver for other operating systems like Windows, etc? You might talk to the developers to find out, how they solve the problem of polling. > I'm currently waiting for approval to publish code > related to that device. This shouldn't be an issue, I just need the > administrative work done. Fingers crossed! regard, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: OpenPGP digital signature