Skip to content

Instantly share code, notes, and snippets.

@WJKPK
Last active July 29, 2023 11:15
Show Gist options
  • Save WJKPK/bfe1930a0b2c79077bcefadf8aa42048 to your computer and use it in GitHub Desktop.
Save WJKPK/bfe1930a0b2c79077bcefadf8aa42048 to your computer and use it in GitHub Desktop.
Disconnecting ESP32C3 esp-wifi
Compiling thermo-esp v0.1.0 (/home/kruppenfield/Programowanie/thermo-esp)
Finished dev [unoptimized + debuginfo] target(s) in 0.41s
Running `espflash flash --monitor target/riscv32imc-unknown-none-elf/debug/thermo-esp`
[2023-07-28T22:16:26Z INFO ] 🚀 A new version of espflash is available: v2.0.1
[2023-07-28T22:16:26Z INFO ] Serial port: '/dev/ttyACM0'
[2023-07-28T22:16:26Z INFO ] Connecting...
[2023-07-28T22:16:26Z INFO ] Using flash stub
Chip type: esp32c3 (revision v0.4)
Crystal frequency: 40MHz
Flash size: 4MB
Features: WiFi, BLE
MAC address: 70:04:1d:77:13:80
App/part. size: 657,664/4,128,768 bytes, 15.93%
[2023-07-28T22:16:32Z INFO ] Flashing has completed!
Commands:
CTRL+R Reset chip
CTRL+C Exit
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380812
0x40380812 - esp_wifi::ble::btdm::interrupt_enable
at /home/kruppenfield/.cargo/git/checkouts/esp-wifi-836f3b2af57fa847/c7ca849/esp-wifi/src/ble/btdm.rs:119
SPIWP:0xee
mode:DIO, clock div:2
load:0x3fcd5820,len:0x16ec
0x3fcd5820 - _stack_start
at ??:??
load:0x403cc710,len:0x95c
0x403cc710 - ram_bt_set_tx_gain
at ??:??
load:0x403ce710,len:0x2dc0
0x403ce710 - ram_bt_set_tx_gain
at ??:??
SHA-256 comparison failed:
Calculated: 692c10f3e7d531666ff34d02d3da161b3daa41ea629010d031fe3706fbada122
Expected: 9fafed52ab0387e903bde368d0d6bfffe0dcc3d2f90dca069a4db891108c387c
Attempting to boot anyway...
entry 0x403cc710
0x403cc710 - ram_bt_set_tx_gain
at ??:??
I (43) boot: ESP-IDF v5.0-beta1-764-gdbcf640261 2nd stage bootloader
I (43) boot: compile time 11:30:26
I (43) boot: chip revision: V004
I (46) boot_comm: chip revision: 4, min. bootloader chip revision: 3
I (53) boot.esp32c3: SPI Speed : 40MHz
I (58) boot.esp32c3: SPI Mode : DIO
I (63) boot.esp32c3: SPI Flash Size : 4MB
I (68) boot: Enabling RNG early entropy source...
I (73) boot: Partition Table:
I (77) boot: ## Label Usage Type ST Offset Length
I (84) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (91) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (99) boot: 2 factory factory app 00 00 00010000 003f0000
I (106) boot: End of partition table
I (111) boot_comm: chip revision: 4, min. application chip revision: 3
I (118) esp_image: segment 0: paddr=00010020 vaddr=3c090020 size=12afch ( 76540) map
I (143) esp_image: segment 1: paddr=00022b24 vaddr=3fc85a88 size=00500h ( 1280) load
I (144) esp_image: segment 2: paddr=0002302c vaddr=3fc9bbc8 size=00040h ( 64) load
I (149) esp_image: segment 3: paddr=00023074 vaddr=40380000 size=05a84h ( 23172) load
I (163) esp_image: segment 4: paddr=00028b00 vaddr=00000000 size=07518h ( 29976) 
I (172) esp_image: segment 5: paddr=00030020 vaddr=42000020 size=808b0h (526512) map
I (291) boot: Loaded app from partition at offset 0x10000
I (291) boot: Disabling RNG early entropy source...
DEBUG - ble init
DEBUG - BT controller compile version 85b425c
DEBUG - !!!! unimplemented srand 420
DEBUG - The btdm_controller_init was initialized
DEBUG - coex_schm_status_bit_clear 1 -1
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
Connector created
DEBUG - coex_schm_status_bit_clear 1 -1
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
Ok(CommandComplete { num_packets: 5, opcode: 3075, data: [0] })
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
Ok(CommandComplete { num_packets: 5, opcode: 8198, data: [0] })
Ok(CommandComplete { num_packets: 5, opcode: 8200, data: [0] })
DEBUG - coex_schm_status_bit_set 1 1
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
Ok(CommandComplete { num_packets: 5, opcode: 8202, data: [0] })
started advertising
DEBUG - coex_schm_status_bit_clear 1 1
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
DEBUG - coex_schm_status_bit_set 1 4
DEBUG - ignored coex_wifi_sleep_set 1 - because original implementation does the same
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
WARN - Ignoring unknown event 3e data = [01, 00, 01, 00, 01, 01, 62, 56, a8, a3, 5b, 43, 26, 00, 00, 00, f4, 01, 00]
DEBUG - polled: Some(Event(Unknown))
DEBUG - polled: Some(AsyncData(AclPacket { handle: 1, boundary_flag: FirstAutoFlushable, bc_flag: PointToPoint, data: [7, 0, 4, 0, 10, 1, 0, ff, ff, 0, 28] }))
DEBUG - att: ReadByGroupTypeReq { start: 1, end: ffff, group_type: Uuid16(2800) }
DEBUG - Check attribute Uuid16(2800) 1
DEBUG - found! 1
DEBUG - src_handle 1
DEBUG - data [11, 14, 1, 0, 6, 0, 38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 93]
DEBUG - encoded_l2cap [16, 0, 4, 0, 11, 14, 1, 0, 6, 0, 38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 93]
DEBUG - writing [2, 1, 20, 1a, 0, 16, 0, 4, 0, 11, 14, 1, 0, 6, 0, 38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 93]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(AsyncData(AclPacket { handle: 1, boundary_flag: FirstAutoFlushable, bc_flag: PointToPoint, data: [7, 0, 4, 0, 10, 7, 0, ff, ff, 0, 28] }))
DEBUG - att: ReadByGroupTypeReq { start: 7, end: ffff, group_type: Uuid16(2800) }
DEBUG - Check attribute Uuid16(2800) 1
DEBUG - Check attribute Uuid16(2803) 2
DEBUG - Check attribute Uuid128([38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 93]) 3
DEBUG - Check attribute Uuid16(2902) 4
DEBUG - Check attribute Uuid16(2803) 5
DEBUG - Check attribute Uuid128([38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 95]) 6
DEBUG - src_handle 1
DEBUG - data [1, 10, 7, 0, a]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1, 10, 7, 0, a]
DEBUG - writing [2, 1, 20, 9, 0, 5, 0, 4, 0, 1, 10, 7, 0, a]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(AsyncData(AclPacket { handle: 1, boundary_flag: FirstAutoFlushable, bc_flag: PointToPoint, data: [7, 0, 4, 0, 8, 1, 0, 6, 0, 2, 28] }))
DEBUG - att: ReadByTypeReq { start: 1, end: 6, attribute_type: Uuid16(2802) }
DEBUG - Check attribute Uuid16(2800) 1
DEBUG - Check attribute Uuid16(2803) 2
DEBUG - Check attribute Uuid128([38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 93]) 3
DEBUG - Check attribute Uuid16(2902) 4
DEBUG - Check attribute Uuid16(2803) 5
DEBUG - Check attribute Uuid128([38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 95]) 6
DEBUG - src_handle 1
DEBUG - data [1, 8, 1, 0, a]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1, 8, 1, 0, a]
DEBUG - writing [2, 1, 20, 9, 0, 5, 0, 4, 0, 1, 8, 1, 0, a]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(AsyncData(AclPacket { handle: 1, boundary_flag: FirstAutoFlushable, bc_flag: PointToPoint, data: [7, 0, 4, 0, 8, 1, 0, 6, 0, 3, 28] }))
DEBUG - att: ReadByTypeReq { start: 1, end: 6, attribute_type: Uuid16(2803) }
DEBUG - Check attribute Uuid16(2800) 1
DEBUG - Check attribute Uuid16(2803) 2
DEBUG - found! Uuid16(2803) 2
DEBUG - src_handle 1
DEBUG - data [9, 15, 2, 0, 12, 3, 0, 38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 93]
DEBUG - encoded_l2cap [17, 0, 4, 0, 9, 15, 2, 0, 12, 3, 0, 38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 93]
DEBUG - writing [2, 1, 20, 1b, 0, 17, 0, 4, 0, 9, 15, 2, 0, 12, 3, 0, 38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 93]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(AsyncData(AclPacket { handle: 1, boundary_flag: FirstAutoFlushable, bc_flag: PointToPoint, data: [7, 0, 4, 0, 8, 3, 0, 6, 0, 3, 28] }))
DEBUG - att: ReadByTypeReq { start: 3, end: 6, attribute_type: Uuid16(2803) }
DEBUG - Check attribute Uuid16(2800) 1
DEBUG - Check attribute Uuid16(2803) 2
DEBUG - Check attribute Uuid128([38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 93]) 3
DEBUG - Check attribute Uuid16(2902) 4
DEBUG - Check attribute Uuid16(2803) 5
DEBUG - found! Uuid16(2803) 5
DEBUG - src_handle 1
DEBUG - data [9, 15, 5, 0, 8, 6, 0, 38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 95]
DEBUG - encoded_l2cap [17, 0, 4, 0, 9, 15, 5, 0, 8, 6, 0, 38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 95]
DEBUG - writing [2, 1, 20, 1b, 0, 17, 0, 4, 0, 9, 15, 5, 0, 8, 6, 0, 38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 95]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(AsyncData(AclPacket { handle: 1, boundary_flag: FirstAutoFlushable, bc_flag: PointToPoint, data: [7, 0, 4, 0, 8, 6, 0, 6, 0, 3, 28] }))
DEBUG - att: ReadByTypeReq { start: 6, end: 6, attribute_type: Uuid16(2803) }
DEBUG - Check attribute Uuid16(2800) 1
DEBUG - Check attribute Uuid16(2803) 2
DEBUG - Check attribute Uuid128([38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 93]) 3
DEBUG - Check attribute Uuid16(2902) 4
DEBUG - Check attribute Uuid16(2803) 5
DEBUG - Check attribute Uuid128([38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 95]) 6
DEBUG - src_handle 1
DEBUG - data [1, 8, 6, 0, a]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1, 8, 6, 0, a]
DEBUG - writing [2, 1, 20, 9, 0, 5, 0, 4, 0, 1, 8, 6, 0, a]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(AsyncData(AclPacket { handle: 1, boundary_flag: FirstAutoFlushable, bc_flag: PointToPoint, data: [5, 0, 4, 0, 4, 4, 0, 4, 0] }))
DEBUG - att: FindInformation { start_handle: 4, end_handle: 4 }
DEBUG - Check attribute Uuid16(2800) 1
DEBUG - Check attribute Uuid16(2803) 2
DEBUG - Check attribute Uuid128([38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 93]) 3
DEBUG - Check attribute Uuid16(2902) 4
DEBUG - found! Uuid16(2902) 4
DEBUG - Check attribute Uuid16(2803) 5
DEBUG - Check attribute Uuid128([38, cf, 62, a, c3, fb, 10, 9f, eb, 11, 54, 23, e0, 12, 73, 95]) 6
DEBUG - src_handle 1
DEBUG - data [5, 1, 4, 0, 2, 29]
DEBUG - encoded_l2cap [6, 0, 4, 0, 5, 1, 4, 0, 2, 29]
DEBUG - writing [2, 1, 20, a, 0, 6, 0, 4, 0, 5, 1, 4, 0, 2, 29]
DEBUG - ignored coex_wifi_sleep_set 1 - because original implementation does the same
WARN - Ignoring unknown event 3e data = [03, 00, 01, 00, 06, 00, 00, 00, f4, 01]
DEBUG - polled: Some(Event(Unknown))
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
WARN - Ignoring unknown event 3e data = [03, 00, 01, 00, 26, 00, 00, 00, f4, 01]
DEBUG - polled: Some(Event(Unknown))
DEBUG - polled: Some(AsyncData(AclPacket { handle: 1, boundary_flag: FirstAutoFlushable, bc_flag: PointToPoint, data: [3, 0, 4, 0, a, 3, 0] }))
DEBUG - att: ReadReq { handle: 3 }
DEBUG - src_handle 1
DEBUG - data [b, 1c, 0]
DEBUG - encoded_l2cap [3, 0, 4, 0, b, 1c, 0]
DEBUG - writing [2, 1, 20, 7, 0, 3, 0, 4, 0, b, 1c, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(AsyncData(AclPacket { handle: 1, boundary_flag: FirstAutoFlushable, bc_flag: PointToPoint, data: [5, 0, 4, 0, 12, 4, 0, 1, 0] }))
DEBUG - att: WriteReq { handle: 4, data: [1, 0] }
DEBUG - src_handle 1
DEBUG - data [13]
DEBUG - encoded_l2cap [1, 0, 4, 0, 13]
DEBUG - writing [2, 1, 20, 5, 0, 1, 0, 4, 0, 13]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(AsyncData(AclPacket { handle: 1, boundary_flag: FirstAutoFlushable, bc_flag: PointToPoint, data: [4, 0, 4, 0, 12, 6, 0, 1] }))
DEBUG - att: WriteReq { handle: 6, data: [1] }
DEBUG - src_handle 1
DEBUG - data [13]
DEBUG - encoded_l2cap [1, 0, 4, 0, 13]
DEBUG - writing [2, 1, 20, 5, 0, 1, 0, 4, 0, 13]
DEBUG - Heating: actual: 28 expected: 29
DEBUG - src_handle 1
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 1, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - Heating: actual: 28 expected: 30
DEBUG - src_handle 1
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 1, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - Heating: actual: 28 expected: 31
DEBUG - src_handle 1
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 1, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - Heating: actual: 28 expected: 32
DEBUG - src_handle 1
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 1, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - Heating: actual: 28 expected: 33
DEBUG - src_handle 1
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 1, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - Heating: actual: 28 expected: 34
DEBUG - src_handle 1
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 1, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - coex_schm_status_bit_clear 1 4
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 1, completed_packets: 1 }))
DEBUG - polled: Some(Event(DisconnectComplete { handle: 1, status: Okay, reason: ConnectionTimeout }))
DEBUG - coex_schm_status_bit_clear 1 -1
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
Ok(CommandComplete { num_packets: 5, opcode: 3075, data: [0] })
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
Ok(CommandComplete { num_packets: 5, opcode: 8198, data: [0] })
Ok(CommandComplete { num_packets: 5, opcode: 8200, data: [0] })
DEBUG - coex_schm_status_bit_set 1 1
DEBUG - ignored coex_wifi_sleep_set 0 - because original implementation does the same
Ok(CommandComplete { num_packets: 5, opcode: 8202, data: [0] })
started advertising
DEBUG - Heating: actual: 28 expected: 35
DEBUG - src_handle 0
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 0, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 0, completed_packets: 1 }))
DEBUG - Heating: actual: 27 expected: 36
DEBUG - src_handle 0
DEBUG - data [1b, 3, 0, 1b, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1b, 0]
DEBUG - writing [2, 0, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1b, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 0, completed_packets: 1 }))
DEBUG - Heating: actual: 27 expected: 37
DEBUG - src_handle 0
DEBUG - data [1b, 3, 0, 1b, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1b, 0]
DEBUG - writing [2, 0, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1b, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 0, completed_packets: 1 }))
DEBUG - Heating: actual: 28 expected: 38
DEBUG - src_handle 0
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 0, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 0, completed_packets: 1 }))
DEBUG - Heating: actual: 28 expected: 39
DEBUG - src_handle 0
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 0, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 0, completed_packets: 1 }))
DEBUG - Heating: actual: 28 expected: 40
DEBUG - src_handle 0
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 0, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 0, completed_packets: 1 }))
DEBUG - Heating: actual: 28 expected: 41
DEBUG - src_handle 0
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 0, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 0, completed_packets: 1 }))
DEBUG - Heating: actual: 27 expected: 42
DEBUG - src_handle 0
DEBUG - data [1b, 3, 0, 1b, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1b, 0]
DEBUG - writing [2, 0, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1b, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 0, completed_packets: 1 }))
DEBUG - Heating: actual: 28 expected: 43
DEBUG - src_handle 0
DEBUG - data [1b, 3, 0, 1c, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - writing [2, 0, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1c, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 0, completed_packets: 1 }))
DEBUG - Heating: actual: 27 expected: 44
DEBUG - src_handle 0
DEBUG - data [1b, 3, 0, 1b, 0]
DEBUG - encoded_l2cap [5, 0, 4, 0, 1b, 3, 0, 1b, 0]
DEBUG - writing [2, 0, 20, 9, 0, 5, 0, 4, 0, 1b, 3, 0, 1b, 0]
DEBUG - polled: Some(Event(NumberOfCompletedPackets { number_of_connection_handles: 1, connection_handles: 0, completed_packets: 1 }))
nRF Connect, 2023-07-29
ESP32-C3 (72:04:1D:77:13:81)
V 00:16:38.033 Connecting to 72:04:1D:77:13:81...
D 00:16:38.033 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D 00:16:40.400 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D 00:16:40.433 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 00:16:40.433 Connected to 72:04:1D:77:13:81
V 00:16:40.457 Discovering services...
D 00:16:40.457 gatt.discoverServices()
I 00:16:42.803 Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
D 00:16:42.872 [Callback] Services discovered with status: 0
I 00:16:42.873 Services discovered
V 00:16:42.891 Unknown Service (937312e0-2354-11eb-9f10-fbc30a62cf38)
- Unknown Characteristic [N R] (937312e0-2354-11eb-9f10-fbc30a62cf38)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [W] (957312e0-2354-11eb-9f10-fbc30a62cf38)
D 00:16:42.892 gatt.setCharacteristicNotification(937312e0-2354-11eb-9f10-fbc30a62cf38, true)
I 00:16:43.064 Connection parameters updated (interval: 47.5ms, latency: 0, timeout: 5000ms)
V 00:16:52.733 Reading characteristic 937312e0-2354-11eb-9f10-fbc30a62cf38
D 00:16:52.733 gatt.readCharacteristic(937312e0-2354-11eb-9f10-fbc30a62cf38)
I 00:16:53.041 Read Response received from 937312e0-2354-11eb-9f10-fbc30a62cf38, value: (0x) 1C-00
A 00:16:53.041 "(0x) 1C-00" received
V 00:16:57.168 Enabling notifications for 937312e0-2354-11eb-9f10-fbc30a62cf38
D 00:16:57.168 gatt.setCharacteristicNotification(937312e0-2354-11eb-9f10-fbc30a62cf38, true)
D 00:16:57.169 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x0100)
I 00:16:57.505 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00
A 00:16:57.505 "Notifications enabled" sent
V 00:16:57.522 Notifications enabled for 937312e0-2354-11eb-9f10-fbc30a62cf38
V 00:17:06.909 Writing request to characteristic 957312e0-2354-11eb-9f10-fbc30a62cf38
D 00:17:06.909 gatt.writeCharacteristic(957312e0-2354-11eb-9f10-fbc30a62cf38, value=0x01)
I 00:17:07.253 Notification received from 937312e0-2354-11eb-9f10-fbc30a62cf38, value: (0x) 1C-00
A 00:17:07.253 "(0x) 1C-00" received
I 00:17:07.256 Data written to 957312e0-2354-11eb-9f10-fbc30a62cf38, value: (0x) 01
A 00:17:07.257 "(0x) 01" sent
D 00:17:12.307 [Callback] Connection state changed with status: 8 and new state: DISCONNECTED (0)
E 00:17:12.308 Error 8 (0x8): GATT CONN TIMEOUT
I 00:17:12.308 Disconnected
D 00:17:12.377 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D 00:17:29.543 gatt.close()
D 00:17:29.544 wait(200)
V 00:17:29.746 Connecting to 72:04:1D:77:13:81...
D 00:17:29.746 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D 00:17:30.116 [Callback] Connection state changed with status: 133 and new state: DISCONNECTED (0)
E 00:17:30.116 Error 133 (0x85): GATT ERROR
I 00:17:30.116 Disconnected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment