DHCP client and MC7304

Westerhoff, Vincent Vincent.Westerhoff at p3-group.com
Wed Apr 12 08:37:40 UTC 2017


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 */

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-telehealthcare-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 aleksander.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



More information about the libqmi-devel mailing list