Send and recieve raw WiFi packets

teebrin
Posts: 1
Joined: Wed Dec 02, 2015 3:44 pm

Send and recieve raw WiFi packets

Postby teebrin » Mon Jan 25, 2021 9:40 pm

Hi,

I'm trying to send raw WiFi data packets and to receive them on another ESP32. I'm using esp_wifi_80211_tx() to send the packets to a specific address (not broadcast). I'm using promiscuous mode to receieve them, callback registered through esp_wifi_set_promiscuous_rx_cb(). Note that those raw packets are sent while using the ESP32 in STA mode.

My issue is that packets are sent many times because they are not acknowledged (ACK) by the reciever (which is in promiscuous mode).

Is there a way to configure the ESP32 to acknowledge WiFi packets when the receiver address matched the MAC of the ESP32?
Is there another way I can recieve raw packets (another API that the promiscuous mode) that will acknowledge specifically targeted addresses (I only need to get packets targeted my own MAC or that are broadcasted)?
In last resort, how can I configure the sender not to retry packets when no ACK is recieved?

Details: in my raw packets, frame control = 0x308 (protocol:0, type: data, subtype: data, ToDS and FromDS set)

Regards,

maddl73
Posts: 1
Joined: Sat May 06, 2023 8:40 pm

Re: Send and recieve raw WiFi packets

Postby maddl73 » Sat May 06, 2023 8:43 pm

Hello,
I am facing the same problem. Is there any known solution for the issue ? I am using data frames, but since i cannot answer with acknowledge frames, it is very inefficient. QoS frames are sadly also not supported, where i could at least disable the acknowledgement expectation.
Thanks for your help!

Who is online

Users browsing this forum: Bing [Bot], ltsm0265 and 108 guests