Ticket #305 (closed defect: wontfix)

Opened 3 years ago

Last modified 11 months ago

AT Parser gets into "UNDEFINED PARSER STATE"

Reported by: daniel Owned by: mickey
Priority: minor Milestone:
Component: framework/ogsmd Version:
Keywords: Cc:

Description

STKMENU from the Ericsson modem confuses the AT parser

2008.12.23 01:19:27 ogsmd.channel DEBUG    <EricssonChannel via /dev/ttyACM0>: got 75 bytes from: '\r\n*ESTKSMENU: BASE Dienste,0,3\n\r1,SMS Info\n\r2,Sprach Info\n\r3,Multimedia\n\r\r\n'
2008.12.23 01:19:27 ogsmd.modems.abstract.channel WARNING  UNHANDLED INTERMEDIATE: *ESTKSMENU: BASE Dienste,0,3
PARSER DEBUG: WARNING: UNDEFINED PARSER STATE!
previous bytes were: '\r\n*ESTKSMENU: BASE Dienste,0,3\n\r1,SMS Info\n\r2,Sprach Info\n\r3,Multimedia\n\r\r\n'
current byte is: '1'
lines: []
curline: ''
solicited: False
2008.12.23 01:19:29 ogsmd.channel DEBUG    <EricssonChannel via /dev/ttyACM0>: got 14 bytes from: '\r\n*EMWI: 1,0\r\n'
2008.12.23 01:19:29 ogsmd.modems.abstract.channel WARNING  UNHANDLED INTERMEDIATE: *EMWI: 1,0

This doesn't seem to affect usability.

Change History

comment:1 Changed 3 years ago by mickey

This one is going to be "fun". It's the STK setup URC. Give me some time to think.

comment:2 Changed 3 years ago by daniel

The fun part with this is that the menu seems to handle line breaks with \n\r instead of \r\n.

From a recent frameworkd:

2009.04.13 01:22:10.708 ogsmd.channel        DEBUG    <EricssonChannel via /dev/ttyACM0>: got 75 bytes: '\r\n*ESTKSMENU: BASE Dienste,0,3\n\r1,SMS Info\n\r2,Sprach Info\n\r3,Multimedia\n\r\r\n'
2009.04.13 01:22:10.709 ogsmd.modems.abstract.channel WARNING  UNHANDLED INTERMEDIATE: *ESTKSMENU: BASE Dienste,0,3
PARSER DEBUG: WARNING: UNDEFINED PARSER STATE! Do not know where to go from <bound method StateBasedLowlevelAtParser.state_start_r of <ogsmd.gsm.parser.StateBasedLowlevelAtParser object at 0x238cbd0>> upon receiving '1'
previous bytes were: '\r\n*ESTKSMENU: BASE Dienste,0,3\n\r1,SMS Info\n\r2,Sprach Info\n\r3,Multimedia\n\r\r\n'
current byte is: '1'
lines: []
curline: ''
solicited: False

comment:3 Changed 3 years ago by mickey

This could be fixed with a custom low level AT parser.

comment:4 Changed 2 years ago by mickey

Alternatively, with ATV0 mode, which I want to implement eventually.

comment:5 Changed 2 years ago by sim

 decoration Changed 1 year ago by admin

 bathtub Changed 1 year ago by admin

 solar system Changed 1 year ago by admin

 stair parts Changed 1 year ago by admin

 solar supply Changed 1 year ago by admin

comment:6 Changed 22 months ago by mickey

I'd be interested to see how the fsogsmd parser handles this.

comment:7 Changed 11 months ago by mickey

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

We no longer have access to this hardware. If you have and care, please reopen.

Note: See TracTickets for help on using tickets.