Skip to content

unlock failed with error code 0x01 and 0x04 #40

@the-yellow-sky

Description

@the-yellow-sky

Hi Benjamin,

I hope you’re doing well. I’ve been struggling with an issue while trying to connect my ESP32-S3 to an Omron device HEM-7155T using BLE with the NimBLE library. Despite many attempts, I keep hitting a wall with the unlock process and could really use your help.

Problem Description:
I can connect to the Omron device, discover its services and characteristics, and set up a secure connection.
I’ve registered for notifications on the unlock characteristic.
When I send the unlock command (prefix 0x01 followed by a 16-byte unlock key), I get a notification back saying the unlock failed with error code 0x01. (before setting up secure connection, I got error code 0x04)

What I’ve Tried:
Double-checked that my unlock key matches the one from a working Python example.
Experimented with sending the command without the 0x01 prefix, but no luck.
Made sure the connection is secure before sending the command.
Checked the device state and even tried resetting bonding info, but the error still happens.

My Questions:
Could you explain what error code 0x01 and 0x04 mean in this case?
Are there specific steps or requirements for unlocking the Omron device with NimBLE that I might be missing?
Is there any documentation on the error codes the device returns during the unlock process?
I’ve failed so many times that I’m at my wit’s end, so I’d really appreciate any advice or insights you could share. If you need more details or logs to figure this out, just let me know—I’m happy to provide them.

Thank you so much for your time and help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions