OpenWrt Forum Archive

Topic: 3G/4G:LTE rssi signal strength indication?

The content of this topic has been archived between 1 May 2018 and 3 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hay all, So I wish to know if someone can make a 3g rssi signal strength indicator in luci This will help loads with users that are on 3g net only.

I found this but its not grate to set antennas up with

wiki wrote:

For troubleshooting or locating the best position for the USB Dongle, you can use

gcom info -d /dev/ttyUSBx
from the console. This tool will report signal strength, but also network registration and SIM status. If it returns a port-in-use error because your connection is already up, try
gcom -d /dev/ttyUSBx
where x represents a port number not used by the wan connection itself.
gcom returns the signal quality in RSSI (Received signal strength indication) and in BER (Bit error rate, reported in percent). A higher RSSI value represents a stronger signal - scale is from 0 to 99, where 1 is the lowest detectable signal and 31 a very good signal. Don't expect your signal to go all the way up to 99, though. If BER returns 99 it means not known or not detectable.

: Although I found the above information all across the net, I made different observations: My 3G modem is a ZTE K3565-Z which features a LED to show it's status (Not Connected, GPRS, UMTS). With a reported RSSI value of around 17 I only get GPRS while a value of 4 allows for UMTS access.
You can also add the AT command

""      "AT+CSQ"
to your chat script to check signal quality.
Command return is "+CSQ: <rssi>,<ber>" and looks like this in logread:

send (AT+CSQ^M)
expect (OK)
^M
AT+CSQ^M^M
+CSQ: 11,99^M
^M
OK
-- got it
If you have problems establishing a connection and multiple modem devices (/dev/ttyUSB0, /dev/ttyUSB1, …) are present, try all of them. Some may not work at all while others seem to work at first, but will give a NO CARRIER during the connection process.

Thanks Raster.

Bump.....

bump

Can someone help out with this? There is lots of ppl who would find this handy.

TP-link have it in there 3g routers.

The TP-link one only updates when it 1st connects to the modem. But one simler with a dbm info would help so so much for anyone who takes there router out and about or if just looking for a new cell site when the other cell gos down.

http://i49.tinypic.com/24qlr4l.jpg

Something like this ?

https://lh4.googleusercontent.com/-oE8jQlyq8AE/UFNjFDqkFCI/AAAAAAAAAxw/--e-HP7KZek/s800/Status%2520po%25C5%2582%25C4%2585czenia%25203G.png

uci set 3ginfo.@3ginfo[0].language=en
uci commit
3ginfo

or

/etc/init.d/3ginfo start and see http://192.168.1.1:81

obsy wrote:

uci set 3ginfo.@3ginfo[0].language=en
uci commit
3ginfo

or

/etc/init.d/3ginfo start and see http://192.168.1.1:81


Works well thanks,

Siła sygnału:38%

If we could get that put in to the Luci utms connect wan it would be grate big_smile

I have made a ticket over on http://luci.subsignal.org
Ticket http://luci.subsignal.org/trac/ticket/522
Maybe they can code it in? would be nice.

And thankyou for both your help to get to see a % of signal is going to make my life alot easyer.

Thats really nice. big_smile
But mine looks like this
http://www.abload.de/thumb/unbenanntexu1d.png
http://www.abload.de/thumb/unbenannt61u2j.png
Can you fix this?

(Last edited by netbus on 6 Jan 2013, 20:41)

You cannot use the same interface for connection and 3ginfo. Change interface in 3ginfo config (/etc/config/3ginfo).

Thanks. that works.
I only need my operator name and I am happy

Show me output of 3ginfo-test

root@Hotspot:/www/cgi-bin# 3ginfo-test 

