[Ovmsdev] Time for release 3.2.016?

Michael Balzer dexter at expeedo.de
Mon Feb 15 23:49:14 HKT 2021


Steve,

did you run my latest change there? If so, was that with default timing 
or with a changed configuration?

A full scan now takes ~ 2 seconds with default timing on my modules, so 
I guess you still had the old version running.

Also, the AP isn't taken down, and the WiFi module should of course send 
a beacon between the channels, but it's unfortunately closed source, so 
we can only guess what it does there from the effects observed. With 
scanning for up to the 500 ms per channel, my guess was that became too 
long for your tablet.

We only scan if no client network is connected, so while you're in your 
home network, it won't scan.

Please try again with default scan timing.

Regards,
Michael


Am 15.02.21 um 16:28 schrieb Steve Davies:
> Hi,
>
> I went out yesterday and looking now at the esp32wifi log entries:
>
> Here's when it doesn't find anything:
>
> 2021-02-14 15:31:25.113 SAST V (13273) esp32wifi: StartConnect: scan 
> started
> 2021-02-14 15:31:28.433 SAST V (16593) esp32wifi: EventWifiScanDone: 
> no access points found
>
> Here's where it finds "foreign" ones:
>
> 2021-02-14 15:45:23.852 SAST V (33292) esp32wifi: StartConnect: scan 
> started
> 2021-02-14 15:45:27.482 SAST V (36922) esp32wifi: ScanDone: #01 
> ssid='BMWi23024 CarPlay' bssid='b8:9f:09:26:0f:9f' chan=11 rssi=-49
> 2021-02-14 15:45:27.482 SAST V (36922) esp32wifi: EventWifiScanDone: 
> no known SSID found
>
> and:
>
> 2021-02-14 15:47:11.947 SAST V (13287) esp32wifi: StartConnect: scan 
> started
> 2021-02-14 15:47:16.177 SAST V (17517) esp32wifi: ScanDone: #01 
> ssid='BMWi23024 CarPlay' bssid='b8:9f:09:26:0f:9f' chan=11 rssi=-54
> 2021-02-14 15:47:16.177 SAST V (17517) esp32wifi: ScanDone: #02 
> ssid='Residenz2' bssid='c8:3a:35:50:a2:d0' chan=6 rssi=-91
> 2021-02-14 15:47:16.177 SAST V (17517) esp32wifi: ScanDone: #03 
> ssid='mywifi' bssid='04:95:e6:d1:f2:b0' chan=5 rssi=-93
> 2021-02-14 15:47:16.177 SAST V (17517) esp32wifi: ScanDone: #04 
> ssid='HUAWEI-A5F9' bssid='34:12:f9:fd:a5:f9' chan=11 rssi=-95
> 2021-02-14 15:47:16.177 SAST V (17517) esp32wifi: EventWifiScanDone: 
> no known SSID found
>
> and:
>
> 2021-02-14 15:47:31.947 SAST V (33287) esp32wifi: StartConnect: scan 
> started
> 2021-02-14 15:47:36.477 SAST V (37817) esp32wifi: ScanDone: #01 
> ssid='BMWi23024 CarPlay' bssid='b8:9f:09:26:0f:9f' chan=11 rssi=-50
> 2021-02-14 15:47:36.477 SAST V (37817) esp32wifi: ScanDone: #02 
> ssid='TP-LINK_58FEB6' bssid='c4:e9:84:58:fe:b6' chan=6 rssi=-89
> 2021-02-14 15:47:36.477 SAST V (37817) esp32wifi: ScanDone: #03 
> ssid='TP-Link_F60F' bssid='d8:47:32:04:f6:0f' chan=1 rssi=-92
> 2021-02-14 15:47:36.477 SAST V (37817) esp32wifi: ScanDone: #04 
> ssid='TP-Link_Guest_F60F' bssid='da:47:32:14:f6:0f' chan=1 rssi=-92
> 2021-02-14 15:47:36.477 SAST V (37817) esp32wifi: ScanDone: #05 
> ssid='' bssid='c4:e9:84:58:f7:8e' chan=6 rssi=-92
> 2021-02-14 15:47:36.477 SAST V (37817) esp32wifi: ScanDone: #06 
> ssid='David's Unifi' bssid='0a:18:d6:a9:f9:a6' chan=1 rssi=-93
> 2021-02-14 15:47:36.477 SAST V (37817) esp32wifi: ScanDone: #07 
> ssid='Shalombosch' bssid='d4:6a:91:70:c9:e4' chan=7 rssi=-93
> 2021-02-14 15:47:36.477 SAST V (37817) esp32wifi: EventWifiScanDone: 
> no known SSID found
>
> So the scan seems to take 4-5 seconds.
>
> As the car drives along the scan picks up a wide variety of SSIDs.
>
> I'm sure that you are right that the SSID disappears for long enough 
> for the tablet to lose connection.  Unfortunately the tablet then 
> jumps to LTE (so no more connection to 192.168.4 network) and it is 
> quite a while before IT notices that the SSID is back and reconnects.
>
> I don't really follow though why the AP is taken down to do this since 
> when the car is home it is able to connect to my home Wifi AND operate 
> the AP?
>
> From the log it appears that sometimes the scan is done every 10 
> seconds and sometimes it seems to be every 80 seconds or so.
>
> Obviously a scan done every 10 seconds that takes the SSID down for 4 
> to 5 seconds isn't going to make the AP near useless.
>
> Steve
>
>
> On Sat, 13 Feb 2021 at 20:50, Michael Balzer <dexter at expeedo.de 
> <mailto:dexter at expeedo.de>> wrote:
>
>     You're right, the same scan timing parameters are applied in fixed
>     mode after losing the connection.
>
>     So you need to try disabling client mode.
>
>
>     Am 13.02.21 um 19:43 schrieb Steve Davies:
>>     Hi Michael,
>>
>>     On Sat, 13 Feb 2021 at 20:31, Michael Balzer <dexter at expeedo.de
>>     <mailto:dexter at expeedo.de>> wrote:
>>
>>         do you run the wifi client in scanning mode or with a fixed SSID?
>>
>>
>>     Gotta say I don't know.
>>
>>     I have added the SSID  for the house.  And only that one.
>>
>>     I don't see anything in the settings about scanning, or on the
>>     web interface?
>>
>>     OVMS# config list wifi.ssid
>>     wifi.ssid (protected writeable)
>>       DvDevs
>>     OVMS# config list wifi.ap
>>     wifi.ap (protected writeable)
>>       DvPanda
>>
>>     But even with just DvDevs defined, surely if the OVMS is going to
>>     reconnect when I get home then it will have to scan from time to
>>     time for DvDevs otherwise how would it ever know to reconnect?   
>>     (Well - one idea is to be able to tell it to only look if you are
>>     in a specific location ("Home").
>>
>>     I did enable verbose logging for esp32wifi and I'll see what that
>>     tells me.
>>
>>     Steve
>>
>>     https://www.telviva.co.za/legal/email-disclaimer
>>     <https://www.telviva.co.za/legal/email-disclaimer>
>>
>>     _______________________________________________
>>     OvmsDev mailing list
>>     OvmsDev at lists.openvehicles.com  <mailto:OvmsDev at lists.openvehicles.com>
>>     http://lists.openvehicles.com/mailman/listinfo/ovmsdev  <http://lists.openvehicles.com/mailman/listinfo/ovmsdev>
>
>     -- 
>     Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
>     Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
>
>     _______________________________________________
>     OvmsDev mailing list
>     OvmsDev at lists.openvehicles.com <mailto:OvmsDev at lists.openvehicles.com>
>     http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>     <http://lists.openvehicles.com/mailman/listinfo/ovmsdev>
>
>
> https://www.telviva.co.za/legal/email-disclaimer 
> <https://www.telviva.co.za/legal/email-disclaimer>
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20210215/901bddaf/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20210215/901bddaf/attachment.sig>


More information about the OvmsDev mailing list