General - Power-off Memory

Function Introduction

  • The power-off memory function is used to set the power-on and power-off light-on status, and supports setting the default light status every time the power is turned on.

DP protocol

  • DP: power_memory
Serial numberNameBytesIdentifierData typeField attributesField description
1Version number1versionEnumerationInitial version: 00
2Mode1modeEnumerationInitial default value: 00 Restore memory value: 01 User customization: 02
3Hue2HValueMaximum value: 360 Minimum value: 0 Step: 1 Multiple: 0Hue: 0-360, 0X0000-0X0168
4Saturation2SValueMaximum value: 1000 Minimum value: 0 Step: 1 Multiple: 00-1000, 0X0000-0X03E8
5Brightness2VValueMaximum value: 1000 Minimum value: 0 Step: 1 Multiple: 00-1000, 0X0000-0X03E8
6White light brightness2BValueMaximum value: 1000 Minimum value: 10 Step: 1 Multiple: 00-1000, 0X0000-0X03E8
7Color temperature2TValueMaximum value: 1000 Minimum value: 0 Step: 1 Multiple: 00-1000, 0X0000-0X03E8

How to develop

  • Monitor and report DP according to UI interaction

  • Power-off memory supports three states

    • Initial mode
      • Initial mode firmware end hard-coded state
    • Restore memory
      • Restore to the state before power failure
    • User customization
      • Users can configure by themselves
      • From DP, user-defined configuration supports HSVBT customization.
        • HSVBT cannot be set in the other two modes.

Notes

None

  • [Function page]:
    • None
  • [Component]:
    • None
  • [Tutorial]:
    • None
  • [SDK]:
    • None
  • [API]:
    • None