+CSQ: 12,99
+COPS: 0,0,"3 AT",2
+ZPAS: "HSPA","CS_PS"
+CREG: 2,1, 7F8, CC8E47
+CGREG: 2,1, 7F8, CC8E47
DEVICE:ZTE CORPORATION MF112
---------------------------------------------------------------
/dev/tty      /dev/ttyS1    /dev/ttyS11   /dev/ttyS13   /dev/ttyS15   /dev/ttyS3    /dev/ttyS5    /dev/ttyS7    /dev/ttyS9    /dev/ttyUSB1
/dev/ttyS0    /dev/ttyS10   /dev/ttyS12   /dev/ttyS14   /dev/ttyS2    /dev/ttyS4    /dev/ttyS6    /dev/ttyS8    /dev/ttyUSB0  /dev/ttyUSB2
---------------------------------------------------------------

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  1/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.03
S:  Manufacturer=Linux 3.3.8 ehci_hcd
S:  Product=Generic Platform EHCI Controller
S:  SerialNumber=ehci-platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=0117 Rev= 0.00
S:  Manufacturer=ZTE,Incorporated
S:  Product=ZTE WCDMA Technologies MSM
S:  SerialNumber=P671A2xxxxxx
C:* #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
---------------------------------------------------------------
3ginfo.@3ginfo[0]=3ginfo
3ginfo.@3ginfo[0].http_port=81
3ginfo.@3ginfo[0].qos=0
3ginfo.@3ginfo[0].language=en
3ginfo.@3ginfo[0].device=/dev/ttyUSB1
3ginfo.@3ginfo[0].pincode=xxxx
root@Hotspot:/www/cgi-bin# 

My Operator is "3 AT"

echo "XXXYY;3 AT" >> /usr/share/3ginfo/mccmnc.dat

Change XXXYY to MCC/MNC code


Or try new version.

(Last edited by obsy on 6 Jan 2013, 21:49)

Nice. It works now.
As "TheRaster" already has written, it would be nice to integrate it to Luci

Hi.

I need some help.

I need help for the indicator signal 3G/4G.

I downloaded this: http://ecco.selfip.net/attitude_adjustm … /packages/ (3ginfo_20130214_all.ipk)

obsy wrote:

uci set 3ginfo.@3ginfo[0].language=en
uci commit
3ginfo

or

/etc/init.d/3ginfo start and see http://192.168.1.1:81

Insert the command in Putty above, but without effect.

It's the first time I use OpenWRT firmware. I'm new in these things.

Best Regards

Here https://dev.openwrt.org/ticket/12434 is solution how to get operator name and signal strength in luci.


Any help how to get connection type (3G or EDGE or HSDPA, ...)?

obsy wrote:
aberson wrote:

is this still available?  I don't see a 3ginfo package listed here:  http://downloads.openwrt.org/snapshots/ … /packages/

yes, look into http://ecco.selfip.net/attitude_adjustm … /packages/

i found problem installing 3ginfo:

root@openwrt:/tmp# opkg install 3ginfo_20130908_all.ipk 
Installing 3ginfo (20130908) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for 3ginfo:
 *     3ginfo-text * 
 * opkg_install_cmd: Cannot install package 3ginfo.

root@openwrt:/tmp# ls -al
drwxrwxrwt   16 root     root           500 Oct  3 12:21 .
drwxr-xr-x   22 root     root           632 Oct  3 11:37 ..
drwx------    2 root     root            40 Oct  3 12:05 .uci
-rw-r--r--    1 root     root          6252 Oct  3 12:20 3ginfo-text_20130908_all.ipk
-rw-r--r--    1 root     root         12069 Oct  3 12:20 3ginfo_20130908_all.ipk
-rw-r--r--    1 root     root             4 Oct  3 12:05 TZ
drwxr-xr-x    3 root     root            60 Oct  3 12:05 db
-rw-r--r--    1 root     root            67 Oct  3 12:05 dhcp.leases
drwxr-xr-x    2 root     root           100 Oct  3 12:05 etc
-rw-r--r--    1 root     root            85 Oct  3 12:05 fstab
drwxr-xr-x    2 root     root           360 Oct  3 12:21 lock
drwxr-xr-x    3 root     root           160 Oct  3 12:05 log
-rw-------    1 root     root         85641 Oct  3 12:05 luci-indexcache
drwxr-xr-x    2 root     root            40 Oct  3 12:05 luci-modulecache
drwx------    2 root     root            60 Oct  3 12:17 luci-sessions
drwxr-xr-x    2 root     root            60 Oct  3 12:05 nmbd
drwxr-xr-x    2 root     root            40 Oct  3 12:21 opkg-lists
drwxr-xr-x    2 root     root            40 Jan  1  1970 overlay
-rw-r--r--    1 root     root            32 Oct  3 12:05 resolv.conf
-rw-r--r--    1 root     root            98 Oct  3 12:05 resolv.conf.auto
drwxr-xr-x    5 root     root           420 Oct  3 12:05 run
drwxr-xr-x    2 root     root           100 Oct  3 12:05 state
drwxr-xr-x    3 root     root            60 Oct  3 12:05 tmp
drwxr-xr-x    3 root     root            60 Oct  3 12:21 usr
obsy wrote:
vinca wrote:

