Hi,
as you suggested I checked the modem with minicom and got the follwing results:
AT+CMGF?
+CMGF: 0
OK
AT+CPMS?
+CPMS: "SM",3,10,"SM",3,10,"SM",3,10
OK
AT+CSQ
+CSQ: 7,0
OK

How can I get access to your modified code? The version I use know is 1.3.1 
which I downloaded and compiled under a Suse Linux distribution 8.0. Do I get 
your updated by downloading the newest src from the cvs? I also check the 
signal quallity (AT+CSQ) which seems to be ok.

best regards

Andreas

----- Ursprüngliche Nachricht -----
Von: Davy Chan <[EMAIL PROTECTED]>
Datum: Donnerstag, 29. Mai  2003, 5:15
Betreff: Re: CMS ERROR/SMS Masssending/Siemens M20

> The next time you receive the +CMS message, terminate the smsbox and
> bearerbox.  Connect to the Siemens M20 using minicom or kermit.
> Check and see if it can respond to any AT commands.  Try the following:
> 
> - ATE1
>   Turns echoing back on since Kannel turns command echoing off during
>    initialization. Reponse should just be "OK".
> - AT+CMGF?
>   Returns info about whether the modem is in TEXT or PDU mode. This
>    should be set to 0 (PDU).
> - AT+CPMS?
>   Returns info about how your messages are stored and if you have
>    any messages in the storage memory. The info should be something
>    like:
>      +CPMS: "SM",0,20,"SM",0,20
>    The "SM",0,20 means:
>      "SM",0,20
>       ^   ^  ^-- Maximum capacity for the memory store is 20 messages.
>       |   +----- There are no messages in the memory store.
>       +--------- Read, list, delete message stored in SIM memory.
> 
> I have found that three situations that cause errors during sending using
> a GSM modem:
>  1) AT+CMGF switches to 1 (TEXT mode)
>  2) GSM modem does not handle unsolicited SMS the way kannel wants it
>     to behave. +CNMI cannot be set to 1,x,x,x,x on some modems
>     (WAVECOM-based).  Instead, it can only support 2,x,x,x,x
>     (unsolicited responses go to storage memory).
>  3) Carrier network's signaling channel was congested.
> 
> To rectify 1), I modified smsc_at2.c to execute an "AT+CMGF=0" before
> any sending (+CMGS) or reading (+CMGR) from the GSM modem.
> 
> For case 2), I added code to smsc_at2.c to check for a "+CMTI:" response
> from the modem. +CMTI indicates there's an unsolicited response from
> the modem. The message store and message storage number follows the "+CMTI:".
> I made smsc_at2.c read the unsolicited message from the message store.
> 
> For case 3), I added code into smsc_at2.c to pause if the first attempt
> was not successful.
> 
> See ya...
> 
> d.c.
> 
> **>From: [EMAIL PROTECTED]
> **>Subject: CMS ERROR/SMS Masssending/Siemens M20
> **>To: [EMAIL PROTECTED]
> **>Date: Wed, 28 May 2003 18:09:13 +0200
> **>
> **>Hi,
> **>after sending 20 to 30 sms I always get this ERROR which prevents any 
> further 
> **>sms to be sent. A restart of the bearerbox and smsbox process does not 
> help 
> **>only a restart of the system helps.
> **>I do have a problem with this configuration:
> **>Linux 2.4
> **>Kannel 1.3.1
> **>Siemens M20
> **>
> **>Any Ideas?
> **>
> **>regards
> **>
> **>Andreas
> **>
> **>Extract from logfile kannel.log:
> **>2003-05-28 11:01:02 [5] DEBUG: AT2[sie_m20_01]: <-- +CMGS: 18
> **>2003-05-28 11:01:02 [5] DEBUG: AT2[sie_m20_01]: <-- OK
> **>2003-05-28 11:01:02 [5] DEBUG: AT2[sie_m20_01]: send command status: 0
> **>2003-05-28 11:01:02 [5] DEBUG: AT2[sie_m20_01]: TP-Validity-Period: 
> 24.0 hours
> **>2003-05-28 11:01:02 [5] DEBUG: AT2[sie_m20_01]: --> AT+CMGS=154^M
> **>2003-05-28 11:01:02 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:01:02 [5] DEBUG: AT2[sie_m20_01]: send command status: 1
> **>2003-05-28 11:01:02 [5] DEBUG: AT2[sie_m20_01]: --> 
> 
**>0011000C9134661401399200F1A7A0C4F01CA40C879C61BA5FCE4E8FD1A0E59E2D1EA3CB6E103
A4C
> 
**>0785C52074B94E2F83CA6977D90D7286DB65B70E549C83EE693919A40CBBC3207439ED29BB5D2
062
> 
**>D8BD2E83CC7EF91CD44CD3DBE131BAEC7681826C7619647DCBE763347B7F2E834C2072D90D3A9
6EF
> **>69B7BB2C0799D36E72D90D9AA6CBA070DD0CBADFEF2E75D81DA6D7CB72767A8C7685E9
> **>2003-05-28 11:01:03 [5] DEBUG: AT2[sie_m20_01]: --> ^Z
> **>2003-05-28 11:01:08 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:01:08 [5] DEBUG: AT2[sie_m20_01]: <-- +CMGS: 19
> **>2003-05-28 11:01:08 [5] DEBUG: AT2[sie_m20_01]: <-- OK
> **>2003-05-28 11:01:08 [5] DEBUG: AT2[sie_m20_01]: send command status: 0
> **>2003-05-28 11:01:08 [5] DEBUG: AT2[sie_m20_01]: TP-Validity-Period: 
> 24.0 hours
> **>2003-05-28 11:01:08 [5] DEBUG: AT2[sie_m20_01]: --> AT+CMGS=154^M
> **>2003-05-28 11:01:08 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:01:08 [5] DEBUG: AT2[sie_m20_01]: send command status: 1
> **>2003-05-28 11:01:08 [5] DEBUG: AT2[sie_m20_01]: --> 
> 
**>0011000C9134661440719200F1A7A0C4F01CA40C879C61BA5FCE4E8FD1A0E59E2D1EA3CB6E103
A4C
> 
**>0785C52074B94E2F83CA6977D90D7286DB65B70E549C83EE693919A40CBBC3207439ED29BB5D2
062
> 
**>D8BD2E83CC7EF91CD44CD3DBE131BAEC7681826C7619647DCBE763347B7F2E834C2072D90D3A9
6EF
> **>69B7BB2C0799D36E72D90D9AA6CBA070DD0CBADFEF2E75D81DA6D7CB72767A8C7685E9
> **>2003-05-28 11:01:08 [5] DEBUG: AT2[sie_m20_01]: --> ^Z
> **>2003-05-28 11:01:14 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:01:14 [5] DEBUG: AT2[sie_m20_01]: <-- +CMGS: 20
> **>2003-05-28 11:01:14 [5] DEBUG: AT2[sie_m20_01]: <-- OK
> **>2003-05-28 11:01:14 [5] DEBUG: AT2[sie_m20_01]: send command status: 0
> **>2003-05-28 11:01:14 [5] DEBUG: AT2[sie_m20_01]: TP-Validity-Period: 
> 24.0 hours
> **>2003-05-28 11:01:14 [5] DEBUG: AT2[sie_m20_01]: --> AT+CMGS=154^M
> **>2003-05-28 11:01:14 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:01:14 [5] DEBUG: AT2[sie_m20_01]: send command status: 1
> **>2003-05-28 11:01:14 [5] DEBUG: AT2[sie_m20_01]: --> 
> 
**>0011000C9134661411241700F1A7A0C4F01CA40C879C61BA5FCE4E8FD1A0E59E2D1EA3CB6E103
A4C
> 
**>0785C52074B94E2F83CA6977D90D7286DB65B70E549C83EE693919A40CBBC3207439ED29BB5D2
062
> 
**>D8BD2E83CC7EF91CD44CD3DBE131BAEC7681826C7619647DCBE763347B7F2E834C2072D90D3A9
6EF
> **>69B7BB2C0799D36E72D90D9AA6CBA070DD0CBADFEF2E75D81DA6D7CB72767A8C7685E9
> **>2003-05-28 11:01:14 [5] DEBUG: AT2[sie_m20_01]: --> ^Z
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: send command status: -1
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: --> AT+CMGS=154^M
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: send command status: 1
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: --> 
> 
**>0011000C9134661411241700F1A7A0C4F01CA40C879C61BA5FCE4E8FD1A0E59E2D1EA3CB6E103
A4C
> 
**>0785C52074B94E2F83CA6977D90D7286DB65B70E549C83EE693919A40CBBC3207439ED29BB5D2
062
> 
**>D8BD2E83CC7EF91CD44CD3DBE131BAEC7681826C7619647DCBE763347B7F2E834C2072D90D3A9
6EF
> **>69B7BB2C0799D36E72D90D9AA6CBA070DD0CBADFEF2E75D81DA6D7CB72767A8C7685E9
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: --> ^Z
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: <-- ERROR
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: send command status: -1
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: --> AT+CMGS=154^M
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: send command status: 1
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: --> 
> 
**>0011000C9134661411241700F1A7A0C4F01CA40C879C61BA5FCE4E8FD1A0E59E2D1EA3CB6E103
A4C
> 
**>0785C52074B94E2F83CA6977D90D7286DB65B70E549C83EE693919A40CBBC3207439ED29BB5D2
062
> 
**>D8BD2E83CC7EF91CD44CD3DBE131BAEC7681826C7619647DCBE763347B7F2E834C2072D90D3A9
6EF
> **>69B7BB2C0799D36E72D90D9AA6CBA070DD0CBADFEF2E75D81DA6D7CB72767A8C7685E9
> **>2003-05-28 11:01:35 [5] DEBUG: AT2[sie_m20_01]: --> ^Z
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: send command status: -1
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: TP-Validity-Period: 
> 24.0 hours
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: --> AT+CMGS=154^M
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: send command status: 1
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: --> 
> 
**>0011000C9134661450806300F1A7A0C4F01CA40C879C61BA5FCE4E8FD1A0E59E2D1EA3CB6E103
A4C
> 
**>0785C52074B94E2F83CA6977D90D7286DB65B70E549C83EE693919A40CBBC3207439ED29BB5D2
062
> 
**>D8BD2E83CC7EF91CD44CD3DBE131BAEC7681826C7619647DCBE763347B7F2E834C2072D90D3A9
6EF
> **>69B7BB2C0799D36E72D90D9AA6CBA070DD0CBADFEF2E75D81DA6D7CB72767A8C7685E9
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: --> ^Z
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: <-- ERROR
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: send command status: -1
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: --> AT+CMGS=154^M
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: send command status: 1
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: --> 
> 
**>0011000C9134661450806300F1A7A0C4F01CA40C879C61BA5FCE4E8FD1A0E59E2D1EA3CB6E103
A4C
> 
**>0785C52074B94E2F83CA6977D90D7286DB65B70E549C83EE693919A40CBBC3207439ED29BB5D2
062
> 
**>D8BD2E83CC7EF91CD44CD3DBE131BAEC7681826C7619647DCBE763347B7F2E834C2072D90D3A9
6EF
> **>69B7BB2C0799D36E72D90D9AA6CBA070DD0CBADFEF2E75D81DA6D7CB72767A8C7685E9
> **>2003-05-28 11:01:56 [5] DEBUG: AT2[sie_m20_01]: --> ^Z
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: send command status: -1
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: --> AT+CMGS=154^M
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: send command status: 1
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: --> 
> 
**>0011000C9134661450806300F1A7A0C4F01CA40C879C61BA5FCE4E8FD1A0E59E2D1EA3CB6E103
A4C
> 
**>0785C52074B94E2F83CA6977D90D7286DB65B70E549C83EE693919A40CBBC3207439ED29BB5D2
062
> 
**>D8BD2E83CC7EF91CD44CD3DBE131BAEC7681826C7619647DCBE763347B7F2E834C2072D90D3A9
6EF
> **>69B7BB2C0799D36E72D90D9AA6CBA070DD0CBADFEF2E75D81DA6D7CB72767A8C7685E9
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: --> ^Z
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: <-- ERROR
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: send command status: -1
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: TP-Validity-Period: 
> 24.0 hours
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: --> AT+CMGS=154^M
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: send command status: 1
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: --> 
> 
**>0011000C9134661411453400F1A7A0C4F01CA40C879C61BA5FCE4E8FD1A0E59E2D1EA3CB6E103
A4C
> 
**>0785C52074B94E2F83CA6977D90D7286DB65B70E549C83EE693919A40CBBC3207439ED29BB5D2
062
> 
**>D8BD2E83CC7EF91CD44CD3DBE131BAEC7681826C7619647DCBE763347B7F2E834C2072D90D3A9
6EF
> **>69B7BB2C0799D36E72D90D9AA6CBA070DD0CBADFEF2E75D81DA6D7CB72767A8C7685E9
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: --> ^Z
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: <-- >
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: <-- +CMS ERROR: 500
> **>2003-05-28 11:02:17 [5] ERROR: AT2[sie_m20_01]: CMS ERROR: +CMS ERROR: 500
> **>2003-05-28 11:02:17 [5] DEBUG: AT2[sie_m20_01]: send command status: 1
> **>
> **>
> **>
> **>
>


Reply via email to