ESP32 RF Test Tool and TX Tone Functionality

Jerrold
Posts: 1
Joined: Mon May 09, 2022 11:22 pm

ESP32 RF Test Tool and TX Tone Functionality

Postby Jerrold » Mon May 09, 2022 11:54 pm

I'm trying to use an ESP32 to generate a 2.4 GHz continuous wave. I'm currently using the ESP32 RF Test Tool, which gives me the option to generate a continuous TX Tone in the WiFi test mode. It's exactly what I need, but unfortunately only allows me to use the 14 WiFi channels for my frequency. If I switch to BT test mode, I have access to all of the Bluetooth channels, but the output power is much lower, and I need the higher power from WiFi.

Therefore, I have two questions:

1. Is there a way for me to replicate the WiFi TX Tone from the ESP32 RF Test Tool programmatically in user code, using the ESP-IDF?
2. Is it possible to generate a TX Tone with an offset from the WiFi channel frequency? I have found that the TI CC3200 has this ability and I'm hoping to be able to do this with the ESP32.

Attached is just a screenshot of the ESP32 RF Test Tool.

Thanks for the help.
Attachments
ESP32RFTestTool.png
ESP32RFTestTool.png (27.15 KiB) Viewed 3722 times

goldzwm
Posts: 5
Joined: Mon Aug 29, 2022 12:44 pm

Re: ESP32 RF Test Tool and TX Tone Functionality

Postby goldzwm » Sun Oct 02, 2022 10:28 am

Did you find any way to do this in the end?
I'm looking into the same problem and can't find any resources.

doragasu
Posts: 16
Joined: Sat Apr 27, 2019 5:18 pm

Re: ESP32 RF Test Tool and TX Tone Functionality

Postby doragasu » Thu Jul 27, 2023 7:12 am

This feature could also save me a lot of time for some lab tests, so I dug a bit more into it without success. My findings in case anyone wants to try: the ESP32 ROM exports three functions with suspicious names:

* rom_start_tx_tone()
* rom_start_tx_tone_step()
* rom_stop_tx_tone()

The stop function takes one argument, the start_tx_tone_step() takes 6 arguments, and the start_tx_tone() apparently also takes 6 arguments (not completely sure about this). I played a bit with start_tx_tone() and start_tx_tone_step() feeding random values and couldn't get the device to output anything, so it will take either support from Espressif or someone smarter than me looking into this to figure out how these functions work (assuming they are the ones that output the tone).

doragasu
Posts: 16
Joined: Sat Apr 27, 2019 5:18 pm

Re: ESP32 RF Test Tool and TX Tone Functionality

Postby doragasu » Fri Jul 28, 2023 10:44 am

In an interesting turn of events, this seems to be supported by latest esp-idf (5.1), including documentation and an usage example!

Unfortunately only ESP32-S3 and ESP32-C3 support this feature right now, so for the good old ESP32, we still have no way to do it. I have opened a GitHub issue to see if we can get the ESP32 supported.

Who is online

Users browsing this forum: Bing [Bot], Gaston1980, Google [Bot] and 387 guests