Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
B
C
D
E
F
G
L
O
P
Q
R
S
T
U
B
buildMessage(String, String)
- Method in class SerialPort.
SPDMessage
Assemble a message from its components.
C
close(boolean)
- Method in class SerialPort.
SerialPort
Releases the serial port and closes the server connection.
D
delete()
- Method in class SerialPort.
SerialPort
Called when the object is no longer required.
E
echo(byte[], int, int)
- Method in class SerialPort.
SerialPort
A convenience method that calls
put()
,
sleep()
and
get()
methods.
F
findPortList()
- Method in class SerialPort.
SerialPort
Builds a list of available ports.
G
get(int)
- Method in class SerialPort.
SerialPort
Reads up to
n
characters from the port and stores them internally for later retrieval by the
getBytes()
method.
getBufferSize()
- Method in class SerialPort.
SerialPort
Returns the size of the spd input and output buffers.
getBytes()
- Method in class SerialPort.
SerialPort
Returns the bytes read by the last
get()
or
echo()
invocation.
getCommand()
- Method in class SerialPort.
SPDMessage
Retrieve the command field.
getError()
- Method in class SerialPort.
SerialPort
Returns the current error string or "OK"
getInputCount()
- Method in class SerialPort.
SerialPort
Returns the number of bytes in the input buffer retrieved by the preceeding invocation of
query()
.
getMessage()
- Method in class SerialPort.
SPDMessage
Retrieve the message.
getOutputCount()
- Method in class SerialPort.
SerialPort
Returns the number of bytes in the output buffer retrieved by the preceeding invocation of
query()
.
getPortList()
- Method in class SerialPort.
SerialPort
Returns the ports found by the
findPortList()
method as a comma delimited list in a single String object.
getPortParameters()
- Method in class SerialPort.
SerialPort
Returns the operating parameters for the serial port that's currently open as a comma delimited String formatted as "baudrate,databits,parity,stopbits" where parity is O,E or N for Odd, Even or None.
getValue()
- Method in class SerialPort.
SPDMessage
Retrieve the value field.
L
length()
- Method in class SerialPort.
SPDMessage
Retrieve the message length.
O
open(String)
- Method in class SerialPort.
SerialPort
Opens a connection to
spd
and claims the serial port identified by
name
.
P
put(byte[])
- Method in class SerialPort.
SerialPort
Sends bytes in the array to the serial port.
Q
query()
- Method in class SerialPort.
SerialPort
Queries the server for the numbers of bytes in the input and output buffers and the buffer size: both buffers are the same size.
R
reset(char, char, char)
- Method in class SerialPort.
SerialPort
Resets the line settings, tx delay and record separator.
S
SPDMessage
- class SerialPort.
SPDMessage
.
This class contains a message sent to and received from the serial port server,
spd
.
SPDMessage(String, int)
- Constructor for class SerialPort.
SPDMessage
Construct an
SPDMessage
object from a received message.
SPDMessage(int)
- Constructor for class SerialPort.
SPDMessage
Construct an empty message object and set the debugging level.
SerialPort
- package SerialPort
SerialPort
- class SerialPort.
SerialPort
.
SerialPort
- Java and C access to local or remote serial ports.
SerialPort(int, String, int)
- Constructor for class SerialPort.
SerialPort
Construct the object, set the name of the host supporting the desired serial port, the TCP/IP port number and debugging level.
setDelay(int)
- Method in class SerialPort.
SerialPort
Sets the delay (in mS) between writing characters to the serial port.
setPortParameters(int, int, char, int)
- Method in class SerialPort.
SerialPort
Sets baud rate, databits (5-8), parity (O, E, N) and stopbits (1,2) for the serial port.
setSeparator(char, char, char)
- Method in class SerialPort.
SerialPort
Sets the record separator and its application conditions.
sleep(int, int)
- Method in class SerialPort.
SerialPort
Cause the calling process to sleep while the remote process generates and sends a reply.
T
toString()
- Method in class SerialPort.
SerialPort
Diagnostic display of the constructor interface.
U
unpackMessage()
- Method in class SerialPort.
SPDMessage
Unpack a message, extracting the command and value.
B
C
D
E
F
G
L
O
P
Q
R
S
T
U
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes