Active Topics

 



Notices


Reply
Thread Tools
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#71
One problem:
Today while cheking my sim data, i checked the ICCID and i discovered that cellnet-info fails reading it in a "funny" way. It swaps every pair of numbers!
Example:
iccid printed on the sim: 1234567890
cellnet-info reported iccid: 2143658709

if you plan to make a number portability request and you need the iccid....pay attention!
 

The Following 3 Users Say Thank You to xes For This Useful Post:
Posts: 1,100 | Thanked: 2,797 times | Joined on Apr 2011 @ Netherlands
#72
Originally Posted by xes View Post
One problem:
Today while cheking my sim data, i checked the ICCID and i discovered that cellnet-info fails reading it in a "funny" way. It swaps every pair of numbers!
Example:
iccid printed on the sim: 1234567890
cellnet-info reported iccid: 2143658709

if you plan to make a number portability request and you need the iccid....pay attention!
Hi Xes,

What kind of refurbished chinese SIM card are you using ?

As I have no device left with a sim card, I can't test/confirm this. cellnet-info should do (a python equivalent of):
Code:
dbus-send --system --type=method_call --print-reply --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.get_iccid
Does this command provide you with a correct id? And do others have the same issue?
 

The Following 3 Users Say Thank You to ade For This Useful Post:
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#73
@ade
Thanks! Nah, a good sim that i'm using without problems since 8 years.
Anyway it seems that also dbus-send request produces the same wrong result.
Then, AT+ICCID gives only ERROR... No idea if there are other ways.

Sorry, for my previous post, it's clear that is not a problem with your app.
Anyway, it could be a warning for others to doublecheck the info returned by the N900.
 

The Following 4 Users Say Thank You to xes For This Useful Post:
Posts: 1,100 | Thanked: 2,797 times | Joined on Apr 2011 @ Netherlands
#74
Originally Posted by xes View Post
@ade
Thanks! Nah, a good sim that i'm using without problems since 8 years.
Anyway it seems that also dbus-send request produces the same wrong result.
Then, AT+CCID gives only ERROR... No idea if there are other ways.

Sorry, for my previous post, it's clear that is not a problem with your app.
Anyway, it could be a warning for others to doublecheck the info returned by the N900.
If the output is alway mixed up the way you describe, I could reorder the output. But then I would need confirmation from at least a few others. I can't remember if I double-checked it myself back then.
 

The Following 3 Users Say Thank You to ade For This Useful Post:
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#75
Well, the iccid should be 18 digits long
In my device and sim the iccid appears to be long 20 digits where the first 18 digits are swapped pairs and at the end there is a "F0" that doesn't exist anywhere.

Checking this:
http://www.forensicswiki.org/wiki/SIM_Cards
should be easy to guess when the results is completely wrong.
Maybe something like if first 2 digits are 98 instead of 89 (every iccid should start with 89) swap all digit pairs and cut after 18.

Anyway, yes we need other checks and confirmations, i have no idea if it's just my device behaving in that way.

Then
 

The Following 3 Users Say Thank You to xes For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#76
My ICCID is 20 digits long and starts with 35 (ending with 86)

Cellnet-info and dbus give the same output.
So it is not only your device but all...
That puzzled me during a walk. But I found no matching swap. packed BCD, binary representation or whatever that would explain my numbers!

ICCID may be 18/19/20 (even 22) digits.
But should always start with 89 for GSM SIMs.
Followed by the calling code of issuer country (e.g. Germany 49, England 44, America 1, Slovakia 421, ...)


http://en.wikipedia.org/ICCID#ICCID
http://en.wikipedia.org/Binary-coded-decimal
http://en.wikipedia.org/ISO/IEC_7812

So another mysterium of our beloved gem.

(btw.: my N9 spits out a 19 digit ICCID starting with 89 followed by calling code of 49, so absolutely correct. I may test my N900 with similar SIM as of N9 but only in a few days/weeks.)
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 4 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 1,100 | Thanked: 2,797 times | Joined on Apr 2011 @ Netherlands
#77
I just inserted a decatived sim card, but I can still use it for ICCID queries it turns out.

It has the last 8 digits engraved. And those are indeed swapped as Xes described. And it is ending with "f8". The country code etc. are also reversed.

So in my case I could "fix" it by swapping the number pairs and removing the last two characters.

@peterleinchen: are you sure you do not have the same number swap issue?
 

The Following User Says Thank You to ade For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#78
For me cellnet-info cannot start I am getting a segmentation fault.

With dbus I get a twisted pair ICCID 20 digits long starting with 9894...

I will look if qt mobility can read out this information.
 

The Following 2 Users Say Thank You to Halftux For This Useful Post:
Posts: 1,378 | Thanked: 1,604 times | Joined on Jun 2010 @ Göteborg, Sweden
#79
Yup swapped here too, both cellnet-info and dbus.... with the f6 termination.
 

The Following 2 Users Say Thank You to handaxe For This Useful Post:
Posts: 1,100 | Thanked: 2,797 times | Joined on Apr 2011 @ Netherlands
#80
Thanks for all the responses.

Just uploaded version 0.0.1-14 (can take a while before available).

It swaps the number pairs and removes the "f". I still needed the number behind the "f" as last number.

Let me know how it looks after the update.
 

The Following 4 Users Say Thank You to ade For This Useful Post:
Reply

Tags
cellular


 
Forum Jump


All times are GMT. The time now is 14:53.