Hi all
I am new bee into pysim and python too. I have successfully installed all dependenceis and my code start running. I was too delighted and connected my card reader and ran the following command
$python4 pySim-read.py -p 0
and the responce is like below.
qt5ct: using qt5ct plugin Using PC/SC reader interface Card reader initialization failed with exception:
Exception was not showing any reason for failure but an empty string. Can someone please help me
Hey,
have you tried also with python3?
does pcscd_scan does detect the card when you insert it?
Cheers
Bjoern
________________________________ Von: bhogendra.rao@gmail.com bhogendra.rao@gmail.com Gesendet: Freitag, 3. Februar 2023 12:25:38 An: openbsc@lists.osmocom.org Betreff: Card initialization failed with exception
Hi all
I am new bee into pysim and python too. I have successfully installed all dependenceis and my code start running. I was too delighted and connected my card reader and ran the following command
$python4 pySim-read.py -p 0
and the responce is like below.
qt5ct: using qt5ct plugin Using PC/SC reader interface Card reader initialization failed with exception:
Exception was not showing any reason for failure but an empty string. Can someone please help me
Hi Riemer, Björn,
Thanks for your response.
I tried with Python3 only. pcscd_scan is a continuous loop of search and is not coming out of the loop. It is not showing my reader.
Hi,
Your reader is not recognized by the operating system or PCSD. Please check if it is supported by pcsd and also check if your OS sees it, e.g. if it is USB connected does the command lsusb show it?
Good luck. D.
07.02.2023 dátummal, 4:57 időpontban bhogendra.rao@gmail.com írta:
Hi Riemer, Björn,
Thanks for your response.
I tried with Python3 only. pcscd_scan is a continuous loop of search and is not coming out of the loop. It is not showing my reader.
Thank you for your query. I could see in the dmesg output that the device is mounted at /dev/ttyUSB0. So I assume that the device is recognized by the OS
Hi,
if it gets detected you should use the right option of pysim to interact with a tty based reader instead of the pcscd based reader.
from the help output (pysim-read.ph -h):
Serial Reader: -d DEV, --device DEV Serial Device for SIM access (default: /dev/ttyUSB0) -b BAUD, --baud BAUD Baud rate used for SIM access (default: 9600)
PC/SC Reader: -p PCSC, --pcsc-device PCSC PC/SC reader number to use for SIM access (default: None)
Cheers
Bjoern
________________________________ Von: bhogendra.rao@gmail.com bhogendra.rao@gmail.com Gesendet: Freitag, 10. Februar 2023 12:20:23 An: openbsc@lists.osmocom.org Betreff: Re: Card initialization failed with exception
Thank you for your query. I could see in the dmesg output that the device is mounted at /dev/ttyUSB0. So I assume that the device is recognized by the OS