Comments (6)
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.
Hi guangyuzhang!
Could you rerun the test and post which line of code causes your issue?
from python-gsmmodem.
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.
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.
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.
Hi, i have the same error.
Do you already know how to solve the problem?
from python-gsmmodem.
Related Issues (20)
- Question: Support for modems with multiple SIMS ? HOT 1
- dial_polling_demo.py throws gsmmodem.exceptions.TimeoutException: ['NO CARRIER']
- TimeoutException with Sim800 module HOT 1
- Delivery Reports can't be disabled when in PDU mode HOT 2
- Modem working but having Timeout Exception HOT 3
- CMSError: CMS 321 HOT 3
- incompatibility with latest pyserial 3.5
- (removed - useless)
- Sms not receiving
- Support for RFC2217 (serial port over network)
- how best to extend? HOT 1
- Add an example to demonstrate the Sending SMS HOT 2
- Does not work on Python 3.x HOT 2
- Still Alive? HOT 5
- Question: support for windows? HOT 12
- Timeout exception raised for any command. HOT 16
- Error: 'GsmModem' object has no attribute 'rxThread' HOT 3
- sms_handler fails HOT 2
- Instant timeout exception
- PDU Decoding Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-gsmmodem.