-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Time-of-Flight (TOF) measurements on ESP32-S2? (IDFGH-3034) #5059
Comments
Hi @lubingxian, ToF is not supported yet. For updates please check https://esp32.com/viewtopic.php?f=10&t=14532 including the update history at the end of this post. "March 29, 2020: added Digital Signature, I2C, I2S, RMT support. Added Wi-Fi ToF to the yet unsupported list." |
Hi, |
Can we know an estimation at least? :) I've been interested since July, checking the mentioned forum each week, but since August does not seem like there's much progress. Thanks! |
@EpsilonZ - We are planning a beta release for the feature in a week or two. Depending on the feedback, we will make it available on master. |
Add FTM support for below configuration - 1. Station(connected) as Initiator with AP as responder 2. SoftAP as responder with the connected Station Added Station example with runtime FTM configurations. Update wifi lib with below additions - 1. Add FTM frame formation, IEEE definitions, event and IOCTL. 2. Implmenetations of FTM bursts, Measurements and RTT calculations Closes #5059
@jack0c thanks for implementation. I use Branch feature/FTM_SUPPORT (is this the correct one) Menuconfig: I activated all wifi/ftm function including log. Errors are as follows: Is there something missing, do i use the wrong branch or miss something, Thanks in advance for your help and the implementation of ftm. (OS windows 10, Python 3.7, ESP-IDF v4.3-dev-2102-g33b5260a6-dirty) BR SteFam |
Hi @sfambach, The functions are in WiFi library. Most likely your submodules are not updated. You can do so using "git submodule update --init --recursive". |
Hi @sagb2015! For me it's working. There are some configs that cause a crash but I guess you haven't full tested it. Until it is on master I won't worry too much about it. What it would be cool from you guys is to have an in-depth study on estimated distance errors on an Espressif lab in which you guys know there is nothing that can cause intereferences or distance errors. I think that would be perfect for the developers. From what I tested, at 10 meters i get a consistent estimation of 5,3-5,7 meters and when moving to 20m it gives a consistent estimation of 6.3-6,7 meters. My intuition is that the chip does not calculate in a linear way as you get farther (y=mx+n where m is 1). In close distances (1,1 meters) the results are not really good. Now, I know that WiFi ToF errors can be up to 1,3 - 2m but it would be cool to also have estimated errors in the results we got. I'm sure that the chip shows a error distribution (i.e normal distribution) that can be mitigated by applying some sort of correction. It would be cool if you guys provided more info on that. Maybe a calibration software? :) Huge thanks for the effort, it is a really cool feature that I'm sure a lot of developers will use. |
Hi @EpsilonZ, Thanks for your feedback! We have a second drop for the beta release that should fix some of the bugs and issues reported until now. It will also include providing raw hardware values to the users as is, so they can have their own way of using the data. As you rightly pointed, the distance calculation still needs more research and having more inputs from developers like you always helps. We are already evaluating different metrics such as mean with standard deviation, tilt of correctness towards the shorted reported distance etc. Will keep you posted! |
I have done some simple tests with two ttgo ESP32-s2 Display nodes. I think the distances between the nodes is currently to small (1-2m), the value for the time measurements are not deterministic for me. but I will do a different test soon. After some Measurements both nodes (AP and STA) are stopping to work together, I will report when I have more informations. SteFam |
Hi @sagb2015 thanks a lot for the response! I'm really looking for the second frop of the beta release :) I've worked a lot with Ultrawideband positioning, so as soon as you get that released I'll be conducting a study comparing both so you guys can check how are the differences and maybe make it available for the developers. I'm curious if when doing the research will you guys test with NLOS (no line of sight) and LOS (line of sight). It would be cool to have both and see the impacts. When doing this type of estimations, you usually have a table with refraction indexes for each type of material and width of the material (i.e 30cm concrete wall does affect different than a 30cm wood wall). I've got a lot of experience with it so if you want to discuss it, we can maybe create another issue discussing tests that would be cool to have. I wish you a great new year! |
Hi @sagb2015, I tested TOF on two ESP32-S2-DevKitM-1 and ftm example from git. I am using latest feature/ftm_support esp-idf. Basic settings (32readings, 200 ms) works great and I am getting reasonable ressults. But when I try parameter -p 0 softAP always went down: ftm> E (561255) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: I need quick mesurement and I am not interested on fine precission. Thanks in advance |
Instead of a new beta release, the FTM feature has been now merged with master. Apart from stability fixes, the new changes include ability to perform FTM without any connection and ability to receive raw data at the end from an event. Please refer the updated README from the FTM example for details, thanks! |
All that seems interesting for my application. Before a go further. |
Do you have an example to perform FTM without any connection? |
It's given in the README.md in the FTM example folder, you need to scan first to find eligible AP's and issue |
Is your feature request related to a problem? Please describe.
I didn't find any document about the Time-of-Flight (TOF) measurements on ESP32-S2. Is it supported by the esp-idf now?
Describe the solution you'd like
Could you release a document or a demo?
The text was updated successfully, but these errors were encountered: