Holger Hans Peter Freyther
44e4636755
re-program: Instead of specifying the IMSI, read it from the card.
2012-08-15 21:09:01 +02:00
Harald Welte
93315bd466
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.
2012-08-15 15:26:30 +02:00
Harald Welte
69c2ce2525
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'
2012-08-15 15:25:51 +02:00
Harald Welte
8b59a55488
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
2012-08-13 20:19:09 +02:00
Harald Welte
1d5968cfcf
split parameter writing for CSV and SQL into separate functions
2012-08-13 16:50:28 +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
Holger Hans Peter Freyther
4d91bf449f
sysmoUSIM-GR1: Add basic (hacky) support for the sysmoUSIM-GR1
...
Right now we are only to program the KI, OPC, ICCID and IMSI. This
is done in a direct way and through the card abstraction.
2012-03-22 14:28:38 +01:00
Sylvain Munaut
8ca49e9ca8
cards: SMSP is left padded not right padded
...
I confused left & right, silly me ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-12-10 09:57:50 +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
e10394bfb6
Add sysmoSIM-GR1 as alias to grcardsim
2011-12-08 19:39:49 +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
Holger Hans Peter Freyther
50e7c03816
README: Mention the necessary wait_for_card
2011-07-27 08:55:44 +02:00
Harald Welte
3156d9073f
cards: Add support for grcard.cn (Green Card) SIM cards
...
This does not have auto-detection (yet), so you have to explicitly
specify "-t grcardsim" on the command line
2011-03-22 21:48:19 +01:00
Harald Welte
982a3075f9
commands: Check SW for UPDATE BIN / UPDATE REC / VERIFY CHV
2011-03-22 21:47:20 +01:00
Sylvain Munaut
530076ebba
commands: Fix bug in verify_chv.
...
Didn't get adapted properly to support several transports ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-23 20:28:58 +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
245d534962
transport/pcsc: Remove obsolete/debug code
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-08 22:42:07 +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
e7c15cd088
transport: Put common methods in LinkBase class
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-07 10:01:55 +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
Sylvain Munaut
be17997e55
Add a internal h2i purely for symmetry :)
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-06 20:07:22 +01:00
Sylvain Munaut
6576ce1886
Add command to submit the CHV (pin code)
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-06 20:00:27 +01:00
Harald Welte
6dc5145663
pySim: Add support for PC/SC readers
...
Support for PC/SC can be used by simply specifying the '-p 0' option
at the command line (indicating PC/SC reader 0, i.e. the first)
2010-11-23 01:28:44 +01:00
Sylvain Munaut
63722fd99b
Fix format for 'SuperSim'
...
The Ki is at the very start for that card and not in a special EF
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-27 10:29:05 +01:00
Sylvain Munaut
36f7a2d60b
Reset the card after formatting and auto-detect
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-27 10:28:47 +01:00
Sylvain Munaut
995c398c13
Add README, COPYING, .gitignor
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-27 09:43:51 +01:00
Sylvain Munaut
0d1e63a978
Initial import
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-27 09:27:57 +01:00