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

Setting up multiple Thingy52 nodes with Raspberry Pi 4 [Python]

I have been able to recieve data from individual Thingy52 modules on RPi 4 in Python.

How can I setup my RPi to communicate with multiple modules?

A straightforward approach of directly connecting them throws error. Do I need to configure Thingy for this purpose?

Parents
  • Hi,

    You share very little information about your setup. What software, libraries, drivers, etc. are you running on the RPi, and what is the error message?

    Most likely you do not need any configuration changes on the Thingy52s.

    Regards,
    Terje

  • Hey thanks for the response tesc.

    I have successfully established communication with upto 4 Thingy now, so connection part is resolved.

    RPI is running on Rasbian Buster. I am using bluepy for communication with Thingy in Python3.

    The issue I am currently facing is the delayed response from some of the Thingy. How can I synchronise the my Thingy52 modules with each other and RPi?

  • Hi,

    What connection parameters do you get for the connections?

    What is the nature of the delays? (How long, how often, is it the same Thingy every time, etc.)

    What kind of synchronization are you looking for, what is the purpose of the synchronization?

    Regards,
    Terje

  • I am currently retrieving the motion data from the Thingy modules.

    I am polling notification on the Pi by creating delegate object which handles the notification( https://ianharvey.github.io/bluepy-doc/notifications.html).

    The issue is that it only processes one module until the count(1000 iterations) runs out and then moves to another module.I want to switch between the modules ,ie, recieve data as in Module0-Module1-Module2 manner rather than polling one Thingy and then processing others.

    I have deployed the BLE devices as seperate threads

  • Hi,

    Sorry, what is "count"? We are moving into the specifics of bluepy and python now, and I am afraid I know less about that. The question seems to be how to get your bluepy script to process incoming notifications concurrently, which has little to do with nRF and Thingy.

    I am sure there are other channels (e.g. forum, mailing list, chat room, or other) that are better suited for getting help with programming with python and bluepy.

    Regards,
    Terje

Reply
  • Hi,

    Sorry, what is "count"? We are moving into the specifics of bluepy and python now, and I am afraid I know less about that. The question seems to be how to get your bluepy script to process incoming notifications concurrently, which has little to do with nRF and Thingy.

    I am sure there are other channels (e.g. forum, mailing list, chat room, or other) that are better suited for getting help with programming with python and bluepy.

    Regards,
    Terje

Children
No Data