Comments (6)
Yes, they should be visible both in the list of services under the indicating characteristic and in the log.
from android-nrf-connect.
Thanks for the response. I can see the Temperature service listed and I'm able to enable indications. The app does mention "Indications Enabled" under descriptor and in the device the bluetooth icon also becomes steady indicating successful pairing. Yet when I measure the temperature in the device, I'm not seeing the temperature in the log. The mobile runs on Android API 33 and is Samsung mobile.
from android-nrf-connect.
Perhaps the indication is somehow triggered from the device? Indications and notifications should be shown. Read responses are shown only when read was requested from nRF Connect, not some other app.
from android-nrf-connect.
So, I wasn't getting any indication under the Temperature service when I measure the temperature. So, I enabled indications on all services that are marked "Indicate" or "Notify". And every time I read the temperature using the thermometer I received notifications in another unknown service. Part of the log is below.
A 14:21:31.098 "Notifications enabled" sent
V 14:21:31.106 Notifications enabled for 0000fff3-0000-1000-8000-00805f9b34fb
V 14:21:31.855 Enabling notifications for 0000fff4-0000-1000-8000-00805f9b34fb
D 14:21:31.855 gatt.setCharacteristicNotification(0000fff4-0000-1000-8000-00805f9b34fb, true)
D 14:21:31.859 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x0100)
I 14:21:31.973 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00
A 14:21:31.974 "Notifications enabled" sent
V 14:21:31.980 Notifications enabled for 0000fff4-0000-1000-8000-00805f9b34fb
I 14:21:38.707 Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) A5-0C-32-11-06-24-5C-51-6A-FA-E5-03-C9
A 14:21:38.707 "(0x) A5-0C-32-11-06-24-5C-51-6A-FA-E5-03-C9" received
I 14:21:39.295 Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) A5-0C-32-11-06-24-5C-51-6A-FA-E5-03-C9
A 14:21:39.295 "(0x) A5-0C-32-11-06-24-5C-51-6A-FA-E5-03-C9" received
I 14:21:39.978 Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) A5-0C-32-11-06-24-5C-51-6A-FA-E5-03-C9
A 14:21:39.978 "(0x) A5-0C-32-11-06-24-5C-51-6A-FA-E5-03-C9" received
I 14:21:40.562 Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) A5-0C-32-11-06-24-5C-51-6A-FA-E5-03-C9
A 14:21:40.562 "(0x) A5-0C-32-11-06-24-5C-51-6A-FA-E5-03-C9" received
V 14:22:15.625 Reading characteristic 0000fff5-0000-1000-8000-00805f9b34fb
D 14:22:15.625 gatt.readCharacteristic(0000fff5-0000-1000-8000-00805f9b34fb)
I 14:22:15.752 Read Response received from 0000fff5-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
A 14:22:15.752 "(0x) 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00" received
D 14:23:31.921 [Callback] Connection state changed with status: 19 and new state: DISCONNECTED (0)
W 14:23:31.921 Connection terminated by peer (status 19)
I 14:23:31.921 Disconnected
D 14:23:31.986 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED.
Could it be that the manufacturer is sending notifications under different service. Does the value look like a temperature measurement?
from android-nrf-connect.
Seems like the manufacturer decided to use proprietary service for temperature measurements, not a standard one. That means, that the value can be encoded in any way.
If you know what value was shown, you could try to reverse engineer the value from the bytes.
from android-nrf-connect.
Yeah. I have the value. Will try to reverse engineer it. Thanks for your help!
from android-nrf-connect.
Related Issues (20)
- Do not average RSSI when not available (127 or 0x7f) HOT 1
- Element 'assert-server-service' does not have a match in class no.nordicsemi.android.mcp.test.domain.Test HOT 2
- General Question about a data shown in scan result HOT 1
- test.bat script fails to push file on Android 13 HOT 2
- Cannot use key-value pairs for TIMEOUT parameter
- nrf connect app HOT 1
- A wristband not discovered by nRF Connect Android HOT 1
- Compatible with permissions of Android 12 and above HOT 2
- [Macros] extract value of a client-write HOT 1
- Does the nRF-Connect app use the AndroidRxBle lib? HOT 2
- import/export feature for the Advertiser
- Is LE Subrate feature enabled in NRF Connect APP for latest andriod versions HOT 1
- Is McuMgr with DFU not supported with automated testing HOT 2
- How to advertise a service with multiple characterisitcs? HOT 2
- Watch
- 4.27.0 app crashes during automated tests HOT 3
- Wrong behavior HOT 1
- How is "Device type" determined by the scanner? HOT 1
- @chomsin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-nrf-connect.