FYSETC / UCAN

UCAN is an open source USB-to-CAN interface board, based on STM32F072 and candleLight open source firmware, and supports linux/win/mac multi-platform.
18 stars 3 forks source link

No bus, and no packet flow on MacOS #1

Open nicksaintjohn opened 6 months ago

nicksaintjohn commented 6 months ago

I'm using MacOS, and hoping to use the candlelight firmware (have tried both versions), along with the PCBUSB lib. I don't seem to have any busses appear. Is this a dead-end, of should I be using another lib / firmware combo?

I had a little more luck with PCAN emulator firmware, whereby I tried it in the CAN monitor app, but it overflowed and locked up after a few seconds of packet collection, and I haven't managed to get it running again since. Is there a guide anywhere that can help me get things working? Is there a guide regarding what options are available to get things running on MacOS? Any help is much appreciated. Thanks.

p.s. I have also tried using the slcan firmware. I have confirmed that the canbus connection is active, but not a single packet. My final hope is to use with SavvyCAN. Thanks

nicksaintjohn commented 5 months ago

UPDATE:

I am able to connect to the UCAN, using the 'pcan emulator' firmware using PCBUSB-Utilities (https://github.com/mac-can/PCBUSB-Utilities). I seem to connect when the device is connected, and disconnecting from the USB will disconnect the socket, so all appears fine... However, I am connected to a CAN bus which is correctly terminated, and packets are flowing (as confirmed by using my scope), and yet when using the can monitor (successfully connecting to the pcan firmware), I simply get no packet flow at all... Am I missing something, or might this be a known issue on MacOS?

Additionally, when connected to my Macbook, I am getting no device appear in my /dev folder using any firmware other than 'slcan'. Even the 'slcan legacy' firmware does not create an entry in the /dev folder. Seems odd that those two operate differently. Anyhow, I have so far not managed to get any packet flow using any combination of firmware and software. I have tried using SavvyCAN (latest build made on my machine - not the old binary on the site). My only real tests seem to be using 'pcan emulator' firmware as a 'peakcan' device, or using 'slcan' firmware as SLCAN serial device... sadly not a single packet using either method. Is there any software known on MacOS that will work with the 'candlelight' firmware?