tobias_r - anyone got an idea where those messa...
anyone got an idea where those messages might be coming from?
6 Replies
Canboatjs does send out heartbeat messages
one heartbeat every millisecond? seems a bit excessive...
and after the server restart the messages have stopped
once a minute
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?
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