Troubleshooting with software
34
EXAMPLE
Refer to the next command MSGS.
5.6.7 MSGS - Message send (D)
This command alters the functionality of the Multifunction Vehicle
Bus. Consider the operative situation carefully before using this
command on board a train.
SYNTAX
MSGS c8 m8 addr16
c8 = number of messages
m8 = point-to-point (1) or broadcast (F)
addr 16 = device address of the recipient
(if m8=F, addr16 is ignored)
EXPLANATION
With this command you may send test messages to another MVB or to the MVB device
itself in order to test the event polling and message data queuing mechanism. These
test messages have nothing to do with TCN messaging. Refer also to the previous
command MSGR.
EXAMPLE
Type command ‘msgs’ (message send) with parameters ‘2’ (two messages), ‘1’ (point-
to-point), ‘20’ (destination device at address 20h. In this case it is the MVB itself). After
that the messages are read from the receive queue by typing command ‘msgr’
(message read):
dbg>msgs 2 1 20
Send 02 test message(s) to device 0020...
dbg>msgr
Received message:
1020 6854 7369 6920 2073 6574 7473 6D20 7365 6173 6567 6E20 6D75 6562 2072 3030
Received message:
1020 6854 7369 6920 2073 6574 7473 6D20 7365 6173 6567 6E20 6D75 6562 2072 3130
Receive queue empty.