|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Tue Jul 01, 2025 02:06 |
Page: 1
Keywords: Mode: All keywords (AND) |
Thu May 26, 2011 02:03
|
tai: Operating system name and version: CentOS 5
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: HAUWIE E1552
Interface: USB
Hi
Anyone has experiences to monitoring smstools3 and SMS modem (HAUWIE E1552) with tools nagios, opennms or other tools
Thank you
Tai
|
Tue Apr 12, 2011 04:52
|
tai: Hi
I try to learn from http://smstools3.kekekasvi.com/topic.php?id=46
and I have some question about bash script.
=====
FROM=`formail -zx From: < $2 | sed 's/"//g'`
TO=`formail -zx To: < $2`
#Remove plus sign, spaces, minus and short number prefix
TO=`echo "$TO" | sed 's/ //g' | sed 's/+//g' | sed 's/s//g' | sed 's/-//g'`
SUBJECT=`formail -zx Subject: < $2`
SENT=`formail -zx Sent: < $2`
TEXT=`sed -e '1,/^$/ d' < $2`
TEXTSQL=$(echo "$TEXT" | sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g')
.
.
Question
1. What is formail -zx mean? and `sed -e '1,/^$/ d' < $2` mean?
2. What is $2 mean?
=====
if [ "$1" = "FAILED" ] || [ "$1" = "SENT" ]; then
mysql $SQL_ARGS "insert into $SQL_TABLE (type,sent,sender,receiver,msgid,text) values (\"$1\",\"$DATE\",\"$FROM\",\"$TO\",\"$3\",\"$TEXTSQL\");";
elif [ "$1" = "RECEIVED" ]; then
mysql $SQL_ARGS "insert into $SQL_TABLE
Question
1. What is $1 and $3 mean?
Tai
|
Thu Apr 07, 2011 04:24
|
tai: Hi keke
now my sms modem and smstools3 work as well, but I would like to integrate with MySQL
so i add paramater in smsd.conf
eventhandler = /usr/local/bin/mysmsd
However, I don't know much about shell script base on CentOS 5.5 please recommend how to test by simulate processing like :?
1.Mobile send to SMS gateway
2.Get data from Mysql
3.send back message to Mobile
For Example:
type :
R code number
RR code number
RRR code number
RB code number
Query data from MySQL that base condition by code number
Please recommend
Tai
|
Wed Apr 06, 2011 02:49
|
tai: Thank you again and there are some error when try start service SMS3
I think there are some message that try to processing that make service can not start.
# /etc/init.d/sms3 start
Starting SMS Daemon: There was 1 error while reading the config file:
- Syntax error: description
There was 1 major problem found.
Cannot start. See the log file for details.
smsd failed.
# tail -f /var/log/smsd.log
2011-03-23 09:34:08,2, smsd: There was 1 major problem found.
2011-03-23 09:34:08,2, smsd: Smsd mainprocess terminated.
2011-03-23 09:41:36,2, smsd: Smsd v3.1.14 started.
2011-03-23 09:41:36,2, smsd: Running as root:root.
2011-03-23 09:41:36,2, smsd: There was 1 error while reading the config file:
2011-03-23 09:41:36,2, smsd: - Syntax error: description
2011-03-23 09:41:36,7, smsd: Running startup_check (shell): /var/spool/sms/incoming/smsd_script.S9VzmM /tmp/smsd_data.lMuz00
2011-03-23 09:41:36,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0)
2011-03-23 09:41:36,2, smsd: There was 1 major problem found.
2011-03-23 09:41:36,2, smsd: Smsd mainprocess terminated.
Tai
|
Tue Apr 05, 2011 10:06
|
tai: Thank you very much but still error message
#tail -f /var/log/smsd.log
.
2011-03-22 17:03:34,7, GSM1: Command is sent, waiting for the answer
2011-03-22 17:03:34,7, GSM1: <- +CSQ: 18,99 OK
2011-03-22 17:03:34,6, GSM1: Signal Strength Indicator: (18,99) -77 dBm (Good), Bit Error Rate: not known or not detectable
2011-03-22 17:03:34,6, GSM1: Checking if Modem is registered to the network
Tai
|
Tue Apr 05, 2011 03:17
|
tai: Hi,
It is work... but there are some error message :
2011-03-22 10:07:15,6, GSM1: Trying to get stored message 30
2011-03-22 10:07:16,7, GSM1: -> AT+CMGR=30
2011-03-22 10:07:16,7, GSM1: Command is sent, waiting for the answer
2011-03-22 10:07:16,7, GSM1: <- +CMS ERROR: 321 (Invalid memory index)
2011-03-22 10:07:16,6, GSM1: No SMS received (reading interrupted)
2011-03-22 10:07:18,6, GSM1: Checking device for incoming SMS
2011-03-22 10:07:18,6, GSM1: Checking if modem is ready
2011-03-22 10:07:18,7, GSM1: -> AT
2011-03-22 10:07:18,7, GSM1: Command is sent, waiting for the answer
2011-03-22 10:07:18,7, GSM1: <- OK
2011-03-22 10:07:18,6, GSM1: Pre-initializing modem
2011-03-22 10:07:19,7, GSM1: -> ATE0+CMEE=1;+CREG=2
2011-03-22 10:07:19,7, GSM1: Command is sent, waiting for the answer
2011-03-22 10:07:19,7, GSM1: <- OK
2011-03-22 10:07:19,6, GSM1: Initializing modem
2011-03-22 10:07:19,7, GSM1: -> AT^CURC=0
2011-03-22 10:07:19,7, GSM1: Command is sent, waiting for the answer
2011-03-22 10:07:19,7, GSM1: <- OK
2011-03-22 10:07:20,7, GSM1: -> AT+CSQ
2011-03-22 10:07:20,7, GSM1: Command is sent, waiting for the answer
2011-03-22 10:07:20,7, GSM1: <- +CSQ: 15,99 OK
2011-03-22 10:07:20,6, GSM1: Signal Strength Indicator: (15,99) -83 dBm (Good), Bit Error Rate: not known or not detectable
2011-03-22 10:07:20,6, GSM1: Checking if Modem is registered to the network
2011-03-22 10:07:20,7, GSM1: -> AT+CREG?
2011-03-22 10:07:20,7, GSM1: Command is sent, waiting for the answer
2011-03-22 10:07:20,7, GSM1: <- +CREG: 2,1,621,BA OK
2011-03-22 10:07:20,6, GSM1: Modem is registered to the network
2011-03-22 10:07:20,6, GSM1: Selecting PDU mode
2011-03-22 10:07:21,7, GSM1: -> AT+CMGF=0
2011-03-22 10:07:21,7, GSM1: Command is sent, waiting for the answer
2011-03-22 10:07:21,7, GSM1: <- OK
Tai
|
Sat Apr 02, 2011 04:46
|
tai: OK, I will try...
For the HAUWIE E1552 use only command init = AT^CURC=0 -it is enough
Tai
|
Fri Apr 01, 2011 05:11
|
tai: Hi Keke
Thank you for you help
I try to use SMSTools current version ,but still error
This is error message
# tail -f /var/log/smsd.log
2011-03-18 12:04:20,7, GSM1: -> ATE0+CMEE=1;+CREG=2
2011-03-18 12:04:20,7, GSM1: Command is sent, waiting for the answer
2011-03-18 12:04:20,7, GSM1: <- +CME ERROR: 13 (SIM failure)
2011-03-18 12:04:20,3, GSM1: Modem did not accept the pre-init string
2011-03-18 12:04:20,6, GSM1: Checking if modem needs PIN
2011-03-18 12:04:20,7, GSM1: -> AT+CPIN?
2011-03-18 12:04:20,7, GSM1: Command is sent, waiting for the answer
2011-03-18 12:04:21,7, GSM1: <- +CME ERROR: 13 (SIM failure)
2011-03-18 12:04:21,2, GSM1: PIN handling: expected READY, modem answered +CME ERROR: 13 (SIM failure), SIM failure
2011-03-18 12:04:21,2, GSM1: Modem handler 0 terminated abnormally. PID: 22467.
And my system is SMS gateway and still use GSM SIM
Should I use 3G SIM for HAUWIE E1552?
Tai
|
Thu Mar 31, 2011 04:36
|
tai: Hi,
The CentOS Community has been support me for driver and I think, the device modem work properly.
# lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 004: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
But there are error "+CME ERROR: 13"
# tail -f /var/log/smsd.log
2011-03-17 11:32:03,7, GSM1: -> ATE0+CMEE=1
2011-03-17 11:32:04,7, GSM1: Command is sent, waiting for the answer
2011-03-17 11:32:04,7, GSM1: <- OK
2011-03-17 11:32:04,6, GSM1: Initializing modem
2011-03-17 11:32:04,7, GSM1: -> AT^CURC=0
2011-03-17 11:32:04,7, GSM1: Command is sent, waiting for the answer
2011-03-17 11:32:05,7, GSM1: <- OK
2011-03-17 11:32:05,7, GSM1: -> AT+CPMS="IM"
2011-03-17 11:32:05,7, GSM1: Command is sent, waiting for the answer
2011-03-17 11:32:05,7, GSM1: <- +CME ERROR: 13
2011-03-17 11:32:15,7, GSM1: -> AT+CPMS="IM"
2011-03-17 11:32:16,7, GSM1: Command is sent, waiting for the answer
2011-03-17 11:32:16,7, GSM1: <- +CME ERROR: 13
2011-03-17 11:32:16,3, GSM1: Modem did not accept the second init string
2011-03-17 11:32:18,6, GSM1: Checking device for incoming SMS
2011-03-17 11:32:18,6, GSM1: Checking if modem is ready
2011-03-17 11:32:18,7, GSM1: -> AT
2011-03-17 11:32:18,7, GSM1: Command is sent, waiting for the answer
2011-03-17 11:32:19,7, GSM1: <- OK
2011-03-17 11:32:19,6, GSM1: Pre-initializing modem
2011-03-17 11:32:19,7, GSM1: -> ATE0+CMEE=1
2011-03-17 11:32:19,7, GSM1: Command is sent, waiting for the answer
2011-03-17 11:32:19,7, GSM1: <- OK
2011-03-17 11:32:19,6, GSM1: Initializing modem
2011-03-17 11:32:19,7, GSM1: -> AT^CURC=0
2011-03-17 11:32:20,7, GSM1: Command is sent, waiting for the answer
2011-03-17 11:32:20,7, GSM1: <- OK
2011-03-17 11:32:20,7, GSM1: -> AT+CPMS="IM"
2011-03-17 11:32:21,7, GSM1: Command is sent, waiting for the answer
2011-03-17 11:32:21,7, GSM1: <- +CME ERROR: 13
Tai
|
Mon Mar 28, 2011 09:55
|
tai: Which OS that work properly? Debian 6 or Ubuntu 10.10 ?
Thank you
|
Thu Mar 24, 2011 04:54
|
tai: I test the HAUWIE E1552 with SMSTOOLS3
and i try to command and testing as following
# lsusb
Bus 003 Device 003: ID 12d1:1446 Huawei Technologies Co., Ltd.
Bus 003 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
# /sbin/rmmod usb-storage
# /sbin/modprobe -r usbserial
# /sbin/modprobe usbserial vendor=0x12d1 product=0x1446
ls -ls /dev/ttyUSB0
ttyUSB0 ttyUSB1
and re-config /etc/smsd.conf and add init = AT^CURC=0
# Example smsd.conf. Read the manual for a description
devices = GSM1
logfile = /var/log/smsd.log
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
loglevel= 7
delaytime = 2
blocktime = 60
receive_before_send = yes
autosplit = 2
[GSM1]
#device = /dev/ttyACM0
device = /dev/ttyUSB0
#incoming = yes
#mode = new
#device = /dev/ttyACM0
incoming = yes
report = no
baudrate = 9600
#init = ATE0
init = AT^CURC=0
init2 = AT+CPMS="IM"
mode = old
send_delay=50
but there are log that show in below
# tail -f /var/log/smsd.log
2011-03-22 17:00:56,3, GSM1: Modem is not clear to send
2011-03-22 17:01:09,3, GSM1: Modem is not clear to send
2011-03-22 17:01:22,3, GSM1: Modem is not clear to send
2011-03-22 17:01:35,3, GSM1: Modem is not clear to send
Please help me
Tai
|
Mon Feb 28, 2011 03:43
|
tai: How about Huawei E220?
Thank you
|
Thu Feb 24, 2011 02:26
|
tai: Thank you for your reply
and this is message from command
#dmesg
.
.
EXT3-fs: mounted filesystem with ordered data mode.
Adding 1052216k swap on /dev/sda6. Priority:-1 extents:1 across:1052216k
Vendor: Nokia Model: S60 Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 00
sd 2:0:0:0: Attached scsi removable disk sdb
sd 2:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
IA-32 Microcode Update Driver: v1.14a <tigran@veritas.com>
microcode: CPU0 updated from revision 0x4 to 0x5, date = 04212005
microcode: CPU1 updated from revision 0x4 to 0x5, date = 04212005
tg3: eth0: Link is up at 100 Mbps, full duplex.
tg3: eth0: Flow control is on for TX and on for RX.
Bluetooth: Core ver 2.10
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
Bluetooth: HIDP (Human Interface Emulation) ver 1.1
Netfilter messages via NETLINK v0.30.
ip_tables: (C) 2000-2006 Netfilter Core Team
ip_conntrack version 2.4 (4091 buckets, 32728 max) - 228 bytes per conntrack
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
============
And please recommend which Nokia Model(release year 2010-2011) that support smstools3 and the device can be used for sending and also delivery reports?
Thank you.
|
Wed Feb 23, 2011 01:56
|
tai: Hi,
I buy Nokia C5 Mobile Phones and run on CentOS 5.5 32 bit
and then i try to check the hardware
# lsusb
Bus 003 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0421:03a4 Nokia Mobile Phones
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
but I confuse, the server know the hardware but don't show in dev hardware in the system like a /dev/ttyUSB..
# more /dev/tty
tty tty14 tty20 tty27 tty33 tty4 tty46 tty52 tty59 tty8
tty0 tty15 tty21 tty28 tty34 tty40 tty47 tty53 tty6 tty9
tty1 tty16 tty22 tty29 tty35 tty41 tty48 tty54 tty60 ttyS0
tty10 tty17 tty23 tty3 tty36 tty42 tty49 tty55 tty61 ttyS1
tty11 tty18 tty24 tty30 tty37 tty43 tty5 tty56 tty62 ttyS2
tty12 tty19 tty25 tty31 tty38 tty44 tty50 tty57 tty63 ttyS3
tty13 tty2 tty26 tty32 tty39 tty45 tty51 tty58 tty7
The Nokia C5 is support SMStools3?
Thank you.
PS
|
Tue Sep 15, 2009 09:13
|
tai: Hi,
The smstools3 can implement with Zabbix ?
and My cell phone is Nokia N75
Please recommend me.
Cheers,
Tai-PS
|
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|