Openmoko Bug #2123: SMS doesn't work in framworkd

Openmoko Public Trac bugs at docs.openmoko.org
Tue Nov 18 13:22:00 CET 2008


#2123: SMS doesn't work in framworkd
-----------------------------+----------------------------------------------
 Reporter:  think-free       |          Owner:  openmoko-kernel
     Type:  defect           |         Status:  new            
 Priority:  highest          |      Milestone:                 
Component:  System Software  |        Version:                 
 Severity:  blocker          |       Keywords:                 
 Haspatch:  0                |      Blockedby:                 
Estimated:                   |    Patchreview:                 
 Blocking:                   |   Reproducible:                 
-----------------------------+----------------------------------------------
 I'm running debian ...

 I can't send or receive sms with frameworkd ( phone calls are ok ) i'm not
 getting a dbus response ( tested with : http://lindi.iki.fi/lindi/openmoko
 /dump-sms )
 Will running frameworkd from a terminal i got :

 -----------------------
 ogsmd    WARNING  textToUnicode called with unicode string, ignoring.
 ogsmd    WARNING  textToUnicode called with unicode string, ignoring.
 ogsmd    WARNING  textToUnicode called with unicode string, ignoring.
 ogsmd    ERROR    unhandled exception in response callback: string index
 out of range
 Traceback (most recent call last):
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/channel.py", line 379, in
 handleResponseToRequest
     ok_cb( reqstring.strip(), response )
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/decor.py", line 45, in
 logIt
     result = fn( *args, **kwargs )
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/modems/abstract/mediator.py",
 line 685, in responseFromChannel
     sms = ogsmd.gsm.sms.decodeSMS( line, dir)
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/sms.py", line 97, in
 decodeSMS
     parse_userdata( sms, ud_len, bytes[offset:] )
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/sms.py", line 127, in
 parse_userdata
     sms.ud = unpack_sevenbit(bytes[offset:], padding_size)
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/convert.py", line 169, in
 unpack_sevenbit
     return "".join( gsmtotext(chars) )
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/convert.py", line 141, in
 gsmtotext
     text += GSMALPHABET[byte]
 IndexError: string index out of range
 odeviced.idlenotifier INFO     framework.subsystems.odeviced.idlenotifier
 state change to SUSPEND

 --------------------------

 So i've put print(repr(byte)) to line 141 of /var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/convert.py

 and it gave me :

 -------------------------------------

 ogsmd    WARNING  textToUnicode called with unicode string, ignoring.
 ogsmd    WARNING  textToUnicode called with unicode string, ignoring.
 ogsmd    WARNING  textToUnicode called with unicode string, ignoring.
 ogsmd    ERROR    unhandled exception in response callback: string index
 out of range
 Traceback (most recent call last):
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/channel.py", line 379, in
 handleResponseToRequest
     ok_cb( reqstring.strip(), response )
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/decor.py", line 45, in
 logIt
     result = fn( *args, **kwargs )
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/modems/abstract/mediator.py",
 line 685, in responseFromChannel
     sms = ogsmd.gsm.sms.decodeSMS( line, dir)
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/sms.py", line 97, in
 decodeSMS
     parse_userdata( sms, ud_len, bytes[offset:] )
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/sms.py", line 127, in
 parse_userdata
     sms.ud = unpack_sevenbit(bytes[offset:], padding_size)
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/convert.py", line 169, in
 unpack_sevenbit
     asbinary = asbinary[:-7]
   File "/var/lib/python-
 support/python2.5/framework/subsystems/ogsmd/gsm/convert.py", line 141, in
 gsmtotext
     print(repr(byte))
 IndexError: string index out of range


 -------------------------------------------------

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2123>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the openmoko-kernel mailing list