IB-COM
22
LNCV Description
Default
0
Module address
1
1
Software version
-
2
Baud rate
1 = 19200
2 = 38400
3 = 57600
4 = 115200
4
4
LocoNet Direct module
0 = off
1 = on
0
2.8 Communication PC – LocoNet
(only for Experts)
Communication between PC and LocoNet must be according to the
following protocol:
Send message over USB and wait until the sent message is
received again, before sending a new message. If other messages
are received during the waiting period process them.
LACK (Long Acknowledge Message) treatment: If a LACK can
follow a message (see LocoNet documentation for the messages
that can be follow by a LACK), a flag must be set by the COM Port
after a send and receipt operation. If this flag is set and the next
received message is a LACK message, then this must be
processed because it is a reply to the sent Message. If the next
message received is not a LACK the set flag is reset. This way
ensures that a LACK is not assigned to a wrong Message.
Process Received Messages.
The echoed messages sent by PC do not have to be processed
upon receipt, since after transmission to LocoNet they appear in the
receive buffer and are processed by the receive routine.
Sending Messages without control of the return echo can lead to
errors in communication between PC and LocoNet. By this method
using a Baud rate of 115200 Baud will decrease the speed of
communication.
2.9 LocoNet Direct Mode
If the LocoNet direct mode is selected (LNCV 4 = 1), then each byte
is sent directly to the LocoNet without any control by the interface.
This mode should only be used with the Baud rate of 19200.
The settings for the interface remain even if the IB-COM
configuration is put back to factory default.
Attention
Note
Summary of Contents for IB-COM
Page 1: ...The Digital Center for PC Manual...
Page 37: ...IB COM 37 Appendix...