Simulation - CAN Message Data Viewer

Moderator: Benj

User avatar
Jay Dee
Posts: 352
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 116 times
Been thanked: 134 times
Contact:

Simulation - CAN Message Data Viewer

Postby Jay Dee » Mon Jun 25, 2012 8:41 pm

I play with CAN and also the legacy SPI components quite a bit. The SPI legacy has a nice feature that during simulation you can see what data is being exchanged.
Would something similar be possible with the CAN?
The CAN VNET has helped a lot but if you are struggling to get you system working as expected it would be great to know what data bytes are being sent out and recieved, thus really helping to track down where the error lies.
Something relatively simple where the message IDs must be pre-selected and just shows the DLC and up to 8 data bytes, would be fantastic. :)
Ever optimistic,
John.

If you dont ask you'll never get... :wink:
These users thanked the author Jay Dee for the post:
Enamul (Tue Aug 07, 2012 6:54 pm)
Rating: 5.26%
 

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Simulation - CAN Message Data Viewer

Postby Enamul » Tue Aug 07, 2012 6:54 pm

HI John,
I was thinking week before that Vnet is fine why you are then looking for this..But this week CAN bus storm is flew over me and I am struggling with just Vnet..I need a handy message viewer..so I am also looking for any Forum member who can come up with a solution or might be MM great guys!
Enamul
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
Steve
Matrix Staff
Posts: 3073
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 87 times
Been thanked: 387 times
Contact:

Re: Simulation - CAN Message Data Viewer

Postby Steve » Wed Aug 08, 2012 8:20 am

I can offer two solutions for you.

The first is to create a separate CAN message "sniffer" program that sits on the VNET and monitors every incoming message. These messages can be viewed on a display or in the watch window during a paused group simulation.

The second is to run the VNET Server is debug mode (create a shortcut to the exe and add -d to the end of the target box (see image). This will show you activity on the VNET so you will see messages being sent. But I don't think it interprets the CAN messages, so you won't be able to see the exact contents.

We have plans to expand the VNET capabilities in Flowcode V6.
Attachments
vnet server debug mode.png
vnet server debug mode.png (27.31 KiB) Viewed 3495 times
These users thanked the author Steve for the post (total 2):
Enamul (Wed Aug 08, 2012 8:44 am) • Jay Dee (Fri Aug 17, 2012 11:40 am)
Rating: 10.53%
 

User avatar
Jay Dee
Posts: 352
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 116 times
Been thanked: 134 times
Contact:

Re: Simulation - CAN Message Data Viewer

Postby Jay Dee » Fri Aug 17, 2012 11:52 am

Thanks guys,
Ill give those options a try.
Just to give a bit of justification to the initial request. VNET is great and really helps when simulating a whole system but I spend lots of time flicking between my two instances of FC.
Often I'm only working on a simple CAN Node and when simulating it would just be good to have a very simple monitor screen for the CAN data that should be streaming out, just as an initial check that all is working as expected as is done with the SPI
I appreciate time and resources limit what nice features can be added but you have to ask.... :) In the mean time I'll try the ideas Steve suggested. Thanks again. J.