hardkernel / smartpower3

11 stars 6 forks source link

Problem with repeated WiFi AP point selection after failed AP connect #20

Closed cedel1 closed 1 year ago

cedel1 commented 1 year ago

In serial, WiFi command mode, when one selects AP and then enters no or wrong password, a weird behavior happens.

Steps to reproduce:

  1. Connect to SP3 via serial
  2. Enter WiFi command mode
  3. Select command 3 ("Scan & Connection AP")
  4. After the scan has finished, select AP
  5. At the password prompt, enter wrong password
  6. SP3 tries to connect to AP predefined number of times (currently 20)
  7. After the last attempt is made, connect fails and menu is shown again.
  8. When selecting command 3 ("Scan & Connection AP") again, no selection of APs is shown and selection options are "off" (please see picture)

Screenshot from 2023-03-14 18-37-32

Expected behavior:

After the first connect fails and command 3 is called again, I would expect one of two things to happen:

a. AP list from the original scan is shown and correct selection is allowed b. a new scan is started (all info from previous scan is discarded) and selection is allowed

Not sure yet which option would be better - saving one scan and possibly having stale scan info (a.) versus scanning every time when user accidentally enters wrong password (b.).

Maybe a combination of both would be best - using original scan (for example) 3 times and after that (and/or after predefined timeout) making a new scan.

cedel1 commented 1 year ago

Will have a look if I can do anything about it and make a PR.

cedel1 commented 1 year ago

Fix is in the process (https://github.com/hardkernel/smartpower3/pull/24)

cedel1 commented 1 year ago

Fixed in release 2.0 (https://wiki.odroid.com/accessory/power_supply_battery/smartpower3#apr03_v20).