Hello
I can access my ZTE Modem and read values from the SIM card like IMSI with AT commands.
Welcome to minicom 2.8 OPTIONS: I18n Port /dev/ttyUSB2, 18:23:09 Press CTRL-A Z for help on special keys AT OK AT+CSIM=? OK ATI Manufacturer: ZTE INCORPORATED Model: MF626 Revision: BD_MOBINILP673M3V1.0.0B02 IMEI: 357034037160973 +GCAP: +CGSM,+FCLAS
I would like to try pySIM-shell to access the same modem with SIM, but I am getting the error below:
(venv) root@ubuntu-HP-Notebook:/home/ubuntu/pysim# python3 pySim-shell.py --modem-device /dev/ttyUSB2
DEBUG:root:Sending AT command: AT INFO:root:Command finished with timeout >= 0.2s DEBUG:root:Command took 0.201042s (89 cycles a 0.002000s) DEBUG:root:Got response from modem: [b''] Traceback (most recent call last): File "/home/ubuntu/pysim/pySim-shell.py", line 1117, in <module> sl = init_reader(opts, proactive_handler = Proact()) File "/home/ubuntu/pysim/pySim/transport/__init__.py", line 362, in init_reader sl = ModemATCommandLink(opts, **kwargs) File "/home/ubuntu/pysim/pySim/transport/modem_atcmd.py", line 51, in __init__ self._check_echo() File "/home/ubuntu/pysim/pySim/transport/modem_atcmd.py", line 127, in _check_echo raise ReaderError('Interface '%s' does not respond to 'AT' command' % self._device) pySim.exceptions.ReaderError: Interface '/dev/ttyUSB2' does not respond to 'AT' command (venv) root@ubuntu-HP-Notebook:/home/ubuntu/pysim#
I tried increasing the timeout in send_at_cmd() to 1 second and 2 seconds, but i get the same result.
Any ideas how I can access the modem via pySim-shell ?
Thanks Abdelmuhaimen Seaudi, CCIE # 25265 Email: aseaudi@gmail.com Skype: aseaudi LinkedIn: www.linkedin.com/in/aseaudi Telephone: +2012 84644 733