Analyzing Huawei GSM dongles
Here are my notes:
|Selecting RAS (modem) mode|
There are generic AT commands but also vendor specific AT commands.
... to be continued.
AT commandsAT+CLAC will reveal most (not all) supported commands for the stick
There are different options to send the commands and monitory the result.
I've used putty on linux and start a serial connection type. (the /dev/ttyUSB3 is just an example.)
A bit more primitive but still working is to open to shell sessions.
Monitor the output in one session:
And in another terminal session, send the at commands.:
echo "AT^SETPORT=?" > /dev/ttyUSB1
The question is to find out which node you can use. And I've only come to a trial and error mode.
I quickly try the commands
To find out on which node I can communication. You will often see some AT^BOOT messages, ^RSSI, ^CSNR, ^MODE messages passing by. They are rather an annoyance when you use putty. So the first commands I use during a putty session is to
- turn off the boot messages with AT^BOOT=0,0
- turn off RSSI reporting with AT^CURC=0
The output of the AT^SETPORT=?" will give you a list of the different 'ports'.
You can enable /disable these 'ports' by enumerating them in the AT^SETPORT="A1,A2;1,2"
This would enable modem and pcui on ttyUSB0 and ttyUSB1.
If you change the order AT^SETPORT="A1,A2;2,1"
The modem and pcui will be on ttyUSB1 and ttyUSB0.
I'm not sure how to reset a dongle to factory setting to restore the port mode. But you can imagine, you have to be carefull with these AT commands. If you disable the Application interface (PCUI) I would not know of a mechanism to undo you changes (maybe via the NDIS interface?)
echo -e "AT^GETPORTMODE" > /dev/ttyUSB1
(suggesting it was 1,7,3,2)
echo "AT^SYSCFG=?" > /dev/ttyUSB1