Featured Product Services

Last Updated on : 2024-05-11 08:11:12download

This topic describes the feature product services. Make sure to review the features before using them.

Smart fan product service

The commands used for the smart fan product.

Command Description
0x72 (subcommand: 0x01) Fan functional test
0x72 (subcommand: 0x02) Set duty cycle

Fan functional test

For example, a fan with a step of 20 and a hold-time of five seconds. The module can adjust the motor to 0%, 20%, 40%, 60%, 80%, and 100% in sequence at an interval of five seconds.

The MCU sends the following data.

Field Length Description
Header 2 0x55aa
Version 1 0x03
Command 1 0x72
Data length 2 0x03
Data 1 0x01 (subcommand)
1 0x0a: The step of fan speed, ranging from 1 to 99.
1 0x05: The speed level hold-time, ranging from 1 to 100 seconds.
Checksum 1 Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder.

Example: 55 aa 03 72 00 03 01 0a 05 87

The module returns the following data.

Field Bytes Description
Header 2 0x55aa
Version 1 0x00
Command 1 0x72
Data length 2 0x02
Data 1 0x01 (subcommand)
1 0x00: Success.
0x01: Failure.
Checksum 1 Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder.

Example: 55 aa 00 72 00 02 01 00 74

Set duty cycle

If the duty cycle is set to 70%, PWM1 outputs 70%, and PWM2 outputs 0%. If zero-crossing is detected, PWM1 outputs 0% and PWM2 outputs 70%.

The MCU sends the following data.

Field Length Description
Header 2 0x55aa
Version 1 0x03
Command 1 0x72
Data length 2 0x02
Data 1 0x02 (subcommand)
1 0x0a (0% to 100%)
Checksum 1 Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder.

Example: 55 aa 03 72 00 02 02 0a 82

The module returns the following data.

Field Bytes Description
Header 2 0x55aa
Version 1 0x00
Command 1 0x72
Data length 2 0x02
Data 1 0x02 (subcommand)
1
  • 0x00: Success.
  • 0x01: Failure.
Checksum 1 Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder.

Example: 55 aa 00 72 00 02 02 00 75