Does station<->station communication get forwarded over the AP? [WIFI-2280]

Dumbledore
Posts: 17
Joined: Thu Oct 10, 2019 7:55 pm

Does station<->station communication get forwarded over the AP? [WIFI-2280]

Postby Dumbledore » Mon Apr 27, 2020 10:44 am

Heya!

I have a mesh of 3-4 boards - one working as an AP, the other ones as stations connected to that AP.
For some reason, communication between stations is much slower than communication between station and AP, so I was thinking that maybe all station<->station communication gets forwarded over the AP?

If that's the case, is there any way to turn off that behavior? This would defy the purpose for me since I specifically want to measure the CSI from the channels between all boards.

Thanks in advance!

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

Re: Does station<->station communication get forwarded over the AP?

Postby ESP_Sprite » Mon Apr 27, 2020 12:43 pm

Not sure, but that may be a setting in the access point (some disable station<->station communication).

Dumbledore
Posts: 17
Joined: Thu Oct 10, 2019 7:55 pm

Re: Does station<->station communication get forwarded over the AP?

Postby Dumbledore » Tue Apr 28, 2020 1:59 am

Hi,

I'm using another ESP32 board as an AP. Do you know if there's an API addressing this issue, e.g. a switch to turn station<->station communication on/off?

Thanks in advance.

ESP_Alvin
Posts: 211
Joined: Thu May 17, 2018 2:26 am

Re: Does station<->station communication get forwarded over the AP? [WIFI-2280]

Postby ESP_Alvin » Tue Apr 28, 2020 7:46 am

Moderator's note: edit the topic title for issue tracking, thanks.

liuzhifu
Posts: 39
Joined: Tue Dec 13, 2016 2:18 am

Re: Does station<->station communication get forwarded over the AP? [WIFI-2280]

Postby liuzhifu » Thu Apr 30, 2020 2:00 am

Hi Dumbledore,

Yes, station <-> station communication depends on AP forwarding. If we disable AP forwarding, station <-> station communication is broken, I'm not sure this is what you expected.

Moreover, currently we have no API to disable AP forwarding.

Dumbledore
Posts: 17
Joined: Thu Oct 10, 2019 7:55 pm

Re: Does station<->station communication get forwarded over the AP? [WIFI-2280]

Postby Dumbledore » Fri May 01, 2020 12:26 am

Thanks for the reply, that's unfortunate.

I really like the ESP32 board's ability to directly output CSI via the associated callback function, however, right now it's not very practical to use. The only way to measure CSI between multiple ESP32 boards is by sending packets via UDP or TCP (the esp_wifi_80211_tx API isn't triggering the CSI callback), that is, the boards have to be in a shared WiFi. Therefore the only way to get CSI from all channels between more than two boards is Station<->Station communication - and it seems like this won't work, too, since I'm always only really measuring the channels from AP to the others because of AP forwarding.
Fixing one of both (the forwarding issue or letting the boards get CSI from raw packets, without the need to be in the same WiFi) would be enough already.

liuzhifu
Posts: 39
Joined: Tue Dec 13, 2016 2:18 am

Re: Does station<->station communication get forwarded over the AP? [WIFI-2280]

Postby liuzhifu » Fri May 08, 2020 3:27 am

Hi @ Dumbledore,

`Therefore the only way to get CSI from all channels between more than two boards is Station<->Station communication - and it seems like this won't work, too, since I'm always only really measuring the channels from AP to the others because of AP forwarding.`

How about using ESP32 Station <-> ESP32 AP topology?

liuzhifu
Posts: 39
Joined: Tue Dec 13, 2016 2:18 am

Re: Does station<->station communication get forwarded over the AP? [WIFI-2280]

Postby liuzhifu » Thu Jun 04, 2020 2:43 am

Hi,

Could you explain "the esp_wifi_80211_tx API isn't triggering the CSI callback" in detailed? Could you help to provide following info:

1. How to use esp_wifi_80211_tx
2. How to encapsulate the WiFi raw packets
3. The mac address of all your STA/AP

Then we can check what's wrong in your code.

Who is online

Users browsing this forum: KMTsvetanov, Majestic-12 [Bot] and 121 guests