|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjosx.rcxcomm.RCXAbstractPort
josx.rcxcomm.RCXF7Port
public class RCXF7Port
RCXF7Port provides an interface similar to java.net.Socket Adapted from original code created by the LEGO3 Team at DTU-IAU This version of RCXPort uses Serial comms, not low-level comms. Serial comms uses the RCX Rom routines which only support Lego firmware opcodes and protocol. The F7 (set message) opcode is used as it allows comms in both direction. This protocol is the same as that used by RCXPort in lejos 1.0.5, although the implementation is slightly different. This protocol is not very suitable for java streams. Bytes can get lost, and they can be delivered more than once. The protocol supported by RCXPort is far better as in provides guaranteed delivery of all data and is much faster. This version is provided for compatibiltity with the lejos 1.0.5 protocol, and possible interaction with Lego firmware programs (such as nqc programs). A two level protocol stack is used consisting of F7DeliveryHanler (which does Acks, and retries) and F7Handler.
Field Summary |
---|
Fields inherited from class josx.rcxcomm.RCXAbstractPort |
---|
packetHandler |
Constructor Summary | |
---|---|
RCXF7Port(java.lang.String port)
|
Method Summary |
---|
Methods inherited from class josx.rcxcomm.RCXAbstractPort |
---|
close, getInputStream, getOutputStream, getTimeOut, reset, setListen, setTimeOut |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RCXF7Port(java.lang.String port) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |