Hello,
We have already contacted our SIM cards provider (sysmocom), and they have referred us towards this Mailing List.
We have purchased sysmoUSIM-SJS1 cards and we are having the following problem when trying to program them:
We want to change the MCC and MNC values to the ones of our OpenAirInterface LTE system, and Ki and OPC of the SIM card are changing despite we are not intending for that to happen. The main issue with this behavior is that as we have two sets of Ki and OPC values, when we are going to register the user in the LTE database, we don't know for sure which set of parameters we are supposed to introduce.
Here on I'll describe the configuration we are using and the commands introduced when programming the SIM cards:
As programming software we are using PySIM.
The default parameters of the SIM we are programming are: ADM: 20168462 ICCID: 8988211000000099120 Ki: 5B868E2B30C61190ABEFBA1CA6F6D56F OPC: B3425076F23BA6054557FA359B4F9C0C
The parameters we are meaning to program are: MCC: 001 MNC: 01 IMSI: 001010000009912
The command we are using to program in the SIM card is:
./pySim-prog.py -p 0 -a 20168462 -x 001 -y 01 -t sysmoUSIM-SJS1 -i 001010000009912 -s 8988211000000099120
And after programming the card, we are getting this:
[image: Imágenes integradas 1]
Do you what's the reason why this is happening?
Thank you very much for your time
Best regards,
Giselle Glez
Hi,
Do you what's the reason why this is happening?
Because it's programmed like that ...
Most cards you have to reprogram all the parameters at once, you can't change just one. Not sure about the sysmoUSIM-SJS1 in particulat but since pysim has to support different models, it has this restriction. So if you don't specify a Ki / OPC on the command line, they get picked randomly.
Cheers,
Sylvain
On Wed, Feb 22, 2017 at 02:30:01PM +0100, Sylvain Munaut wrote:
Hi,
Do you what's the reason why this is happening?
Because it's programmed like that ...
Most cards you have to reprogram all the parameters at once, you can't change just one. Not sure about the sysmoUSIM-SJS1 in particulat but since pysim has to support different models, it has this restriction.
BTW, this restriction only really came to my awareness once I took a look at the pysim source code. I think that it could be made clearer by the command line help, and it could print an according warning like "setting random OPC".
I know what you'll say, right? "Patches welcome" :)
~N
BTW, this restriction only really came to my awareness once I took a look at the pysim source code. I think that it could be made clearer by the command line help, and it could print an according warning like "setting random OPC".
I know what you'll say, right? "Patches welcome" :)
--help will tell you defaults for Ki and OPC is to randomize ...
Cheers,
Sylvain
On Wed, Feb 22, 2017 at 05:06:20PM +0100, Sylvain Munaut wrote:
--help will tell you defaults for Ki and OPC is to randomize ...
Ah, indeed, I never saw that. Could also be misunderstood. IMHO it should say right at the top that you normally want to pass -k and -o when calling pysim. After all, none of the other options do that. anyway...
~N
On 23 Feb 2017, at 09:53, Neels Hofmeyr nhofmeyr@sysmocom.de wrote:
On Wed, Feb 22, 2017 at 05:06:20PM +0100, Sylvain Munaut wrote:
--help will tell you defaults for Ki and OPC is to randomize ...
Ah, indeed, I never saw that. Could also be misunderstood. IMHO it should say right at the top that you normally want to pass -k and -o when calling pysim. After all, none of the other options do that. anyway...
"normally".. for the batch mode as used at XC3 events the "normal" is to generate a random KI, you wouldn't want to do that by hand 4k times. :)
holger
Hello again,
I have tried to program the card setting Ki and OPC as recommended so they are not picked randomly by PySIM, and I'm getting this error message:
root@click:/opt/pysim-zecke-tmp2# ./pySim-prog.py -p 0 -a 86416194 -x 214 -y 91 -t sysmoUSIM-SJS 1 -i 214910000009911 -s 8988211000000099112 -n openair4G.eur -o 9319ed3ee808bd467d42d3957c597cda -k 11111111111111111111111111111111 Usage: pySim-prog.py [options]
pySim-prog.py: error: Extraneous arguments
Does it have to do with Ki being set to all ones ("1x32")?
Thank you!
Regards,
Giselle
2017-02-22 14:30 GMT+01:00 Sylvain Munaut 246tnt@gmail.com:
Hi,
Do you what's the reason why this is happening?
Because it's programmed like that ...
Most cards you have to reprogram all the parameters at once, you can't change just one. Not sure about the sysmoUSIM-SJS1 in particulat but since pysim has to support different models, it has this restriction. So if you don't specify a Ki / OPC on the command line, they get picked randomly.
Cheers,
Sylvain
Just discovered my error, missing space! Sorry!
2017-02-27 10:07 GMT+01:00 Giselle Gonzalez lopez giselle2207@gmail.com:
Hello again,
I have tried to program the card setting Ki and OPC as recommended so they are not picked randomly by PySIM, and I'm getting this error message:
root@click:/opt/pysim-zecke-tmp2# ./pySim-prog.py -p 0 -a 86416194 -x 214 -y 91 -t sysmoUSIM-SJS 1 -i 214910000009911 -s 8988211000000099112 -n openair4G.eur -o 9319ed3ee808bd467d42d3957c597cda -k 11111111111111111111111111111111 Usage: pySim-prog.py [options]
pySim-prog.py: error: Extraneous arguments
Does it have to do with Ki being set to all ones ("1x32")?
Thank you!
Regards,
Giselle
2017-02-22 14:30 GMT+01:00 Sylvain Munaut 246tnt@gmail.com:
Hi,
Do you what's the reason why this is happening?
Because it's programmed like that ...
Most cards you have to reprogram all the parameters at once, you can't change just one. Not sure about the sysmoUSIM-SJS1 in particulat but since pysim has to support different models, it has this restriction. So if you don't specify a Ki / OPC on the command line, they get picked randomly.
Cheers,
Sylvain
Dear Giselle Glez,
I hope that someone else will be able to help you soon; so far I would like to ask you to adhere to basic netiquette and *never* post image screenshots of text to this mailing list. Next time, paste the actual text into the email.
Thanks!
~N