Last Updated on : 2024-06-04 08:14:02download
This topic describes the commands for the door lock password service.
There are two protocols for requesting temporary passwords from the cloud, depending on whether password positional notation applies. Ensure you use the correct protocol to make a request.
A type of dynamic password that can be used even if a device is disconnected from the internet for long periods of time.
The MCU sends the following data.
Field | Bytes | Description |
---|---|---|
Header | 2 | 0x55aa |
Version | 1 | 0x03 |
Command | 1 | 0x16 |
Data length | 2 | 7 + N |
Data | 7 + N | Year(1) + mon(1) + day(1) + hour(1) + min(1) + sec(1) + code_len(1) + code(n), indicating the GMT, password length, and password content. |
Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
Example
1849455172
55 AA 00 16 00 11 15 01 0B 08 12 2A 0A 01 08 04 09 04 05 05 01 07 02 C3
The module returns the following data.
Field | Bytes | Description |
---|---|---|
Header | 2 | 0x55aa |
Version | 1 | 0x00 |
Command | 1 | 0x16 |
Data length | 2 | 3 + N |
Data | 3 + N | Result(1) + type(1) + decode_len(1) + decode(N)
|
Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
To maximize power saving, when detecting multiple temporary passwords, the MCU then calls this interface to get password data for updating locally stored data.
The module sends the MCU time data in GMT, so the MCU should sync its clock with the module through Getting GMT.
The server sends full temporary passwords to the device. The MCU updates locally stored data accordingly.
Users can set a weekly schedule based on the current validity period of a temporary password. Up to three schedules can be added.
The MCU sends the following data.
Field | Bytes | Description |
---|---|---|
Header | 2 | 0x55aa |
Version | 1 | 0x03 |
Command | 1 | 0x14 |
Data length | 2 | 0x0000 |
Data | 0 | None |
Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
The door lock gets the currently valid temporary password:
55 aa 00 14 00 00 13
The module returns the following data.
Field | Bytes | Description |
---|---|---|
Header | 2 | 0x55aa |
Version | 1 | 0x00 |
Command | 1 | 0x14 |
Data length | 2 | 0x0001+N (temporary password) |
Data | 1 + N |
|
Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
The positional notation uses a set of consecutive digits to represent any real number. The positional notation adopted by the password is determined by two factors:
The base: indicates the number of unique digits that a positional notation system uses to represent numbers. Base-4 through base-10 are supported.
The starting value: indicates the number starts with zero or one.
Number of digits |
Password starts with 0 or 1 |
Dynamic password |
Offline password |
The min length of online password |
Security level | Multilingual online password |
---|---|---|---|---|---|---|
4 | Optional | Not supported | Not supported | 8 | 1/29W | Password of 8 to 12 digits |
5 | Optional | Supported | Not supported | 8 | 1/39W | Password of 8 to 12 digits |
6 | Optional | Supported | Not supported | 8 | 1/100W | Password of 8 to 12 digits |
7 | Optional | Supported | Supported | 8 | 1/100W | Password of 8 to 11 digits |
8 | Optional | Supported | Supported | 7 | 1/100W | Password of 7 to 11 digits |
9 | Optional | Supported | Supported | 7 | 1/100W | Password of 7 to 10 digits |
10 | Not configurable | Supported | Supported | 7 | 1/100W | Password of 7 digits |
The MCU sends the following data.
Field | Bytes | Description |
---|---|---|
Header | 2 | 0x55aa |
Version | 1 | 0x03 |
Command | 1 | 0x17 |
Data length | 2 | 0x0002 |
Data | 2 | Data[0]: indicates the base number. Data[1]: indicates the starting value. |
Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
Example
To adopt a set of consecutive digits 1 through 5, the base number is set to 5
and the starting value is set to 1
.
To adopt a set of consecutive digits 0 through 5, the base number is set to 6
and the starting value is set to 0
.
You must set the positional notation after the product information query (0x01
) and before any password-related operation.
The module returns the following data.
Field | Bytes | Description |
---|---|---|
Header | 2 | 0x55aa |
Version | 1 | 0x00 |
Command | 1 | 0x17 |
Data length | 2 | 0x0001 |
Data | 1 |
|
Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
To maximize power saving, when detecting multiple temporary passwords, the MCU then calls this interface to get password data for updating locally stored data.
The module sends the MCU time data in GMT, so the MCU should sync its clock with the module through Getting GMT.
The server sends full temporary passwords to the device. The MCU updates locally stored data accordingly.
Users can set a weekly schedule based on the current validity period of a temporary password. Up to three schedules can be added.
The MCU sends the following data.
Field | Bytes | Description |
---|---|---|
Header | 2 | 0x55aa |
Version | 1 | 0x03 |
Command | 1 | 0x14 |
Data length | 2 | 0x0000 |
Data | 0 | None |
Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
The door lock gets the currently valid temporary password:
55 aa 00 14 00 00 13
The module returns the following data.
Field | Bytes | Description |
---|---|---|
Header | 2 | 0x55aa |
Version | 1 | 0x00 |
Command | 1 | 0x14 |
Data length | 2 | 0x0001+N (temporary password) |
Data | 1 + N |
|
Checksum | 1 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback