E3131 in Linux

rsd

Senior Member
Joined
Apr 19, 2005
Messages
898
Reaction score
1
Location
Cape Town
ginggs - I'm putting together a simple script to monitor my E3131 under linux. I've got the RSSI and SNR part sorted out, but I have no clue how to get the RAT. Could you let me know here or with a PM what AT commands I should be looking at? Ideally I'd like to know what band I'm on as well as what technology - I.e. 2g/3g/hspa (if those are even the right options).

I'm pretty lost - it has taken me ages just to figure out the RSSI and SNR...
 
ginggs - I'm putting together a simple script to monitor my E3131 under linux. I've got the RSSI and SNR part sorted out, but I have no clue how to get the RAT. Could you let me know here or with a PM what AT commands I should be looking at? Ideally I'd like to know what band I'm on as well as what technology - I.e. 2g/3g/hspa (if those are even the right options).

I'm pretty lost - it has taken me ages just to figure out the RSSI and SNR...
I haven't had the chance to play with an E3131 yet. Is yours a HiLink version or not?
Try AT^SYSINFO and AT^SYSINFOEX. If your modem supports AT^SYSINFOEX, then rather use that.

Please help fill in the table here.
 
I haven't had the chance to play with an E3131 yet. Is yours a HiLink version or not?
Try AT^SYSINFO and AT^SYSINFOEX. If your modem supports AT^SYSINFOEX, then rather use that.

Please help fill in the table here.

Thanks for the help! IT does support sysinfoex. Here are the results of all of the commands in the table - hope it helps:

NOTE - I'm not running the firmware that ships with the E3131. I upgraded it to Revision: 21.158.00.00.1020
Code:
AT^CSNR?
^CSNR: -86,-7

AT^NDISDUP=?
^NDISDUP:(1-11),(0-1)

AT^SYSINFOEX
^SYSINFOEX:2,3,0,1,,3,WCDMA,41,WCDMA

AT^SYSCFGEX?
COMMAND NOT SUPPORT
AT^SYSCFGEX=?
COMMAND NOT SUPPORT
AT^SYSCFGEX
COMMAND NOT SUPPORT

AT^DIALMODE=?
^DIALMODE: (0-2),(0-255)
 
Thanks for the help! IT does support sysinfoex. Here are the results of all of the commands in the table - hope it helps:

NOTE - I'm not running the firmware that ships with the E3131. I upgraded it to Revision: 21.158.00.00.1020
Thanks. So that's a non-HiLink firmware then?

I think only LTE modems support AT^SYSCFGEX for the extra LTE bands, yours should support AT^SYSCFG.

Can you post the result of AT^DIALMODE? (i.e. without the =) please?
 
Thanks. So that's a non-HiLink firmware then?

I think only LTE modems support AT^SYSCFGEX for the extra LTE bands, yours should support AT^SYSCFG.

Can you post the result of AT^DIALMODE? (i.e. without the =) please?

DIALMODE:2,2

Which is interesting. I'm currently dialing up using PPP - does this mean I can use NDIS rather? If so, do you know what AT commands I would need to use to establish the connection? I have added the APN with +CGDCONT already, but no clue if I did it correctly...
 
Is your firmware 21.158.00.00.1020 a HiLink version?
 
I honestly have no idea - I'm not sure how to tell.

I have wwan0 if I run ifconfig though.

Code:
AT^NDISDUP=1,1,"internet"
OK

It says ok, but appears to do absolutely nothing.
 
I honestly have no idea - I'm not sure how to tell.
On Windows it's easy enough, when you insert the modem your browser will open on the webpage http://192.168.1.1/ , but seeing that you already have serial communications open with the device, then I'm guessing it's not the HiLink version.
There's a thread all about HiLink modems here.
I have wwan0 if I run ifconfig though.

Code:
AT^NDISDUP=1,1,"internet"
OK

It says ok, but appears to do absolutely nothing.
This is what I do to bring up a connection on my E3276:

Send AT^NDISDUP=1,1 (you don't need to send the APN if you have already set up the CGD context)
Code:
sudo ifconfig wwan0 up
sudo dhclient wwan0

Io disconnect:
Send AT^NDISDUP=1,0
Code:
sudo ifconfig wwan0 down
 
Last edited:
If you only want to determine the chipset used, you only have to issue: ati .
This should show you two things. The model and firmware revision. If the model name (or FCCID) contains a "u" in it, it is a Qualcomm based modem, if it is an "s" it is a HiSilicon. Similarly, if the FW revision starts with an "11" it is Qualcomm and if it starts with "21" its a HiSilicon (AFAICR)...
 
Top
Sign up to the MyBroadband newsletter
X