[Ovmsdev] Reducing wifi/netmanager log messages

Michael Balzer dexter at expeedo.de
Thu Jan 17 06:23:16 HKT 2019


Steve,

I think you broke something, I'm now losing connectivity after changing from wifi to modem or back.

On a first quick glance, your change on OvmsNetManager::PrioritiseAndIndicate() looks suspicious to me, as the return skips the netif_set_default() and
SetDNSServer() calls.

Regards,
Michael


Am 11.01.19 um 07:45 schrieb Stephen Casner:
> Mark,
>
> Yes, my unit is set to connect only to my home network.  But even when
> set to scan it is unlikely to connect while driving.
>
> Rather than suppressing the netmanager work I was proposing to just
> suppress the messages if they would repeat from the previous time.
>
>                                                         -- Steve
>
> On Fri, 11 Jan 2019, Mark Webb-Johnson wrote:
>
>> Steve,
>>
>> Presumably, you are set to connect to a particular wifi access point? (not scanning client mode).
>>
>> It would be good to suppress the netmanager work if the link was already disconnected (or suppress the messages if the interface priority doesn't change, as a more general solution?). Same for the STA disconnection.
>>
>> Regards, Mark.
>>
>>> On 11 Jan 2019, at 6:17 AM, Stephen Casner <casner at acm.org> wrote:
>>>
>>> When driving, and therefore out of range of the home wifi, the
>>> following messges emitted every 10 seconds will fill up the log:
>>>
>>> I (2019-01-04 03:46:36.839) netmanager: Interface priority is pp2 (10.170.41.247/255.255.255.255 gateway 10.64.64.64)
>>> I (2019-01-04 03:46:36.889) netmanager: Set DNS#0 8.8.8.8
>>> I (2019-01-04 03:46:36.939) netmanager: Set DNS#1 8.8.4.4
>>> I (2019-01-04 03:46:36.989) esp32wifi: STA disconnected with reason 201
>>> I (2019-01-04 03:46:46.839) netmanager: Interface priority is pp2 (10.170.41.247/255.255.255.255 gateway 10.64.64.64)
>>> I (2019-01-04 03:46:46.899) netmanager: Set DNS#0 8.8.8.8
>>> I (2019-01-04 03:46:46.949) netmanager: Set DNS#1 8.8.4.4
>>> I (2019-01-04 03:46:46.999) esp32wifi: STA disconnected with reason 201
>>> I (2019-01-04 03:46:56.839) netmanager: Interface priority is pp2 (10.170.41.247/255.255.255.255 gateway 10.64.64.64)
>>> I (2019-01-04 03:46:56.889) netmanager: Set DNS#0 8.8.8.8
>>> I (2019-01-04 03:46:56.939) netmanager: Set DNS#1 8.8.4.4
>>> I (2019-01-04 03:46:56.979) esp32wifi: STA disconnected with reason 201
>>>
>>> I'd like to add code to suppress those messages when there is no
>>> change in state.  Any objections?
>>>
>>>                                                        -- Steve
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev

-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26





More information about the OvmsDev mailing list