|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractPortController
jmri.jmrix.lenz.XNetPortController
jmri.jmrix.lenz.liusbserver.LIUSBServerAdapter
public class LIUSBServerAdapter
Provide access to XPressNet via a the Lenz LIUSB Server. NOTES: The LIUSB server binds only to localhost (127.0.0.1) on TCP ports 5550 and 5551. Port 5550 is used for general communication. Port 5551 is used for broadcast messages only. The LIUSB Server disconnects both ports if there is 60 seconds of inactivity on the port. The LIUSB Server disconnects port 5550 if another device puts the system into service mode.
| Field Summary |
|---|
| Fields inherited from class jmri.jmrix.lenz.XNetPortController |
|---|
validOption2 |
| Fields inherited from class jmri.jmrix.AbstractPortController |
|---|
mBaudRate, mOpt1, mOpt2, mPort |
| Constructor Summary | |
|---|---|
LIUSBServerAdapter()
|
|
| Method Summary | |
|---|---|
void |
configure()
set up all of the other objects to operate with a LIUSB Server interface |
DataInputStream |
getInputStream()
|
DataOutputStream |
getOutputStream()
|
static LIUSBServerAdapter |
instance()
Local method to do specific configuration |
boolean |
okToSend()
Can the port accept additional characters? |
String |
openPort(String portName,
String appName)
Open a specified port. |
void |
setOutputBufferEmpty(boolean s)
We need a way to say if the output buffer is empty or not |
boolean |
status()
Check that this object is ready to operate. |
String[] |
validBaudRates()
Get an array of valid baud rates. |
| Methods inherited from class jmri.jmrix.lenz.XNetPortController |
|---|
option2Name, validOption2 |
| Methods inherited from class jmri.jmrix.AbstractPortController |
|---|
configureBaudRate, configureOption1, configureOption2, currentBaudNumber, getCurrentBaudRate, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, getPortNames, handlePortBusy, handlePortNotFound, option1Name, reloadDriver, setPort, validBaudNumber, validOption1 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LIUSBServerAdapter()
| Method Detail |
|---|
public String openPort(String portName,
String appName)
SerialPortAdapter
public void setOutputBufferEmpty(boolean s)
XNetPortController
setOutputBufferEmpty in class XNetPortControllerpublic boolean okToSend()
okToSend in class XNetPortControllerpublic DataInputStream getInputStream()
getInputStream in interface PortAdaptergetInputStream in class XNetPortControllerpublic DataOutputStream getOutputStream()
getOutputStream in interface PortAdaptergetOutputStream in class XNetPortControllerpublic boolean status()
XNetPortController
status in interface PortAdapterstatus in interface SerialPortAdapterstatus in class XNetPortControllerpublic String[] validBaudRates()
public void configure()
public static LIUSBServerAdapter instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||