Re: Baffled by Bluetooth - Help
Posted: Mon Jul 19, 2021 12:02 am
Here is a firmware.bin file for the T-Display with MicroPython v1.16-107-g9f71a11d3 and the st7789 driver compiled with esp-idf42.
Russ
Russ
Please see the new forum at
https://forum.micropython.org/
That's awesome! Many thanks.russ_h wrote: ↑Mon Jul 19, 2021 12:02 amHere is a firmware.bin file for the T-Display with MicroPython v1.16-107-g9f71a11d3 and the st7789 driver compiled with esp-idf42.
Russ
Code: Select all
Unknown Service (0000ffe0-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [N R W] (0000ffe1-0000-1000-8000-00805f9b34fb)
Client Characteristic Configuration (0x2902)
Characteristic User Description (0x2901)
- Unknown Characteristic [R W] (0000ffee-0000-1000-8000-00805f9b34fb)
Characteristic User Description (0x2901)
Unknown Descriptor (fe3cf737-79ed-f667-fdff-bfd4eeb3b7ff)
Unknown Descriptor (fe3cf737-79ed-f667-fdff-bfd4eeb3b7ff)
Unknown Descriptor (fe3cf737-79ed-f667-fdff-bfd4eeb3b7ff)
Unknown Descriptor (fe3cf737-79ed-f667-fdff-bfd4eeb3b7ff)
Unknown Descriptor (fe3cf737-79ed-f667-fdff-bfd4eeb3b7ff)
Unknown Descriptor (fe3cf737-79ed-f667-fdff-bfd4eeb3b7ff)
Unknown Descriptor (fe3cf737-79ed-f667-fdff-bfd4eeb3b7ff)
Unknown Descriptor (fe3cf737-79ed-f667-fdff-bfd4eeb3b7ff)
Unknown Descriptor (fe3cf737-79ed-f667-fdff-bfd4eeb3b7ff)
D 17:38:45.456 gatt.setCharacteristicNotification(00002a05-0000-1000-8000-00805f9b34fb, true)
D 17:38:45.459 gatt.setCharacteristicNotification(0000ffe1-0000-1000-8000-00805f9b34fb, true)
I 17:38:45.474 Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 5000ms)
V 17:38:59.284 Writing request to characteristic 0000ffe1-0000-1000-8000-00805f9b34fb
D 17:38:59.284 gatt.writeCharacteristic(0000ffe1-0000-1000-8000-00805f9b34fb, value=0x41545A0D)
I 17:38:59.425 Data written to 0000ffe1-0000-1000-8000-00805f9b34fb, value: (0x) 41-54-5A-0D
russ_h wrote: ↑Mon Jul 19, 2021 12:02 amHere is a firmware.bin file for the T-Display with MicroPython v1.16-107-g9f71a11d3 and the st7789 driver compiled with esp-idf42.
Russ
A bit cheeky, I know, but is there any chance you could upgrade your M5 Core 2 firmware as well?russ_h wrote: ↑Tue Jul 20, 2021 8:02 pmI'm not sure how that happened but the link is live again: https://penfold.owt.com/tdisplay/v1.16- ... rmware.bin
No problem, just updated the firmware files in the repo to v1.16.dougconran wrote: ↑Tue Jul 20, 2021 9:23 pmA bit cheeky, I know, but is there any chance you could upgrade your M5 Core 2 firmware as well?
That is truly fantastic, thank you so much. It means that I can try out @Jimmo's aioble stuff on the larger screen. I'm really grateful, thanks - Dougruss_h wrote: ↑Wed Jul 21, 2021 2:21 amNo problem, just updated the firmware files in the repo to v1.16.dougconran wrote: ↑Tue Jul 20, 2021 9:23 pmA bit cheeky, I know, but is there any chance you could upgrade your M5 Core 2 firmware as well?
Code: Select all
elif event == _IRQ_GATTC_CHARACTERISTIC_DONE:
# Characteristic query complete.
if self._tx_handle is not None and self._rx_handle is not None:
# We've finished connecting and discovering device, fire the connect callback.
self._ble.gattc_discover_descriptors(
self._conn_handle, self._start_handle, self._end_handle
)
if self._conn_callback:
self._conn_callback()
else:
print("Failed to find uart rx characteristic.")
elif event == _IRQ_GATTC_DESCRIPTOR_RESULT:
# Called for each descriptor found by gattc_discover_descriptors().
conn_handle, dsc_handle, uuid = data
if _UART_CCCD_UUID == uuid: # _UART_CCCD_UUID = 0x2902
print("Descr details : ",data)
self._ble.gattc_write(self._conn_handle, dsc_handle, b'\x01\x00',1)
elif event == _IRQ_GATTC_DESCRIPTOR_DONE:
# Called once service discovery is complete.
# Note: Status will be zero on success, implementation-specific value otherwise.
conn_handle, status = data
print("descr sts : ",data)
Code: Select all
Service done : 35
characteristic : UUID(0xffe1) - props : 26
characteristic : UUID(0xffee) - props : 10
Connected
Descr details : (0, 38, UUID(0x2902))
TX complete (0, 38, 0)
descr sts : (0, 0)