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

ESP32-C5-DevKitC-1 iperf says 2G is started as default | band set 2G - scan not working - switching to 5G - scan possible but 2.4GHz Hotspots - 5G not working (swapped) (IDFGH-13638) #14521

Open
ESP32DE opened this issue Sep 6, 2024 · 22 comments
Assignees
Labels
Status: Reviewing Issue is being reviewed

Comments

@ESP32DE
Copy link
Contributor

ESP32DE commented Sep 6, 2024

grafik

putty BAUD: 138240 ( 48 MHz QFN 48 Version )

( band 2) should been 2.4 GHz, no 2.4 GHz AP found but there are 2.4 GHz AP installed

grafik

( band 5 ) should been 5.8 GHz, scans 2.4 GHz AP's which are installed but no 5.8 GHz AP but there also 5.8 GHz AP installed

grafik

( fresh start should be standard band 2 )
setup AP -> ok but ( but channel is from 5G "112")

grafik

( band 5 )
after restart set to 5G
setup AP - > ok ( but channel is from 2G "13")
setup a server for test -> ok but
FYI: iperf -s not working, ports are allways closed after setup the server

grafik

( 2G has no channel 112 - looks like things swapped ( 5G not ready ? )

grafik

ESP-IDF
grafik

@suda-morris do you have a new iperf version fw bin for the ESP32-C5-DevKitC-1 ( V0.0 ) i think things/ptr are swapped / not ready should be work

edit:

grafik

edit: typo ( thinks -> things/ptr )

@espressif-bot espressif-bot added the Status: Opened Issue is new label Sep 6, 2024
@github-actions github-actions bot changed the title ESP32-C5-DevKitC-1 iperf says 2G is started as default | band set 2G - scan not working - switching to 5G - scan possible but 2.4GHz Hotspots - 5G not working (swapped) ESP32-C5-DevKitC-1 iperf says 2G is started as default | band set 2G - scan not working - switching to 5G - scan possible but 2.4GHz Hotspots - 5G not working (swapped) (IDFGH-13638) Sep 6, 2024
@lozaning
Copy link

lozaning commented Sep 7, 2024

I can replicate this on the units i've got. the scan results are flipped for the bands. When band 2 is i set i get all 5ghz networks, when band 5 is set I get all 2.4Ghz networks. Both scans work fine, they just return the wrong results for me.

  1. turn unit on and connect over UART
  2. unit claims to be set to 2ghz by default
  3. start scan
  4. see that all returned networks are known 5Ghz networks, and channels returned are for 5Ghz networks
  5. set band to 2
  6. start scan
  7. see the same networks returned as in step 4, all known 5Ghz networks
  8. set band to 5
  9. start scan
  10. see that all returned networks are for known 2.4Ghz networks, and reported channels are all 2.4Ghz channels
  11. start scan with channel set to one in the 5Ghz range with the band still set to 5
  12. see networks that are all 2.4ghz networks again
    image

iperf> version IDF Version:v5.4-dev-624-g3d167a46ff-dirty Chip info: model:Unknown cores:1 feature:/802.11bgn/BLE/External-Flash:4 MB revision number:0

@hansw123
Copy link
Collaborator

@lozaning @ESP32DE
can you provide the idf commit ,in master iperf ,we don.t have band command
and in our code band 2 means 5g ,band 1 means 2.4g
image

@hansw123
Copy link
Collaborator

@lozaning @ESP32DE

by the way can your provide the iperf code

@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Sep 12, 2024
@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 12, 2024

@hansw123
thank you for your reply.

am confused now :)
" band 2 means 5g ,band 1 means 2.4g"

where we get the info to use band 2 for 2.4G and band 5 for 5.8G ..

after your response i can confirm that band 1 works for 2.4G and list 2.4G AP
also band 2 works for 5.8G and list 5.8G AP and can be found

grafik

i can also confirm that band 3 works for a scan that list 2.4G and 5.8G
grafik

btw there is also
band 5
band 6
band 7
band 9
band 10
..
not sure perhabs different sub modes for each band.
cause this is the factory firmware which comes with the ESP32-C5-DevKitC-1
we have no source code for this. it is also different from the master code example

