Hi,

I have two GSM/GPRS SprutNet USB modems (Siemens MC35 clones, ATI returns
SIM900 R11.0 in screen /dev/ttyUSBN 115200).

My configuration is:

group = core
admin-port = 13000
admin-password = admin
smsbox-port = 13001
dlr-storage = internal
store-type = spool
store-location = /var/spool/kannel
log-file = /var/log/kannel/bearerbox.log
log-level = 0

group = smsbox
bearerbox-host = localhost
smsbox-id = smsbox
sendsms-port = 13013
log-file = /var/log/kannel/smsbox.log
log-level = 0

group = smsc
smsc = at
smsc-id = smsc-0
device = /dev/ttyUSB0
speed = 115200

group = smsc
smsc = at
smsc-id = smsc-1
device = /dev/ttyUSB1
speed = 115200

group = modems
id = modem
detect-string = "SIM900"
init-string = "AT+CNMI=1,2,0,1,1"

group = sendsms-user
username = ""
password = ""

After starting bearerbox I see "AT SMSC successfully
opened" for two smscs. Next I send two messages via smsbox and see:

2012-10-04 08:25:26 [6080] [9] DEBUG: boxc_receiver: sms received
2012-10-04 08:25:26 [6080] [9] DEBUG: send_msg: sending msg to boxc: <smsbox>
2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: TP-Validity-Period:
24.0 hours
2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: --> AT+CMGS=19^M
2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: <-- >
2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: send command status: 1
2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: -->
0011000B819781857474F60000A705C8329BFD06
2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: --> ^Z
2012-10-04 08:25:29 [6080] [6] DEBUG: AT2[smsc-0]: <-- >
2012-10-04 08:25:29 [6080] [6] DEBUG: AT2[smsc-0]: <-- +CMGS: 15
2012-10-04 08:25:29 [6080] [6] DEBUG: AT2[smsc-0]: <-- OK
2012-10-04 08:25:29 [6080] [6] DEBUG: AT2[smsc-0]: send command status: 0

and:

2012-10-04 08:25:52 [6080] [9] DEBUG: boxc_receiver: sms received
2012-10-04 08:25:52 [6080] [9] DEBUG: send_msg: sending msg to boxc: <smsbox>
2012-10-04 08:25:53 [6080] [7] DEBUG: AT2[smsc-1]: TP-Validity-Period:
24.0 hours
2012-10-04 08:25:53 [6080] [7] DEBUG: AT2[smsc-1]: --> AT+CMGS=19^M
2012-10-04 08:26:03 [6080] [7] DEBUG: AT2[smsc-1]: send command status: -1
2012-10-04 08:26:03 [6080] [7] ERROR: AT2[smsc-1]: Error received,
notifying failure, sender:  001 receiver: 79185887465 msgdata: Hello
udhdata:

After this error device /dev/ttyUSB1 hungs, so I can't screen it and
need to reboot it. Why can it be?

-- 
Regards,
Eugene Prokopiev

Reply via email to