mshulman - Does anyone have a CAN to USB device...

Does anyone have a CAN to USB device that they like with good linux drivers? I thought I had one, but I can't build the ubuntu drivers for it.
125 Replies
Scott Bender
Scott Bender10mo ago
lots of options. None of which should require building drivers. What do you have?
mshulman
mshulmanOP10mo ago
Scott Bender
Scott Bender10mo ago
No idea if that would even work with Signal K I have a couple of the canable ones. They work fine. I’ve only tried on a pi.
mshulman
mshulmanOP10mo ago
Are you saying that Intel micro PC with Ubuntu won't run signalK, or that the CAN to USB adapter won't work?
Scott Bender
Scott Bender10mo ago
The adaptor. I don’t know if it will work.
juans#0046
juans#00462mo ago
Hi everyo, i just connect canable pro to the raspi and it doesn't recognize any device. Any suggestions? Thank you!
Scott Bender
Scott Bender2mo ago
I think you have to change the firmware (I know I did, it that was years ago) https://canable.io/getting-started.html#alt-firmware
juans#0046
juans#00462mo ago
Yeah, is it working! But I'm a little confused. Please, help me. Signal k discovered my Vulcan 7. But it appears NMEA0183 instead of NMEA2000. WHY? What I want is send wind data from my ST40 which I'm already reading in Openplotter.
juans#0046
juans#00462mo ago
No description
Scott Bender
Scott Bender2mo ago
The server can discover some tcp 0183 sources You should ignore that if you have an nmea20000 connection It does not automatically discover a Canable. You have to add a Data Connection for that.
juans#0046
juans#00462mo ago
Here what kind of data do I need to put? Nmea2000 or signalk?
No description
juans#0046
juans#00462mo ago
No description
juans#0046
juans#00462mo ago
Here should appear raspberry? Because I'm emitting to nmea2000 through canable
juans#0046
juans#00462mo ago
No description
No description
No description
juans#0046
juans#00462mo ago
I'm very confused 😕
Scott Bender
Scott Bender2mo ago
I don’t know what that screenshot is from? It does not look like you are getting any data from the canable?
juans#0046
juans#00462mo ago
What I want is output data to the B&G Vulcan 7 which has NMEA2000 input. Thank you Scott 🙏
Scott Bender
Scott Bender2mo ago
You should be seeing something in the data browser from your n2k network? Can you screenshot the data connection settings for the canable? did you run this command ip link set can0 up type can bitrate 500000?
juans#0046
juans#00462mo ago
No, I didn't
Scott Bender
Scott Bender2mo ago
it has to be run everytime the pi boots up
juans#0046
juans#00462mo ago
Might be that's the problem I'm not at the boat right now. I'll try tomorrow evening So, once I'll run that command. I need to do any extra config for output data? I activated wind and other checks at signalk-n2k plugin.
Scott Bender
Scott Bender2mo ago
you should not
juans#0046
juans#00462mo ago
Ok thank you so much Scott!
Scott Bender
Scott Bender2mo ago
but something is off here. I just saw that screeenshot of the candump. and it looks like you are gertting data
juans#0046
juans#00462mo ago
Yes But might be is corrupted because of the bitrate
Scott Bender
Scott Bender2mo ago
might be. I'm not sure what would happen if the butrate is wrong when you get on the boat, try this after setting the bitrate
sudo npm install -g @canboat/canboatjs
candumpjs can0
sudo npm install -g @canboat/canboatjs
candumpjs can0
juans#0046
juans#00462mo ago
Ok I'll do it @Scott Bender are you there?
juans#0046
juans#00462mo ago
juans#0046
juans#00462mo ago
The B&G Vulcan 7 doesnt detect the openplotter data... I'm using Canable Pro 1.0 might be it's broken or the NMEA2000 port from Vulcan 7 is broken. I don't know... I'm going to buy RS485 Can Hat para Raspberry Pi to try other option. Also I'm going to talk another friend to try another plotter. At the begining I connected just H and L as the manual says. I tried to connect GND because it suggest some devices might need it. But I doesn't work...
juans#0046
juans#00462mo ago
this is the log
Scott Bender
Scott Bender2mo ago
can you try the canboatjs command I gave you?
juans#0046
juans#00462mo ago
This one? I did
Scott Bender
Scott Bender2mo ago
You ran candump, not candumpjs
juans#0046
juans#00462mo ago
Ohh You are right I leave the boat already 🥺 I bought CAN HAT with MCP2515 and it didnt work either 😦
juans#0046
juans#00462mo ago
No description
juans#0046
juans#00462mo ago
I tried candumpjs can0 and there is no traffic also I changed the bitrate to can0
juans#0046
juans#00462mo ago
No description
juans#0046
juans#00462mo ago
candumpjs canable0 (USB slcand device) show the data coming from s2k-nmea2000 plugin but there is no traffic from Vulcan7 to the openplotter. also I don't know why candumpjs can0 (which correspond to MCP2515 device) doesn't show the data from the plugin sk-nmea2000 The only thing left to try is going to another boat and try another nmea2000 device. I have a question, I'm connecting directly canbus (H and L) to the plotter Vulcan 7 (B&G). I'm not connecting power and ground. Might be that is the problem? The network nmea2000 is supposed to be powered by 12v?
juans#0046
juans#00462mo ago
something like that
No description
Scott Bender
Scott Bender2mo ago
I think the Vulcan may require power there And you need termination The canable also requires power and ground Oh. Maybe power, depends on the model https://canable.io/getting-started.html#connect-to-the-bus
juans#0046
juans#00462mo ago
No description
juans#0046
juans#00462mo ago
I bought that I connected everything and it doesn't work 😦
juans#0046
juans#00462mo ago
No description
juans#0046
juans#00462mo ago
No description
juans#0046
juans#00462mo ago
It receives some data at Rx messages
juans#0046
juans#00462mo ago
No description
juans#0046
juans#00462mo ago
I connected can_l can_h and gnd to the nmea network And the network is connected to 12v
juans#0046
juans#00462mo ago
No description
juans#0046
juans#00462mo ago
I connected canable to windows and check if received any data from Vulcan and it doesn't.
Scott Bender
Scott Bender2mo ago
All TX errors are definitely suspect Do you get those when the canable is disconnected?
juans#0046
juans#00462mo ago
I'm going to spend more money and time than buying all the devices new 😂😂😂 No Sorry yes, the Rx changes if I connect the canable. But the tx are stucked. Even if I reset the counter it goes to 255 automatically and keep there
Scott Bender
Scott Bender2mo ago
So hard to tell what’s going on with only two n2k devices.
juans#0046
juans#00462mo ago
I'm running out of options to try
Scott Bender
Scott Bender2mo ago
The Vulcan or the canable could be bad. Or the wiring could be bad.
juans#0046
juans#00462mo ago
I'm going to do a fresh install and use the hat mcp2515 and try with it Because I don't know why with mcp2515 didn't appear the traces on the console from signal k plugin Thank you Scott for your help 🙂
Scott Bender
Scott Bender2mo ago
Do you really need to do a new install?
juans#0046
juans#00462mo ago
No It's to discard possible errors
Scott Bender
Scott Bender2mo ago
If you can borrow another n2k device, that would help a lot. Can be just about anything. That way you could confirm that the Vulcan can see other devices.
juans#0046
juans#00463w ago
Ok I'll try Thank you Morning, after doing lots of tests. The canable USB device looks like to be broken because the nmea2000 network is working. I bought another device and it receives data. The thing is...why is not working the rs485 can hat? I'm going to do a fresh install of openplotter and try again.
Scott Bender
Scott Bender3w ago
You sure you have the can hi/low wires right?
juans#0046
juans#00463w ago
Yes Is it possible to be the firmware I flashed to the canable device?
Scott Bender
Scott Bender3w ago
Did you flash the alternate firmware?
juans#0046
juans#00463w ago
What do you mean?
Scott Bender
Scott Bender3w ago
I linked to it above
juans#0046
juans#00463w ago
No description
juans#0046
juans#00463w ago
I flashed this one
Scott Bender
Scott Bender3w ago
Try candlelight That’s what I use on the one in my lab
juans#0046
juans#00463w ago
With candlelight in my windows pc must read sentences from the network? Using cangaroo?
Scott Bender
Scott Bender3w ago
Not sure what you mean?
juans#0046
juans#00463w ago
No description
juans#0046
juans#00463w ago
Try with it before connecting to the raspberry For debugging Or it's better flash candlelight and try it with the raspberry
Scott Bender
Scott Bender3w ago
Yeah, I’m pretty sure candlelight is required for it to work with sk. But does it work in windows now?
juans#0046
juans#00463w ago
Ohh 😯 ok I'll try this evening No
Scott Bender
Scott Bender3w ago
That should work
juans#0046
juans#00463w ago
Ok thanks
Scott Bender
Scott Bender3w ago
Definitely not going to work on raspberry if it does not work in windows.
juans#0046
juans#00463w ago
Ok thanks
Scott Bender
Scott Bender3w ago
And pointing to a bad unit or bad wiring. Strange that the HAT does not work either…
juans#0046
juans#00463w ago
It matters that I have canable pro from AliExpress?
Scott Bender
Scott Bender3w ago
No idea
juans#0046
juans#00463w ago
Flashed...but not working 😦
juans#0046
juans#00463w ago
No description
No description
juans#0046
juans#00463w ago
No description
Scott Bender
Scott Bender3w ago
That connector looks strange. I’m not anywhere to confirm by looking at mine.
juans#0046
juans#00463w ago
The nmea2000 connector?
Scott Bender
Scott Bender3w ago
Yes
juans#0046
juans#00463w ago
It fits perfectly with the other devices
juans#0046
juans#00463w ago
No description
Scott Bender
Scott Bender3w ago
Maybe google is failing me
Scott Bender
Scott Bender3w ago
No description
juans#0046
juans#00463w ago
I think it's nmea 2000 but the conector is micro-c
juans#0046
juans#00463w ago
No description
Scott Bender
Scott Bender3w ago
But then it looks like you have the red in the +V
juans#0046
juans#00463w ago
That is for male, mine is female
Scott Bender
Scott Bender3w ago
No, that’s male Am I crazy 🤣
juans#0046
juans#00463w ago
No description
Scott Bender
Scott Bender3w ago
Sadly those pics don’t help
juans#0046
juans#00463w ago
😦
Scott Bender
Scott Bender3w ago
It’s not the pins, the outside part that determine gender I always get this screwed up 🤣
juans#0046
juans#00463w ago
Yes, so do I
juans#0046
juans#00463w ago
No description
juans#0046
juans#00463w ago
I think that's correct
Scott Bender
Scott Bender3w ago
Could confirm with a multimeter
juans#0046
juans#00463w ago
DC measure?
Scott Bender
Scott Bender3w ago
Yeah, find the 12V
juans#0046
juans#00463w ago
I got 12v So the connection was ok No data 😦
juans#0046
juans#00463w ago
No description
juans#0046
juans#00463w ago
No description
juans#0046
juans#00463w ago
I'm flashing the bottom one. Canable/canable pro 0.4 and older But mine is mks canable pro v 1.0
juans#0046
juans#00463w ago
No description
juans#0046
juans#00463w ago
I flash this firmware and now I get the green led. Before never show up this led. https://github.com/makerbase-mks/CANable-MKS/tree/main/Firmware/CANable%20V1.0 It's working!!!! The problem is that the firmware for this device is specific
juans#0046
juans#00463w ago
No description
Scott Bender
Scott Bender3w ago
Yeah!!
juans#0046
juans#00463w ago
After one million of messages and attempts...it was because of the most stupid thing... Thank you so much for your help Scott Without you I'd give it up...
Scott Bender
Scott Bender3w ago
It always is!
juans#0046
juans#00463d ago
Hi Scott, I'm back again... The original device stop working suddenly...so I bought a new one. This time I bought canable v2.0 pro isolated. I flashed with slcand and candlelight firmwares but it doesn't receive or sent any data. In candlelight the raspberry doesn't recognize the device in Serial devices. In the terminal I got this....
juans#0046
juans#00463d ago
No description
juans#0046
juans#00463d ago
In windows with cangaroo.. it recognizes candleApi but doesn't receive data... I'm starting to fed up with this...do you recommend any device which will work???
Scott Bender
Scott Bender3d ago
I use the Waveshare II
juans#0046
juans#00463d ago
He encontrado esto en AliExpress: 24,88€ | Solución de chip Waveshare STM32, adaptador USB a CAN Modelo A, múltiples modos de trabajo, Compatible con múltiples sistemas Canbus https://a.aliexpress.com/_EvRRlDi This?
Scott Bender
Scott Bender3d ago
Hat Labs
Waveshare 2-Channel Isolated CAN HAT for Raspberry Pi: NMEA 2000 Compa
Upgrade your Raspberry Pi project with the Waveshare 2-Channel Isolated CAN HAT, providing the computer with an NMEA 2000 interface. This expansion HAT provides a reliable and secure connection to CAN Bus networks and features multiple onboard protection circuits to ensure stable and safe communication. MCP2515 CAN con
Scott Bender
Scott Bender3d ago
The Yacht Devices stuff is good too. Much more expensive though
juans#0046
juans#00463d ago
Ok thank you so much. I'm going to order it right now

Did you find this page helpful?