buggnokii - Bugs: bug #26091, Off by one problem with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #26091: Off by one problem with "gnokii --getsms SM 1 end"

Submitted by:  Wilfried <wklauser>
Submitted on:  Sun 05 Apr 2009 02:51:00 PM UTC  
 
Category: gnokiiSeverity: 3 - Normal
Item Group: minor malfunctionStatus: Invalid
Privacy: PublicAssigned to: Pawel Kot <pkot>
Open/Closed: Closed

Sun 05 Apr 2009 03:04:43 PM UTC, comment #1:

Previous version might just not print this information, but it did check all the entries until invalid location.
Anyway it is this Sierra thing that is broken. See the debug output:

write: [AT+CPMS?<cr>]
read : [AT+CPMS?<cr><cr><lf>+CPMS: "SM",1,25,"SM",1,25,"SM",1,25<cr><lf><cr><lf>OK<cr><lf>]

It says that locations from 1 to 25 inclusive are valid. And then:

write: [AT+CMGR=25<cr>]
read : [^AA+CMGR=25<cr><cr><lf>+CMS ERROR: 321<cr><lf>]

So, that's broken thing at the phone side.

Pawel Kot <pkot>
Project AdministratorIn charge of this item.
Sun 05 Apr 2009 02:51:00 PM UTC, original submission:

Version: 0.6.28cvs
Date: retrieved from CVS on 2009-04-05 14:00 GMT
Hardware: Sierra Wireless MC8775 (Option chipset)
Sytem: ALIX (i586)
OS: Fedora Core 10 Kernel 2.6.27.19
SIM card: Tele2 Switzerland Prepaid

In the very latest gnokii source code, the command "gnokii --getsms SM 1 end" is checking one more location than exists on my SIM card.

Output is:

GNOKII Version 0.6.28cvs
GetSMS SM 1 failed! (The given location is empty.)
GetSMS SM 2 failed! (The given location is empty.)
GetSMS SM 3 failed! (The given location is empty.)
GetSMS SM 4 failed! (The given location is empty.)
GetSMS SM 5 failed! (The given location is empty.)
GetSMS SM 6 failed! (The given location is empty.)
GetSMS SM 7 failed! (The given location is empty.)
GetSMS SM 8 failed! (The given location is empty.)
GetSMS SM 9 failed! (The given location is empty.)
GetSMS SM 10 failed! (The given location is empty.)
GetSMS SM 11 failed! (The given location is empty.)
GetSMS SM 12 failed! (The given location is empty.)
GetSMS SM 13 failed! (The given location is empty.)
GetSMS SM 14 failed! (The given location is empty.)
GetSMS SM 15 failed! (The given location is empty.)
GetSMS SM 16 failed! (The given location is empty.)
GetSMS SM 17 failed! (The given location is empty.)
GetSMS SM 18 failed! (The given location is empty.)
GetSMS SM 19 failed! (The given location is empty.)
GetSMS SM 20 failed! (The given location is empty.)
GetSMS SM 21 failed! (The given location is empty.)
GetSMS SM 22 failed! (The given location is empty.)
GetSMS SM 23 failed! (The given location is empty.)
GetSMS SM 24 failed! (The given location is empty.)
GetSMS SM 25 failed! (The given memory location is invalid.)

It should have stopped with location SM 24. Gnokii versions up to 0.6.27 did still stop at SM 24.

Debug output from system.error and .gnokiirc are attached.

Wilfried <wklauser>

 

Attached Files
file #17869:  submission.tar added by wklauser (30KiB - application/x-tar)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pkot (Posted a comment)
  • -unavailable- added by wklauser (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 05 Apr 2009 03:04:43 PM UTCpkotStatusNone=>Invalid
      Assigned toNone=>pkot
      Open/ClosedOpen=>Closed
    Sun 05 Apr 2009 02:51:00 PM UTCwklauserAttached File-=>Added submission.tar, #17869

    Back to the top


    Powered by Savane 3.1-cleanup1