Features - Segmented dimming

Function introduction

  • Traditional ceiling lamp products can achieve changes in brightness and color temperature through wall switches (power on and off). The hardware detects the power off time. For example, if the power is turned on again within 5 seconds after the power off, the brightness and color temperature are adjusted to the next preset value. If the power off time exceeds 5 seconds, the state before the light is turned off is maintained, and this cycle continues. Generally, there are 3 to 4 preset values ​​for brightness and color temperature. Commonly used segmented dimming hardware solutions include Mingwei SM2213EK. This function is widely used in the domestic market. In order to cater to customer usage habits, smart ceiling lamps add this function.

DP protocol

DPID_wifiDPID_zigbeeDPID_sigmeshFunction namecodeTransmission typeTypeFunction point attribute
52Segment dimmingsegment_dimmingrwraw{ "type": "raw", "maxlen": 255 }
  • Protocol format
Version numberSegment dimming switchNumber of segmentsHue HSaturation SBrightness VBrightness BColor temperature T
1byte1byte1byte2byte2byte2byte2byte2byte
  • Protocol field description:
Serial numberFieldLength (Byte)Data representative description
1Version number10x00: Initial version
2Segment dimming switch10x00: Off, 0x01: On
3Number of segments1Number of segments, range: 2~5 segments
4Hue H2HEX format, range 0x0000 ~ 0x0168 (i.e. 0~360)
5Saturation S2HEX format, range 0x0000 ~ 0x03E8 (i.e. 0~1000)
6Brightness V2HEX format, range 0x0000 ~ 0x03E8 (i.e. 0~1000)
7Brightness B2HEX format, range 0x0000 ~ 0x03E8 (i.e. 0~1000)
8Color temperature T2HEX format, range 0x0000 ~ 0x03E8 (i.e. 0~1000)

**Note: If the dimming is divided into 3 sections, the sequence number 4~8 fields are repeated 3 times, and so on. **

How to develop

Notes

  • Pay attention to the impact of power-on reaction/power-off memory
    • The segmented dimming function and power-on reaction are essentially defining the state of the device powering on. Only one of the power-on reaction state and segmented dimming state can be effective. When the user only selects the segment dimming dp point and does not select the power-off memory dp point at the same time, the APP control panel provides the option to turn on/off the segment dimming function, which is turned off by default.
  • [Function page]:
    • None
  • [Component]:
    • None
  • [Tutorial]:
    • None
  • [SDK]:
    • None
  • [API]:
    • None