Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Wifi Scan doesn't seem to work on Lilygo C1101 #68

Closed
fromport opened this issue Dec 26, 2024 · 6 comments
Closed

[BUG] Wifi Scan doesn't seem to work on Lilygo C1101 #68

fromport opened this issue Dec 26, 2024 · 6 comments
Labels
bug Something isn't working
Milestone

Comments

@fromport
Copy link

fromport commented Dec 26, 2024

Hardware: lilygo CC1101
Software: 0.5.2 (beta)

Describe the bug
Main menu : I select Wi-Fi -> get 3 options: Scan/ Sniff / Go back
I press Scan
see scanning take place, % goes to 100%, see all the different channels increase, ends with channel 13
100-channel13

Then Display shows "No network found."
no_network

Screenshot WifiAnalyzer app on android
wifiscan

I have many IOT devices on 2.4Ghz, have 3 AP's with 2.4Ghz
Go back to menu, click on "sniff"
On the screen
Sniffing packets...
Sniffed packets: 1
[save]

Count does not increase

To Reproduce
See above

Expected behavior
See a list of available SSID's.
I saw it once. but never again.

@fromport fromport added the bug Something isn't working label Dec 26, 2024
@andreock andreock moved this to In Progress in Capibara Zero Firmware Dec 27, 2024
@andreock andreock added this to the 0.5.2 milestone Dec 27, 2024
@stylesuxx
Copy link

Same hardware - scanning works fine on my end.
I can scroll through the results just fine - would prefer to see a list of results though instead of having "cards" of each of them...

Hardware: lilygo CC1101
Firmware: 0.5.2 (beta) slightly more up to date though.

@fromport
Copy link
Author

fromport commented Dec 28, 2024

Screenshot_20241228-101204
I just updated to the latest 0.5.2 beta (with the fix for #67 ).
Had to disconnect the battery so really from scratch, still nothing.
Could it be depending on the amount of AP's it finds ? could you overload the results ?

@andreock
Copy link
Member

it seems to be a recurrent problem of ESP32. I don't find a real solution yet. I already do WiFi.disconnect(); delay() then start the scan but sometimes it stills fail(also to me).

@andreock
Copy link
Member

capibaraZero_0_5_2_lilygo_t_embed_cc1101_def_wifi.zip
Can you try this one? It use recommanded settings by EspressIf(shorten channel time)

@andreock
Copy link
Member

andreock commented Dec 28, 2024

capibaraZero_0_5_2_lilygo_t_embed_cc1101_wifi_fix2.zip
This one seems better in my opinion. It implements a fix that I found on official Espressif Github and fixes a bug about GUI and WiFiScan that sometimes wasn't synchronized so that GUI printed "No networks Found" even if networks was found. (this version have a slower WiFIScan due to WiFI stack initialization)

@fromport
Copy link
Author

fromport commented Dec 29, 2024

While scanning it now "jumps" through all the channels (way faster then before) and I can see the result.
Nice!
I am going to try it a few more times and see if it will fo it all times.
So far I am really happy and impressed by your feedback and ability to fix things.
Thanks a lot !

UPDATE
After several power cycles/ suspend/resume it always shows output of the scan.
So for me, this issue has been resolved!

@fromport fromport changed the title [BUG] Wifi Scan doesn't seem to work on Liligo C1101 [BUG] Wifi Scan doesn't seem to work on Lilygo C1101 Dec 29, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Capibara Zero Firmware Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

3 participants