agilentvee Posted May 25, 2018 Report Share Posted May 25, 2018 Hi guys: I have one issue about signal of CAN Framework. I hope I can get response in the forum. Requirement : 1. there is one cycle CAN Data, the 8th byte is cycle data(0->15), if the 8th byte not follow cycle data, we must give up this frame data , and report one error message. my issue: how to detect the CAN message in cycle data mode? 2. on the other hand, if we want to generate one cycle CAN DATA as below , how I can do it? BR Quote Link to comment
hooovahh Posted May 25, 2018 Report Share Posted May 25, 2018 Oh you mean like incrementing counters using the bucket filling technique with queued frames? (Part 9 of my CAN blog) Or even better, having the ability to load the XNet with custom hardware which performs the incrementing counters (and optionally the CRC) automatically? (Part 10 of my CAN blog) If you find this useful be sure and vote for the idea exchange to make this an official feature of XNet. Edit: Just realized that only answers half your question. As for detecting a frame drop out, you'll want to setup an XNet session of the Stream type, or Queued which allows to read every value of a signal or frame. Then just do an comparision that the previous value is one less than the next one and if it isn't perform some action. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.