bluetooth-gatt

Android app keeps going back to main activity UI when I try to display something using an adapter on the current activity

浪子不回头ぞ 提交于 2021-02-10 06:45:55
问题 I am very new to android development and am building an app that can read characteristics from a BLE device. I am able to connect to a device and read its characteristics. However, I have a problem is displaying the characteristics using an adapter. Initially, I tried using the RecycleView adapter but my program kept going back to the main activity as soon as I tried to notify my recycleview adapter and everything left on the Logcat would be this: 2020-11-24 13:35:37.220 12966-12966/? I

Android app keeps going back to main activity UI when I try to display something using an adapter on the current activity

爷,独闯天下 提交于 2021-02-10 06:45:18
问题 I am very new to android development and am building an app that can read characteristics from a BLE device. I am able to connect to a device and read its characteristics. However, I have a problem is displaying the characteristics using an adapter. Initially, I tried using the RecycleView adapter but my program kept going back to the main activity as soon as I tried to notify my recycleview adapter and everything left on the Logcat would be this: 2020-11-24 13:35:37.220 12966-12966/? I

Python Bluez GATT server - client cannot disconnect

余生颓废 提交于 2021-02-08 07:55:05
问题 I've been working on a simple bluetooth GATT server app working on a Raspberry pi 3 model B. This app uses Bluez (version 5.49) to advertise services and characteristics. The app is based on the following example: https://github.com/Jumperr-labs/python-gatt-server So far I have almost ended the server: clients can read and write in characteristics and services are advertised. The problem appears when the clients attempt to disconnect to the server. The server seems to be rejecting

Python Bluez GATT server - client cannot disconnect

半腔热情 提交于 2021-02-08 07:54:52
问题 I've been working on a simple bluetooth GATT server app working on a Raspberry pi 3 model B. This app uses Bluez (version 5.49) to advertise services and characteristics. The app is based on the following example: https://github.com/Jumperr-labs/python-gatt-server So far I have almost ended the server: clients can read and write in characteristics and services are advertised. The problem appears when the clients attempt to disconnect to the server. The server seems to be rejecting

How to detect bluetooth changes (connection state and characteristic) when app is in background without a foreground service

送分小仙女□ 提交于 2021-01-29 13:10:05
问题 I have a device that is a simple BLE device with a button, and I need to detect when the user long presses the device (via characteristic change) even when the app is in the background. This click will trigger a remote call the server. I have two questions regarding this: #1 Can I have this achieved without a foreground service? #2 If I have a foreground service running with the BLE GATT callbacks how can I detect when the device is in range again? My current solution is to have a foreground

Detecting the buttons on a Bluetooth Remote (HID over GATT)

被刻印的时光 ゝ 提交于 2020-11-29 03:07:23
问题 I have a Bluetooth LE Remote which I would like to pair with my Raspberry Pi Zero. ] I was able to successfully pair the remote with an Android phone and it then worked like a Keyboard and I was able to type numbers on the keypad into a blank note and even change the volume on the phone. It seems raspbian does not support HID over Gatt, which means that I need to implement/mimic a minimal HID over GATT behaviour using python. (Please correct me if there is a more straight-forward way to do

Detecting the buttons on a Bluetooth Remote (HID over GATT)

孤人 提交于 2020-11-29 03:06:21
问题 I have a Bluetooth LE Remote which I would like to pair with my Raspberry Pi Zero. ] I was able to successfully pair the remote with an Android phone and it then worked like a Keyboard and I was able to type numbers on the keypad into a blank note and even change the volume on the phone. It seems raspbian does not support HID over Gatt, which means that I need to implement/mimic a minimal HID over GATT behaviour using python. (Please correct me if there is a more straight-forward way to do

Detecting the buttons on a Bluetooth Remote (HID over GATT)

懵懂的女人 提交于 2020-11-29 03:02:46
问题 I have a Bluetooth LE Remote which I would like to pair with my Raspberry Pi Zero. ] I was able to successfully pair the remote with an Android phone and it then worked like a Keyboard and I was able to type numbers on the keypad into a blank note and even change the volume on the phone. It seems raspbian does not support HID over Gatt, which means that I need to implement/mimic a minimal HID over GATT behaviour using python. (Please correct me if there is a more straight-forward way to do

Detecting the buttons on a Bluetooth Remote (HID over GATT)

走远了吗. 提交于 2020-11-29 03:01:56
问题 I have a Bluetooth LE Remote which I would like to pair with my Raspberry Pi Zero. ] I was able to successfully pair the remote with an Android phone and it then worked like a Keyboard and I was able to type numbers on the keypad into a blank note and even change the volume on the phone. It seems raspbian does not support HID over Gatt, which means that I need to implement/mimic a minimal HID over GATT behaviour using python. (Please correct me if there is a more straight-forward way to do