Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== xAP SMS ====== {{: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. 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 [[http://www.homeautomationhub.com/content/usb-serial-adaptor|USB/Serial cable]]. Note that xap-sms connects at 19200 baud. The command line options: <code> # xap-sms --help SMS Connector for xAP v12 Copyright (C) DBzoo, 2009 xap-sms: [options] -i, --interface IF Default br0 -d, --debug 0-7 -h, --help </code> Schema for the body of outgoing xAP message <code> xap-header { v=12 hop=1 UID=FF00DD00 target=dbzoo.livebox.SMS source=dbzoo.acme.test class=SMS.message } outbound { msg=(Message text upto 128 characters) num=(Telephone number to send to) } </code> Schema for the body of an incoming SMS message <code> xap-header { v=12 hop=1 UID=FF00DD00 source=dbzoo.livebox.SMS class=SMS.message } inbound { msg=(message text) num=(Telephone number of sender) timestamp=(date time) } </code> 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> [sms] enable=1 usbserial=/dev/ttyUSB1 baud=19200 </code> Sample python programs, also see the [[:livebox:hah_xap_python|HAH xAP Python]] page * {{xaplib.zip}} - Support library * {{:livebox:xap-sms-lcd.zip|}} - Watch out for inbound SMS messages when one is detected broadcast its message to the Livebox LCD * {{:livebox:xap-sms-event.zip|}} - Watch out for an RF or RELAY event when one if detected send an SMS of the change livebox/sms.txt Last modified: 2014/06/08 10:37by minerva9