Now Deepnet DualShield linux version can send SMS OTP by GPRS modem. You may need to tweak a little to make it work with your particular modem, especially it is USB modem, according to SMSLib Troubleshooting
In my case(using ZTE MF100 USB Modem in Ubuntu 11.04 32bit), it has a port as "/dev/ttyUSB2".
mingfa@water:/dev$ ls -l ttyUSB2
crw-rw---- 1 root dialout 188, 2 2011-06-21 16:01 ttyUSB2
As DualShield is running under a user called "dualshield", you need to add this user into the group "dialout" which the modem belongs to.
sudo useradd -G dialout dualshield
In addition, I have to add the parameter "-Dsmslib.serial.polling \" in the file /etc/init.d/dualshield, otherwise I got a no response exception.
case "$1" in
start)
# Start DualShield
$DAEMON_HOME/bin/jsvc \
-jvm server \
-user $TOMCAT_USER \
-home $JRE_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Dcatalina.tmpdir=$CATALINA_TEMP \
-Djava.io.tmpdir=$TMP_DIR \
-Djava.library.path=$JRE_HOME/bin \
-Dsmslib.serial.polling \
......
No comments:
Post a Comment