LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 02-25-2025, 11:22 AM   #1
nabelekt-vl
LQ Newbie
 
Registered: Feb 2025
Posts: 4

Rep: Reputation: 0
Help with ModemManager and modem on UART port


I have a SARA-R52M10 cellular modem attached to a Raspberry Pi CM4 running Ubuntu 24.04 on UART3:

Code:
    root@GATEWAY-0x00000028:~# ll /dev/ttyAMA3
    crw-rw---- 1 root dialout 204, 67 Feb 25 01:21 /dev/ttyAMA3
I can get responses from it fine with
Code:
    screen /dev/ttyAMA3 115200
or by running
Code:
    stty -F /dev/ttyAMA3 115200 && cat /dev/ttyAMA3
in one terminal and
Code:
    echo -e "AT\r" > /dev/ttyAMA3
in another.

But I am trying to get ModemManager to talk to it, and I cannot.

I am running:
Code:
    echo 'ACTION!="add|change|move|bind", GOTO="mm_sara_r52m10_end"
    SUBSYSTEMS=="tty", DEVPATH=="/devices/platform/soc/fe201600.serial/fe201600.serial:0/fe201600.serial:0.0/tty/ttyAMA3"
    LABEL="mm_sara_r52m10_end"

    # Rule for ModemManager to handle the device on ttyAMA3
    ACTION=="add|change|move", SUBSYSTEM=="tty", KERNEL=="ttyAMA3", \
        ENV{ID_MM_DEVICE_PROCESS}="1", \
        ENV{ID_MM_TTY_BAUDRATE}="115200", \
        ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1", \
        ENV{ID_MM_TTY_FLOW_CONTROL}="rts-cts"
    ' > /etc/udev/rules.d/99-sara-r52m10.rules
    udevadm control --reload && udevadm trigger

    systemctl restart ModemManager
    mmcli --scan-modems
    mmcli --list-modems
and get
Code:
    successfully requested to scan devices
    No modems were found
And
Code:
    journalctl -u ModemManager --no-pager --since "$(systemctl show -p ActiveEnterTimestamp ModemManager | cut -d'=' -f2)"
shows:
Code:
    Feb 25 01:27:02 GATEWAY-0x00000028 systemd[1]: Starting ModemManager.service - Modem Manager...
    Feb 25 01:27:02 GATEWAY-0x00000028 ModemManager[1737]: <msg> ModemManager (version 1.23.4) starting in system bus...
    Feb 25 01:27:02 GATEWAY-0x00000028 systemd[1]: Started ModemManager.service - Modem Manager.
    Feb 25 01:27:09 GATEWAY-0x00000028 ModemManager[1737]: <msg> [base-manager] couldn't check support for device '/sys/devices/platform/scb/fd580000.ethernet': not supported by any plugin
    Feb 25 01:27:09 GATEWAY-0x00000028 ModemManager[1737]: <msg> [base-manager] couldn't check support for device '/sys/devices/platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1': not supported by any plugin
    Feb 25 01:27:18 GATEWAY-0x00000028 ModemManager[1737]: <msg> [device /sys/devices/platform/soc] creating modem with plugin 'generic' and '1' ports
    Feb 25 01:27:18 GATEWAY-0x00000028 ModemManager[1737]: <wrn> [plugin/generic] could not grab port ttyAMA3: Cannot add port 'tty/ttyAMA3', unhandled port type
    Feb 25 01:27:18 GATEWAY-0x00000028 ModemManager[1737]: <wrn> [base-manager] couldn't create modem for device '/sys/devices/platform/soc': Failed to find primary AT port
Do my rules look ok? I am pretty unconfident in them.

How can I resolve the issue shown in the last couple lines of that output and get ModemManager talking to my modem?

Any thoughts are appreciated. Thanks!
 
Old 02-26-2025, 01:15 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,053

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
I can't really assist directly with this, but consider casting your support net wider by posting at the Raspberry Pi Forums

BTW, I assume that your cellular modem doesn't provide QMI network interface support? Most modern devices can be handled as network devices these days.
 
Old 02-28-2025, 11:13 AM   #3
nabelekt-vl
LQ Newbie
 
Registered: Feb 2025
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you for your reply. Unfortunately, no, u-blox modems do not support QMI. I will post in the R Pi forum, thanks. I have made some good progress without ModemManager and just creating a ppp interface, chat script, etc. However, I would still prefer for ModemManager to handle the connection. U-blox modems are being phased out, so when we switch to something else, I'll look for QMI support.
 
  


Reply



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
3G connection with ModemManager and Netplan connect and disconnect immediatly csedax90 Linux - Networking 1 10-24-2023 08:20 PM
LXer: Fwupd 1.7.4 Released with Support for ModemManager Devices and New Hardware LXer Syndicated Linux News 0 01-13-2022 08:42 PM
Where does uart console get its value of uart port membase? unifoxz Linux - Kernel 1 12-20-2011 02:28 PM
Upgrade Modemmanager from .3 to .4 raunhar Ubuntu 1 10-30-2010 12:10 AM
LXer: Mobile Broadband On Linux To Improve With ModemManager LXer Syndicated Linux News 0 03-24-2009 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 05:08 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
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