Inthe 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.
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) -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.
Hi All,
I wanted to open up a thread specifically for issues relating to projects using the Huawei E303 Cellular Modem. This modem is currently in our store and is being distributed with the Raspberry Pi and BeagleBone KS kits.
One thing that makes dealing with this modem tricky is that there are a ton of them out there for sale and even though the model number and hardware revision may be exactly the same, differences in firmware can create differences with connecting to different networks.
Duplicate IMEI numbers violate the IMEI Allocation and Approval Guidelines and would lead me to believe those modems are illegitimate clones or have some other issue in their pedigree. IMEI numbers are not intended to be changed by users, only at the time of manufacture, so they are not duplicate because of some needed configuration by users.
Also, since network providers can and do block and blacklist IMEIs of stolen phones, having a whole run with the same number opens you to the chance of having your device blocked (along with what: 100s? 1000s? More? of others) by a blacklist intended to block a single device.
With these modems we basically just wanted to offer an alternative reward in the Kickstarter for people who wanted to build IoT devices or mess around with the Konekt Cloud on their platform of choice without having to wait for the Dash to be finished.
There are undocumented API calls to the hilink web interface see here and here.
I was looking to see if there may also be calls to get the MCC/MNC/LAC/CellId of the connected cell as you might do with AT commands?
Is there a way to get current time from the Huawei E303? I tried AT+CCLK and also AT^NWTIME but only got errors. Maybe these features are not available on E303 or is there something to be done first, to enable such functions?
3a8082e126