[PATCH] ublox: wait for READY URCs during port probing

Aleksander Morgado aleksander at aleksander.es
Thu Jan 4 09:11:07 UTC 2018


On Wed, Jan 3, 2018 at 4:49 PM, Dan Williams <dcbw at redhat.com> wrote:
> On Mon, 2017-12-25 at 20:02 +0100, Aleksander Morgado wrote:
>> The AT control TTYs in the u-blox modems may take some time to be
>> usable. In order to handle this issue, we configured some longer
>> timeouts during AT probing, but that may not be always enough.
>>
>> The u-blox TTYs will report readiness via a "+AT: READY" URC, which
>> we can use during custom initialization to decide right away that the
>> port is AT. We use up to 20s as that is close to the worst case seen
>> during experimentation, happening after the module undergoes a full
>> NVM reset. If the timeout is reached without receiving the URC, we
>> still run standard AT probing afterwards. This new logic just tries
>> to make it sure we don't do any probing before the module is ready to
>> accept it.
>>
>> If the module hasn't been hotplugged (i.e. it was already there when
>> ModemManager started) we do a quick first AT probing and if that
>> fails
>> we run the "+AT: READY" URC wait as if it was hotplugged.
>
> LGTM
>

Thanks for checking; merged to git master now.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list