11-06-2015 04:39 AM - edited 11-06-2015 04:39 AM
Hello,
i'm using XNET to communicate with our CAN device. I send and then receive several frames one by one through one Interface. Now i want to use the same Interface (CAN-Node) to log or trace both the sent and reiceived frames. Therefor i put another session (frame in stream) in my programm, you can see it in the attached photo. But i can only see the reiceived frames, but not the sent. Can anybody help me? Thx very much!
11-06-2015 04:49 AM
Is there an option to 'echo transmitted frames' with your CAN device? I think the XNET CAN devices have this functionality where any transmitted frames also appear as 'read' frames so you can log everything on the network. Either that or you can create a queue for CAN frames and when you read/write to the CAN device also enqueue those frames - you can then have a logging loop that dequeues the frames and writes them to disk.
11-06-2015 05:04 AM
thank u very much for your reply. I have tried to set the 'echo transmitted frames' option in my program to true, but in this way my device can not work well, and it seems like i can only see the sent frames, but not the reiceived.
11-06-2015 06:17 AM
You need to show us your code that does not work, if we should have any chance on helping you.
11-06-2015 07:38 AM
mexaviesta a écrit :
Hello,
i'm using XNET to communicate with our CAN device. I send and then receive several frames one by one through one Interface. Now i want to use the same Interface (CAN-Node) to log or trace both the sent and reiceived frames. Therefor i put another session (frame in stream) in my programm, you can see it in the attached photo. But i can only see the reiceived frames, but not the sent. Can anybody help me? Thx very much!
You have to make sure the Frame Input Stream session configuration is completed before the first write in the top thread of your code.
Ben64
11-06-2015 07:46 AM
Thanks a lot, i've attached my code here.