arduino-CAN icon indicating copy to clipboard operation
arduino-CAN copied to clipboard

High speed sender

Open atkforever opened this issue 3 years ago • 2 comments

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

atkforever avatar Mar 11 '21 11:03 atkforever

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.

Teddyz avatar Mar 11 '21 14:03 Teddyz

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.

Petros144 avatar Mar 25 '21 15:03 Petros144