Error in AdafruitBluefruit LE UART page?

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
twrackers
 
Posts: 135
Joined: Fri Jan 18, 2013 7:42 pm

Error in AdafruitBluefruit LE UART page?

Post by twrackers »

I have found a discrepancy between the Adafruit Bluefruit LE UART page at https://learn.adafruit.com/introducing- ... -2176826-4 and what my Adafruit Feather M0 Bluefruit LE actually reports on the characteristics of the UART service. The doc shows:
Screenshot 2021-07-26 181837.jpg
Screenshot 2021-07-26 181837.jpg (31.4 KiB) Viewed 114 times
while my Python test code reads the characteristics as:

Code: Select all

TX: UUID 6e400002-b5a3-f393-e0a9-e50e24dcca9e WRITE NO RESPONSE WRITE 
RX: UUID 6e400003-b5a3-f393-e0a9-e50e24dcca9e NOTIFY 
The test code, using

Code: Select all

bluepy
, is

Code: Select all

from bluepy import btle

dev = btle.Peripheral(deviceAddr="D8:72:D1:34:82:99", addrType=btle.ADDR_TYPE_RANDOM,
                      iface=0)
services = dev.getServices()

UUID_uart = "6e400001-b5a3-f393-e0a9-e50e24dcca9e"
UUID_tx = btle.UUID("6e400002-b5a3-f393-e0a9-e50e24dcca9e")
UUID_rx = btle.UUID("6e400003-b5a3-f393-e0a9-e50e24dcca9e")

service_uart = dev.getServiceByUUID(UUID_uart)
chars_tx = service_uart.getCharacteristics(forUUID=UUID_tx)
chars_rx = service_uart.getCharacteristics(forUUID=UUID_rx)
print("TX: UUID", UUID_tx, chars_tx[0].propertiesToString())
print("RX: UUID", UUID_rx, chars_rx[0].propertiesToString())
I get the same result using the nRF Connect app the TX characteristic has only the NOTIFY property, while the RX characteristic has WRITE and WRITE NO RESPONSE properties
Screenshot_20210726-181146_nRF Connect.jpg
Screenshot_20210726-181146_nRF Connect.jpg (270.8 KiB) Viewed 114 times
.

User avatar
twrackers
 
Posts: 135
Joined: Fri Jan 18, 2013 7:42 pm

Re: Error in AdafruitBluefruit LE UART page?

Post by twrackers »

Sorry about formatting, but this forum doesn't seem to allow editing of a post after it's submitted.

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”