LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-26-2013, 10:05 AM   #1
necktwi
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Rep: Reputation: Disabled
how to find 3g modem signal strength with out AT commands?


when i try to find signal strength of my modem using AT+CSQ, the usb device is locked by the network manager. To find the signal strength with AT+CSQ i have to first disable network connection using #nmcli nm wwan off to unlock the device inode /dev/ttyUSBX.

Is there any nmcli option to get signal strength or any other option?

The gdbus object for NetworkManager don't have any method like getSignalStrength.

nm-applet was able to display signal strength in system tray. so there should be a way to get signal strength form network manager!
 
Old 06-30-2013, 03:46 AM   #2
Kean
LQ Newbie
 
Registered: Aug 2011
Posts: 24

Rep: Reputation: Disabled
Hello
I would go with (from link above):
Rssi - i - (read)

This is Recieved Signasl Stregnth Indicator showed in dBm, so in my opinion this is what you want.
 
Old 06-30-2013, 03:56 AM   #3
necktwi
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Finally got the answer!

In c++ use libnm-glib to act on dbus proxy. From command line use..

gdbus call --system --dest org.freedesktop.ModemManager --object-path /org/freedesktop/ModemManager/Modems/0 --method org.freedesktop.ModemManager.Modem.Gsm.Network.GetSignalQuality
gives u the signal strength of gsm modem.

Quote:
If MM says it cannot get signal quality while connected, it's because there is only one AT port for all command and data. So when the AT port is connected, no AT commands can be sent to gather signal quality. You'll need to either get a better modem with more AT ports, or switch to a non-AT modem, like a QMI or MBIM powered one. -- Aleksander Morgado
One can listen to org.freedesktop.ModemManager.Modem.Gsm.Network.GetSignalQuality signal using

gdbus monitor --system --dest org.freedesktop.NetworkManager --object-path /org/freedesktop/NetworkManager/Modems/0

Quote:
Q. Does the proxy signals everytime there is a change in signal strength asynchonously or ModemManager polls modem periodically to get signal quality?

A. That depends on the modem being used; if the modem supports unsolicited quality change indications, we'll use them; otherwise MM will poll every 30s for signal quality values. The property values in the interface will be updated once we get the new values (more or less). -- Aleksander Morgado
 
  


Reply

Tags
c++, gnome, modem, network-manager


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 8 Linux Commands: To Find Out Wireless Network Speed, Signal Strength And Other Information LXer Syndicated Linux News 0 06-11-2012 06:30 AM
how to find the signal Strength of the Access Point? fantgreat Linux - Networking 4 05-04-2012 10:39 AM
How can I see the signal strength and type of connection (2G/3G) using a usb modem? gandrusz Linux - Hardware 2 11-12-2010 02:21 PM
3G USB stick/modem: reading out / displaying signal strength JZL240I-U Linux - Mobile 2 09-27-2010 12:54 AM
How to get signal strength value from USB modem -which run under wvdial er.saurabh Linux - Wireless Networking 2 02-21-2010 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration