CPIN polling mechanism
Get series with b4
b4 am 1311242513-17724-1-git-send-email-nicolas.bertrand@linux.intel.comVersions newest first · linked by author and title
- v2 Latest2 patches 1 replyIn review
- v12 patches 1 replySuperseded
Changes in v2 from the cover letter
- change AT channel from modem to aux
- raise timeout to 20 since some dongle take a while to be operational
- send sim inserted notify related to the current status
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | speedup: add cpin polling mechanismplugins/ | +64 | 0 replies | |
| 2/2 | zte: add cpin polling mechanismplugins/ | +65 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCHv2 0/2] CPIN polling mechanism
v2 changes:
- change AT channel from modem to aux
- raise timeout to 20 since some dongle take a while to be operational
- send sim inserted notify related to the current status
As no SIM card status urc is available with ZTE and Speedup, the SIM state is set by default to OFONO_SIM_STATE_INSERTED even if no SIM card is inserted. Also, we are facing with a modem latency after the ttyUSB is opened (first AT commands are failing and the PIN status query returns CME ERROR: 14 - SIM Busy).
So, to deal with those 2 issues, this patch set is introducing a preliminary PIN status polling in the ZTE/Speedup plugins. In practice, this polling is started after the modem is enabled and stopped when the CPIN query returns an other result than CME ERROR 14 or when the polling duration exceeds 5 seconds.
As a result, the SIM state is set according the result of the CPIN query and the update of the modem_powered state is postponed which delays the next AT commands.
Developed conjointly with philippe nunes.
Nicolas Bertrand (2):
speedup: add cpin polling mechanism
zte: add cpin polling mechanism
plugins/speedup.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++- plugins/zte.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 129 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.4.1