On 05/04/11 12:16, Pablo Neira Ayuso wrote:
Hi!
I'm experiencing problems with pysim-prog. Using the example available
in the README file.
# ./pySim-prog.py -n 26C3 -c 49 -x 262 -y 42 -z lila -j 0
Insert card now (or CTRL-C to cancel)
I get stuck here forever. The same message shows if I remove the
supersim card from the reader.
Running pysim inside strace shows:
write(1, "Insert card now (or CTRL-C to cancel)\n", 38) = 38
ioctl(3, TIOCMBIS, [TIOCM_RTS]) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
ioctl(3, TCFLSH, 0) = 0
ioctl(3, TIOCMBIC, [TIOCM_RTS]) = 0
select(4, [3], [], [], {1, 0}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 500000}) = 0 (Timeout)
ioctl(3, TIOCMBIS, [TIOCM_RTS]) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
ioctl(3, TCFLSH, 0) = 0
ioctl(3, TIOCMBIC, [TIOCM_RTS]) = 0
... [and so on]
The pl2303 module is loaded correctly, and I have used it before to
access some embedded devices via serial line:
pl2303 2-2:1.0: pl2303 converter detected
usb 2-2: pl2303 converter now attached to ttyUSB0
usb 2-2: USB disconnect, device number 11
pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
Any clue on what's wrong?
Just for the record: I bought a brand new reader that works fine.
It seems that the reader that I was using was broken.