This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
N2k/CAN stops listening after 25mins
#1
My NMEA2000 data connection stops receiving data after about 15 - 25 minutes. When I restart SignalK server, the data is read again.
When nothing is received in SK and I open candump, I can still see the data coming in on can0.

Hardware:
RPi CM4 on Waveshare CM4-IO-BASE-B, DSI display, Waveshare 2CH-CAN-HAT, Sailor Hat for RPi v2, Waveshare Relay Board.

Software:
OpenPlotter 3
config.txt:
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=23

/etc/network/interfaces.d/can0:
auto can0
iface can0 can static
        bitrate 250000
        post-up /sbin/ip link set can0 txqueuelen 65536

can1 is configured differently and continuously used for sending J1939 test data to a SH-ESP32-based board which receives those engine-related PGNs and translates and outputs them to NMEA2000, which is connected to RPi-can0. So can1 is not set up as datasource in SignalK.  But both can0 and can1 show up just fine in the CAN BUS app.

(I don't recall having this problem before I started playing with the above...)
Reply


Messages In This Thread
N2k/CAN stops listening after 25mins - by Copprhead - 2023-03-30, 01:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)