Here https://dev.openwrt.org/ticket/12434 is solution how to get operator name and signal strength in luci.


Any help how to get connection type (3G or EDGE or HSDPA, ...)?

Use at command, depends on vendor, like: "AT+ZPAS? (ZTE) AT_OCTI?/"AT_OWCTI? (option) etc. See my 3ginfo: https://github.com/obsy/packages/blob/m … ginfo.gcom

Modem vendor is huawei, I add "AT\^SYSINFOEX" and logread output is:

 AT^SYSINFOEX^M^M
Oct  3 13:56:19 openwrt local2.info chat[26722]: ^SYSINFOEX:2,3,0,1,,3,"WCDMA",41,"WCDMA"^M
Oct  3 13:56:19 openwrt local2.info chat[26722]: ^M
Oct  3 13:56:19 openwrt local2.info chat[26722]: OK

AT_OCTI?/"AT_OWCTI? options failed.

How to get WCDMA now? WCDMA is not in gcom info -d /dev/ttyUSB1 output.
Thanks

vinca wrote:
obsy wrote:
aberson wrote:

is this still available?  I don't see a 3ginfo package listed here:  http://downloads.openwrt.org/snapshots/ … /packages/

yes, look into http://ecco.selfip.net/attitude_adjustm … /packages/

i found problem installing 3ginfo:

root@openwrt:/tmp# opkg install 3ginfo_20130908_all.ipk 
Installing 3ginfo (20130908) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for 3ginfo:
 *     3ginfo-text * 
 * opkg_install_cmd: Cannot install package 3ginfo.

root@openwrt:/tmp# ls -al
drwxrwxrwt   16 root     root           500 Oct  3 12:21 .
drwxr-xr-x   22 root     root           632 Oct  3 11:37 ..
drwx------    2 root     root            40 Oct  3 12:05 .uci
-rw-r--r--    1 root     root          6252 Oct  3 12:20 3ginfo-text_20130908_all.ipk
-rw-r--r--    1 root     root         12069 Oct  3 12:20 3ginfo_20130908_all.ipk
-rw-r--r--    1 root     root             4 Oct  3 12:05 TZ
drwxr-xr-x    3 root     root            60 Oct  3 12:05 db
-rw-r--r--    1 root     root            67 Oct  3 12:05 dhcp.leases
drwxr-xr-x    2 root     root           100 Oct  3 12:05 etc
-rw-r--r--    1 root     root            85 Oct  3 12:05 fstab
drwxr-xr-x    2 root     root           360 Oct  3 12:21 lock
drwxr-xr-x    3 root     root           160 Oct  3 12:05 log
-rw-------    1 root     root         85641 Oct  3 12:05 luci-indexcache
drwxr-xr-x    2 root     root            40 Oct  3 12:05 luci-modulecache
drwx------    2 root     root            60 Oct  3 12:17 luci-sessions
drwxr-xr-x    2 root     root            60 Oct  3 12:05 nmbd
drwxr-xr-x    2 root     root            40 Oct  3 12:21 opkg-lists
drwxr-xr-x    2 root     root            40 Jan  1  1970 overlay
-rw-r--r--    1 root     root            32 Oct  3 12:05 resolv.conf
-rw-r--r--    1 root     root            98 Oct  3 12:05 resolv.conf.auto
drwxr-xr-x    5 root     root           420 Oct  3 12:05 run
drwxr-xr-x    2 root     root           100 Oct  3 12:05 state
drwxr-xr-x    3 root     root            60 Oct  3 12:05 tmp
drwxr-xr-x    3 root     root            60 Oct  3 12:21 usr

