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

Fail ESP32S2 FTM test with Android Smartphone. (IDFGH-5024) #6810

Closed
TeiShim opened this issue Apr 1, 2021 · 16 comments
Closed

Fail ESP32S2 FTM test with Android Smartphone. (IDFGH-5024) #6810

TeiShim opened this issue Apr 1, 2021 · 16 comments
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Feature Request Feature request for IDF

Comments

@TeiShim
Copy link

TeiShim commented Apr 1, 2021

When I tested FTM on ESP32-S2(AP) with Android Smartphone(STA), I could see the FTM response message, but can NOT catch the results of RTT from ESP32-S2 AP as following link:
https://esp32.com/viewtopic.php?f=13&t=19919&sid=54c30292f4b42a7f805f9db8351182f7

Do you have a plan that updating successfully the FTM test with Android ?
ref) https://source.android.com/devices/tech/connect/wifi-rtt

BRs,
Taehyoung Shim

@TeiShim TeiShim added the Type: Feature Request Feature request for IDF label Apr 1, 2021
@espressif-bot espressif-bot added the Status: Opened Issue is new label Apr 1, 2021
@github-actions github-actions bot changed the title Fail ESP32S2 FTM test with Android Smartphone. Fail ESP32S2 FTM test with Android Smartphone. (IDFGH-5024) Apr 1, 2021
@zhangyang428
Copy link

@TeiShim Hi, can you use the sniffer probe to capture FTM? Can you tell me the format of the captured FTM packet?
Thank you!

@TeiShim
Copy link
Author

TeiShim commented Apr 26, 2021

@zhangyang428 Hi, Zhang Yang. Yes, we can capture FTM packets with Wireshark as you can see: https://www.wireshark.org/
And, you can also see the format of FTMs in the standard of IEEE 802.11-2016.
If you need further information. I can send you the wireshark files.

@zhangyang428
Copy link

@TeiShim Thanks! I need further information for FTM frame. Can you share how you capture these data frames? My email address:
dlutzhangyang@gmail.com

@zhangyang428
Copy link

@TeiShim Thanks for your help! I also tried to capture frames of FTM, but not as informative as yours. For example, in the data frames that I've captured, there aren't Radiotap Header v0 or 802.11 radio information. How do you capture this information? Do you turn on some options before capturing a data frame?

@TeiShim
Copy link
Author

TeiShim commented Jun 23, 2021

@zhangyang428 Sorry for late responding. This webpage will be help you.
https://www.wireshark.org/docs/dfref/w/wlan.html

@nachiketkukade
Copy link
Collaborator

FTM on ESP32-S2(AP) with Android Smartphone(STA)

@TeiShim , as discussed on the ESP32 Forum thread, we're planning to include support for this configuration in IDF v4.3.1. I'll provide an update when this version is released.

@TeiShim
Copy link
Author

TeiShim commented Jun 30, 2021

@nachiketkukade
Thank you for notification. Could you let me know when IDF v4.3.1 will be released?
Depending on the release date, we will make a test schedule.

@TeiShim
Copy link
Author

TeiShim commented Sep 12, 2021

@nachiketkukade
Is FTM test connecting Android phone available in IDF v4.3.1? I tested, but fail again.

@crackwitz
Copy link
Contributor

crackwitz commented Dec 8, 2021

I just tried this again with esp-idf master from today, an esp32-c2 (S2 of course), and a Google Pixel 4a running Google's WifiRttScan.

Something's still not quite right, but I can't tell right now if it's the google app's fault, or ESP, or both.

Behavior: phone/app gets no measurements while disconnected, but does get measurements as soon as it's connected to any AP.

The phone doesn't have to connect to that ESP32-C2 (S2 of course) AP. FTM sessions to the FTM-capable softAP succeed even if the phone's wifi connects to another non-FTM-capable regular ESP32 that runs a softAP.

I currently don't have FTM-capable APs at hand. I think the app managed to FTM to one of those without needing to be connected to any access point, but I might be mistaken.

Update: that's a definite phenomenon. With my Android I can FTMI to various access points (Linksys Velop for example), without needing the phone to be connected to any AP... but FTMI to my ESP32-C2 (S2 of course) only yields data on the phone if the phone is connected to any AP.

Also, things seem to be glitchy, failing for half the sessions, both with MIT's WifiRttScanX app as well as google's original app.

That makes me think it's not about the phone connecting to any AP, but the ESP32 needing to see the phone sending anything on wifi (other than the session initiation) to respond to it... it's strange and I'm just generating hypotheses.

@nachiketkukade
Copy link
Collaborator

@crackwitz , I guess you mean ESP32-S2. I re-tested with the Pixel with no connection, and yes, there seems to be some issue there. Protocol wise there seems to be nothing different going on with or without the connection, but the issue is not there with the Velop AP. I also tested with Mi 11X Pro, it doesn't have this issue, could be some quirky behaviour due to different implementations. Regardless, I'll investigate further and update.

@nachiketkukade
Copy link
Collaborator

Is FTM test connecting Android phone available in IDF v4.3.1? I tested, but fail again.

@TeiShim , yes, the support is there in v4.3.1. Can you pls confirm which Smartphone you tested with?
Also I must warn that the accuracy will be very low.

@crackwitz
Copy link
Contributor

Just thought I should mention the phenomenon. I don't actually need Android and ESP32 to cooperate. That's just a convenient way to check a few things.

@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed and removed Status: Opened Issue is new labels Feb 27, 2024
@nachiketkukade
Copy link
Collaborator

An update to anyone interested - we've done more tests with Pixel devices and fixed some issues. Changes are expected to merge in coming weeks.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: Reviewing Issue is being reviewed labels Mar 18, 2024
@TeiShim
Copy link
Author

TeiShim commented Apr 5, 2024

Thank you @nachiketkukade, Is this FTM function able to use in 5GHz with ESP32-C5?

@nachiketkukade
Copy link
Collaborator

nachiketkukade commented Apr 12, 2024

@TeiShim , support for FTM in 5GHz for C5 is planned

@crackwitz
Copy link
Contributor

crackwitz commented Apr 12, 2024

@TeiShim , support for FTM in 5GHz for C5 is planned

Off topic but perhaps related: are there plans for 802.11ba Wake-Up Radio (WUR, "Wake on WLAN") in the C5 or P4 or other series?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Feature Request Feature request for IDF
Projects
None yet
Development

No branches or pull requests

5 participants