Vadim Yanitskiy
41c22176e4
transport/pcsc: cosmetic: reuse the existing code of PcscSimLink
...
Change-Id: I5360df644032b95654e99ccaa5118952e8d55faf
2020-02-27 01:54:22 +07:00
Vadim Yanitskiy
7ba2428de5
utils: fix dec_msisdn(): properly detect international numbers
...
We should match the whole value of ToN, not just one LSB bit.
Change-Id: Idc51f09b3420d827a75a1161372e4e97c3ddfbc1
2020-02-27 01:54:10 +07:00
Vadim Yanitskiy
99affe1529
Py2 -> Py3: use the floor division operator // where possible
...
In Python 3, traditional division operator returns a float,
while we need a floor integer in the most cases.
Change-Id: I5565eb64a1ddea7075cbb142eaacaa5d494c87bb
2020-02-15 19:11:50 +00:00
Vadim Yanitskiy
4133080ced
pySim-read.py: do not import json, it is not needed
...
Change-Id: I4ae1d71c5695c9cd8ddebea514847b0be6a24c6c
2020-02-15 19:11:50 +00:00
Vadim Yanitskiy
a3bb334981
pySim-read.py: fix copy-paste: s/HPLMNAcT/PLMNsel/
...
Change-Id: I4a452a2e439cb713621a028cf0046339f50864b6
2020-02-14 22:46:38 +07:00
Vadim Yanitskiy
6727f0c02c
Fix compatibility with Python 3: print() is a function
...
Change-Id: I5dd8e5daf420fc8667c5156bfacc8763d8895993
2020-02-14 22:46:38 +07:00
Vadim Yanitskiy
fa1dc34152
testdata/sysmoUSIM-SJS1.ok: make it match the actual EF.HPLMNAcT
...
Change-Id: Ibe1bf274c15a3159b012c6fe07ef6a7cbf0adbdb
Related: OS#4383
2020-02-14 22:45:45 +07:00
Vadim Yanitskiy
35a96edb0d
pySim-*.py: print info about selected reader interface
...
Change-Id: Idd791d7ef635e15915aab13274aefc15e70777b0
2019-05-10 22:24:21 +07:00
Vadim Yanitskiy
9f9f5a6157
pySim-*.py: add command line option for Calypso reader
...
Change-Id: Ia895ced62d29e06ae8af05cd95c9d181fb53b9df
2018-10-29 02:45:54 +07:00
Vadim Yanitskiy
588f3aca3c
pySim-*.py: refactor card reader driver initialization
...
This would facilitate adding new card reader drivers.
Change-Id: Ia893537786c95a6aab3a51fb1ba7169023d5ef97
2018-10-29 01:58:18 +07:00
Vadim Yanitskiy
1381ff15af
pySim/transport: introduce Calypso based reader interface
...
This interface allows to use a Calypso based phone (e.g. Motorola
C1XX) as a SIM card reader. It basically implements a few L1CTL
messages that are used to interact with the SIM card through
the OsmocomBB 'layer1' firmware.
Please note, that this is an experimental implementation, and
there is a risk that SIM programming would fail. Nevertheless,
I've managed to program and read one of my SIMs a few times.
Change-Id: Iec8101140581bf9e2cf7cf3a0b54bdf1875fc51b
2018-10-29 01:58:11 +07:00