Re: Ericsson R520 -> CMS - solved
Matti Ärmänen <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello! I had some time to look at the code and found out that a comma is searched after the string "+CMT". SonyEricsson GT-47 and obviously also other models don't send that comma. Fortunately there is a variable in the smsc configuration that can be used to prevent the searching of the comma. If you add line: broken = true to the group modems, it fixes the problem. Here is a log of a successfull message receive with SonyEricsson GT-47 GSM-modem: 2004-09-03 09:07:10 [29681] [7] DEBUG: AT2[ttyS0]: --> AT+CNMI=3,2,0,0,0^M 2004-09-03 09:07:10 [29681] [7] DEBUG: AT2[ttyS0]: <-- OK 2004-09-03 09:07:10 [29681] [7] INFO: AT2[ttyS0]: AT SMSC successfully opened. 2004-09-03 09:07:11 [29693] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function) maps to pid 29693. 2004-09-03 09:07:11 [29693] [9] INFO: Client connected from <127.0.0.1> 2004-09-03 09:07:11 [29693] [9] DEBUG: Started thread 10 (gw/bb_boxc.c:boxc_sender) 2004-09-03 09:07:11 [29695] [10] DEBUG: Thread 10 (gw/bb_boxc.c:boxc_sender) maps to pid 29695. 2004-09-03 09:07:11 [29680] [6] DEBUG: Started thread 9 (gw/bb_boxc.c:function) 2004-09-03 09:07:12 [29681] [7] DEBUG: AT2[ttyS0]: --> AT^M 2004-09-03 09:07:12 [29681] [7] DEBUG: AT2[ttyS0]: <-- OK 2004-09-03 09:08:40 [29681] [7] DEBUG: AT2[ttyS0]: <-- +CMT: 21 2004-09-03 09:08:40 [29681] [7] DEBUG: AT2[ttyS0]: <-- 079153485002020004068571631039004090309080538005D4F29C9E06 2004-09-03 09:08:40 [29681] [7] DEBUG: AT2[ttyS0]: Numeric sender <173601> 2004-09-03 09:08:40 [29681] [7] DEBUG: AT2[ttyS0]: User data length read as (5) 2004-09-03 09:08:40 [29681] [7] DEBUG: AT2[ttyS0]: Udh decoding done len=5 udhi=0 udhlen=0 udh='' 2004-09-03 09:08:40 [29695] [10] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2004-09-03 09:08:40 [29695] [10] DEBUG: boxc_sender: sent message to <127.0.0.1> 2004-09-03 09:08:40 [29675] [1] DEBUG: Dumping 0 messages and 0 acks to store Regards, Matti