krumboeck / usb2can

SocketCAN driver for UAB "8 devices" USB2CAN interface
53 stars 24 forks source link

What would it take to port this to Mac OS X? #11

Closed brandonros closed 4 years ago

krumboeck commented 5 years ago

Sadly this is not portable. Because no other operating system supports SocketCAN or something similar (AFAIK).

You have to write a driver from scratch or ask UAB "8devices".

brandonros commented 5 years ago

Could we not just switch out the usb_bulk_write Linux commands for the Mac equivalent?

krumboeck commented 4 years ago

Sorry for the delay.

That's not that easy. The driver architecture for CAN is not standardized under Windows and MacOS. You can't simple take CAN hardware (and driver) from manufacturer A and use it with CAN software from manufacturer B. That's the reason why so many CAN adapters speak LAWICEL protocol behind a serial interface.

brandonros commented 4 years ago

I wrote a WebUSB driver for the CandleLight gs_usb driver that works well under Mac.

krumboeck commented 4 years ago

That's a library not a driver. Of course you could add the usb2can commands to a device specific library.