Giter VIP home page Giter VIP logo

Comments (6)

guangyuzhang avatar guangyuzhang commented on June 30, 2024

Sometimes it runs to 'AT+CFUN?' with python 3.6

INFO: Connecting to modem on port /dev/ttyUSB0 at 115200bps
DEBUG: write: ATZ
DEBUG: response: ['OK']
DEBUG: write: ATE0
DEBUG: response: ['OK']
DEBUG: write: AT+CFUN?
DEBUG: response: ['OK']
Failed to connect the modem: 'NoneType' object is not subscriptable

from python-gsmmodem.

tomchy avatar tomchy commented on June 30, 2024

Hi guangyuzhang!
Could you rerun the test and post which line of code causes your issue?

from python-gsmmodem.

guangyuzhang avatar guangyuzhang commented on June 30, 2024

Hi guangyuzhang!
Could you rerun the test and post which line of code causes your issue?

INFO: Connecting to modem on port /dev/ttyUSB0 at 115200bps
DEBUG: write: AT
DEBUG: response: ['OK']
DEBUG: write: ATZ
Failed to connect the modem: None
^CTraceback (most recent call last):
File "test_send.py", line 18, in main
modem.connect(pin=None, waitingForModemToStartInSeconds=20)
File "/usr/local/lib/python3.6/dist-packages/python_gsmmodem_new-0.12-py3.6.egg/gsmmodem/modem.py", line 210, in connect
File "/usr/local/lib/python3.6/dist-packages/python_gsmmodem_new-0.12-py3.6.egg/gsmmodem/modem.py", line 458, in write
File "/usr/local/lib/python3.6/dist-packages/python_gsmmodem_new-0.12-py3.6.egg/gsmmodem/serial_comms.py", line 144, in write
gsmmodem.exceptions.TimeoutException: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "test_send.py", line 45, in
main()
File "test_send.py", line 23, in main
modem.close()
File "/usr/local/lib/python3.6/dist-packages/python_gsmmodem_new-0.12-py3.6.egg/gsmmodem/serial_comms.py", line 62, in close
File "/usr/local/lib/python3.6/dist-packages/pyserial-3.4-py3.6.egg/serial/serialposix.py", line 474, in close
KeyboardInterrupt

from python-gsmmodem.

guangyuzhang avatar guangyuzhang commented on June 30, 2024

Hi guangyuzhang!
Could you rerun the test and post which line of code causes your issue?

INFO: Connecting to modem on port /dev/ttyUSB0 at 115200bps
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: response: ['OK']
DEBUG: write: ATZ
DEBUG: response: ['OK']
DEBUG: write: ATE0
Failed to connect the modem: None
^CTraceback (most recent call last):
File "test_send.py", line 18, in main
modem.connect(pin=None, waitingForModemToStartInSeconds=10)
File "/usr/local/lib/python3.6/dist-packages/python_gsmmodem_new-0.12-py3.6.egg/gsmmodem/modem.py", line 221, in connect
File "/usr/local/lib/python3.6/dist-packages/python_gsmmodem_new-0.12-py3.6.egg/gsmmodem/modem.py", line 458, in write
File "/usr/local/lib/python3.6/dist-packages/python_gsmmodem_new-0.12-py3.6.egg/gsmmodem/serial_comms.py", line 144, in write
gsmmodem.exceptions.TimeoutException: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "test_send.py", line 45, in
main()
File "test_send.py", line 23, in main
modem.close()
File "/usr/local/lib/python3.6/dist-packages/python_gsmmodem_new-0.12-py3.6.egg/gsmmodem/serial_comms.py", line 62, in close
File "/usr/local/lib/python3.6/dist-packages/pyserial-3.4-py3.6.egg/serial/serialposix.py", line 474, in close
KeyboardInterrupt

from python-gsmmodem.

guangyuzhang avatar guangyuzhang commented on June 30, 2024

Hi guangyuzhang!
Could you rerun the test and post which line of code causes your issue?

INFO: Connecting to modem on port /dev/ttyUSB0 at 115200bps
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: write: AT
DEBUG: response: ['OK']
DEBUG: write: ATZ
DEBUG: response: ['OK']
DEBUG: write: ATE0
DEBUG: response: ['OK']
DEBUG: write: AT+CFUN?
DEBUG: response: ['OK']
Failed to connect the modem: 'NoneType' object is not subscriptable

from python-gsmmodem.

goon94 avatar goon94 commented on June 30, 2024

Hi, i have the same error.
Do you already know how to solve the problem?

from python-gsmmodem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.