Install 3ginfo-text first...

vinca wrote:
obsy wrote:
vinca wrote:

Here https://dev.openwrt.org/ticket/12434 is solution how to get operator name and signal strength in luci.


Any help how to get connection type (3G or EDGE or HSDPA, ...)?

Use at command, depends on vendor, like: "AT+ZPAS? (ZTE) AT_OCTI?/"AT_OWCTI? (option) etc. See my 3ginfo: https://github.com/obsy/packages/blob/m … ginfo.gcom

Modem vendor is huawei, I add "AT\^SYSINFOEX" and logread output is:

 AT^SYSINFOEX^M^M
Oct  3 13:56:19 openwrt local2.info chat[26722]: ^SYSINFOEX:2,3,0,1,,3,"WCDMA",41,"WCDMA"^M
Oct  3 13:56:19 openwrt local2.info chat[26722]: ^M
Oct  3 13:56:19 openwrt local2.info chat[26722]: OK

AT_OCTI?/"AT_OWCTI? options failed.

How to get WCDMA now? WCDMA is not in gcom info -d /dev/ttyUSB1 output.
Thanks

AT_OCTI?/"AT_OWCTI? is for Option modem, not HUAWEI.

obsy wrote:
vinca wrote:
obsy wrote:

Use at command, depends on vendor, like: "AT+ZPAS? (ZTE) AT_OCTI?/"AT_OWCTI? (option) etc. See my 3ginfo: https://github.com/obsy/packages/blob/m … ginfo.gcom

Modem vendor is huawei, I add "AT\^SYSINFOEX" and logread output is:

 AT^SYSINFOEX^M^M
Oct  3 13:56:19 openwrt local2.info chat[26722]: ^SYSINFOEX:2,3,0,1,,3,"WCDMA",41,"WCDMA"^M
Oct  3 13:56:19 openwrt local2.info chat[26722]: ^M
Oct  3 13:56:19 openwrt local2.info chat[26722]: OK

AT_OCTI?/"AT_OWCTI? options failed.

How to get WCDMA now? WCDMA is not in gcom info -d /dev/ttyUSB1 output.
Thanks

AT_OCTI?/"AT_OWCTI? is for Option modem, not HUAWEI.

ok. Thanks.
And how to get connection type (3g, hsdpa, edge, ...) now?

(Last edited by vinca on 4 Oct 2013, 10:10)

I tested (for Huawei usb dongle) this 3g.gcom script (add to gcom)

opengt
 set com 115200n81
 set comecho off
 set senddelay 0.02
 waitquiet 0.2 0.2
 flash 0.1

:start
 send "AT\^SYSINFOEX^m"
 get 1 "" $s
 print $s

:continue
 exit 0

call:  luci.sys.exec("comgt -d /dev/ttyUSB1 -s /etc/gcom/3g.gcom | grep 'SYSINFOEX' | grep -oE [^,]+$")

the output is (not always):

AT^SYS
^RSSI: 4
INFOEX
^SYSINFOEX:2,3,0,1,,3,"WCDMA",41,"WCDMA"

OK

^RSSI: 5

on web gui displayed: AT^SYSINFOEX "WCDMA"

How to edit 3g.gcom script to display WCDMA or EDGE or HSDPA (without quotes also)...

(Last edited by vinca on 9 Oct 2013, 13:43)