DHCP client and MC7304

Dan Williams dcbw at redhat.com
Wed Apr 12 15:54:53 UTC 2017


On Wed, 2017-04-12 at 08:37 +0000, Westerhoff, Vincent wrote:
> There is packet event which you need to registrate for, maybe
> libqmi/modemmanager is listening, I don't know:
> #define QMI_WDS_PKT_STATUS_IND  34      /* Packet data connection
> status indication */

Yes, MM listens for that indicator and will report the bearer as
"disconnected" if the "connection status" TLV says "disconnected". 
That should be part of ModemManager 1.6 and later.

There's also the "--wds-get-packet-service-status" argument to qmicli
which will report the status too.  Make sure you give it the right --
client-cid though.

Dan

> Then you receive:
> #define QMI_WDS_NOTIFY_CONN_STATUS              0x01
> 
> Status goes like this:
> #define QMI_WDS_CONN_STATUS_DISCONNECTED                0x01
> #define QMI_WDS_CONN_STATUS_CONNECTED           0x02
> #define QMI_WDS_CONN_STATUS_SUSPENDED           0x03
> 
> Have fun!
> 
> BR
> Vincent
> 
> --
> Vincent Westerhoff
> P3 group
> 
> Cell:       +49 151 571 33 327
> E-Mail:    Vincent.Westerhoff at p3-group.com
> Web:       www.p3-group.com
> 
> 
> P3 telehealthcare GmbH
> legal disclaimer, mandatory information and the P3 office addresses
> can be found at
> http://www.p3-group.com/portfolio-item/legal-disclaimer-p3-telehealth
> care-gmbh
> 
> -----Original Message-----
> From: libqmi-devel [mailto:libqmi-devel-bounces at lists.freedesktop.org
> ] On Behalf Of Kasper Holtze
> Sent: Tuesday, April 11, 2017 6:10 PM
> To: Aleksander Morgado
> Cc: libqmi (development)
> Subject: Re: DHCP client and MC7304
> 
> Yes, I will implement this in my own management software. Thanks for
> the help to both of you :-)
> 
> Kasper
> 
> 
> On 11. april 2017 5.35.24 PM Aleksander Morgado <aleksander at aleksande
> r.es>
> wrote:
> 
> > > 
> > > I use the simplest form - the modem has autoconnect enabled
> > > (using qmicli).
> > > No ModemManager or qmi-network to handle the connection. I'm not
> > > listening for events, so I don't know yet if any is received.
> > 
> > You may then want to run "--wds-get-current-settings" periodically
> > and
> > request a DHCP renew if the reported IP address settings change, or
> > something like that.
> > 
> > --
> > Aleksander
> > https://aleksander.es
> > _______________________________________________
> > libqmi-devel mailing list
> > libqmi-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/libqmi-devel
> 
> 
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libqmi-devel
> 
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libqmi-devel


More information about the libqmi-devel mailing list