jmri.jmrix.loconet.locoio
Class LocoIO
java.lang.Object
jmri.jmrix.loconet.locoio.LocoIO
public class LocoIO
- extends Object
Programming SV's
The SV's in LocoIO can be programmed using Loconet OPC_PEER_XFER messages.
Commands for setting SV's
PC to LocoIO loconet message (OPC_PEER_XFER)
Code LOCOIO_SV_READ LOCOIO_SV_WRITE
---- -------------- ---------------
0xE5 OPC_PEER_XFER OPC_PEER_XFER
0x10 Message length Message length
SRCL 0x50 0x50 // low address byte of Locobuffer
DSTL LocoIO low address LocoIO low address
DSTH 0x01 0x01 // Fixed LocoIO high address
PXCT1
D1 LOCOIO_SV_READ LOCOIO_SV_WRITE // Read/Write command
D2 SV number SV number
D3 0x00 0x00
D4 0x00 Data to Write
PXCT2
D5 LocoIO Sub-address LocoIO Sub-address
D6 0x00 0x00
D7 0x00 0x00
D8 0x00 0x00
CHK Checksum Checksum
LocoIO to PC reply message (OPC_PEER_XFER)
Code LOCOIO_SV_READ LOCOIO_SV_WRITE
---- -------------- ---------------
0xE5 OPC_PEER_XFER OPC_PEER_XFER
0x10 Message length Message length
SRCL LocoIO low address LocoIO low address
DSTL 0x50 0x50 // low address byte of Locobuffer
DSTH 0x01 0x01 // high address byte of Locobuffer
PXCT1 MSB LocoIO version MSB LocoIO version // High order bit of LocoIO version
D1 LOCOIO_SV_READ LOCOIO_SV_WRITE // Original Command
D2 SV number requested SV number requested
D3 LSBs LocoIO version LSBs LocoIO version // Lower 7 bits of LocoIO version
D4 0x00 0x00
PXCT2 MSB Requested Data MSB Requested Data // High order bit of requested data
D5 LocoIO Sub-address LocoIO Sub-address
D6 Requested Data 0x00
D7 Requested Data + 1 0x00
D8 Requested Data + 2 Written Data
CHK Checksum Checksum
- Author:
- plocher
|
Constructor Summary |
LocoIO()
Creates a new instance of LocoIO |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCOIO_SV_WRITE
public static final int LOCOIO_SV_WRITE
- See Also:
- Constant Field Values
LOCOIO_SV_READ
public static final int LOCOIO_SV_READ
- See Also:
- Constant Field Values
LOCOIO_BROADCAST_ADDRESS
public static final int LOCOIO_BROADCAST_ADDRESS
- See Also:
- Constant Field Values
LOCOIO_PEER_CODE_7BIT_ADDRS
public static final int LOCOIO_PEER_CODE_7BIT_ADDRS
- See Also:
- Constant Field Values
LOCOIO_PEER_CODE_ANSI_TEXT
public static final int LOCOIO_PEER_CODE_ANSI_TEXT
- See Also:
- Constant Field Values
LOCOIO_PEER_CODE_SV_VER1
public static final int LOCOIO_PEER_CODE_SV_VER1
- See Also:
- Constant Field Values
LOCOIO_PEER_CODE_SV_VER2
public static final int LOCOIO_PEER_CODE_SV_VER2
- See Also:
- Constant Field Values
LocoIO
public LocoIO()
- Creates a new instance of LocoIO
SENSOR_ADR
public static int SENSOR_ADR(int a1,
int a2)
readCV
public static LocoNetMessage readCV(int locoIOAddress,
int locoIOSubAddress,
int cv)
writeCV
public static LocoNetMessage writeCV(int locoIOAddress,
int locoIOSubAddress,
int cv,
int data)
programLocoIOAddress
public static void programLocoIOAddress(int address,
int subAddress)
probeLocoIOs
public static void probeLocoIOs()
Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: