This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Multiple BLE Device Connection + transfer on a SBC running Linux

Hi there,

I need help on testing multiple BLE Device(sensorTag for example) connection+transfer on a SBC(phyBOARD-WEGA or BBB or RPi) which runs linux.
I could connect to single sensortag and obtain data using gatttool & bluepy (python linux application ref:www.elinux.org/RPi_Bluetooth_LE).
But, if I try to connect to other sensortag from another instance of the application, it fails (error:resource busy in bluepy & no responce from gatttool).

Test case1:
(running on x86) In gatttool, connection to multiple device is successful but can't make transfer simultanouly. and again if I have to connect back the sensortag which got disconnected due to error, I have to run the hictool lescan and then run gatttool to connect and reqest data from that BLE Device which will now disconnect the other BLE Device which was connected earlier. Hope u got it :E

Test case2:
(running on x86) In bluepy python script, there is one script running in a terminal#1 fetching sensortag#1 data, and if I run the python script in terminal#2 to fetch data from sensortag#2, the process in termial#1 is paused and then stoped but the terminal#2 continues to stream BLE data.

Is there any python script to talk to more than 1 BLE device simultanously or at least without disconnecting any ble devices. I basically want to run an application on the SBC(running on linux) to support multiple nodes(BLE devices) and push the data to cloud(via MQTT broker) preferably in python or C.

Thanks in advance

  • Hi vik,

    I will check if anybody has some experience in gatttool and bluepy.

    - Cetri
  • Hello,

    From the description, your issues seem to be related to the Central device on the SBC, i.e., the RPi board, and not the Peripheral (e.g., SensorTag). My advice would be to follow up in forum that is dedicated to supporting the host/controller used on your Central device / SBC. Note that supporting multiple connections is allowed in the BT core specification, but it is optional for the host/controller on the Central to support such capability.

    Best wishes
  • hi JXS

    Thanks for your reply :)
    I was thinking the same about the central device. All I want is to connect, transfer & test multiple sensortags. I have phyBOARD-WEGA board on which sits TI AM335x SOM, I should may be post the same question on the sitara SOC category E2E or I may have to modify the gatttool/bluepy to support multiple nodes since its not related to SOC support but linux apps. It would be great if I get something ready made. I am open for your suggestions.

    Thanks
    vik