# Any way to know RSSI?

**URL:** <https://forum.hardwario.com/t/any-way-to-know-rssi/276>\
**Category:** TOWER\
**Created:** [July 1, 2018, 8:26am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276 "2018-07-01T08:26:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![owar](https://forum.hardwario.com/user_avatar/forum.hardwario.com/owar/32/194_2.png) [@owar](https://forum.hardwario.com/u/owar)\
**Post date:** [July 1, 2018, 8:26am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/1 "2018-07-01T08:26:30Z")

</div>

Hello,

1. I would like to know if there is some way to get RSSI of the messages. I would like to do some field distance measuring.

2. Is there any way to use bigger antenna? Are you planning to accommodate some external antenna connector like u.fl?

PS: I have received BC products yesterday and today I can send data from modules to RPi with my own software. That is just amazing. End of self boasting.

---

<div class="post-metadata">

**Author:** ![Karel](https://forum.hardwario.com/user_avatar/forum.hardwario.com/karel/32/660_2.png) [@Karel](https://forum.hardwario.com/u/Karel)\
**Post date:** [July 1, 2018, 9:52am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/2 "2018-07-01T09:52:55Z")

</div>

Hi,  
ad 1. We do not implement RSSI reading in our SDK, but if you import SPIRIT Qi.h then can use original function  
uint8\_t rssi = SpiritQiGetRssi();

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [July 1, 2018, 9:58am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/3 "2018-07-01T09:58:01Z")

</div>

ad 2. ST Microelectronics is now manufacturing the SPIRIT1 module with u.fl connector.  
[https://www.st.com/content/st\_com/en/products/wireless-connectivity/sub-1ghz-rf/spsgrfc.html](https://www.st.com/content/st_com/en/products/wireless-connectivity/sub-1ghz-rf/spsgrfc.html)  
It is pin compatible. It would be possible to buy Core Module NR which is without radio and populate the radio yourself. Or if you would like bigger quantity, we can probably produce them for you.

---

<div class="post-metadata">

**Author:** ![owar](https://forum.hardwario.com/user_avatar/forum.hardwario.com/owar/32/194_2.png) [@owar](https://forum.hardwario.com/u/owar)\
**Post date:** [July 1, 2018, 1:15pm UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/4 "2018-07-01T13:15:10Z")

</div>

Karel and Martin, thank you for your answers which are as usual fast and to the point which is why I like BigClown for.

1. The SpiritQiGetRssidBm() from Qi.h is what I have been looking form. It works great! I have found the library at [GitHub](https://github.com/STclab/stm32nucleo-spirit1-lib/blob/master/drivers/spirit1/inc/SPIRIT_Qi.h)
2. I will order some spare core module without the radio later for some test.

---

<div class="post-metadata">

**Author:** ![mlnz](https://forum.hardwario.com/user_avatar/forum.hardwario.com/mlnz/32/267_2.png) [@mlnz](https://forum.hardwario.com/u/mlnz)\
**Post date:** [November 29, 2018, 11:13am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/5 "2018-11-29T11:13:49Z")

</div>

Hello,  
thank for this idea, how to get RSSI.

I am usually getting values about 22 dBm from device about 6 meteres away from hub. I don’t know if it is good or not. When I place radio module near the hub, there is value about 27dBm. Are you getting similar values? What is the best value? (I understand that the best value probably should be nearest to hub, but…)

Do you know what are best practices where to place hub and in which position should be USB dongle? (Should be whole HUB (usb dongle) placed higher than all devices? Should it be placed lower or ± at the same level? )

---

<div class="post-metadata">

**Author:** ![owarek](https://forum.hardwario.com/user_avatar/forum.hardwario.com/owarek/32/252_2.png) [@owarek](https://forum.hardwario.com/u/owarek)\
**Post date:** [November 29, 2018, 11:34am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/6 "2018-11-29T11:34:23Z")

</div>

Ideally, the devices should be placed in line of sight to each other. Shorter distance means better signal quality (higher dBm). There is practically no advantage to have one device higher than the other.

I do not know my actual RSSI values but I think 22 and 27 dBm are oddly big numbers. If I look on my WiFi router for example, there is RSSI between -60 and -50 dBm. I will look at these numbers when I will be home from work. Are you using the function SpiritQiGetRssidBm() or only SpiritQiGetRssi()? This would explain the high numbers.

---

<div class="post-metadata">

**Author:** ![mlnz](https://forum.hardwario.com/user_avatar/forum.hardwario.com/mlnz/32/267_2.png) [@mlnz](https://forum.hardwario.com/u/mlnz)\
**Post date:** [November 29, 2018, 11:58am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/7 "2018-11-29T11:58:15Z")

</div>

Thank you for your reaction. I am using “SpiritQiGetRssi();” should I use "SpiritQiGetRssidBm() " instead of the “SpiritQiGetRssi();”?

---

<div class="post-metadata">

**Author:** ![owarek](https://forum.hardwario.com/user_avatar/forum.hardwario.com/owarek/32/252_2.png) [@owarek](https://forum.hardwario.com/u/owarek)\
**Post date:** [November 29, 2018, 12:04pm UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/8 "2018-11-29T12:04:56Z")

</div>

Well both is the same thing (quality of signal) but the SpiritQiGetRssidBm() will return you a value in dBm which is more commonly used. Your number 27 is equal to -56,5 dBm and 22 to -61 dBm which is both OK. The used receiver has ability to listen down to -118 dBm (if I remember correctly).

---

<div class="post-metadata">

**Author:** ![mlnz](https://forum.hardwario.com/user_avatar/forum.hardwario.com/mlnz/32/267_2.png) [@mlnz](https://forum.hardwario.com/u/mlnz)\
**Post date:** [November 29, 2018, 8:34pm UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/9 "2018-11-29T20:34:45Z")

</div>

I changed the function to “SpiritQiGetRssidBm()” and it is giving me value 126 when it is close to the HUB and value 138 when it is far from the HUB. It is not corresponding with your expectation. Probably I am doing something wrong. I am just calling “SpiritQiGetRssidBm()” function. Do you have an idea what is wrong, please?

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [November 29, 2018, 8:41pm UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/10 "2018-11-29T20:41:59Z")

</div>

I suggest showing the code. Signed/unsigned integers or 8/16bit values could be the issue.  
I also never used this functions. I would be interested in the code and the place where you call these functions.

---

<div class="post-metadata">

**Author:** ![mlnz](https://forum.hardwario.com/user_avatar/forum.hardwario.com/mlnz/32/267_2.png) [@mlnz](https://forum.hardwario.com/u/mlnz)\
**Post date:** [November 30, 2018, 6:16am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/11 "2018-11-30T06:16:47Z")

</div>

I added it into battery\_event\_handler. My whole application is based on climate monitor example. I am converting the value into string (because I already had this function). BUFFER\_SIZE constant is set to 128. It shouldn’t be problem to change it to publish just number

 ![14](https://aws1.discourse-cdn.com/standard14/uploads/bigclown/original/1X/25be3b3e071099f8099c71b83c7560e524dbeb74.png)

I can change it to this:

![59](https://aws1.discourse-cdn.com/standard14/uploads/bigclown/original/1X/2d32e58f6ab5c5799c145eb065f19af0df7bfe07.png)

But unfortunately, I can try it during the weekend…

---

<div class="post-metadata">

**Author:** ![owarek](https://forum.hardwario.com/user_avatar/forum.hardwario.com/owarek/32/252_2.png) [@owarek](https://forum.hardwario.com/u/owarek)\
**Post date:** [November 30, 2018, 6:34am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/12 "2018-11-30T06:34:53Z")

</div>

I see the problem. The RSSI value in dBm is negative so you should not assign it to rssi variable which is unsigned int. Change it to signed or float for better precision and it should work 🙂

---

<div class="post-metadata">

**Author:** ![mlnz](https://forum.hardwario.com/user_avatar/forum.hardwario.com/mlnz/32/267_2.png) [@mlnz](https://forum.hardwario.com/u/mlnz)\
**Post date:** [November 30, 2018, 7:55am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/13 "2018-11-30T07:55:35Z")

</div>

Oh, I see! Thank you… 👍 I will try it during the weekend and I hope it will works 🙂

---

<div class="post-metadata">

**Author:** ![mlnz](https://forum.hardwario.com/user_avatar/forum.hardwario.com/mlnz/32/267_2.png) [@mlnz](https://forum.hardwario.com/u/mlnz)\
**Post date:** [December 1, 2018, 6:32pm UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/14 "2018-12-01T18:32:04Z")

</div>

Hello,  
I have changed variable to float and numbers looks similar to values as you wrote. But I am still not sure if it is correct, because it looks like some random numbers 😉 😄

I have tested climate module in these positions:

- 2cm from hub -118dBm
- in the next room (6m through the wall) -120,5dBm
- in the greenhouse (6m from HUB, outside the house) -119,5dBm

When I am measuring signal more times, I am getting values ±3dBm form the middle value above.

Am I getting something wrong? Does exists any other method how to get signal quality more precise? At this moment I am really not sure If something is wrong, because the device lost the signal 10m from HUB, through the house, or behid the greenhouse which is 3 meters beside the house.

EDIT: I am adding measured values from the greenhouse during the night (same place of HUB, same place of climate module)  
 ![27](https://aws1.discourse-cdn.com/standard14/uploads/bigclown/original/1X/139c84873eb929f525d26885c8469b4aa3995da5.png)

---

<div class="post-metadata">

**Author:** ![mlnz](https://forum.hardwario.com/user_avatar/forum.hardwario.com/mlnz/32/267_2.png) [@mlnz](https://forum.hardwario.com/u/mlnz)\
**Post date:** [December 5, 2018, 11:15am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/15 "2018-12-05T11:15:16Z")

</div>

@owarek your values are similar? Or range of your measured numbers is higher?

---

<div class="post-metadata">

**Author:** ![owarek](https://forum.hardwario.com/user_avatar/forum.hardwario.com/owarek/32/252_2.png) [@owarek](https://forum.hardwario.com/u/owarek)\
**Post date:** [December 6, 2018, 8:39am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/16 "2018-12-06T08:39:59Z")

</div>

I am sorry but now I do not have time to do some range tests. The only thing I can tell you is my “door module” (core + battery and reed switch) which is in my flat is reporting between -118 and -122,5 dBm. There is 6 metres and two walls (made of reinforced concrete) between the senor and central hub. And it works every time.

---

<div class="post-metadata">

**Author:** ![mlnz](https://forum.hardwario.com/user_avatar/forum.hardwario.com/mlnz/32/267_2.png) [@mlnz](https://forum.hardwario.com/u/mlnz)\
**Post date:** [December 6, 2018, 9:21am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/17 "2018-12-06T09:21:23Z")

</div>

OK, thank you and I understand it. I know, that my values are similar to yours an I just need to know what is correct and what not, but I will talk to BC directly, not in this topic. Thanks for your help

---

<div class="post-metadata">

**Author:** ![owarek](https://forum.hardwario.com/user_avatar/forum.hardwario.com/owarek/32/252_2.png) [@owarek](https://forum.hardwario.com/u/owarek)\
**Post date:** [December 6, 2018, 9:32am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/18 "2018-12-06T09:32:49Z")

</div>

You are welcome. I hope you wil succeed:)

---

<div class="post-metadata">

**Author:** ![jakubcizek](https://forum.hardwario.com/user_avatar/forum.hardwario.com/jakubcizek/32/219_2.png) [@jakubcizek](https://forum.hardwario.com/u/jakubcizek)\
**Post date:** [August 18, 2019, 9:04am UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/19 "2019-08-18T09:04:15Z")

</div>

Have you tried that SPSGRFC-868 alternative with u.fl? Any improvement?

I changed position of my BC dongle and now I have some issues with outside probe. Signal has to go through old cast-iron radiator between both endpoints and 50% messages are suddenly lost. So I would like to solder u.fl version on dongle and test it.

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [August 21, 2019, 6:13pm UTC](https://forum.hardwario.com/t/any-way-to-know-rssi/276/20 "2019-08-21T18:13:17Z")

</div>

I did comparison tests with standard and u.fl SPIRIT1 modules on Core Module and the range was almost double. In most cases you just need Dongle with u.fl. I had some kind of Molex flex-strip antenna with dimensions around 10x3 cm.  
All this should be in the e-shop in a few months.  
Contact us on the email [aks@bigclown.com](mailto:aks@bigclown.com) if you would like to have some pre-production samples.

[Next page](https://forum.hardwario.com/t/any-way-to-know-rssi/276.md?page=2)
