ESP8266 RSSI of received packet

prismatics
Posts: 10
Joined: Fri Jul 03, 2015 11:35 pm

ESP8266 RSSI of received packet

Postby prismatics » Fri Jul 03, 2015 11:45 pm

Hello there from Germany.

Is it possible to get the RSSI value from an received packet while the WiFi is in WIFI_STA mode without being in promiscuous mode? Can you tell me the register address/offset which can be read with "READ_PERI_REG()" which is mapped to the WiFi hardware specific registers (rssi value)?

Have a nice day,

Christian

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: ESP8266 RSSI of received packet

Postby ESP_Faye » Mon Jul 06, 2015 10:19 am

Hi,

wifi_station_get_rssi to get RSSI of the AP which ESP8266 station is connected to.

wifi_station_scan to get RSSI of AP which nearby, here is a sample code of scanning routers http://bbs.espressif.com/viewtopic.php?f=21&t=229

Thanks for your interest in Espressif Systesms and ESP8266 !

prismatics
Posts: 10
Joined: Fri Jul 03, 2015 11:35 pm

Re: ESP8266 RSSI of received packet

Postby prismatics » Mon Jul 06, 2015 1:14 pm

Hi.

This is the RSSI value for the last beacon frame. What I need, is the RSSI from the radio tap header which is added by the wifi hardware when a packed is received. In promiscuous mode, the RSSI can be found in the packet which is given as an argument to the wifi promiscuous callback function (standard IEEE802.11 packet, look out for "RxControl" in the datasheet). What I need now is the RSSI value from a packet which is received in WIFI_STA mode. I hope you can help me :)

Have a nice day,

Christian

prismatics
Posts: 10
Joined: Fri Jul 03, 2015 11:35 pm

Re: ESP8266 RSSI of received packet

Postby prismatics » Mon Jul 06, 2015 9:31 pm

Hi.

It seems that a received packet is parsed in a JSON-Tree called _ctx. If this is true, how do I acces the element containing the RSSI?

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: ESP8266 RSSI of received packet

Postby ESP_Faye » Tue Jul 07, 2015 2:09 pm

Hi,

Sorry that we don’t have the RSSI value from a packet which is received in WIFI_STA mode.

RSSI can only be got by APIs I listed above.

Sorry for the inconvenience.

prismatics
Posts: 10
Joined: Fri Jul 03, 2015 11:35 pm

Re: ESP8266 RSSI of received packet

Postby prismatics » Tue Jul 07, 2015 6:13 pm

Hello again.

Thank you very much for your fast answer.
Currently, we are developing our prototype on your ESP8266 and we urgently need the RSSI value on a per-packet basis in WIFI_STA mode.

My point is:

I believe that the API does not allow to read the RSSI on a per-packet basis, but if you can read the RSSI in promiscuous mode (which actually works very well), there must be a register somewhere in the WiFi-hardware which can be read to get the RSSI value.

Have a nice day,

Christian :)

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: ESP8266 RSSI of received packet

Postby ESP_Faye » Wed Jul 08, 2015 10:34 am

Hi,

Sorry that we don't have such API or register.

Why you need RSSI for every packet ?

wifi_station_get_rssi is almost the RSSI of every packet, it is the average RSSI of several packet.
And the wifi_station_scan can get RSSI of APs nearby.

prismatics
Posts: 10
Joined: Fri Jul 03, 2015 11:35 pm

Re: ESP8266 RSSI of received packet

Postby prismatics » Wed Jul 08, 2015 3:44 pm

Hello there,

We are coming from Ruhr-Universität-Bochum and we are doing research in the area of indoor localization systems. If we had the RSSI value on a per-packet basis, we believe we could enhance the precision and do other incredible stuff with the ESP8266. Without this crucial component (the RSSI value), we would be forced to transition away from the ESP8266 to other competitive products.

Please let me know if there is any news.

Kind regards,

Christian

Who is online

Users browsing this forum: No registered users and 93 guests