tobias_r - anyone got an idea where those messa...

anyone got an idea where those messages might be coming from?
6 Replies
Scott Bender
Scott Bender2mo ago
Canboatjs does send out heartbeat messages
tobi42
tobi42OP2mo ago
one heartbeat every millisecond? seems a bit excessive... and after the server restart the messages have stopped
Scott Bender
Scott Bender2mo ago
once a minute
device.heartbeatInterval = setInterval(() => {
sendHeartbeat(device)
}, 60 * 1000)
device.heartbeatInterval = setInterval(() => {
sendHeartbeat(device)
}, 60 * 1000)
tobi42
tobi42OP2mo ago
i have a theory... the can0 interface was in a hung-up state (no messages coming in or out), my marinetraffic app complained about no AIS messages coming in, so i sshed into the pi and restarted can0 (ifdown && ifup usually works) okay, no.. even if the messages were kept in a queue and then fired off all at once when can0 came back up, it should've been like 80 messages (one per minute the interface was down) and not a thousand per second it gets weirder... now i get the heartbeat messages in spurts of about two dozen every two seconds is it possible that something calls the canboatjs heartbeat function more than once a minute? @Scott Bender any ideas?
Scott Bender
Scott Bender2mo ago
I don’t think anyone else could be calling it Let me take a look at the code… I don't see how canbiatjs could be doing it You can turn on debug for canboatjs:candevice you'll see a message everytime caboatjs sends heartbeat out/ I am sitting here watching it go out exactly once a minute on my boat
Scott Bender
Scott Bender2mo ago
No description

Did you find this page helpful?