PLUS+1 User Forum

PLUS+1 Hardware => Controllers => Topic started by: lijun0 on August 02, 2015, 11:24:04 AM

Title: Identify one mico is off bus during two micro communication via CAN
Post by: lijun0 on August 02, 2015, 11:24:04 AM
Gentleman,
I have a questyion. When one micro. is receiving message using the CAN_Rx mudular in the basic FB librey how can I identify that the sending micro. is off bus. Since I tested to see the received data remains unchanged even the sender stopps or off bus. This is a safety concern. I had tried to use the Rx (updated) but found this dioesn't tell anything (alwase in off status). Any other means to identify this status?


Title: Re: Identify one mico is off bus during two micro communication via CAN
Post by: lijun0 on August 02, 2015, 11:58:11 AM
Sorry, after further test I found it can use the updated(Rx) to identify the status.

Thanks!
Title: Re: Identify one mico is off bus during two micro communication via CAN
Post by: George on August 02, 2015, 08:05:35 PM
If your data is really sensitive, I would prefer to add a simple counter in data. That way you can easily detect a timeout or missing data packages.
Title: Re: Identify one mico is off bus during two micro communication via CAN
Post by: FStelzer on August 03, 2015, 06:24:52 PM
Hey,
I always use the Rx output of the block and connect this to an off delay.
Then you can define the "error detecting time.
Connect all delay outputs with an OR . Goes the output of the OR Block TRUE, you know that there is an CAN Error.

Best regards
FStelzer
Title: Re: Identify one mico is off bus during two micro communication via CAN
Post by: bryantmorris on September 08, 2015, 06:44:06 AM
Hey,
I always use the Rx output of the block and connect this to an off delay.
Then you can define the "error detecting time.
Connect all delay outputs with an OR . Goes the output of the OR Block TRUE, you know that there is an CAN Error.

Best regards
FStelzer

This is a great idea, thank you for the input