OpenMarine
Can bus/NMEA 2000 - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: MacArthur HAT (https://forum.openmarine.net/forumdisplay.php?fid=29)
+--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=31)
+--- Thread: Can bus/NMEA 2000 (/showthread.php?tid=5187)

Pages: 1 2 3


RE: Can bus/NMEA 2000 - Lazzz - 2024-10-12

(2024-10-12, 10:48 AM)Sailoog Wrote: New boat and new home port. 
Could you please open a new thread on the OpenPlotter forum to collect all user reports?

I, for one, was wondering what happened to you!! Glad you're OK.
We missed you!!


See here: https://forum.openmarine.net/showthread.php?tid=5740&pid=31708#pid31708


RE: Can bus/NMEA 2000 - Sailoog - 2024-10-12

I have set up a temporary test environment on the boat and noticed that the offending commands are in the file  /etc/network/interfaces.d/can0

If you remove that file you can left "dtoverlay=mcp251xfd,spi0-1,oscillator=20000000,interrupt=25" in config.txt and the system will boot as usual.

can0 file is created by openplotter when defining an mcp251xfd device and this is the content:

Code:
#physical can interfaces
allow-hotplug can0
iface can0 can static
bitrate 250000
down /sbin/ip link set $IFACE down
up /sbin/ifconfig $IFACE txqueuelen 10000

This explains why the system hangs in the networking process during boot.

I guess we should play around with these arguments to get it working again or use an alternative method to bring up the interface.


RE: Can bus/NMEA 2000 - Sailoog - 2024-10-12

Let's continue the conversation here: https://forum.openmarine.net/showthread.php?tid=5740