User Manual

Copyright © 2000-2011 Bluegiga Technologies Page 28 of 61
Bluegiga SMS Gateway Server is not installed by default. It can be installed from software component .smsgw
When Bluegiga SMS Gateway Server is installed, it is also enabled to start at boot by default. You can disable it
later (for example if you need to use the same modem for Internet connection) either with command chkconfig
or using the application's WWW interface at smsgw off setup Setup Applications Default startup
. You cannot use the same modem for Internet connection and SMS gateway use at theapplications smsgw
same time.
By default, Bluegiga SMS Gateway Server assumes the modem can be accessed using device./dev/ttyUSB0
The device can be changed by using the application or its WWW interface, by changing the setting at setup
.Setup Applications SMS gateway settings Modem device
Another mandatory setting is the SMSC (Short Message Service Center) number. Remember to change it to
match your mobile operator.
A reboot is needed for the new settings to take effect. From WWW Setup, you can do this at Setup Advanced settings
Reboot system (confirm)
The PIN code query of the SIM card at power-up must be disabled.
Bluegiga SMS Gateway Server requires exclusive access to the modem device. Otherwise it will fail to start and the "can't
lock device devicename" error message is printed to the system log. Especially, if you are using Bluetooth Serial Port
Profile, ensure it is configured to use another serial port device or disabled completely.
By default, Bluegiga SMS Gateway Server uses directory for storing incoming messages (each/tmp/sms/in
message received is stored in a separate file). It scans messages to be sent from directory . These/tmp/sms/out
settings can be changed by editing the configuration file at Setup Applications SMS gateway settings Edit
(search for dirin and dirout entries).configuration file
Bluegiga SMS Gateway Server exits in case of error. As it has registered itself to Bluegiga User Level Watchdog, this will
make device to reboot. This is a feature to recover from problems in modem communication, but as a side effect it can
cause a reboot loop if there is a mistake in the configuration file. Be careful when editing it.
To send a SMS message, create a text file with extension . The first line of that file must contain only the.sms
GSM number of the recipient. Next lines contain the message. After you have created the file, copy or move it to
the outgoing directory ( by default) and the message will be sent automatically./tmp/sms/out
An example message:
+17815550199
Hello, world!
Once the message is sent, the file is deleted from the outgoing directory.
For further information on using , see the example in SDK.smsgw makesms
5.6 Watchdog - Bluegiga User Level Watchdog
Bluegiga User Level Watchdog daemon listens on UDP port 4266 for "id timeout" messages. "id" is an ASCII
string, without spaces. If "timeout" equals to 0 (zero), the "id" is removed from the list of processes to wait. If
"timeout" is greater than 0 (zero), the "id" is added or updated.
When there is no message for "id" received within the "timeout" seconds, the user level watchdog dies and the
kernel watchdog reboots Access Device.
The command can be used to send messages to the watchdog daemon. This is done throughwatchdog