Alexander Chemeris
47c73abd04
pySim-prog: Replace magic numbers with a readable EF file name.
...
Change-Id: Ibda7d5a4132971e884f6d760baf20cd33025a2af
2018-01-10 17:12:10 +09:00
Alexander Chemeris
a51592e180
pySim-prog: ADM code can be longer 8 digits, it's implementation specific.
...
E.g. Fairwaves SIM cards have longer ADM codes.
Change-Id: I87d61764eeba4bcf7525ee4778cb8f244930db9b
2018-01-10 17:12:10 +09:00
Alexander Chemeris
d17ca3ddd8
Fix comment: Ki -> OPC
...
Change-Id: I566cf7bc658c730b4381c0f145bfc4f805cca42a
2018-01-10 14:04:06 +09:00
Pau Espin
287b6ce1b4
pySim-prog.py: Fix trailing whitespace
...
Change-Id: I735dc7bb774d77d3b60b1712b0f0afcbb81dc726
2017-12-29 23:35:22 +01:00
Pau Espin
ac23ad5013
pySim-*.py: Set shebang to use python v2
...
Nowadays bin/python usually points to python3, and this script is written
in python2, which means if run directly from terminal it will fail with
some print syntax errors.
Change-Id: I6ab4e9edc44a8045915d4828c6de2fa98027fb7e
2017-12-29 23:35:22 +01:00
Holger Hans Peter Freyther
4e824686f5
re-program: Instead of specifying the IMSI, read it from the card.
2016-05-22 15:53:28 +02:00
Jan Balke
c3ebd33544
Add PIN-ADM argument to the command line
...
Allow overwriting the default PIN-ADM set in the card implementation.
2015-08-20 13:32:56 +02:00
Harald Welte
e9e5ecbe30
Introduce a '--dry-run' option to skip actual card access
...
This can be used for example to batch convert from CSV input to HLR
output without writing cards.
2015-08-20 13:23:15 +02:00
Harald Welte
c26b82939f
read_params_csv: Make sure we don't end up in endless loop
...
as a side effect, the first line is now specified with '-j 0'
and not '-j 1'
2015-08-20 13:23:15 +02:00
Harald Welte
7f62cecb61
pySim-prog: Add mode where it can re-generate a card from CSV
...
Rather than just having the capability of writing to CSV, it now
has the capability to (re)write a card based on data from the CSV:
./pySim-prog.py -S csv --read-csv /tmp/sim.csv -i 901701234567890
or in batch mode (from the first line onwards):
./pySim-prog.py -S csv --read-csv /tmp/sim.csv --batch -j 1
2015-08-20 13:23:15 +02:00
Harald Welte
130524b719
split parameter writing for CSV and SQL into separate functions
2015-08-20 13:23:15 +02:00
Alexander Chemeris
21885249cf
Implement setting of EF.ACC file in GrcardSim and _MagicSimBase
...
From: Alexander Chemeris <Alexander.Chemeris@gmail.com>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-07-02 15:19:09 +02:00
Holger Hans Peter Freyther
cca41795a7
usim/opc: Derive OPC from KI and OP
2012-03-22 15:25:31 +01:00
Harald Welte
93b38cd0f5
usim/opc: Add support to write completely random OPC
...
Allow to set the OPC, write it out to the state, generate it randomly.
2012-03-22 15:25:19 +01:00
Sylvain Munaut
9977c86e96
pySim-prog: Fix SMSC 'number type' field to 0x81
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-10 09:57:16 +01:00
Sylvain Munaut
607ce2a029
Fix computation of SMSP from a SMSC number
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-08 20:16:43 +01:00
Sylvain Munaut
1a914439b8
Whitespace fixes
2011-12-08 20:08:26 +01:00
Harald Welte
2c0ff3a167
correctly compute the ICCID (19 digits, including luhn checksum)
2011-12-08 19:39:49 +01:00
Holger Hans Peter Freyther
5dffefbf0c
pySim-prog.py: pyflakes doesn't find Importerror..
...
Importerror -> ImportError, spotted by pyflakes.
2011-11-22 21:18:06 +01:00
Sylvain Munaut
9f120e0169
pySim-prog: Fix insertion of Ki in HLR. Need to escape like DBI does it
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-23 20:28:24 +01:00
Sylvain Munaut
8d243e8847
pySim-prog: Fix crash when using manuam imsi/iccid/kc
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-23 20:27:48 +01:00
Sylvain Munaut
98d2b85a97
pySim-prog: Check that batch mode is used with auto parameters
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-23 20:27:25 +01:00
Sylvain Munaut
8f7d3ba8ba
pySim-prog: Change logic to support batch programming
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-09 13:32:48 +01:00
Sylvain Munaut
bdca252fb0
transport: Change transport api to allow for wait_for_card/connect/disconnect
...
This way, we can re-use the same transport parameters for several
cards for a future batch mode
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-09 13:31:58 +01:00
Sylvain Munaut
9c8729a2d1
pySim-prog: Fix pcsc device selection and link creation
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-08 23:20:27 +01:00
Sylvain Munaut
143e99d1c6
pySim-prog: Add options to save generated parameters to CVS or OpenBSC HLR
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-08 22:35:04 +01:00
Sylvain Munaut
1771603806
pySim-prog: Show default for mnc in help mode
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-08 22:33:51 +01:00
Sylvain Munaut
e9fdecb38b
pySim-prog: Group option for serial (dev & baud) together
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-08 22:33:19 +01:00
Sylvain Munaut
76504e0a6e
Split all things into a more "library-like" package
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-07 00:24:32 +01:00