balena-os / meta-balena

A collection of Yocto layers used to build balenaOS images
https://www.balena.io/os
968 stars 115 forks source link

ModemManager does not allow sending AT commands over dbus in recent balenaOS version (~ 3.0.15) #3201

Closed everhardt closed 10 months ago

everhardt commented 1 year ago

I moved from balenaOS 2.108.29 to 3.0.15 and I noticed that I cannot query the modem anymore as I used to:

root@dd8d378:~# mmcli -m 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'

We use this command over dbus from our container to monitor signal quality and read out other properties.

majorz commented 1 year ago

That was previously allowed during build with --with-at-command-via-dbus=yes.

majorz commented 1 year ago

And this option is missing from the recent transition to meson from autotools. It has to be added back.

jellyfish-bot commented 1 year ago

[majorz] This has attached https://jel.ly.fish/90f16d35-7749-4fee-b70f-49fcb1dfcce9

jellyfish-bot commented 1 year ago

[pipex] This has attached https://jel.ly.fish/99a43cb1-1598-4db4-b0ad-84ebd6bf4201

pipex commented 1 year ago

Another report in the link above about this also failing for Raspberry PI 4

majorz commented 1 year ago

Related PR is https://github.com/balena-os/meta-balena/pull/3206

lmbarros commented 12 months ago

Hi @majorz ! Can we close this issue now that the PR is merged?

everhardt commented 11 months ago

We just tried this on balenaOS 4.0.26 and supervisor 14.13.4 but got the same error: Cannot send AT command to modem: operation only allowed in debug mode

alexgg commented 10 months ago

Closed with https://github.com/balena-os/meta-balena/pull/3206

everhardt commented 10 months ago

@alexgg We verified on 4.0.26 and on 4.1.5 that this is not yet working.

floion commented 10 months ago

on what board is this?

everhardt commented 10 months ago

Compulab IOT-GATE-iMX8.

floion commented 10 months ago

Should be fixed by https://github.com/balena-os/meta-balena/pull/3298

floion commented 10 months ago

@majorz can you give this a test on a rpi4 for example?

majorz commented 10 months ago

@floion checking it now!

acostach commented 10 months ago

Hi @everhardt, the v4.1.5+rev2 iot-gate-imx8 image from balena-cloud should have this fixed, can you please give it a try and let us know?

everhardt commented 10 months ago

Yes, that works, many thanks!

acostach commented 10 months ago

Excellent, thanks for confirming @everhardt !

jdbruijn commented 9 months ago

Hi @acostach, I'm a colleague of @everhardt and just tested this with the IOT-gate iMX8 with balenaOS 5.0.11 and supervisor 15.0.4 and unfortunately this seems broken again. We once again get the Cannot send AT command to modem: operation only allowed in debug mode error.

jdbruijn commented 9 months ago

Apologies, please ignore my last message. I was testing on a device I didn't yet update. I can confirm it still works on balenaOS 5.0.11 and supervisor 15.0.4 😄

floion commented 9 months ago

:+1: