CKocar
CKocar

Reputation: 586

How can I be sure that all my data is sent and received on the CAN-bus?

I am using can-bus on the stm32f3 and transmitter. I send and receive data over a 1Mb/s can-bus line populated with 2 devices.

I analysed the line with an oscilloscope and detected no problem. But how can I make sure each data sent is received ?

Upvotes: 0

Views: 1216

Answers (2)

Benoît
Benoît

Reputation: 416

If you observed via the oscilloscope that messages were being transmitted then if you want to be sure that all your data is being transmitted, you should handle the bus errors. If there is no error, everything is being transmitted.

For more information on CAN Bus Error Handling, see here

Upvotes: 2

milad lashini
milad lashini

Reputation: 125

you may define a counter (1,2,3 ..) and check the arrival of all number on the other side.

Upvotes: 0

Related Questions