Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 06-07-2023, 20:23   #1
Registered User

Join Date: Jun 2023
Location: Auckland NZ
Boat: Hartley Cape Bay 45
Posts: 24
Any working SocketCAN devices?

Anyone have any cheap chinese adapters working? I see a CANable Pro shield, CANET200, and a few other things available. Does look like a simple way to just plug a N2K network into the ships' network.

Anyone else working on this?

Steve
HaskellOffshore is offline   Reply With Quote
Old 07-07-2023, 00:15   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,255
Re: Any working SocketCAN devices?

Worth testing I suppose. (A user comment on AliExpress say's it works for N2k)
I suppose the 5V output can though not feed a N2k bus that's using 12V.
(-"4-pin screw terminal: CANH, CANL, 5v (output), GND"-)
Hakan is offline   Reply With Quote
Old 07-07-2023, 00:17   #3
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: Any working SocketCAN devices?

Quote:
Originally Posted by HaskellOffshore View Post
Anyone have any cheap chinese adapters working? I see a CANable Pro shield, CANET200, and a few other things available. Does look like a simple way to just plug a N2K network into the ships' network.

Anyone else working on this?

Steve
The Canable Pro (optical isolated) and Canable board works very well. You can buy this also from China.

Works bi-directional. Is supported in the SignalK data server. But direct import in OpenCPN is possible. There was a small problem with Canbus in OpenCPN. But this is now solved in the latest OpenCPN versions.

I prefer the Candlelight firmware. But this needs a activation string to get Can0.

A pity is, there is no simple case for the Canable.

You only need the two data lines blue and white of the NMEA2k cable. Power comes from the USB.


Bram
verkerkbr is offline   Reply With Quote
Old 07-07-2023, 00:43   #4
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: Any working SocketCAN devices?

Quote:
Originally Posted by verkerkbr View Post
The Canable Pro (optical isolated) and Canable board works very well. You can buy this also from China.

Works bi-directional. Is supported in the SignalK data server. But direct import in OpenCPN is possible. There was a small problem with Canbus in OpenCPN. But this is now solved in the latest OpenCPN versions.

I prefer the Candlelight firmware. But this needs a activation string to get Can0.

A pity is, there is no simple case for the Canable.

You only need the two data lines blue and white of the NMEA2k cable. Power comes from the USB.


Bram

This is the Canable board.
Attached Thumbnails
Click image for larger version

Name:	IMG_6561.jpg
Views:	44
Size:	334.4 KB
ID:	277764  
verkerkbr is offline   Reply With Quote
Old 07-07-2023, 01:52   #5
Registered User

Join Date: Mar 2011
Posts: 724
Re: Any working SocketCAN devices?

Looks like a Chinese version of the Canable board.

The Canable board works well and as Bram said, with the Candlelight firmware offers better performance as a native CAN device rather than a Serial CAN device.

Initialization can be done with udev rules or a bash script.

Quote:
A pity is, there is no simple case for the Canable.
See attached photo. I can't remember where I found it but you should be able to find the STL files to make this 3D printed case.
Attached Thumbnails
Click image for larger version

Name:	20230707_104128.jpg
Views:	44
Size:	275.3 KB
ID:	277766  
stevead is offline   Reply With Quote
Old 07-07-2023, 16:11   #6
Registered User

Join Date: Jun 2023
Location: Auckland NZ
Boat: Hartley Cape Bay 45
Posts: 24
Re: Any working SocketCAN devices?

There's a Canable Z Pro in a box
https://www.aliexpress.com/item/1005003265750126.html

Also a smaller USB item with a plastic case
https://www.aliexpress.com/item/1005003246920397.html

Both devices with isolation..

Ordering one of these https://www.aliexpress.com/item/1005005655223137.html
HaskellOffshore is offline   Reply With Quote
Old 07-07-2023, 17:11   #7
Registered User

Join Date: Mar 2009
Location: Annapolis, MD
Boat: Southerly 480
Posts: 531
Images: 1
Re: Any working SocketCAN devices?

Quote:
Originally Posted by HaskellOffshore View Post
There's a Canable Z Pro in a box
https://www.aliexpress.com/item/1005003265750126.html

Also a smaller USB item with a plastic case
https://www.aliexpress.com/item/1005003246920397.html

Both devices with isolation..

Ordering one of these https://www.aliexpress.com/item/1005005655223137.html
These look pretty interesting given the CANable is sold out, but the manuals from the ad is in Chinese. Anyone know of an English version?
shimari is offline   Reply With Quote
Old 12-07-2023, 03:26   #8
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: Any working SocketCAN devices?

Quote:
Originally Posted by shimari View Post
These look pretty interesting given the CANable is sold out, but the manuals from the ad is in Chinese. Anyone know of an English version?

Look at Ali Express. There are plenty of "canable" boards. Some come standard with the Candlelight firmware. You only need to add the following activation to get Can0.


sudo ip link set can0 up type can bitrate 250000
verkerkbr is offline   Reply With Quote
Old 23-07-2023, 15:40   #9
Registered User

Join Date: Jun 2023
Location: Auckland NZ
Boat: Hartley Cape Bay 45
Posts: 24
Re: Any working SocketCAN devices?

This unit arrived, worked PnP in Ubuntu after ip link up, detected 100% in OpenCPN, now to test with my N2K Autopilot, will report back.

sudo apt-get install can-utils
sudo /sbin/ip link set can0 up type can bitrate 250000

https://www.aliexpress.com/item/1005005655223137.html
HaskellOffshore is offline   Reply With Quote
Old 24-07-2023, 00:29   #10
Registered User

Join Date: Mar 2011
Posts: 724
Re: Any working SocketCAN devices?

Quote:
now to test with my N2K Autopilot, will report back.
What brand and model of autopilot? Interested in what your expectations are.
stevead is offline   Reply With Quote
Old 26-07-2023, 01:16   #11
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: Any working SocketCAN devices?

Quote:
Originally Posted by HaskellOffshore View Post
This unit arrived, worked PnP in Ubuntu after ip link up, detected 100% in OpenCPN, now to test with my N2K Autopilot, will report back.

sudo apt-get install can-utils
sudo /sbin/ip link set can0 up type can bitrate 250000

https://www.aliexpress.com/item/1005005655223137.html

First you have to send the route/waypoint data from OpenCPN. The best way is to the signalK server. Add in OpenCPN output(output only).

Go to the lower setting remove all setting and activate only RMB XTE RMC udp and port 2000.

Make a new imput connection (NMEA183) in the SK server. Give it a name, udp, and
port 2000.

Now the route data runs in SignalK format.

Setup the SignalK to NMEA2000 plugin.

The route data from OpenCPN is then running on the nmea2000 network. Can be seen on NMEA2000 displays.

It depends then on the instructions for the type of the autopilot if these are supported.


Bram
verkerkbr is offline   Reply With Quote
Old 26-07-2023, 06:49   #12
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,255
Re: Any working SocketCAN devices?

I bought a MKS CANable v1.0
Testing on Windows.
The device shows up as a USB device, see pict, but no COM port is created.
Win found a driver but I've also tried what's supplied by https://canable.io/

Any experience here how to proceed to make a COM port?


/Håkan
Attached Thumbnails
Click image for larger version

Name:	CANable.png
Views:	32
Size:	26.7 KB
ID:	278721  
Hakan is offline   Reply With Quote
Old 27-07-2023, 03:09   #13
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,255
Re: Any working SocketCAN devices?

Some updates about the MKS CANable v1.0.
Thanks to hints by @stevead I recognized the device was loaded with "candleight" firmware. We need it to be "slcan". I tried to update the firmware using Windows but since it seems only the Chrome reader is suitable and not Firefox I instead used a RPi400 and its Chromium. Following advises here I could update to slcan.
After that he shows up as COM port in both Win and Linux. See shot.

Now for Windows I suppose OCPN is not prepared for a slcan device like it is for e.g. Actisense and YDNU. So no data received. The TwoCAN plugin would be feasable but I've not yet tested that.

On my RPi400 and the excellent OpenPlotter it's working:
I used the "Serial" app to make a nick-name and connect it to Signalk by the CAN-Bus app. I'd to use the "Manual" method for "slcan" in Can-Bus and then it appeared in SK and all data was also received by a OCPN SK connection.

So far so good except if I disconnect and reconnect the USB I've to restart the device in CAN-Bus? To be more evaluated.
Attached Thumbnails
Click image for larger version

Name:	CANable_slcand.png
Views:	21
Size:	18.4 KB
ID:	278776  
Hakan is offline   Reply With Quote
Old 27-07-2023, 08:16   #14
Registered User

Join Date: Mar 2011
Posts: 724
Re: Any working SocketCAN devices?

Just to add to Hakan's informative post, if your are using the Canable Cantact (or it's clones) on Linux, it's best to use the Candlelight firmware as the performance of the native CAN interface is better than that of the Serial CAN (slcan) interface.

