Comms
Comms
This Hardware module allow ODA to connect to the Internet with a GSM connection. This connection requires of a device with a SIM card connect to it. This module is currently only made to work in Sierra Wireless FX30/FX30S devices. To extend this module is as easy as create new scripts that works for the desired device.
To access source code click here.
Dependencies
- Commons: Provide the basic APIs to register the service.
Configuration
To configure Comms Hardware module, a file named es.amplia.oda.hardware.comms.cfg must be created with the next parameters
- pin: "" (void String) by default. This is the PIN Code of the inserted SIM card.
- apn: Required parameter. This is the APN where the SIM card will connect to get the information to achieve a connection to wireless network.
- username: "" (void String) by default. The user to access to the APN.
- password: "" (void String) by default. The pass to access to the APN.
- connectionTimeout: 60 by default. Time (in seconds) that the module will wait before to do a timeout if network delay in response.
- retryConnectionTimer: 60 by default. Time (in seconds) that the module will wait after try to connecting to try it again.
es.amplia.oda.hardware.comms.cfg will have a similar format to:
pin=1234
apn=telefonica.es
username=telefonica
password=telefonica
connectionTimeout=15
retryConnectionTimer=30