mastercode main.c
does not have ESP32-C5 5G band

grafik

bootlog ESP32-C5-DevKitC-1

grafik

idf iperf commit: ESP-IDF v5.4-dev-624-g3d167a46ff-dirty

have also a look to the memory leak

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 12, 2024

image

got it - and noted in the master. i will try to switch to master for testing things with the ESP32-C5

note: in the ESP-IDF V5.4-dev there is no wifi_band_mode_t but there is wifi_band_t

your reply helped for this - i noted few missings in the ESP-IDF 5.4-dev and it also not compile successful the iperf example from ESP-IDF V5.4-dev so i did not switch to 5.4-dev for this yet - i work with the V5.3-dirty but i will give the Masterbrunch a try for ESP32-C5 now

have to test also server / client again - this did not work / port was closed after opening.

thank you for your reply!

edit: add version
( it should been the ESP32-C5- REV 0 with N8R4 8MB Flash and 4MB psram)

grafik

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 13, 2024

@hansw123

test with 5G, setup as AP and setup as simple (tcp) server - default port - no success

grafik

test with 2G, setup as AP and setup as simple (tcp) server - default port - no success

grafik

edit:
ESP-IDF 5.4 does not have "wifi_band_mode_t" - so i do not switch in iperf any further mode only the
simple standard iperf -s
i did try also to connect ESP32-C5 as a STA to an HOME AP and then config it as server, same result.

plz have also a note to the memory leak issue

@hansw123
Copy link
Collaborator

@hansw123

test with 5G, setup as AP and setup as simple (tcp) server - default port - no success

grafik

test with 2G, setup as AP and setup as simple (tcp) server - default port - no success

grafik

edit: ESP-IDF 5.4 does not have "wifi_band_mode_t" - so i do not switch in iperf any further mode only the simple standard iperf -s i did try also to connect ESP32-C5 as a STA to an HOME AP and then config it as server, same result.

plz have also a note to the memory leak issue

when the device set as iperf server,it shoule have other device to connect socket with it in few seconds, if not the server will close auto

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 13, 2024

@hansw123
thank you for reply

5.8G ( band 2) there is no join to AP possible from the second ESP32-C5 ( client )
there are different memory free ( leaks ) there.
should not been different on start and same cmd also same firmware.

1 usb connected
2 putty start and connect
3 restart
4 free ( left side: | right side: )
5 version ( see picture )
6 free ( left side: | right side: )
7 left side set band 2 | right side set band 2
8 free ( left side: | right side: )
9 left side set AP blobfish5g 1234567890 | right side set STA blobfish5g 1234567890
10 join AP from right side not possible
11 restart
12 free
13 band 1
14 free ( left side: | right side: )
15 restart
16 free ( left side: | right side: )

steps 1 .. 8

grafik

steps 9 .. 10

grafik

steps 12 .. 14

grafik

step 16

grafik

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 13, 2024

@hansw123

more steps

  • restart
  • free
  • band 2
  • free
  • left side set AP blobfish5g 1234567890 | right side scan

no AP found.

the same procedure visa vice .. no better result

grafik

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 13, 2024

further steps

"switch on" the Home AP and i can scan the 5G Home AP, but not the ESP32-C5 5G Modul AP

grafik

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 13, 2024

the Factory FW is not ready for 5G AP mode between SoC's

further steps

  • restart
  • band 2
  • left side set AP blobfish5g_left 1234567890 | right side set AP blobfish5g_right 1234567890

grafik

scan with phone found them

grafik

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 13, 2024

further steps

using a 3rd ESP32-C5 and scan the band 2

  • connect usb
  • connect putty
  • restart
  • free
  • version
  • band 2
  • scan

grafik

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 13, 2024

last but not least

setup a further ESP32-C5 band 2 5GHz AP mode

  • usb connect
  • putty connect
  • restart
  • band 2
  • mid set AP blobfish5g_mid 1234567890

grafik

scan with phone

grafik

i can but it makes no sense to setup more
i can not confirm that any factory things fails cause Hardware
i think it is more a Software thing - factory fw is not ready yet at this time point with ESP-IDF V5.4
also the chip info is not right, i think the factory fw does not support this yet.

