[RFC] stanger/cinterion branch
matthew stanger
stangerm2 at gmail.com
Wed Dec 21 16:14:51 UTC 2016
>
> What's the output of the SWWAN status check when the SIM is gone? is
> it saying "ERROR"?
response = mm_base_modem_at_command_finish (modem, res, &error);
if (!response) {
mm_dbg ("response:'%s' error:'%s'", response, error->message);
Taking SIM out during connection produced:
ModemManager[9779]: <debug> [1482336593.250840]
[mm-port-serial-at.c:459] debug_log(): (ttyACM1): --> 'AT^SWWAN?<CR>'
ModemManager[9779]: <debug> [1482336593.274427]
[mm-port-serial-at.c:459] debug_log(): (ttyACM1): <-- '<CR><LF>+CME
ERROR: 10<CR><LF>'
ModemManager[9779]: <debug> [1482336593.274506]
[mm-serial-parsers.c:364] mm_serial_parser_v1_parse(): Got failure
code 10: SIM not inserted
ModemManager[9779]: <debug> [1482336593.274541]
[cinterion/mm-broadband-bearer-cinterion.c:108]
swwan_check_status_ready(): response:'(null)' error:'SIM not inserted'
ModemManager[9779]: <warn> [1482336593.274563] [mm-base-bearer.c:165]
load_connection_status_ready(): checking if connected failed: SIM not
inserted
On Wed, Dec 21, 2016 at 4:15 AM, Aleksander Morgado <
aleksander at aleksander.es> wrote:
> Hey Matthew & Dan,
>
> >
> > I ran the code a few thousand times for connecting -> data connection ->
> > disconnect through our CI suite. That looks good. However I did find
> during
> > a better manual testing that if you remove the SIM while a data
> connection
> > is up the dbus API isn't updated with the disconnect event.
> >
> > In:
> > swwan_check_status_ready()
> > ....
> >
> > response = mm_base_modem_at_command_finish (modem, res, &error);
> >
> > if (!response) {
> >
> > g_task_return_error (task, error);
> >
> > goto out;
> >
> > }
> >
> >
> > We fall into this and exit without updating the status. I think it should
> > be:
> >
> > g_task_return_int (task, (gssize)
> > MM_BEARER_CONNECTION_STATUS_DISCONNECTED);
> >
> >
>
> What's the output of the SWWAN status check when the SIM is gone? is
> it saying "ERROR"?
>
> >
> >
> >> I have no idea how that could happen.
> >
> >
> > Test weird ways, get weird problems lol. I tracked this down to the very
> > weird way I tested, which wasn't valid in the end so disregard.
> >
>
> Ok.
>
> >> In which step do you get the "unspecified gprs error"?
> >
> >
> > Not in a step but in a setup, using non-OEM SIMs. The guy's at Cinterion
> > told us to try and set this value manually based on the ICCID :0, yikes.
> > This is only really a problem for USA users using non-OEM SIMs, so it may
> > not be a problem that needs to be solved. I.E. we will have to since we
> have
> > custom SIMs for both Ver & AT&T, but the main MM user's may never run
> into
> > this. I guess knowing that do you think it's important to figure out
> > something in the MM scope or should it just be handled on it's own by
> users
> > in this corner case?
> >
>
> This issue seems to be very specific to a given user setup, don't
> know. I'm tempted to say we shouldn't have anything generic in
> ModemManager to handle that.
>
> > Other than that this looks solid. Exciting times!
>
> Unless Dan has any objection, I'll get the branch merged into git
> master in the following days.
>
> --
> Aleksander
> https://aleksander.es
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20161221/b7a85876/attachment.html>
More information about the ModemManager-devel
mailing list