Also for applications that transmit on the NMEA 2000 network perhaps consider increasing the kernel's transmit configuration.
Code:
sudo ifconfig can0 txqueuelen 1000
stevead is offline   Reply With Quote
Old 27-07-2023, 08:55   #15
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,255
Re: Any working SocketCAN devices?

Thanks stevead. Now I've only two sensors on the bus. One GNSS and one Compass so performance is no issue so far. And since my goal is to be able to use it on Windows by a serial COM port I think the slcan firmware is preferred.



Strange though I've to restart the device from the CAN-Bus app once it's withdrawn and connected again. Any hints?
Hakan is offline   Reply With Quote
Reply

Tags
work


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Navionics shows depth but AIS data not working, Yacht devices WIFI-NMEA and matsutec CaptainRivet Navigation 17 16-09-2023 12:52
Reset masterbus? All devices showing offline (but working) shimari Electrical: Batteries, Generators & Solar 18 08-07-2023 17:56
Are there any known working Bluetooth GPS devices with Windows 8? calderp OpenCPN 19 08-11-2014 20:32
Working Through Retirement - AKA Working Retirement CNC-Charters Boat Ownership & Making a Living 21 01-09-2012 19:58
Any one need help working on their boat? DreadPirateRoberts Construction, Maintenance & Refit 4 24-01-2008 13:08

Advertise Here


All times are GMT -7. The time now is 22:14.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.