This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Nordic Thingy 52 and Raspberry Pi disconnections

We have a Nordic Thingy 52 sensor and a Raspberry Pi which are connected through Bluetooth. The Raspberry Pi is also connected to the Internet via WiFi.

Initially, we tested the Medium One platform to send sensor data to the cloud and their Python code worked out of the box (https://github.com/Medium-One/Nordic-Thingy-Raspberry-Pi-Medium-One-self-service-version/blob/master/Raspberry_Pi_python_code/m1_nordic_thingy.py). We then proceeded in testing other platforms like Losant but had trouble writing a similar code to send all sensor data to Losant through MQTT.

In the mean time, something changed and not even the Medium One python code worked any more. I traced the problem down to the Pi bluetooth connectivity with the sensor, it seemed that Nordic Thingy kept disconnecting and never had enough time to send the data. I tried to test the Medium One code again but had to lower the interval to 2 seconds from the initial 10 in order to get some of the sensor data and even then I couldn't get CO2 and VOC data.

I set up Pi again with Raspbian Buster a couple of times and tried with a clean install but problem kept persisting. I think the issue is either with Nordic Thingy's configuration and therefore wanted to reset it to factory settings but never found a way to do it or with Raspbian Buster's version bluetooth settings. I think the Pi came pre-installed with Raspbian Jessie so it could be a bluetooth compatibility issue between the Raspbian versions or the Thingy's configuration. Is there an easy way to reset Nordic Thingy 52 to factory settings? 

 

Parents
  • Hi Bjorn, I'm not sure exactly how to do that.

    I downloaded https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-Sniffer/sw/nrfsnifferforbluetoothle200c87e17d.zip on my Raspberry Pi and tried to run example.py but I got "ImportError: No module named SnifferAPI". Is there something else I should install? 

    I gave up on the Medium One code and started trying again to connect to the Losant platform and send sensor data through the MQTT protocol but I get the disconnections again. I'm sure it has something to do with the Nordic Thingy's communication with the Pi because the mobile app on my Android phone works fine. I have tried the Nordic Thingy app and I get readings from the sensor and I have also tried the nRF Connect android app and I connect to the Thingy but it says CONNECTED NOT BONDED. Not sure how to test the nRF Connect app. 

    I really am a newbie in this field, so please provide me with as much detailed help as possible, including guidelines to which utilities / software I should use, etc. Thank you for your time. 

Reply
  • Hi Bjorn, I'm not sure exactly how to do that.

    I downloaded https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-Sniffer/sw/nrfsnifferforbluetoothle200c87e17d.zip on my Raspberry Pi and tried to run example.py but I got "ImportError: No module named SnifferAPI". Is there something else I should install? 

    I gave up on the Medium One code and started trying again to connect to the Losant platform and send sensor data through the MQTT protocol but I get the disconnections again. I'm sure it has something to do with the Nordic Thingy's communication with the Pi because the mobile app on my Android phone works fine. I have tried the Nordic Thingy app and I get readings from the sensor and I have also tried the nRF Connect android app and I connect to the Thingy but it says CONNECTED NOT BONDED. Not sure how to test the nRF Connect app. 

    I really am a newbie in this field, so please provide me with as much detailed help as possible, including guidelines to which utilities / software I should use, etc. Thank you for your time. 

Children
No Data
Related