VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

XNET Read Frame CAN

Solved!
Go to solution

Hello,

 

I use Veristand 2011, and I worte a custom device for reading of can messsages over Read XNET CAN Frame

now my problem is, that can't get any CAN-Messages.

I could deploy my custom device CAN-Frame, but there is no can information.

 

In the other hand I defined a XNET-Session on system explorer with CAN1. Could be this the problem????

 

Or maybe my RT-Driver?

 

Please help.

 

Regards,

YesB

 

0 Kudos
Message 1 of 8
(7,665 Views)

Hello,

 

if nobody can help me, please tell me, so I can go to other forum.

0 Kudos
Message 2 of 8
(7,649 Views)
Solution
Accepted by topic author YBilgin

Hi,

your device is working properly. and i can see CAN frames. I made the following changes:

Unbenannt.PNG

 

 

It's possible that you have seen the error frame. But you have several frames on the Bus. That means that you have to write all frames into the RT FIFO. I would recommend that you use XNET Read RAW Frame. It's an array of U8 which you can handle better that working with clusters and so on.

 

Regards,

Philip

0 Kudos
Message 3 of 8
(7,645 Views)

Hello Philip,

 

thank you for your advice. I tried your solution, but with no success.

You can see mor information in attach.

 

 

0 Kudos
Message 4 of 8
(7,638 Views)

Hello Philip,

 

I did many tries, but I couldn't see any frames.

 

Please help 🙂

 

Regards,

YesB

0 Kudos
Message 5 of 8
(7,624 Views)

Hi,

How did you test it. I made a simple loopback. I have configured cycled frames in SDF on CAN Port1. The other CAN Port 2 have configured in your Custom Device.

0 Kudos
Message 6 of 8
(7,600 Views)

I solved the problem. Thank you to all

 

Regards.

YesB

0 Kudos
Message 7 of 8
(7,596 Views)

Hello Philip,

 

how can I change this Code to CAN Raw Frame, without problems with XNET Read Queue Overflow.

I have this problem at the moment.

 

Regards,

YesB

Message 8 of 8
(7,583 Views)