[GH-ISSUE #26] Reading data via mmcli at command #17

Open
opened 2026-03-04 12:07:00 +03:00 by kerem · 4 comments
Owner

Originally created by @lrdrdn on GitHub (Nov 18, 2025).
Original GitHub issue: https://github.com/4IceG/luci-app-modemdata/issues/26

Feature request: add reading data via mmcli at command

To be able to activate this feature in mmcli you should compile package modemmanager WITH_AT_COMMAND_VIA_DBUS:

CONFIG_PACKAGE_modemmanager=y

#
# Configuration
#
CONFIG_MODEMMANAGER_WITH_NETIFD=y
CONFIG_MODEMMANAGER_WITH_MBIM=y
CONFIG_MODEMMANAGER_WITH_QMI=y
CONFIG_MODEMMANAGER_WITH_QRTR=y
CONFIG_MODEMMANAGER_WITH_AT_COMMAND_VIA_DBUS=y
# end of Configuration

read data with this command
mmcli -m 0 --command="ATI"

root@OpenWrt:~# mmcli -m 4 --command="ATI"
response: 'Manufacturer: Fibocom Wireless Inc.
Model: FM350-GL
Revision: 81600.0000.00.29.22.40
SVN: 08

IMEI: ##########'
root@OpenWrt:~# mmcli -m 4 --command="AT+GTCAINFO?"
response: '+GTCAINFO:
PCC:103,157,1325,100,100,2,1,3,4,-98
SCC 1:2,0,140,49,39448,100,255,1,255,3,255,-98
SCC 2:2,0,140,157,39250,100,255,3,255,4,255,-98
SCC 3:2,0,101,157,325,75,255,2,255,3,255,-98
'
root@OpenWrt:~# mmcli -m 4 --command="AT+CGMI;+CGMM;+CGMR;+CGSN"
response: 'Fibocom Wireless Inc.

FM350-GL

81600.0000.00.29.22.40

 ##########'
root@OpenWrt:~#

Originally created by @lrdrdn on GitHub (Nov 18, 2025). Original GitHub issue: https://github.com/4IceG/luci-app-modemdata/issues/26 Feature request: add reading data via mmcli at command To be able to activate this feature in mmcli you should compile package modemmanager WITH_AT_COMMAND_VIA_DBUS: ``` CONFIG_PACKAGE_modemmanager=y # # Configuration # CONFIG_MODEMMANAGER_WITH_NETIFD=y CONFIG_MODEMMANAGER_WITH_MBIM=y CONFIG_MODEMMANAGER_WITH_QMI=y CONFIG_MODEMMANAGER_WITH_QRTR=y CONFIG_MODEMMANAGER_WITH_AT_COMMAND_VIA_DBUS=y # end of Configuration ``` read data with this command `mmcli -m 0 --command="ATI"` ``` root@OpenWrt:~# mmcli -m 4 --command="ATI" response: 'Manufacturer: Fibocom Wireless Inc. Model: FM350-GL Revision: 81600.0000.00.29.22.40 SVN: 08 IMEI: ##########' root@OpenWrt:~# mmcli -m 4 --command="AT+GTCAINFO?" response: '+GTCAINFO: PCC:103,157,1325,100,100,2,1,3,4,-98 SCC 1:2,0,140,49,39448,100,255,1,255,3,255,-98 SCC 2:2,0,140,157,39250,100,255,3,255,4,255,-98 SCC 3:2,0,101,157,325,75,255,2,255,3,255,-98 ' root@OpenWrt:~# mmcli -m 4 --command="AT+CGMI;+CGMM;+CGMR;+CGSN" response: 'Fibocom Wireless Inc. FM350-GL 81600.0000.00.29.22.40 ##########' root@OpenWrt:~# ```
Author
Owner

@4IceG commented on GitHub (Nov 18, 2025):

@lrdrdn Do you have to use mix MM+serial port to connection/read data from this modem? Maybe use a simpler method https://github.com/obsy/modemfeed/tree/master/luci/protocols/luci-proto-xmm + https://github.com/obsy/modemfeed/tree/master/packages/net/xmm-modem ?

<!-- gh-comment-id:3545508671 --> @4IceG commented on GitHub (Nov 18, 2025): @lrdrdn Do you have to use mix MM+serial port to connection/read data from this modem? Maybe use a simpler method https://github.com/obsy/modemfeed/tree/master/luci/protocols/luci-proto-xmm + https://github.com/obsy/modemfeed/tree/master/packages/net/xmm-modem ?
Author
Owner

@4IceG commented on GitHub (Nov 18, 2025):

For me it is an unnecessary overcomplicated combination of MM+serial port for reading.

Dla mnie to niepotrzebne przekombinowanie, takie polaczenie MM+serial do odczytu.

Nie wiem co na to Cezary @obsy ..

<!-- gh-comment-id:3545652421 --> @4IceG commented on GitHub (Nov 18, 2025): For me it is an unnecessary overcomplicated combination of MM+serial port for reading. Dla mnie to niepotrzebne przekombinowanie, takie polaczenie MM+serial do odczytu. Nie wiem co na to Cezary @obsy ..
Author
Owner

@obsy commented on GitHub (Nov 18, 2025):

Same thing. Using at commands with mmcli means recompiling modemmanager, which a regular user wouldn't do. So, it would be unnecessary work, and only a few people would benefit from it.

<!-- gh-comment-id:3546824851 --> @obsy commented on GitHub (Nov 18, 2025): Same thing. Using at commands with mmcli means recompiling modemmanager, which a regular user wouldn't do. So, it would be unnecessary work, and only a few people would benefit from it.
Author
Owner

@lrdrdn commented on GitHub (Nov 18, 2025):

@lrdrdn Do you have to use mix MM+serial port to connection/read data from this modem? Maybe use a simpler method https://github.com/obsy/modemfeed/tree/master/luci/protocols/luci-proto-xmm + https://github.com/obsy/modemfeed/tree/master/packages/net/xmm-modem ?

My ISP disconnects every 2 hours. Last time I used xmm-modem, it didn't automatically reconnect. The most stable is using modemmanager.

<!-- gh-comment-id:3549803123 --> @lrdrdn commented on GitHub (Nov 18, 2025): > [@lrdrdn](https://github.com/lrdrdn) Do you have to use mix MM+serial port to connection/read data from this modem? Maybe use a simpler method https://github.com/obsy/modemfeed/tree/master/luci/protocols/luci-proto-xmm + https://github.com/obsy/modemfeed/tree/master/packages/net/xmm-modem ? My ISP disconnects every 2 hours. Last time I used xmm-modem, it didn't automatically reconnect. The most stable is using modemmanager.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/luci-app-modemdata#17
No description provided.