×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    4

    reading the message in pdu mode

    hello sir,


    i have developed an application which reads messages from the mobile phone and process the messages read.
    i am using at comands to achieve this.
    as we are aware that we have two modes that is the text and pdu mode, and our application runs in both the modes.
    i dont have any problem in text mode but in pdu mode when i am reading data from the phone using the at command, at+cmgl=4 in the message part i am loosing some data at the end.
    there is no bug in my code because i have the same problem when i tried to read the message on the hyperterminal also.
    on the hyperterminal when it is in the text mode it reads the message properly, but when it is in the pdu mode i am loosing data at the end.
    i have the hyperterminal log file here for u.
    ate1
    OK
    at+cmgf=0
    OK
    at+cmgl=4
    +CMGL: 1,1,36
    0791198954800670240C9119895460123800004020603101410013D0B39A0E5287C9ED3B88AE3EC3
    5DA03019
    +CMGL: 2,1,33
    0791198944914814040C9119894441034300004020604195732210C413FD441E83F03119ED86CBC1
    5A

    OK
    at+cmgf=1
    OK
    at+cmgl="all"
    +CMGL: 1,"REC READ","+919845062183",,"04/02/06,13:10:14+00"
    Pgjt jadmw tjgp. ad
    +CMGL: 2,"REC READ","+919844143034",,"04/02/06,14:59:37+22"
    D't'dc x1247890-

    OK
    in the first message +cmgl=1,1,36 the message length 13(hex) is correct but it has read only 11(hex) char.
    please do tell me why this is happening.....hope i will get solution from u.
    i am connecting nokia 7110 phone to my pc.
    pl.. tell me as soon as possible.

    thanking u in advance.

    regards,
    deepthi

  2. #2
    Registered User
    Join Date
    Feb 2004
    Posts
    8
    The length is 0x13=19(dec) characters. The TP-DCS field is 0x00 which means you have 7-bit characters in your sms. Those septets are "packed" in octets as described here: http://www.dreamfabric.com/sms/hello.html

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    4
    THANKS A LOT!!!!!

    REGARDS,
    DEEPTHI

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×