Hi,
Add ";+CMEE=1" or 2 in your init-string and repost.
BR,
Nikos
----- Original Message -----
From: "preeteesh kakkar" <[email protected]>
To: <[email protected]>
Sent: Thursday, May 20, 2010 12:41 AM
Subject: Issues regarding Sending SMS using Serial Modem
Hi All,
I am facing some issues using modem for sending sms ....
The modems seems to be getting initialized properly but when sms is
sent its giving error & seems to keep queing the connections instead
of sending it. Below is bearerbox log...
Kindly help
2010-05-19 23:34:46 [13267] [16] DEBUG: Thread 16
(gw/bb_boxc.c:boxc_sender) maps to pid 13267.
2010-05-19 23:34:46 [13267] [15] DEBUG: Started thread 16
(gw/bb_boxc.c:boxc_sender)
2010-05-19 23:34:47 [13267] [6] DEBUG: AT2[modem]: --> AT^M
2010-05-19 23:34:47 [13267] [6] DEBUG: AT2[modem]: <-- OK
2010-05-19 23:34:47 [13267] [6] INFO: AT2[modem]: Closing device
2010-05-19 23:34:47 [13267] [6] INFO: AT2[modem]: speed is 9600
2010-05-19 23:34:47 [13267] [6] INFO: AT2[modem]: opening device
2010-05-19 23:34:47 [13267] [6] DEBUG: AT2[modem]: device opened.
Telnet mode = 0
2010-05-19 23:34:47 [13267] [6] DEBUG: AT2[modem]: device opened
2010-05-19 23:34:47 [13267] [6] INFO: AT2[modem]: Logging in
2010-05-19 23:34:48 [13267] [6] INFO: AT2[modem]: init device
2010-05-19 23:34:48 [13267] [6] INFO: AT2[modem]: speed set to 9600
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: --> ATZ^M
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: <-- OK
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: --> AT^M
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: <-- AT
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: <-- OK
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: --> AT&F^M
2010-05-19 23:34:48 [13267] [5] INFO: Client connected from <127.0.0.1>
2010-05-19 23:34:48 [13267] [5] DEBUG: Started thread 17
(gw/bb_boxc.c:function)
2010-05-19 23:34:48 [13267] [17] DEBUG: Thread 17
(gw/bb_boxc.c:function) maps to pid 13267.
2010-05-19 23:34:48 [13267] [17] DEBUG: Started thread 18
(gw/bb_boxc.c:boxc_sender)
2010-05-19 23:34:48 [13267] [18] DEBUG: Thread 18
(gw/bb_boxc.c:boxc_sender) maps to pid 13267.
2010-05-19 23:34:48 [13267] [17] DEBUG: boxc_receiver: got boxc_id
<smsbox> from <127.0.0.1>
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: <-- AT&F
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: <-- OK
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: --> ATE0^M
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: <-- ATE0
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: <-- OK
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: --> AT\Q3^M
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: <-- OK
2010-05-19 23:34:48 [13267] [6] DEBUG: AT2[modem]: --> AT+CPIN?^M
2010-05-19 23:34:49 [13267] [6] DEBUG: AT2[modem]: <-- +CPIN: READY
2010-05-19 23:34:49 [13267] [6] DEBUG: AT2[modem]: --> AT+CMGF=0^M
2010-05-19 23:34:49 [13267] [6] DEBUG: AT2[modem]: <-- OK
2010-05-19 23:34:49 [13267] [6] DEBUG: AT2[modem]: --> AT+CSMS=?^M
2010-05-19 23:34:49 [13267] [6] DEBUG: AT2[modem]: <-- OK
2010-05-19 23:34:49 [13267] [6] DEBUG: AT2[modem]: --> AT+CNMI=3,2,0,1,1^M
2010-05-19 23:34:49 [13267] [2] DEBUG: HTTP: Creating HTTPClient for
`122.163.130.110'.
2010-05-19 23:34:49 [13267] [2] DEBUG: HTTP: Created HTTPClient area
0x19d8cc0.
2010-05-19 23:34:49 [13267] [3] DEBUG: HTTP: Resetting HTTPClient for
`122.163.130.110'.
2010-05-19 23:34:49 [13267] [6] DEBUG: AT2[modem]: <-- +CSMS: (0,1)
2010-05-19 23:34:49 [13267] [6] DEBUG: AT2[modem]: <-- OK
2010-05-19 23:34:49 [13267] [6] INFO: AT2[modem]: AT SMSC successfully
opened.
2010-05-19 23:34:49 [13267] [6] DEBUG: AT2[modem]: <-- ERROR
2010-05-19 23:34:49 [13267] [6] ERROR: AT2[modem]: Generic error: ERROR
2010-05-19 23:34:50 [13267] [3] DEBUG: HTTP: Resetting HTTPClient for
`122.163.130.110'.
2010-05-19 23:35:18 [13267] [15] DEBUG: boxc_receiver: sms received
2010-05-19 23:35:18 [13267] [15] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2010-05-19 23:35:19 [13267] [6] DEBUG: AT2[modem]: TP-Validity-Period:
24.0 hours
2010-05-19 23:35:19 [13267] [6] DEBUG: AT2[modem]: --> AT+CMGS=17^M
2010-05-19 23:35:19 [13267] [6] DEBUG: AT2[modem]: <-- >
2010-05-19 23:35:19 [13267] [6] DEBUG: AT2[modem]: send command status: 1
2010-05-19 23:35:19 [13267] [6] DEBUG: AT2[modem]: -->
0011000C811989818177420000A703F47C1E
2010-05-19 23:35:19 [13267] [6] DEBUG: AT2[modem]: --> ^Z
2010-05-19 23:35:22 [13267] [6] DEBUG: AT2[modem]: <-- >
2010-05-19 23:35:22 [13267] [6] DEBUG: AT2[modem]: <-- ERROR
2010-05-19 23:35:22 [13267] [6] ERROR: AT2[modem]: Generic error: ERROR
2010-05-19 23:35:22 [13267] [6] DEBUG: AT2[modem]: send command status: -1
2010-05-19 23:35:22 [13267] [7] DEBUG: sms_router: handling message
(0x19d8340 vs 0x19d8340)
2010-05-19 23:35:22 [13267] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-05-19 23:35:22 [13267] [7] DEBUG: sms_router: handling message
(0x19d8340 vs 0x19d8340)
2010-05-19 23:35:22 [13267] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-05-19 23:35:22 [13267] [7] DEBUG: sms_router: time to sleep 30.00
secs.
2010-05-19 23:35:22 [13267] [7] DEBUG: sms_router: gwlist_len = 1
2010-05-19 23:35:22 [13267] [7] DEBUG: sms_router: handling message
(0x19d8340 vs 0x19d8340)
2010-05-19 23:35:22 [13267] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-05-19 23:35:22 [13267] [7] DEBUG: sms_router: handling message
(0x19d8340 vs 0x19d8340)
2010-05-19 23:35:22 [13267] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-05-19 23:35:22 [13267] [7] DEBUG: sms_router: time to sleep 30.00
secs.
2010-05-19 23:35:37 [13267] [3] DEBUG: HTTP: Resetting HTTPClient for
`122.163.130.110'.
2010-05-19 23:35:38 [13267] [3] DEBUG: HTTP: Resetting HTTPClient for
`122.163.130.110'.
2010-05-19 23:35:39 [13267] [3] DEBUG: HTTP: Resetting HTTPClient for
`122.163.130.110'.
2010-05-19 23:35:39 [13267] [1] DEBUG: HTTP: Destroying HTTPClient
area 0x19d8cc0.
2010-05-19 23:35:39 [13267] [1] DEBUG: HTTP: Destroying HTTPClient for
`122.163.130.110'.
2010-05-19 23:35:39 [13267] [2] DEBUG: HTTP: Creating HTTPClient for
`122.163.130.110'.
2010-05-19 23:35:39 [13267] [2] DEBUG: HTTP: Created HTTPClient area
0x19d86c0.
2010-05-19 23:35:39 [13267] [3] DEBUG: HTTP: Resetting HTTPClient for
`122.163.130.110'.
2010-05-19 23:35:52 [13267] [7] DEBUG: sms_router: gwlist_len = 1
2010-05-19 23:35:52 [13267] [7] DEBUG: sms_router: handling message
(0x19d8340 vs 0x19d8340)
2010-05-19 23:35:52 [13267] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-05-19 23:35:52 [13267] [7] DEBUG: sms_router: handling message
(0x19d8340 vs 0x19d8340)
2010-05-19 23:35:52 [13267] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-05-19 23:35:52 [13267] [7] DEBUG: sms_router: time to sleep 30.00
secs.