Ublox TOBY-L210 needs two retries to connect

Aleksander Morgado aleksander at aleksander.es
Tue May 9 21:16:05 UTC 2017


Hey Salvador,

>
> I did these changes but it didn't work. I added a debug message to determine when the wait_function was being called. The first attempt of connection that fails, never calls that function, so I think that the timeout is not being applied.  However the second attempt, the one that connects is calling the function.
>
> Here you go the changes I applied, in case I did something wrong.
>

Yes, I realize now that just subclassing that step isn't enough, as
that step is a wait time *after* the modem has reported us it's
unlocked. In our case, we need to wait time before even checking if
the modem is unlocked. What we  probably need is to subclass is the
send_pin() method in the MMBaseSim object. This means we need to
create a new MMSimTelit object with MMBaseSim as parent object, and
then subclass the send_pin() method only to add a
g_timeout_add_seconds(5,...) call.

Would you be up to doing this? An example of plugin subclasing the
send_pin() in the MMBaseSim object is the "mbm" plugin, where we have
a MMSimMbm that subclasses send_pin() and send_puk(). Both those
should be subclassed in our case as well.

I opened a bug in bugzilla to track it:
https://bugs.freedesktop.org/show_bug.cgi?id=100980

Cheers!

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list