Outgoing and Incoming Device Connections
The flexible driver may work both with devices that accept incoming connections from Iotellect Server and that connect to the server themselves. However, working in those modes significantly differ.
Outgoing Connections
In this case all necessary device communication parameters (address, port) are specified in the device account. Iotellect Server connects to the device and starts command exchange.
Incoming Connections
If devices connect to the server themselves (most mobile devices with SIM cards do so), communication with each specific device vendor, type, model, make or version is handled by a dedicated record in driver's global configuration table. This record enables the server to listen a certain TCP or UDP port and accept incoming device connections.
Once a device connection is accepted, the driver starts limited command exchange in order to:
- discover Device ID (a string that is unique for this device, such as an IMEI number)
- find a corresponding device account context with the matching Device ID specified in device account settings
- associate the incoming connection with this device
Once the incoming connection is bound to a specific device account, there is no further difference to outgoing device connection mode.
Was this page helpful?