openvehicles / Open-Vehicle-Monitoring-System-3

Open Vehicle Monitoring System - Version 3
http:///www.openvehicles.com/
Other
599 stars 228 forks source link

WiFi connection attempt every 10 sec fills log #183

Open slcasner opened 5 years ago

slcasner commented 5 years ago

When the car is away from its known WiFi connection points, the attempts to find an access point every 10 seconds will write four log messages each time. When logging to a file, this fills up space faster than is desirable. One part of the solution might be to not attempt WiFi connections while the car is moving, although that might preclude connecting to a phone hotspot, for example. Another part of the solution might be to back off the rate after some number of attempts at a particular location. (Like the exponential backoff that is part of the Ethernet collision resolution protocol. Ethernet collisions? What's that?)

I (2018-12-31 03:08:35.066) esp32wifi: STA disconnected with reason 201 I (2018-12-31 03:08:44.916) netmanager: Interface priority is pp2 (10.170.41.247/255.255.255.255 gateway 10.64.64.64) I (2018-12-31 03:08:44.966) netmanager: Set DNS#0 8.8.8.8 I (2018-12-31 03:08:45.036) netmanager: Set DNS#1 8.8.4.4 I (2018-12-31 03:08:45.086) esp32wifi: STA disconnected with reason 201 I (2018-12-31 03:08:54.916) netmanager: Interface priority is pp2 (10.170.41.247/255.255.255.255 gateway 10.64.64.64) I (2018-12-31 03:08:54.966) netmanager: Set DNS#0 8.8.8.8 I (2018-12-31 03:08:55.026) netmanager: Set DNS#1 8.8.4.4

mdallaire commented 4 years ago

I just want to add that I am seeing the same event sent through MQTT (server v3) every 10-20 sec to the /event topic, this does have a serious impact on data consumption on 3g.