6 #include <GsmModem.idl>
7 #include <AnalogModem.idl>
20 constant
int SUCCESS = 0;
21 constant
int ERR_INVALID_VALUE = 1;
Interface describing a physical serial port and the devices which can be attached to it.
Definition: SerialPort.idl:16
int setSettings(in Settings settings)
Set settings.
BaudRate
Possible baud rates.
Definition: SerialPort.idl:46
@ BR57600
57::600 kbit/s
Definition: SerialPort.idl:53
@ BR38400
38::400 kbit/s
Definition: SerialPort.idl:52
@ BR1200
1.200 kbit/s
Definition: SerialPort.idl:47
@ BR9600
9.600 kbit/s
Definition: SerialPort.idl:50
@ BR4800
4.800 kbit/s
Definition: SerialPort.idl:49
@ BR2400
2.400 kbit/s
Definition: SerialPort.idl:48
@ BR19200
19::200 kbit/s
Definition: SerialPort.idl:51
State getState()
Get current port state.
PortState
Possible states the port can be in at a given time.
Definition: SerialPort.idl:26
@ GSMMODEM
A GSM modem is attached to the port.
Definition: SerialPort.idl:29
@ CONSOLE
The console application is running on the port.
Definition: SerialPort.idl:27
@ ANALOGMODEM
An analog modem is attached to the port.
Definition: SerialPort.idl:28
DetectionType
Device type the port shall be looking for.
Definition: SerialPort.idl:36
@ FORCE_CONSOLE
Always assume a console (terminal) is connected.
Definition: SerialPort.idl:38
@ FORCE_ANALOGMODEM
Always assume an analog modem is connected.
Definition: SerialPort.idl:39
@ AUTOMATIC
Try to automatically determine the connected device.
Definition: SerialPort.idl:37
MetaData getMetaData()
Get port meta data.
Settings getSettings()
Get current settings.
Object getModem()
Get modem connected to port.
Basic IDL definitions.
Definition: Event.idl:10
Serial Ports.
Definition: AnalogModem.idl:12
Common base for all events.
Definition: Event.idl:13
Event emitted when a modem is connected.
Definition: SerialPort.idl:93
Event emitted when the modem connection state changes.
Definition: SerialPort.idl:86
Object modem
Either a AnalogModem or a GsmModem.
Definition: SerialPort.idl:87
Event emitted when a modem is disconnected.
Definition: SerialPort.idl:99
Port settings.
Definition: SerialPort.idl:77
BaudRate consoleBaudRate
Baud rate to be used for running the console application.
Definition: SerialPort.idl:78
DetectionType detectType
Type of connected device to be assumed in device detection.
Definition: SerialPort.idl:80
BaudRate modemBaudRate
Baud rate to be used for communicating with an attached modem.
Definition: SerialPort.idl:79
Structure holding information about the current state of the port.
Definition: SerialPort.idl:69
string deviceName
Name of the device currently connected.
Definition: SerialPort.idl:71
PortState state
Current connection state.
Definition: SerialPort.idl:70