u-blox LARA0-R2 (R280) not worrking with MM 1.10
Aleksander Morgado
aleksander at aleksander.es
Mon Apr 29 09:22:42 UTC 2019
> On Ubuntu 18.10 Cosmic (MM 1.8.2) I get the following.
>
> # ls /dev/ttyACM*
> /dev/ttyACM0 /dev/ttyACM2 /dev/ttyACM4
> /dev/ttyACM1 /dev/ttyACM3 /dev/ttyACM5
>
> # lsmod | grep acm
> cdc_acm 32768 4
>
> # mmcli -L
>
> Found 1 modems:
> /org/freedesktop/ModemManager1/Modem/1 [u-blox] LARA-R280
>
> # nmcli d
> DEVICE TYPE STATE CONNECTION
> enp0s3 ethernet connected Wired connection 1
> ttyACM0 gsm disconnected --
> lo loopback unmanaged --
>
> # nmcli d connect ttyACM0
> Device 'ttyACM0' successfully activated with
> 'f1ec8522-2a76-4e31-938d-87101f2aeb27'.
>
> # lsmod | grep acm
> cdc_acm 32768 5
>
>
> On Ubuntu 19.04 Cosmic (MM 1.10.1) I get the following.
>
> # ls -l /dev/ttyACM*
> crw-rw---- 1 root dialout 166, 0 Apr 29 03:02 /dev/ttyACM0
> crw-rw---- 1 root dialout 166, 1 Apr 29 03:02 /dev/ttyACM1
> crw-rw---- 1 root dialout 166, 2 Apr 29 03:02 /dev/ttyACM2
> crw-rw---- 1 root dialout 166, 3 Apr 29 03:02 /dev/ttyACM3
> crw-rw---- 1 root dialout 166, 4 Apr 29 03:02 /dev/ttyACM4
> crw-rw---- 1 root dialout 166, 5 Apr 29 03:02 /dev/ttyACM5
>
> # lsmod | grep acm
> cdc_acm 32768 0
>
> # mmcli -L
> No modems were found
>
> # dmesg | grep acm
> [ 557.815621] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
> [ 557.823421] cdc_acm 1-1:1.2: ttyACM1: USB ACM device
> [ 557.831399] cdc_acm 1-1:1.4: ttyACM2: USB ACM device
> [ 557.840190] cdc_acm 1-1:1.6: ttyACM3: USB ACM device
> [ 557.848698] cdc_acm 1-1:1.8: ttyACM4: USB ACM device
> [ 557.856181] cdc_acm 1-1:1.10: ttyACM5: USB ACM device
>
>
> # journalctl | grep -i modemmanager
> Apr 29 03:09:10 osboxes ModemManager[631]: <info> [device
> /sys/devices/pci0000:00/0000:00:0b.0/usb1/1-1] creating modem with
> plugin 'u-blox' and '6' ports
> Apr 29 03:09:10 osboxes ModemManager[631]: <info> Modem for device
> '/sys/devices/pci0000:00/0000:00:0b.0/usb1/1-1' successfully created
> Apr 29 03:09:16 osboxes ModemManager[631]: <warn> (tty/ttyACM1) at
> port timed out 2 consecutive times
> Apr 29 03:09:19 osboxes ModemManager[631]: <warn> (tty/ttyACM1) at
> port timed out 3 consecutive times
> Apr 29 03:09:22 osboxes ModemManager[631]: <warn> (tty/ttyACM1) at
> port timed out 4 consecutive times
> Apr 29 03:09:25 osboxes ModemManager[631]: <warn> (tty/ttyACM1) at
> port timed out 5 consecutive times
> Apr 29 03:09:28 osboxes ModemManager[631]: <warn> (tty/ttyACM1) at
> port timed out 6 consecutive times
> Apr 29 03:09:31 osboxes ModemManager[631]: <warn> (tty/ttyACM1) at
> port timed out 7 consecutive times
> Apr 29 03:09:33 osboxes ModemManager[631]: <warn> (tty/ttyACM1) at
> port timed out 8 consecutive times
> Apr 29 03:09:34 osboxes ModemManager[631]: <warn> (tty/ttyACM1) at
> port timed out 9 consecutive times
> Apr 29 03:09:35 osboxes ModemManager[631]: <error> (tty/ttyACM1) at
> port timed out 10 consecutive times, marking modem '(null)' as invalid
> Apr 29 03:09:35 osboxes ModemManager[631]: <warn> Modem couldn't be
> initialized: couldn't load current capabilities: AT sequence was
> cancelled
> Apr 29 03:09:35 osboxes ModemManager[631]: <warn> couldn't
> initialize the modem: 'Operation was cancelled'
>
> To me everything looks ok from the kernel perspective. I figure
> ModemManager is the more likely culprit.
>
Could you please run ModemManager 1.10 with --debug and post the output here?
$ sudo systemctl stop ModemManager
$ sudo /usr/sbin/ModemManager --filter-policy=STRICT --debug
Could you also put the full "lsusb -v" output to see the full device layout?
MM 1.10 is using these port type hints for the LARA-R2 modem, maybe we need to update these:
# LARA-R2 port types
# ttyACM0 (if #0): primary
# ttyACM1 (if #2): secondary
# ttyACM2 (if #4): tertiary
# ttyACM3 (if #6): GNSS Tunneling (ignore)
# ttyACM4 (if #8): SIM Access Profile (ignore)
# ttyACM5 (if #10): Primary Log for diagnostics (ignore)
ATTRS{idVendor}=="1546", ATTRS{idProduct}=="110a", ENV{.MM_USBIFNUM}=="06", ENV{ID_MM_PORT_IGNORE}="1"
ATTRS{idVendor}=="1546", ATTRS{idProduct}=="110a", ENV{.MM_USBIFNUM}=="08", ENV{ID_MM_PORT_IGNORE}="1"
ATTRS{idVendor}=="1546", ATTRS{idProduct}=="110a", ENV{.MM_USBIFNUM}=="0a", ENV{ID_MM_PORT_IGNORE}="1"
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list