Ticket #90 (closed defect: fixed)
Unicode strings appearing in AT command queue
| Reported by: | phyce | Owned by: | mickey |
|---|---|---|---|
| Priority: | major | Milestone: | milestone3 |
| Component: | framework/ogsmd | Version: | |
| Keywords: | VirtualChannel | Cc: |
Description
Hi,
When I start the FSO/zhone stack, I enter my pin and the zhone app just hangs. When starting the framework by hand, I got this :
(<framework.subsystems.ogsmd.modems.ti_calypso.channel.MiscChannel? object at 0x6162d0> queue is: deque([(u'AT+CPIN="1234"\r\n', <bound method SimSendAuthCode?.responseFromChannel of <ogsmd.modems.abstract.mediator.SimSendAuthCode? object at 0x6af450>>, <bound method SimSendAuthCode?.errorFromChannel of <ogsmd.modems.abstract.mediator.SimSendAuthCode? object at 0x6af450>>, 7)])) Traceback (most recent call last):
File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/channel.py", line 230, in _readyToSend
self.readyToSend()
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/gsm/channel.py", line 345, in readyToSend
self.serial.write( self.q.peek()[0] ) # channel data
File "/usr/lib/python2.5/site-packages/serial/serialposix.py", line 330, in write
raise TypeError?('expected str, got %s' % type(data))
TypeError?: expected str, got <type 'unicode'>
This was tested debian ; but it was crashing on FSO milestone 2 before. On FSO I could kill zhone, and on second startup IIRC it showed the network was registered. On debian I'm still figuring out how to make it work.
This is a French Orange FR simcard that works OK with Qtopia and ASU.
