Harald Welte
42b6be8747
Update README with general project information and convert to Markdown
2017-03-17 18:08:09 +01:00
Harald Welte
9a1dcea7b3
Revert "Do not return the FCI information while selecting a file"
...
This reverts commit 8c1b33c439
.
2016-10-27 14:40:02 +02: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
8c1b33c439
Do not return the FCI information while selecting a file
...
The sysmoUSIM-SJS1 card does not support returning the FCI
information.
Plus, the FCI information are not used anyway.
2015-08-20 13:32:56 +02:00
Jan Balke
3e84067a2b
Add provision support for sysmoUSIM-SJS1 cards
...
The PIN-ADM has to given on the command line as it is provisioned
different for each card.
Currently only Ki, Op and IMSI are provisioned.
2015-08-20 13:32:56 +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
Jan Balke
14b350f3a1
Allow changing the class byte for pdu messages
2015-08-20 13:32:03 +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
Sylvain Munaut
2fc205ceb9
cards: sysmocom SysmoSIM-GR2 support added to cards
...
Written-by: Kevin Redon
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-12-23 17:22:56 +01:00
Sylvain Munaut
9f13897408
pySim-read: MISDN is not mandatory
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-07-18 10:36:51 +02:00
Alexander Chemeris
7be92ff5d2
Move encoder functions for ICCID, IMSI and PLMN to pySim.utils for consistency.
2013-07-13 08:53:21 +02:00
Alexander Chemeris
6e58914746
Add an utility to read data from a SIM card.
2013-07-13 08:50:55 +02:00
Alexander Chemeris
5e96c3d910
utils: Add functions to decode IMSI and ICCID from EF raw data.
2013-07-13 08:49:03 +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
Sylvain Munaut
5da8d4e0d4
cards: Fix spacing according to PEP
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-07-02 15:13:24 +02:00
Sylvain Munaut
053c89578c
cards: Fix comment position
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2013-07-02 15:12:32 +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