Non-IP data over Wifi

Coopdis
Posts: 14
Joined: Wed Jun 20, 2018 7:59 pm

Non-IP data over Wifi

Postby Coopdis » Wed Dec 02, 2020 4:26 pm

Hello,

I am wanting to send an receive non-IP data via wifi.

It seems that I can put just about any data on to wifi using a non-QoS data frame and esp_wifi_80211_tx().

That said, I am having trouble finding an equivalent rx function or call back to receive non-IP data frames. It seems like all the data received by the wifi driver gets pumped into esp_netif_receive?

Is there a way to filter out non-IP data frames either before they get passed to netif, or afterwards if netif is not able to process them?

Thank you.

Bill

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: Non-IP data over Wifi

Postby ESP_Sprite » Thu Dec 03, 2020 1:41 am

You could take a look at esp_wifi_internal_reg_rxcb. Note that it's an internal function and as such not considered stable.

Coopdis
Posts: 14
Joined: Wed Jun 20, 2018 7:59 pm

Re: Non-IP data over Wifi

Postby Coopdis » Thu Dec 03, 2020 3:31 pm

Super! Thank you.

I continued digging after posting and came up with esp_wifi_register_if_rxcb. It looks like esp_wifi_register_if_rxcb is more or less a pass-through to esp_wifi_internal_reg_rxcb.

Given that esp_wifi_register_if_rxcb is not marked "internal" would it be considered stable?

Thank you,

Bill

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: Non-IP data over Wifi

Postby ESP_Sprite » Sat Dec 05, 2020 3:01 am

Ah, didn't realize we had a non-internal version of that call. Unless the header file that function is declared in says otherwise, that should be stable.

Coopdis
Posts: 14
Joined: Wed Jun 20, 2018 7:59 pm

Re: Non-IP data over Wifi

Postby Coopdis » Tue Dec 08, 2020 10:08 pm

Thank you Sprite!

Who is online

Users browsing this forum: Bing [Bot] and 176 guests