sending 802.11 data frame with esp_wifi_80211_tx()

humptydumpty
Posts: 27
Joined: Thu Sep 07, 2017 10:26 am

sending 802.11 data frame with esp_wifi_80211_tx()

Postby humptydumpty » Thu Jan 17, 2019 11:39 am

Hi,

I wonder if anyone can post a complete example of sending an 802.11 data frame using the function esp_wifi_80211_tx.

Although it appears I am successfully sending something, my wireshark captures don't indicate any data. Maybe there is a wrong checksum or something like that.

Although there are plenty of examples of sending beacon frames, I don't see anything online for sending data frames, which have obviously a different structure.

Any help would be much appreciated.

humptydumpty
Posts: 27
Joined: Thu Sep 07, 2017 10:26 am

esp_wifi_80211_tx() and FCS

Postby humptydumpty » Sat Jan 19, 2019 1:47 pm

Maybe somebody can answer as to whether esp_wifi_80211_tx() generates the FCS or not. Actually I am having a problem with the FCS specifically. I use the ESP32 sniffer to capture frames and the FCS captured does not correspond to CRC of the payload.

Therefore I don't know how to generate the FCS for the esp_wifi_80211_tx() function or whether it is actually needed.

humptydumpty
Posts: 27
Joined: Thu Sep 07, 2017 10:26 am

Re: sending 802.11 data frame with esp_wifi_80211_tx()

Postby humptydumpty » Sun Jan 27, 2019 8:16 pm

Answering my own question, in fact the esp_wifi_80211_tx function does automatically calculate FCS. My UDP packets were getting lost because I didn't calculate the IP header checksum correctly.

jusanchez
Posts: 1
Joined: Tue Apr 28, 2020 7:33 pm

Re: sending 802.11 data frame with esp_wifi_80211_tx()

Postby jusanchez » Tue Apr 28, 2020 10:25 pm

Hi!

Do you have an example?

Thanks

Who is online

Users browsing this forum: Pedro Hugo PSC and 107 guests