Hallo zusammen,
wegen meines Versuch die pySim zu verwenden habe ich folgendes bekommen:
./pySim-read.py -p 0
Reading ...
Traceback (most recent call last):
File "./pySim-read.py", line 90, in <module>
(res, sw) = scc.read_binary(['3f00', '2fe2'])
File "/home/wirelesss/net/pysim/pySim/commands.py", line 51, in
read_binary
r = self.select_file(ef)
File "/home/wirelesss/net/pysim/pySim/commands.py", line 44, in
select_file
data, sw = self._tp.send_apdu_checksw(self.cla_byte + "a4000C02" + i)
File "/home/wirelesss/net/pysim/pySim/transport/__init__.py", line
87, in send_apdu_checksw
raise RuntimeError("SW match failed ! Expected %s and got %s." %
(sw.lower(), rv[1]))
RuntimeError: SW match failed ! Expected 9000 and got 6b00.
$ ./pySim-read.py -p 1
Traceback (most recent call last):
File "./pySim-read.py", line 78, in <module>
sl = PcscSimLink(opts.pcsc_dev)
File "/home/wirelesss/net/pysim/pySim/transport/pcsc.py", line 38,
in __init__
self._reader = r[reader_number]
IndexError: list index out of range
Exception AttributeError: "'PcscSimLink' object has no attribute
'_con'" in <bound method PcscSimLink.__del__ of
<pySim.transport.pcsc.PcscSimLink object at 0x7f3dca255750>> ignored
wenn man ./pySim-prog.py gebe, dann das Ergebnis auch nicht so richtig ist.
./pySim-prog.py -p 0 -t sysmosim-gr1 -i
001640000000072 -c 001 -x 001
-y 64 -s 1791198229180000071
Insert card now (or CTRL-C to cancel)
Generated card parameters :
Name : Magic
SMSP : e1ffffffffffffffffffffffff0581005155f5ffffffffffff000000
ICCID : 1791198229180000071
MCC/MNC : 1/64
IMSI : 001640000000072
Ki : 895c5a0e9e5f635111d6c366ae8c957f
OPC : a230dcc3c71c17019189a8be734f9c74
ACC : None
Programming ...
Traceback (most recent call last):
File "./pySim-prog.py", line 626, in <module>
card.program(cp)
File "/home/wirelesss/net/pysim/pySim/cards.py", line 274, in program
r = self._scc.select_file(['3f00', '2fe2'])
File "/home/wirelesss/net/pysim/pySim/commands.py", line 44, in
select_file
data, sw = self._tp.send_apdu_checksw(self.cla_byte + "a4000C02" + i)
File "/home/wirelesss/net/pysim/pySim/transport/__init__.py", line
87, in send_apdu_checksw
raise RuntimeError("SW match failed ! Expected %s and got %s." %
(sw.lower(), rv[1]))
RuntimeError: SW match failed ! Expected 9000 and got 6b00.
Kommando: pcsc_scan funktioniert reibungslos.
Grüße,
Ivaylo
--
- Ivaylo Kostov <ikostov(a)sysmocom.de>
http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschäftsführer / Managing Directors: Harald Welte