public class SerialManager extends Object
Constructor and Description |
---|
SerialManager(Context context,
ISerialManager service) |
Modifier and Type | Method and Description |
---|---|
String[] |
getSerialPorts()
Returns a string array containing the names of available serial ports
|
SerialPort |
openSerialPort(String name,
int speed)
Opens and returns the
SerialPort with the given name. |
public SerialManager(Context context, ISerialManager service)
public String[] getSerialPorts()
public SerialPort openSerialPort(String name, int speed) throws IOException
SerialPort
with the given name.
The speed of the serial port must be one of:
50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600,
19200, 38400, 57600, 115200, 230400, 460800, 500000, 576000, 921600, 1000000, 1152000,
1500000, 2000000, 2500000, 3000000, 3500000 or 4000000name
- of the serial portspeed
- at which to open the serial portIOException