Hi @Matt_Mielke ,
I’m using the using the Raspberry pi model 3 b (The device where I want to connect with to use and store the microphone data of the SensorTile.box but can’t do it for some reason) and the phone that I used to see if it would connect that way is the Samsung galaxi A22 5G and I used for this the app ST BLE Sensor Classic. The output that I get when I’m trying to connect with my Raspberry pi after flashing the firmware is this:
guest@raspberrypi:~ $ sudo python3 example_ble_1.py
##################
BlueST Example
##################
Scanning Bluetooth devices…
Discovery started.
Discovery stopped.
No Bluetooth devices found. Exiting…
If I’m trying to connect the device without the firmware, then I get one of the two errors,it immediately disconnects when I select the device, or number two, it gives me an error before I can select a device.
Error output one:
guest@raspberrypi:~ $ sudo python3 example_ble_1.py
##################
BlueST Example
##################
Scanning Bluetooth devices…
Discovery started.
New device discovered: TB2 .
Discovery stopped.
Available Bluetooth devices:
- TB2 : [c0:50:06:32:19:33]
Select a device to connect to (‘0’ to quit): 1
Connecting to TB2 …
Device TB2 disconnected unexpectedly.
Exiting…
Error number two:
guest@raspberrypi:~ $ sudo python3 example_ble_1.py
##################
BlueST Example
##################
Scanning Bluetooth devices…
Discovery started.
Traceback (most recent call last):
File “/usr/local/lib/python3.9/dist-packages/blue_st_sdk/manager.py”, line 313, in discover
self._scanner.scan(timeout_s)
File “/usr/local/lib/python3.9/dist-packages/bluepy/btle.py”, line 854, in scan
self.stop()
File “/usr/local/lib/python3.9/dist-packages/bluepy/btle.py”, line 803, in stop
self._mgmtCmd(self._cmd()+“end”)
File “/usr/local/lib/python3.9/dist-packages/bluepy/btle.py”, line 309, in _mgmtCmd
rsp = self._waitResp(‘mgmt’)
File “/usr/local/lib/python3.9/dist-packages/bluepy/btle.py”, line 362, in _waitResp
raise BTLEDisconnectError(“Device disconnected”, resp)
bluepy.btle.BTLEDisconnectError: Device disconnected
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/guest/example_ble_1.py”, line 312, in
main(sys.argv[1:])
File “/home/guest/example_ble_1.py”, line 189, in main
manager.discover(SCANNING_TIME_s)
File “/usr/local/lib/python3.9/dist-packages/blue_st_sdk/manager.py”, line 325, in discover
raise BlueSTInvalidOperationException(msg)
blue_st_sdk.utils.blue_st_exceptions.BlueSTInvalidOperationException:
Bluetooth scanning requires root privilege, so please run the script with “sudo”.