Skip to content

on BLE Tester, failed authentication doesn't ask again - it just pretends it worked #61

Description

@davelee98

A failed authentication on BLE Tester doesn't recognize the failure and "pretends to work." the canvas takes on the default of 6 Color and 800x480. You can even attempt an upload, which also ignores the authentication failure, resulting in error log lines equalling the number of failures.

[17:52:56][0652.911|C0] I: === BLE CLIENT DISCONNECTED (ESP32) ===
[17:52:57][0653.106|C0] I: BLE advertising restarted
[17:53:01][0657.200|C0] I: === BLE CLIENT CONNECTED (ESP32) ===
[17:53:02][0658.685|C0] I: BLE notify subscription: enabled
[17:53:03][0659.150|C0] D: BLE: RX 0x0040 (2 B): 00 40
[17:53:03][0659.151|C0] I: === [BLE] READ CONFIG COMMAND (0x0040) ===
[17:53:03][0659.151|C0] E: ERROR: [BLE] Command requires authentication (encryption enabled)
[17:53:03][0659.157|C0] D: Sending unencrypted response (error/status):
[17:53:03][0659.162|C0] D: Length: 3 bytes
[17:53:03][0659.165|C0] D: Command: 0x0040
[17:53:03][0659.168|C0] D: Full command: 00 40 FE
[17:53:11][0667.175|C0] D: BLE: RX 0x0043 (2 B): 00 43
[17:53:11][0667.176|C0] I: === [BLE] FIRMWARE VERSION COMMAND (0x0043) ===
[17:53:11][0667.176|C0] I: Firmware version: 1.0.0
[17:53:11][0667.179|C0] I: SHA: 0000000000000000000000000000000000000000
[17:53:11][0667.185|C0] D: [BLE][Q:0] TX 0x0043 (46 B): 00 43 01 00 28 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 ...
[17:53:11][0667.355|C0] D: BLE: RX 0x0044 (2 B): 00 44
[17:53:11][0667.356|C0] I: === [BLE] READ MSD COMMAND (0x0044) ===
[17:53:11][0667.356|C0] E: ERROR: [BLE] Command requires authentication (encryption enabled)
[17:53:11][0667.362|C0] D: Sending unencrypted response (error/status):
[17:53:11][0667.367|C0] D: Length: 3 bytes
[17:53:11][0667.370|C0] D: Command: 0x0044
[17:53:11][0667.373|C0] D: Full command: 00 44 FE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions