[PATCH] modem-helpers,sim: auto-detect if ICCID response is character swapped

Ben Chan benchan at chromium.org
Thu Sep 26 00:04:12 PDT 2013


On Wed, Sep 25, 2013 at 11:41 PM, Aleksander Morgado
<aleksander at lanedo.com>wrote:

> On 09/26/2013 02:33 AM, Ben Chan wrote:
> > This patch modifies mm_3gpp_parse_iccid() to auto-detect if an ICCID
> > response is character swapped or not by comparsing the major industry
> > identifier part of the ICCID response to the known value (89) for
> > telecommunication purposes. This addresses the issue where the same AT
> > command (e.g. AT^ICCID used by the huawei plugin) does not report ICCID
> > in a consistent format.
>
> This one looks fine to me; but I'm not sure whether Dan was asking for
> just warning if an ICCID didn't start with 89 (instead of returning an
> error).
>
>
Another data point: I examined 2 callbox test SIMs and their ICCIDs also
start with 89. So testing equipments also seem to follow the standard.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20130926/45e60502/attachment-0001.html>


More information about the ModemManager-devel mailing list