Command line interface
EXPLANATION
Use this command to test the CAN Bus lines. This command transmits 96 maximum-
size frames to the selected channel. The data content is a NULL ended ASCII string
"TESTMSG". With a live CAN Bus protocol running, it is sometimes difficult to detect
the node that transmits a frame. With this command, you can easily send long, constant
content frames in a controlled manner when you want to measure the line with an
oscilloscope.
When you give the check_line command, data frames are written to the source
queue. Then frames are read from the queue and transmitted until the queue is empty.
Finally the received frames are read from the other channel's sink queue and checked
the data matches with the test frame and there are as many frames as were sent. The
queue mechanism is exactly the same that is used in normal train functions; therefore
check_line also tests the entire link layer provided by the CVB module.
When you transmit data to the lines with this command, you can also measure the line
voltages and signal shapes by using an oscilloscope.
After you have finished using the check_line command, you need to reset the
module by giving the reset command or by switching off the system power supply for
a some minutes.
EXAMPLE
Prior to the tests you must connect the channels (connectors X1 and X2) together with
an appropriate CAN Bus cable.
check_line
The following text is displayed if the frames were sent and received properly:
dbg>check_line
Loop from channel A to B...PASSED.
The following text is displayed if the frames were not sent or received properly:
dbg>check_line
Loop from channel A to B...FAILED.
5.4.2 CANSTAT- CAN Statistics
SYNTAX
canstat
EXPLANATION
Use this command to display statistical data maintained by the CVB module.
The data items keep track of the following variables and registers to each channel
(CAN A and CAN B):
CVB1621A and CVB2456A Technical Manual, ver. 3.00
30
Need help?
Do you have a question about the CVB1621A and is the answer not in the manual?