arduino-CAN
arduino-CAN copied to clipboard
High speed sender
I'm trying to send packets every 10ms but I get this on the serial monitor, few packets are sent in a row, then it stops few ms
12:38:27.527 -> Sending packet ... done 12:38:27.527 -> Sending packet ... done 12:38:27.527 -> Sending packet ... done 12:38:27.527 -> Sending packet ... done 12:38:27.540 -> Sending packet ... done 12:38:27.540 -> Sending packet ... done 12:38:27.574 -> Sending packet ... done 12:38:27.574 -> Sending packet ... done 12:38:27.574 -> Sending packet ... done
Not much info here. Looks as you actually tries to send more often than every 10 ms. You need a receiving node to successfully send any CAN-frame.
Do you have any traffic on the Bus from other nodes? also Lower ID´s are prioritized and your node is on a hold state.
you also you need to terminate the bus properly to work as expected.