iperf> version
IDF Version:v5.4-dev-624-g3d167a46ff-dirty
Chip info:
model:Unknown
cores:1
feature:/802.11bgn/BLE/External-Flash:4 MB
revision number:0
iperf>

i will try the master branch next time.
the factory fw should been updated! there is no way to work with this yet

best wishes

edit:
no further WiFi test with this factory fw sry
FYI: the LED blink different color with press the button in serie
... it's working yeah ;-)

grafik

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 13, 2024

after using masterbranch mixed with parts newer and older lib , ESP-IDF V 5.3 dirty, ESP-IDF V 5.4 dirty and factory FW RE and building a CFW

i have this result now:

but i must say this:
at this time point - the band 2 ( 5Ghz ) mode and setup the ESP32-C5 itself as AP and CLI and connect them together
does not working in the 5GHz ( band 2 ) , the AP mode does not support a connect from a client - that is fact at time point yet. DOT. i think it's simple not supported yet in the 5GHz band.

1st steps

  • set up a Home 5Ghz AP
  • set up 2 ESP32-C5 Kit on band 2 ( 5GHz ) and connect to the Home 5GHz AP
  • prepair the 2 ESP32-C5 kit
    • one as server ( 192.168.155.86 )
    • one as client ( 192.168.155.39 )

grafik

next steps

  • press enter , start the server , start the client and generate net traffic

grafik

last but not least

  • very limited running with the help of external components (1Gbit AP Wifi)

grafik

It's such a pity and sad that once again no one from espressif ( @igrr @costaud ) itself gets in touch. It would be more helpful to give some information that it just doesn't work yet, instead some people run into the wall again.

I'm closing this now because I actually expect people to take it seriously and to heart when products are delivered.
No, they prefer to remain silent again. Unfortunately, this makes strong marketing the weakest link in the presentation.

@hansw123
Copy link
Collaborator

@ESP32DE
very very sorry for late reply, Thank you very much for your feedback on the problem, your test steps are the most detailed and conscientious I've ever seen!I can feel your passion for espressif products!
But since I'm based in China, there might be a bit of a time difference.I apologize for not getting back to you in time!

@hansw123
Copy link
Collaborator

@ESP32DE
This is an issue we always deal with at a very high priority. It's safe to assume now that the firmware you got is relatively early and does have some issues.

@hansw123
Copy link
Collaborator

@ESP32DE
maybe you can try 34813ec this commit
and use iperf example retest.
Some of the issues you mentioned have been found internally and fixed on this release

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 14, 2024

@hansw123
just read in .. and do fast reply
thank you for your effort and service
JLYK there is a sync in the pipe #14540 (comment)
i come back to this in few mins..

@ESP32DE ESP32DE reopened this Sep 14, 2024
@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 14, 2024

@ESP32DE maybe you can try 34813ec this commit and use iperf example retest. Some of the issues you mentioned have been found internally and fixed on this release

thank you @hansw123
i give it a try and let you asap know
i will compare it with the sync in #14540 (comment)

i am not sure does the 34813ec explizit helps cause target lcd, mipi, mcpwm and rmt ( dsi )
grafik

but i will investigate in this code -
thank you very much for the hint with band 1 and band 2 -
i did not checked this in the master directly by searching
but i was missing some types ..which was seen symbolic in the Factory FW

will update this here but for now
wish you also a happy mid-autumn (中秋节) festival in advance if we not read/write next days
( yes its more as passion - )
best wishes

@hansw123
Copy link
Collaborator

@ESP32DE
My commit point for this was before #14540 (comment). Also chose this point to make sure that some of the wifi fixes have been merged.

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 15, 2024

@hansw123
checked and figured it out
one bit is different - you see ? :)

grafik

thank you very much for your efforts and service to bring me to the right spot.
i just test all now again -
i will investigate where the chip infos is gone
should come from sdkconfig.h usually - i will check.
keep this here in update state for any news.

;-)

@ESP32DE
Copy link
Contributor Author

ESP32DE commented Sep 17, 2024

@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed and removed Status: In Progress Work is in progress labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reviewing Issue is being reviewed
Projects
None yet
Development

No branches or pull requests

5 participants