Package jmri.jmrix.loconet.locoio
Class LocoIO
java.lang.Object
jmri.jmrix.loconet.locoio.LocoIO
Manage the communication to/from a LocoIO board. Deprecated since version 5.12. Will be removed 2025 version 5.13
Uses the LOCONETSV1MODE programming mode.
Uses LnProgrammer LOCOIO_PEER_CODE_SV_VER1 message format, comparable to DecoderPro LOCONETSV1MODE Since JMRI 4.11.6 the LocoIO tool does not work with the HDL LocoIO rev 3 and newer boards, with risk of breaking the stored config. Use the DecoderPro decoder definition.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSend out a probe of all connected LocoIO units on a given LocoNet connection.static voidprogramLocoIOAddress(int address, int subAddress, LnTrafficController ln) Compose and send a message out onto LocoNet changing the LocoIO hardware board address of all connected LocoIO boards.static LocoNetMessagereadSV(int locoIOAddress, int locoIOSubAddress, int sv) Compose a LocoNet message from the given ingredients for reading the value of one specific SV from a given LocoIO.static intSENSOR_ADR(int a1, int a2) static LocoNetMessagewriteSV(int locoIOAddress, int locoIOSubAddress, int sv, int data) Compose a LocoNet message from the given ingredients for reading the value of one specific SV from a given LocoIO.
-
Field Details
-
LOCOIO_SV_WRITE
- See Also:
-
LOCOIO_SV_READ
- See Also:
-
LOCOIO_BROADCAST_ADDRESS
- See Also:
-
LOCOIO_PEER_CODE_7BIT_ADDRS
- See Also:
-
LOCOIO_PEER_CODE_ANSI_TEXT
- See Also:
-
LOCOIO_PEER_CODE_SV_VER1
- See Also:
-
LOCOIO_PEER_CODE_SV_VER2
- See Also:
-
-
Constructor Details
-
LocoIO
public LocoIO()Create a new instance of LocoIO.
-
-
Method Details
-
SENSOR_ADR
-
readSV
Compose a LocoNet message from the given ingredients for reading the value of one specific SV from a given LocoIO.- Parameters:
locoIOAddress- base address of the LocoIO board to read fromlocoIOSubAddress- subAddress of the LocoIO boardsv- the SV index to query- Returns:
- complete message to send
-
writeSV
Compose a LocoNet message from the given ingredients for reading the value of one specific SV from a given LocoIO.- Parameters:
locoIOAddress- base address of the LocoIO board to read fromlocoIOSubAddress- subAddress of the LocoIO boardsv- the SV index to changedata- the new value to store in the board's SV- Returns:
- complete message to send
-
programLocoIOAddress
Compose and send a message out onto LocoNet changing the LocoIO hardware board address of all connected LocoIO boards.User is warned that this is a broadcast type operation.
- Parameters:
address- the new base address of the LocoIO board to changesubAddress- the new subAddress of the boardln- the TrafficController to use for sending the message
-
probeLocoIOs
Send out a probe of all connected LocoIO units on a given LocoNet connection.- Parameters:
ln- the TrafficController to use for sending the message
-