[Bug 176] libgsmd need a mechanism to avoid dead waiting.

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Mon Oct 1 04:56:11 CEST 2007


------- Additional Comments From ticktock35 at gmail.com  2007-10-01 04:56 -------
Created an attachment (id=324)
 --> (http://bugzilla.openmoko.org/cgi-bin/bugzilla/attachment.cgi?id=324&action=view)
for unable to wakeup. (adding a wakeup work around)

There is a very strong assumption that every sent AT command gets a response.
However the firmware with power saving mode will not response first AT command
until it gets a  "\r" when modem is in sleep mode. 
That is the AT sent by gsmd when moden is in sleep mode will be block forever.

If not changing firmware and hardware design, there is a work around.
Adding an additional " \r"  as a atcmd before  each  real comman.
If modem is in sleep mode, it will not response but will wake up in 1 sec and
keep awaken for about 10 secs.
If modem is awake, it will reply an "OK" immediately.
Therefore, if modem is in sleep mode, we can set a 3 sec timeout and discard
the additional atcmd and then passthrough the real atcmd.
Because modem been awaken will keep awaken for about 10 secs ,	 we can  
almost very sure that the modem is awaken in this moment, and will response

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the buglog mailing list