Hey Baseband,
I've got a stock of SIMs I bought and programmed already, but I unfortunately (and stupidly) forgot to set the SMSC. This is causing me heaps of issues, as each phone now has to have the SMSC set manually. I was hoping to hack up a quick script which just inserts the SMSC onto the SIM without needing to regenerate the ki or IMSI. Lining those up with my database is rife with hazard.
Looking at the pySim-prog, it looks like this probably isn't possible; all of the data seems to get bundled together and so changing the SMSC length will cause other data to be corrupted. Is that right? I just wanted to see what ya'll think would be the best way for me to remedy my particular stupidity.
Thanks!
Hi,
I've got a stock of SIMs I bought and programmed already, but I unfortunately (and stupidly) forgot to set the SMSC.
What type of SIMs exactly and how did you program them ?
pySIM sets a default SMSC if you don't set one ...
Looking at the pySim-prog, it looks like this probably isn't possible; all of the data seems to get bundled together and so changing the SMSC length will cause other data to be corrupted. Is that right? I just wanted to see what ya'll think would be the best way for me to remedy my particular stupidity.
If you look in the ccc branch of pySIM, there is a ccc-fix.py script that was written during 27C3 for fixing SMSC on cards we wrote (at the time pysim was creating a corrupt smsc entry).
It won't work "as-is", but you can look at the internal logic and adapt ... essentially it read the personalization file, fix it and rewrites it entirely.
Cheers,
Sylvain
They're programmable as 'sysmosim-gr1' with pysim, that's all I really know. I bought them programmed from a vendor in China, who promptly screwed up the SMSC on 1000 sim cards.
I'll take a look at the branch, seems very similar to what I need. Thanks!
On Saturday, January 5, 2013, Sylvain Munaut 246tnt@gmail.com wrote:
Hi,
I've got a stock of SIMs I bought and programmed already, but I unfortunately (and stupidly) forgot to set the SMSC.
What type of SIMs exactly and how did you program them ?
pySIM sets a default SMSC if you don't set one ...
Looking at the pySim-prog, it looks like this probably isn't possible;
all
of the data seems to get bundled together and so changing the SMSC length will cause other data to be corrupted. Is that right? I just wanted to
see
what ya'll think would be the best way for me to remedy my particular stupidity.
If you look in the ccc branch of pySIM, there is a ccc-fix.py script that was written during 27C3 for fixing SMSC on cards we wrote (at the time pysim was creating a corrupt smsc entry).
It won't work "as-is", but you can look at the internal logic and adapt ... essentially it read the personalization file, fix it and rewrites it entirely.
Cheers,
Sylvain
On Sat, Jan 05, 2013 at 02:21:59AM -0800, Kurtis Heimerl wrote:
They're programmable as 'sysmosim-gr1' with pysim, that's all I really know. I bought them programmed from a vendor in China, who promptly screwed up the SMSC on 1000 sim cards.
You are already lucky that you got the right CardOS, nothing like punching out thousands of SIM cards by hand and sending them back.
holger
Definitely. Moreso because "sending them back" isn't all that possible where I am (Papua) anyhow, on account of the lack of a postal service.
On Sunday, January 6, 2013, Holger Hans Peter Freyther wrote:
On Sat, Jan 05, 2013 at 02:21:59AM -0800, Kurtis Heimerl wrote:
They're programmable as 'sysmosim-gr1' with pysim, that's all I really know. I bought them programmed from a vendor in China, who promptly
screwed
up the SMSC on 1000 sim cards.
You are already lucky that you got the right CardOS, nothing like punching out thousands of SIM cards by hand and sending them back.
holger
baseband-devel@lists.osmocom.org