CRSM parse/Emergency numbers

Aleksander Morgado aleksander at aleksander.es
Wed Jan 12 09:00:47 UTC 2022


Hey,

>
> I'm seeing this.
>
> [16076]: <warn>  [1641922135.360300] [modem0/sim0] couldn't load list of
> emergency numbers: Failed to parse CRSM query result '+CRSM: 148,8,""'
>
> Seems like the regex in mm_3gpp_parse_crsm_response needs some work. Here it is:
>
>      r = g_regex_new
> ("\\+CRSM:\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*\"?([0-9a-fA-F]+)\"?",
>                       G_REGEX_RAW, 0, NULL);
>

Yes, it may be the [0-9a-fA-F]+ chunk, IIRC the "+" means match one or
more (not zero or more).

I've opened this issue to track it:
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/491

Thanks

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list