ModemManager:mmcli 获取信号强度 [英] ModemManager: mmcli get signal strength

查看:181
本文介绍了ModemManager:mmcli 获取信号强度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在 Sierre Wireless MC7304 上检索信号强度.
通过 mmcli 发送 AT 命令似乎也不起作用.

I am unable to retrieve the signal strength on a Sierre Wireless MC7304.
Also sending an AT command via mmcli does not seem to work.

:~ $ sudo mmcli -m /org/freedesktop/ModemManager1/Modem/0 --signal-get
 error: modem has no extended signal capabilities

:~ $ sudo mmcli -m /org/freedesktop/ModemManager1/Modem/0 --command=AT+CSQ
error: command failed: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unauthorized: Cannot send AT command to modem: operation only allowed in debug mode'


/org/freedesktop/ModemManager1/Modem/0 (device id 
'dd26a5483d051c6e25a7ca10f4d36a94791c7ebf')
-------------------------
Hardware |   manufacturer: 'Sierra Wireless, Incorporated'
       |          model: 'MC7304'
       |       revision: 'SWI9X15C_05.05.16.02 r21040 carmd-fwbuild1 
2014/03/17 23:49:48'
       |      supported: 'gsm-umts, lte'
       |        current: 'gsm-umts, lte'
       |   equipment id: 'unknown'
 -------------------------
  System   |         device: 
'/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5'
       |        drivers: 'qmi_wwan, qcserial'
       |         plugin: 'Gobi'
       |   primary port: 'ttyUSB2'
       |          ports: 'ttyUSB0 (qcdm), ttyUSB2 (at), wwan0 (net), 
wwan1 (net)'
-------------------------
 Numbers  |           own : 'unknown'
 -------------------------
 Status   |           lock: 'none'
       | unlock retries: 'unknown'
       |          state: 'connected'
       |    power state: 'on'
       |    access tech: 'lte'
       | signal quality: '0' (recent)
 -------------------------
 Modes    |      supported: 'allowed: 2g, 3g, 4g; preferred: none'
       |        current: 'allowed: 2g, 3g, 4g; preferred: none'
 -------------------------
 Bands    |      supported: 'unknown'
       |        current: 'unknown'
 -------------------------
 IP       |      supported: 'ipv4, ipv6, ipv4v6'
 -------------------------
 3GPP     |           imei: 'unknown'
       |  enabled locks: 'none'
       |    operator id: 'hidden'
       |  operator name: 'hidden'
       |   subscription: 'unknown'
       |   registration: 'home'
 -------------------------
 SIM      |           path: '/org/freedesktop/ModemManager1/SIM/0'

 -------------------------
  Bearers  |          paths: '/org/freedesktop/ModemManager1/Bearer/0'

当使用内置调制解调器(例如 Mikrotik 922 卡)时,我似乎获得了很好的信号强度.
我在树莓派上使用 mmcli 版本:1.4.0-1 和内核 4.450.

When using the modem inside for example an Mikrotik 922 card i seem to get the signal strength just fine.
I am using mmcli version: 1.4.0-1 and Kernel 4.450 on a raspberry pi.

推荐答案

这里有几个问题:

调制解调器没有被 ModemManager 正确检测为 QMI 调制解调器(请参阅 mmcli 的 Ports 部分输出中没有列出 cdc-wdm 端口).由于这是一个自定义系统,您需要确保内核USB cdc-wdm 驱动程序已构建并安装,否则您将无法使用QMI模式,因为不会有任何/dev/cdc-wdm 探测端口

The modem wasn't properly detected as a QMI modem by ModemManager (see that there is no cdc-wdm port listed in the Ports section output of mmcli). Being this a custom system, you need to make sure that the kernel USB cdc-wdm driver is built and installed, otherwise you won't be able to use the QMI mode as there won't be any /dev/cdc-wdm port to probe

您无法通过 mmcli --command 运行 AT 命令,因为只有当 ModemManager 守护进程在 --debug 模式下运行时才允许该操作.这是开发者在开发过程中用来对调制解调器进行快速检查的命令,一般用户不支持.

You were not able to run AT commands via mmcli --command because that operation is only allowed when the ModemManager daemon runs in --debug mode. This is a command that developers use to run quick checks on the modem during development, not supported for general users.

您在 mmcli 输出中看到 信号质量等于 0,因为 ModemManager 只有一个 AT 端口可以使用 (ttyUSB2),如果已连接(使用 PPP),则无法刷新质量.如果您在 QMI 模式下使用调制解调器,则您根本不会在 TTY 上使用 PPP.

You are seeing a signal quality equal to 0 in the mmcli output because ModemManager had only one AT port to use (ttyUSB2) and if that was connected (with PPP) there was no way to refresh the quality. If you used the modem in QMI mode you wouldn't be using PPP at all over the TTY.

回复此问题中的另一个答案:ModemManager当然支持QMI调制解调器中的信号质量检索!实际上,特殊的信号接口(提供更详细的信号质量值,如接入技术特定项目)最初仅为 QMI 调制解调器本身开发.

Replying to the other answer in this question: ModemManager of course supports signal quality retrieval in QMI modems! Actually, the special Signal interface (which provides more detailed signal quality values, like access technology specific items) was originally developed only for QMI modems themselves.

这篇关于ModemManager:mmcli 获取信号强度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