In the previous generations of USB modems, it was easy to send AT commands by using Pyserial and directing the commands to the corresponding /dev/USBACM device. However, this Huawei device creates its own virtual interface and hence ifconfig shows it as eth1 and "dmesg | grep tty" doesnt really show it. So my question is how do I send my AT commands using python and pyserial? Thanks. PS : Feel free to weigh in other alternative approaches.
How to send AT commands to Huawei E3272 Hilink with python(pyserial)?
5.4k views Asked by Moses Browne Mwakyanjala At
1
There are 1 answers
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in AT-COMMAND
- I'm Trying to Connect Internet with ESP32 using Cavlii C16Qs. but ESP32 is not Getting Internet Connectivity
- Does anyone know about ATcommands for satellitephone(isatphone 2.1). AT + ISAT_OBEX = 1 What is purpose of it. can you suggest other AT commands also
- Problem with AT command in new GSM module A7672S
- Reading multiple blocks from a CoAP block-wise transfer on SIM7080G modem
- Increase CoAP receive package size beyond 579 bytes on SIM7080G modem
- Pico-SIM7080G hat detects network but can't connect
- ESP32 UDP server through AT commandos
- HTTP request pythonanywhere flask server using esp8266 AT commands
- AT Commands HTTP request to JSON source with status 200 but response that I get is incomplete (just some part of Response I received)
- API ID 0X17. Send an AT Command message from Xbee connected to arduino to a slave Xbee
- GSM and LTE-M connection with SIM7070G for MQTT data transmission
- SIM7000X establish AWS MQTT via AT command issue
- how to make a clear voice call using sim900
- Cannot deserialize JSON object via PHP script on AT commands from Arduino Uno/ESP8266 to connect to mySQL
- Sending Multi part message with AT Commands & PDU Mode Node.js
Related Questions in PYSERIAL
- How to fix python serial monitor parsing error?
- Raspberry Pi sending/receiving data over usb
- How do I do a proper if statement with data from a serial device in python?
- RS422 communication using PySerial (Raspberry PI)
- My RAMPS1.4 doesn't work when controlled by RPI5 via Python3
- ModuleNotFoundError: No module named 'pyfirmata'
- Baud rate issue in Raspberry Pi 5 and Arduino connection with USB in Python3
- Computer Locking Up While Using PySerial
- Python serial communication causing high CPU Usage when baudrate is 1000000
- How can I set Xofflimit and clear RTS in pyserial?
- PySerial Benq projector communication
- Can't open serial monitor while pyserial script is working, using nodemcu
- Problem using a mapped baud rate with pySerial
- Python decoding data from serial port and storing into a list
- pySerial reading and writing with arduino
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
So I found the answer almost 7 months ago and I thought it would be a good idea to share. I was able to read the information from the modem by using RESTFul APIs provided by Huawei. In other words, information from the modem can be retrieved or set by using standard HTTP verbs (GET, POST, PUT, DELETE). A list of these Huawei APIs can be found in this link (The website is in Polish language. However, google translate can do the trick for you) http://forum.jdtech.pl/Watek-hilink-api-dla-urzadzen-huawei
Implementing this can be tiresome. This guy has written a python program that implements almost all APIs in the link above. With minor effort, you could re-write the python program to suit your needs.
https://github.com/max246/huawei/blob/master/Huawei.py