Detailed Description
The ModemEmulatorService class provides the ModemEmulator service.
The ModemEmulator service enables applications to register serial devices and TCP ports with the modem emulator to allow external devices to access Qt Extended via AT commands.
Member Function Documentation
void ModemEmulatorService::addSerialPort ( const QString & deviceName ) [slot]
Add deviceName to the list of serial ports that are being monitored for AT sessions. The device name will be something like /dev/ttyS1:115200, indicating the kernel device and baud rate to use. Returns false if the device could not be opened.
See also removeSerialPort().
void ModemEmulatorService::addSerialPort ( const QString & deviceName, const QString & options ) [slot]
This is an overloaded member function, provided for convenience.
Add deviceName to the list of serial ports that are being monitored for AT sessions. The options parameter specifies additional options to configure the initial AT command settings.
See also removeSerialPort().
void ModemEmulatorService::addTcpPort ( int tcpPort, bool localHostOnly ) [slot]
Add tcpPort to the list of TCP ports that are being monitored for incoming AT sessions. If localHostOnly is true, then only allow processes on the local host to connect. Returns false if the TCP port could not be bound.
This is typically used for debugging the AT interface. A program such as telnet can be used to connect to the port for issuing AT commands manually.
Applications can use this for non-debugging access if they connect to the port using QSerialSocket.
See also removeTcpPort().
void ModemEmulatorService::addTcpPort ( int tcpPort, bool localHostOnly, const QString & options ) [slot]
This is an overloaded member function, provided for convenience.
Add tcpPort to the list of TCP ports that are being monitored for incoming AT sessions. If localHostOnly is true, then only allow processes on the local host to connect. Returns false if the TCP port could not be bound. The options parameter specifies additional options to configure the initial AT command settings.
See also removeTcpPort().
void ModemEmulatorService::removeSerialPort ( const QString & deviceName ) [slot]
Remove deviceName from the list of serial ports that are being monitored for AT sessions. All active sessions associated with the device will be destroyed.
See also addSerialPort().
void ModemEmulatorService::removeTcpPort ( int tcpPort ) [slot]
Remove tcpPort from the list of TCP ports that are being monitored for incoming AT sessions. If there are active sessions, they will continue until the peer closes the connection.
See also addTcpPort().