BlueSTSDK_Python icon indicating copy to clipboard operation
BlueSTSDK_Python copied to clipboard

Device keeps disconnecting unexpectedly

Open mhnrahmani opened this issue 2 years ago • 2 comments

Hello,

I am using a Raspberry Pi Compute Module 4 (which is BTW. basically the same as a RPi 4B) to run the basic example example_ble_1.py and connect to my SensorTile boxes. The example scans and lists my SensorTiles but when I select either of them to connect to, it immediately logs Device {my TileBox's name} disconnected unexpectedly on the screen.

Output log:

$ sudo python3 example_ble_1.py

##################
# BlueST Example #
##################

Scanning Bluetooth devices...

Discovery started.
New device discovered: Yellow .
New device discovered: White  .
Discovery stopped.

Available Bluetooth devices:
1) Yellow : [c0:50:1d:32:09:56]
2) White  : [c0:50:07:32:2c:33]

Select a device to connect to ('0' to quit): 2
Connecting to White  ...
Device White   disconnected unexpectedly.

Exiting...

More information about my setup:

  • OS version: Raspbian GNU/Linux 11 (bullseye)
  • Python version: 3.9.2
  • bluepy version: 1.3.0
  • futures version: 3.0.5
  • blue-st-sdk version: 1.4.0
  • SensorTile.box's firmware version: 3.4.9

mhnrahmani avatar Apr 27 '22 13:04 mhnrahmani

Hello @mohammad-rahmani, Which firmware are you using on the SensorTile.box?

Regards, Davide

davidroid avatar Apr 27 '22 16:04 davidroid

Hello @davidroid,

Thanks for your attention.

I am using a custom app with IMU Gyroscope sensor and IMU Accelerometer sensor as inputs and Stream to Bluetooth as output without any function. I created and uploaded this custom app via the ST BLE Sensor android app.

(BTW, the example runs on my Ubuntu desktop without the unexpected disconnection problem that I mentioned in my post.)

mhnrahmani avatar Apr 27 '22 18:04 mhnrahmani