<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[BLE RSSI level]]></title><description><![CDATA[<p dir="auto">Hello everybody,</p>
<p dir="auto">I am trying to use the RSSI of the BLE scanning on Wipy to send some message when some threshold is reached. But unfortunately, the reported values during the scan seems to be randomly generated. It goes from -15 to -60 without any update of the emitter location. And there is no significant change in values when the emitter us far away and still detectable.<br />
I thought it was related to the onboard antenna, but with the external antenna plugged, behaviour is still unchanged.</p>
<p dir="auto">Did you already noticed that ? Is there a way to activate the use of external antenna?<br />
Did i make something wrong or is there a problem with my WiPy chipset?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.pycom.io/topic/554/ble-rssi-level</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 13:45:32 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/554.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Jan 2017 17:14:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BLE RSSI level on Wed, 25 Jan 2017 17:14:17 GMT]]></title><description><![CDATA[<p dir="auto">Hello everybody,</p>
<p dir="auto">I am trying to use the RSSI of the BLE scanning on Wipy to send some message when some threshold is reached. But unfortunately, the reported values during the scan seems to be randomly generated. It goes from -15 to -60 without any update of the emitter location. And there is no significant change in values when the emitter us far away and still detectable.<br />
I thought it was related to the onboard antenna, but with the external antenna plugged, behaviour is still unchanged.</p>
<p dir="auto">Did you already noticed that ? Is there a way to activate the use of external antenna?<br />
Did i make something wrong or is there a problem with my WiPy chipset?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.pycom.io/post/3408</link><guid isPermaLink="true">https://forum.pycom.io/post/3408</guid><dc:creator><![CDATA[the_ned]]></dc:creator><pubDate>Wed, 25 Jan 2017 17:14:17 GMT</pubDate></item><item><title><![CDATA[Reply to BLE RSSI level on Wed, 25 Jan 2017 19:17:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/612">@the_ned</a><br />
Yes, you need to activate the external antenna even for Bluetooth.</p>
<p dir="auto">It's not very intuitive - or documented! - as you have to do it through the WiFi module (Bluetooth shares the same radio hardware)</p>
<p dir="auto">Something like this should work</p>
<pre><code>from network import WLAN
wlan = WLAN(mode=WLAN.STA, antenna=WLAN.EXT_ANT)
</code></pre>
<p dir="auto">replace WLAN.STA with WLAN.AP if you're not connecting to your own WiFi and want the WiPy to create it's own WiFi network (the default). You can also use the <code>wlan.antenna(WLAN.EXT_ANT)</code> function.</p>
<p dir="auto">then use your Bluetooth code as usual. I've not checked the accuracy of the RSSI values yet though.</p>
]]></description><link>https://forum.pycom.io/post/3409</link><guid isPermaLink="true">https://forum.pycom.io/post/3409</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Wed, 25 Jan 2017 19:17:30 GMT</pubDate></item><item><title><![CDATA[Reply to BLE RSSI level on Thu, 26 Jan 2017 09:54:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have made the test. Actually it did not changed anything in the RSSI level accuracy.<br />
I will try using a LoPy instead WiPy and give you some feedback.</p>
<p dir="auto">(mac=b'\xc3\xf3\x12\x00\x02\xd1', addr_type=1, adv_type=1, rssi=-29, data=b'\x02\x01\x06\x1a\xffL\x00\x02\x15\xd9F\xb9\xf0\r\xb3E\t\xb1\xbb\xa3t<code>gX\x98\x01\x00\x00\x01\xcb\x00') (mac=b'\xc3\xf3\x12\x00\x02\xd1', addr_type=1, adv_type=1, rssi=-53, data=b'\x02\x01\x06\x1a\xffL\x00\x02\x15\xd9F\xb9\xf0\r\xb3E\t\xb1\xbb\xa3t</code>gX\x98\x01\x00\x00\x01\xcb\x00')<br />
(mac=b'\xc3\xf3\x12\x00\x02\xd1', addr_type=1, adv_type=1, rssi=-29, data=b'\x02\x01\x06\x1a\xffL\x00\x02\x15\xd9F\xb9\xf0\r\xb3E\t\xb1\xbb\xa3t<code>gX\x98\x01\x00\x00\x01\xcb\x00') (mac=b'\xc3\xf3\x12\x00\x02\xd1', addr_type=1, adv_type=1, rssi=-41, data=b'\x02\x01\x06\x1a\xffL\x00\x02\x15\xd9F\xb9\xf0\r\xb3E\t\xb1\xbb\xa3t</code>gX\x98\x01\x01\x00\x01\xcb\x00')<br />
(mac=b'\xc3\xf3\x12\x00\x02\xd1', addr_type=1, adv_type=1, rssi=-59, data=b'\x02\x01\x06\x1a\xffL\x00\x02\x15\xd9F\xb9\xf0\r\xb3E\t\xb1\xbb\xa3t`gX\x98\x01\x01\x00\x01\xcb\x00')<br />
(mac=b'\xc3\xf3\x12\x00\x02\xd1', addr_type=1, adv_type=1, rssi=-25,</p>
]]></description><link>https://forum.pycom.io/post/3428</link><guid isPermaLink="true">https://forum.pycom.io/post/3428</guid><dc:creator><![CDATA[the_ned]]></dc:creator><pubDate>Thu, 26 Jan 2017 09:54:19 GMT</pubDate></item><item><title><![CDATA[Reply to BLE RSSI level on Thu, 26 Jan 2017 14:03:30 GMT]]></title><description><![CDATA[<p dir="auto">OK,<br />
I tried using the Lopy with or without external antenna and the RSSI level provided are too inconsistent and not reliable.<br />
It is a showstopper for what I have planned to use the chipset. I hope it could be solved quickly. Usually BLE chipset are quite good at Signal Strength measurement.</p>
<p dir="auto">It could anyway be interesting to see if someone have the same poor results when executing the code . Here after is my short test code.</p>
<pre><code>from network import Bluetooth
from machine import Timer
from network import WLAN

