**>From: <[EMAIL PROTECTED]>
**>To: [EMAIL PROTECTED]
**>Subject: got +CMT but pdu_extract failed
**>Date: Thu, 21 Aug 2003 16:45:18 +0600
**>
**>
**>Dear Sir , 
**>
**>i'm tring to use Ericsson R520m , when i try to receive a sms it says 
**>"got +CMT but pdu_extract failed " error mesaage. 
**>where can be the error ?

Are you sure the R520m supports PDU mode or has no switched back to
TEXT mode?  When I get that message, it usually means that the
SMS received by the phone was transfer to Kannel as a text message
instead of as a PDU.  Some gsm modem implementations have a tendency
switch back to text mode.  I fixed this by forcing PDU mode after
every command (AT+CMGF=0 after every AT+ command).

Verify that the R520m is return something that Kannel can understand.
Try the following:
  1) connect to the R520m with a serial terminal program (minicom).
  2) Issue your init string to the modem:
     AT+CNMI=3,3,2,0,0
  3) Set the R520m to PDU mode:
     AT+CMGF=0
  4) Send a SMS to the R520m and see if you get:
     +CMT: ,29
     070302903904E...

     or

     +CMT: "123456","03/08/21, 21:30:00+00",129,4,32,240,"15379",129,5

     or

     +CMTI: "SM",1

If 4) returns the first example, then Kannel will be able to extract
the PDU from the message.  If you received example 2, then the modem
is in TEXT mode.  If you receive example 3 then, the message was pushed
into your SIM memory.

If you got a good PDU the first time, then try sending another SMS to
the R520m to confirm that the modem will stay in PDU mode.

Regards,

Davy Chan

Reply via email to