Cinterion plugin (in)compatibilities

Aleksander Morgado aleksander at aleksander.es
Tue Feb 14 23:07:18 UTC 2017


On Tue, Feb 14, 2017 at 10:51 AM, Colin Helliwell
<colin.helliwell at ln-systems.com> wrote:
>> > > I'm not confident of correctly interpreting the regex in smong_query_ready() (let alone fixing it properly!), but I wonder if the SMONG problem is that it's getting an additional CRLF. The response to the command is
>> > >
>> > > GPRS MonitorBCCH G PBCCH PAT MCC MNC NOM TA RAC # Cell #
>> >
>> > Sorry, that should be
>> > 'GPRS MonitorBCCH G PBCCH PAT MCC MNC NOM TA RAC # Cell # 44 1 - - 234 10 - - - OK'
>>
>> Could you apply this change and retry?
>>
>> diff --git a/plugins/cinterion/mm-broadband-modem-cinterion.c
>> b/plugins/cinterion/mm-broadband-modem-cinterion.c
>> index e82f78ae..33758840 100644
>> --- a/plugins/cinterion/mm-broadband-modem-cinterion.c
>> +++ b/plugins/cinterion/mm-broadband-modem-cinterion.c
>> @@ -677,7 +677,7 @@ smong_query_ready (MMBroadbandModemCinterion *self,
>>  */
>>  regex = g_regex_new (".*GPRS Monitor\\r\\n"
>>  "BCCH\\s*G.*\\r\\n"
>>
>> -   "(\\d*)\\s*(\\d*)\\s*", 0, 0, NULL);
>> +   "\\s*(\\d*)\\s*(\\d*)\\s*", 0, 0, NULL);
>> if (g_regex_match_full (regex, response, strlen (response), 0, 0,
>> &match_info, NULL)) {
>> gchar *gprs_status;
>> MMModemAccessTechnology act;
>>
>
> Still reporting as invalid reply, I'm afraid.

Please retry with the attached patch and let me know if you have any
issue in the ^SMONG response parsing.

-- 
Aleksander
https://aleksander.es
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cinterion-improve-SMONG-response-parser.patch
Type: text/x-patch
Size: 11597 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170215/29723264/attachment-0001.bin>


More information about the ModemManager-devel mailing list