Re: [PATCH v2] atmodem: Detect usage of AT+CGEREP

2020-08-31 Thread Denis Kenzior
Hi Lars, On 8/31/20 8:24 AM, poesc...@lemonage.de wrote: From: Lars Poeschel Currently AT+CGEREP=2,1 is sent in case we don't know what the modem needs. (default case) Not all modems understand this. So, we first query what the modem supports with AT+CGEREP=? and then use this information to b

Re: Unable to establish ppp connection with Huawei dongle

2020-08-31 Thread Lars Poeschel
Hi, I do notice two things looking at your logs: On Thu, Aug 27, 2020 at 04:26:40AM -, rakesp...@gmail.com wrote: > Hi , > > I am trying to enable lte connection with huawei dongle , but I am getting > below error log for activat/context. > > Aug 26 11:36:28 raspberrypi3 daemon.info ofono

[PATCH v2] atmodem: Detect usage of AT+CGEREP

2020-08-31 Thread poeschel
From: Lars Poeschel Currently AT+CGEREP=2,1 is sent in case we don't know what the modem needs. (default case) Not all modems understand this. So, we first query what the modem supports with AT+CGEREP=? and then use this information to be nice to the modem. This way modems, like the Quectel M95 t

Re: [PATCH 1/2] atmodem: Detect usage of AT+CGEREP

2020-08-31 Thread Lars Poeschel
On Tue, Aug 25, 2020 at 11:49:02AM -0500, Denis Kenzior wrote: > Hi Lars, > > > > So in theory this could be written like: > > > int max = -1; > > > iter_open_list(&iter); > > > > > > while (iter_next_range(&iter, &max1, &max2)) { > > > if (max2 > max) > > > max = max2; > > > } > > >