chrono = Timer.Chrono()
chrono.start();

bluetooth = Bluetooth()
print(&quot;start&quot;)
wlan = WLAN(mode=WLAN.STA, antenna=WLAN.EXT_ANT)
while True:
    bluetooth.start_scan(-1)    # start scanning with no timeout
    while bluetooth.isscanning():
        adv = bluetooth.get_adv()
        if adv:
           print(adv)
</code></pre>
]]></description><link>https://forum.pycom.io/post/3438</link><guid isPermaLink="true">https://forum.pycom.io/post/3438</guid><dc:creator><![CDATA[the_ned]]></dc:creator><pubDate>Thu, 26 Jan 2017 14:03:30 GMT</pubDate></item><item><title><![CDATA[Reply to BLE RSSI level on Thu, 26 Jan 2017 15:06:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/612">@the_ned</a><br />
I found a post on the ESP32 forum about the same problem so it seems it's happening at a lower level. Maybe some calibration isn't correct or maybe something due to the recent WiFi coexistence.</p>
<p dir="auto"><a href="http://www.esp32.com/viewtopic.php?f=2&amp;t=818" target="_blank" rel="noopener noreferrer nofollow">http://www.esp32.com/viewtopic.php?f=2&amp;t=818</a></p>
<p dir="auto">When it's fixed by Espressif in the ESP-IDF it should reflect very quickly on MicroPython, the values come directly from there.</p>
]]></description><link>https://forum.pycom.io/post/3441</link><guid isPermaLink="true">https://forum.pycom.io/post/3441</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Thu, 26 Jan 2017 15:06:23 GMT</pubDate></item><item><title><![CDATA[Reply to BLE RSSI level on Thu, 26 Jan 2017 16:04:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a></p>
<p dir="auto">You are certainly right. That is the same problem. Actually the returned values are strange, with the same variation pattern. It is like the decoding was wrong, maybe some inversion in some bits or a Little or big endian inversion.</p>
<p dir="auto">Thanks for your support. I hope it will be corrected soon.</p>
]]></description><link>https://forum.pycom.io/post/3442</link><guid isPermaLink="true">https://forum.pycom.io/post/3442</guid><dc:creator><![CDATA[the_ned]]></dc:creator><pubDate>Thu, 26 Jan 2017 16:04:28 GMT</pubDate></item><item><title><![CDATA[Reply to BLE RSSI level on Tue, 14 Nov 2017 10:57:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a> will you need to activate the external antenna even if you don't use an antenna for bluetooth ? just wondering, because i get <strong>horribly unstable rssi values</strong>...</p>
]]></description><link>https://forum.pycom.io/post/12691</link><guid isPermaLink="true">https://forum.pycom.io/post/12691</guid><dc:creator><![CDATA[soren]]></dc:creator><pubDate>Tue, 14 Nov 2017 10:57:26 GMT</pubDate></item></channel></rss>