Get modem SIM properties for mmcli

2023-04-24 Thread Brendan Simon
IND.T Classification: Public Is there a way to get the modem SIM properties via the mmcli command? e.g. the ICCID or SimIdentifier org.freedesktop.ModemManager1.Sim: ModemManager Reference Manual (www.freedesktop.org)

Re: Get modem SIM properties for mmcli

2023-04-24 Thread Aleksander Morgado
Hey Brendan, > Is there a way to get the modem SIM properties via the mmcli command? > > e.g. the ICCID or SimIdentifier > You can do this, yes. You can run "mmcli -m a" to get the list of details for your modem, and that output will report a "primary sim path" field, e.g. -

Re: NetworkTimeChanged signal doesn't seems to be working for Quectel

2023-04-24 Thread Aleksander Morgado
Hey, > > I am trying to get notification from Quectel when there is a time change, I > see that there is a signal NetworkTimeChanged for this but when I looked at > the code, I see that the signal is not being emitted for Quectel modules. > True; we're not emitting those for all modem types. Do

ModemManager and MQTT messages over DBUS

2023-04-24 Thread Mohamed Aouadhi
Hello, I am using a Quectel EC21 modem, connected to an imx6ul soc via usb (UART is also available), everything works fine and I have connectivity without issues. So my usecase is putting both the cpu and the modem, and I am able to do that, but the wakeup should be from a remote MQTT message com

Re: ModemManager and MQTT messages over DBUS

2023-04-24 Thread Aleksander Morgado
Hey Mohamed, > > I am using a Quectel EC21 modem, connected to an imx6ul soc via usb (UART is > also available), everything works fine and I have connectivity without issues. > > So my usecase is putting both the cpu and the modem, and I am able to do > that, but the wakeup should be from a remo

Re: Get modem SIM properties for mmcli

2023-04-24 Thread Filip Kubicz
Hi Brendan, There are a few approaches but a convenient method to retrieve values from mmcli is to use -J flag to get the JSON output. For example, to get modem IMEI, you can do (in bash): modem="$(mmcli --list-modems -J | jq '."modem-list"[0]' -r)" imei="$(mmcli -m ${modem} -J |

Re: Get modem SIM properties for mmcli

2023-04-24 Thread Filip Kubicz
I assumed you need to parse it for a program, but if you just need a human-readable version, you can also use mmcli -i 0 For a quick overview, and to filter it, grep for the line that you are interested in. Kind regards, Filip On Mon, Apr 24, 2023 at 12:58 PM Filip Kubicz wrote: > Hi Brendan,

Re: NetworkTimeChanged signal doesn't seems to be working for Quectel

2023-04-24 Thread Toto Titi
Hey Aleksander, I do get the +CTZU notification, but it worked differently for quectel because it doesn't receive the new time we need to check for +CTZE that's the URC that we get when we receive notification that the time has been changed. For my use case, I would like to update my local time aut