Search found 12 matches
- Sun Jul 05, 2020 3:32 pm
- Forum: Programs, Libraries and Tools
- Topic: ubluetooth does not decode advertising payloads
- Replies: 5
- Views: 3433
Re: ubluetooth does not decode advertising payloads
I have done some further tests now by including the methods decode_services, decode_field, decode_name and the constants of the ADV_TYPES into my central device class directly I.e. not imported from ble_advertising. This is working now i.e. services for ADV_TYPE UUID128_MORE are no properly decoded....
- Sat Jul 04, 2020 7:14 pm
- Forum: Programs, Libraries and Tools
- Topic: ubluetooth does not decode advertising payloads
- Replies: 5
- Views: 3433
Re: ubluetooth does not decode advertising payloads
I was able to track down further why the device I am looking for is not showing up as scan result with the standard ble_advertising helper on GitHub. My initial suspicion was actually right. The device advertises with ADV_TYPE 6 which means incomplete UUID128 list of services. The payload is as foll...
- Sat Jul 04, 2020 5:07 pm
- Forum: ESP32 boards
- Topic: example BLE micropython
- Replies: 9
- Views: 33344
- Fri Jul 03, 2020 7:23 pm
- Forum: Programs, Libraries and Tools
- Topic: ubluetooth does not decode advertising payloads
- Replies: 5
- Views: 3433
Re: ubluetooth does not decode advertising payloads
Just for if anyone interested, the payload is structured as following (as stated in the ble_advertising example on GitHub: # 1 byte data length (N + 1) # 1 byte type (see constants below) # N bytes type-specific data So for the example payload 02,01,06,0c,09,6d,69,63,72,6f,70,79,74,68,6f,6e,03,03,1a...
- Fri Jul 03, 2020 3:34 pm
- Forum: Programs, Libraries and Tools
- Topic: ubluetooth does not decode advertising payloads
- Replies: 5
- Views: 3433
Re: ubluetooth does not decode advertising payloads
I looked into the bluetooth spec more closely and it looks like the recorded payloads did not advertise any service. This is probably the reason why the services are empty. However, that leaves me the question why my own bluetooth peripheral (Arduino Nano BLE) is not discovered by the central ( ESP3...
- Fri Jul 03, 2020 6:12 am
- Forum: Programs, Libraries and Tools
- Topic: ubluetooth does not decode advertising payloads
- Replies: 5
- Views: 3433
ubluetooth does not decode advertising payloads
I am using the BLE advertising helpers from GitHub in my central device scanning for peripherals. However, services for advertising packets that have UUID16 are decoded. For devices that have UUID128 services list are returned empty. In the code below first the example payload is generated and decod...
- Fri Jul 03, 2020 6:02 am
- Forum: Programs, Libraries and Tools
- Topic: ubluetooth - Question regarding event codes and subscribing to notifying characteristics
- Replies: 10
- Views: 6285
Re: ubluetooth - Question regarding event codes and subscribing to notifying characteristics
Sure you are right.
The reason why I posted it here was that I thought it was related to version and documentation differences.
I will start a new thread for the problem.
The reason why I posted it here was that I thought it was related to version and documentation differences.
I will start a new thread for the problem.
- Thu Jul 02, 2020 7:50 pm
- Forum: Programs, Libraries and Tools
- Topic: ubluetooth - Question regarding event codes and subscribing to notifying characteristics
- Replies: 10
- Views: 6285
Re: ubluetooth - Question regarding event codes and subscribing to notifying characteristics
The constants seems to be correct after checking the bluetooth specification again. Nonetheless I am only returning empty services for the scanned devices except for the Corona warn characteristic of a nearby smartphone. [] [] [UUID16(0xfd6f)] [] [] [] [] [] [] Is there some possibility of logging i...
- Thu Jul 02, 2020 4:36 pm
- Forum: Programs, Libraries and Tools
- Topic: ubluetooth - Question regarding event codes and subscribing to notifying characteristics
- Replies: 10
- Views: 6285
Re: ubluetooth - Question regarding event codes and subscribing to notifying characteristics
I have noticed that scan results only works for me for UUID16. Devices for with UUID32 or UUID128 are not detected. I suspect that is a similar problem with the IRQs. These constants are not correct for 1.12 are they? Advertising payloads are repeated packets of the following form: # 1 byte data len...
- Wed Jul 01, 2020 7:37 pm
- Forum: Programs, Libraries and Tools
- Topic: ubluetooth - Question regarding event codes and subscribing to notifying characteristics
- Replies: 10
- Views: 6285
Re: ubluetooth - Question regarding event codes and subscribing to notifying characteristics
To enable notifications you need to set the "notifications enabled" bit on the CCCB descriptor. (This is what nRF Connect does when you toggle notifications). Thank you! How do find the value handle for the CCCB descriptor for a specific characteristic? Do I simply look for the 0X2902 UUID followin...