Ticket #372 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Sending +CMGW leads to a traceback

Reported by: PaulFertser Owned by: mickey
Priority: major Milestone: milestone5.5
Component: framework/ogsmd Version: milestone5
Keywords: Cc:

Description

2009.03.07 14:35:21 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: Autogenerated prefixes for command 'AT+CMGW=92\r': set(['+CMGW'])
2009.03.07 14:35:21 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: Autogenerated prefixes for command '0001000B919761026188F900005ACE3708FE1EA3CBEDFA0F442D8BF361D0FC6D9F97DB2077199476D3CBF2F2BC5EA683C2E330B9DC4E8FD1E5F93A9C0F83DAF5797A1CFE818668FA1B742E83E869D09C5D9FA3C3E5391A447F9FC9E11F\x1a': set([])
2009.03.07 14:35:21 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: _readyToSend: watch timeout = None
2009.03.07 14:35:21 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: sending 11 bytes: 'AT+CMGW=92\r'
2009.03.07 14:35:21 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: _readyToRead: watch timeout = 12858
2009.03.07 14:35:21 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: got 4 bytes: '\r\n> '
2009.03.07 14:35:21 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: COMPLETED 'AT+CMGW=92' => []
2009.03.07 14:35:21 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: _readyToSend: watch timeout = None
2009.03.07 14:35:21 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: sending 187 bytes: '0001000B919761026188F900005ACE3708FE1EA3CBEDFA0F442D8BF361D0FC6D9F97DB2077199476D3CBF2F2BC5EA683C2E330B9DC4E8FD1E5F93A9C0F83DAF5797A1CFE818668FA1B742E83E869D09C5D9FA3C3E5391A447F9FC9E11F\x1a'
2009.03.07 14:35:22 ogsmd.channel DEBUG   UnsolicitedResponseChannel via /dev/pts/2>: _readyToRead: watch timeout = None
2009.03.07 14:35:22 ogsmd.channel DEBUG   UnsolicitedResponseChannel via /dev/pts/2>: got 20 bytes: '\r\n%CSQ:  22, 99, 2\r\n'
2009.03.07 14:35:22 ogsmd.device INFO org.freesmartphone.GSM.Network.SignalStrength: 90
2009.03.07 14:35:24 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: _readyToRead: watch timeout = 12861
2009.03.07 14:35:24 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: got 18 bytes: '\r\n+CMGW: 9\r\n\r\nOK\r\n'
2009.03.07 14:35:24 ogsmd.modems.abstract.channel WARNING  UNHANDLED INTERMEDIATE: +CMGW: 9
2009.03.07 14:35:24 ogsmd.channel DEBUG    <MiscChannel via /dev/pts/1>: COMPLETED '0001000B919761026188F900005ACE3708FE1EA3CBEDFA0F442D8BF361D0FC6D9F97DB2077199476D3CBF2F2BC5EA683C2E330B9DC4E8FD1E5F93A9C0F83DAF5797A1CFE818668FA1B742E83E869D09C5D9FA3C3E5391A447F9FC9E11F^Z' => ['OK']
2009.03.07 14:35:24 ogsmd.channel ERROR    (ignoring) unhandled exception in response callback: invalid literal for int() with base 10: 'OK'
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/framework/subsystems/ogsmd/gsm/channel.py", line 413, in handleResponseToRequest
ok_cb( reqstring.strip(), response )
File "/usr/local/lib/python2.5/site-packages/framework/subsystems/ogsmd/modems/abstract/mediator.py", line 983, in responseFromChannel
self._ok( int(self._rightHandSide(response[0])) )
ValueError: invalid literal for int() with base 10: 'OK'

Change History

comment:1 Changed 3 years ago by johnsu01

I'm seeing the same thing. I wonder if it might be related to the fix for  http://trac.freesmartphone.org/ticket/369, because prior to that I was able to send SMS (at least with the caveat noted on that ticket). If not that, then something after it.

 http://wiki.openmoko.org/wiki/User:JohnSullivan/Backtraces#Hanging_while_trying_to_send_SMS

comment:2 Changed 3 years ago by daniel

  • Status changed from new to closed
  • Resolution set to fixed

This is fixed in commit [e1c9aaf50586a64a233eacb792923ff6798baaf7]. Please test if it causes any other trouble since I'm not 100% familiar with the new parser code.

Note: See TracTickets for help on using tickets.