Both sides previous revision Previous revision Next revision | Previous revision |
livebox:sms [2012/04/17 12:39] – minerva9 | livebox:sms [2014/06/08 10:37] (current) – minerva9 |
---|
====== xAP SMS ====== | ====== xAP SMS ====== |
| |
{{:atmel:7110_main.gif }} The xap-sms daemon allows the Livebox to send and receive SMS messages with a Mobile phone. | {{:atmel:7110_main.gif }} The xap-sms daemon allows the Livebox to send and receive SMS messages with a mobile phone. |
| |
{{ :atmel:dlr3.gif}} The SMS messages are converted into xAP for transport on our bus so that other software can deal with them and react. Usage of this hardware requires additional programming to setup the control structures that you require. It doesn't do anything out of the box - see the sample programs section below. | {{ :atmel:dlr3.gif}} The SMS messages are converted into xAP for transport on our bus so that other software can deal with them and react. Usage of this hardware requires additional programming to setup the control structures that you require. It doesn't do anything out of the box - see the sample programs section below. |
| |
Testing was done using a NOKIA-7110 your mileage vary with other handsets. However if they are compatible to the COMMAND SET then they **should just work**. | Testing was done using a NOKIA-7110 your mileage may vary with other handsets. However if they are compatible with the COMMAND SET then they **should just work**. |
| |
Connecting the phone to the Livebox will requires a [[http://www.homeautomationhub.com/content/dlr3-connect-cable|DLR-3 cable]] and a USB/Serial cable. | Connecting the phone to the Livebox will requires a [[http://www.homeautomationhub.com/content/dlr3-connect-cable|DLR-3 cable]] and a [[http://www.homeautomationhub.com/content/usb-serial-adaptor|USB/Serial cable]]. |
| |
| Note that xap-sms connects at 19200 baud. |
| |
The command line options: | The command line options: |
| |
xap-sms: [options] | xap-sms: [options] |
-n, --instance NAME Default sms | |
-i, --interface IF Default br0 | -i, --interface IF Default br0 |
-p, --port NUM Default 3639 | -d, --debug 0-7 |
-s, --serial DEV Default /dev/ttyUSB1 | |
-d, --debug 0-9 | |
-h, --help | -h, --help |
</code> | </code> |
| |
Scheme for the body of outgoing xAP message | Schema for the body of outgoing xAP message |
<code> | <code> |
xap-header | xap-header |
</code> | </code> |
| |
There are two configuration parameters in ///etc/xap-livebox.ini// that xap-sms honours. Whether the daemon should be started or not and the USB serial device where the phone can be found. These can also be updated via the WEB interface. | There are three configuration parameters in ///etc/xap-livebox.ini// that xap-sms honours. Whether the daemon should be started or not, the USB serial device where the phone can be found and the baud rate for the serial comms. These can also be updated via the HAH web interface. |
| |
<code> | <code> |
enable=1 | enable=1 |
usbserial=/dev/ttyUSB1 | usbserial=/dev/ttyUSB1 |
| baud=19200 |
</code> | </code> |
| |