## Advanced - Cycle Timing
### Function Introduction
The cycle timing function will automatically cycle on or off the light source within the set time period to meet the needs of plant growth lighting and other scenarios.

### DP protocol
- DP Code: cycle_timing

|Serial number| Name| Number of bytes| Identifier| Data type| Field attribute| Field description|
|---|---|---|---|---|---|---|
|1| Protocol version| 1| version| Enumeration| Initial version: 00 ||
|2| Node length| 1| length| Value| Maximum value: 255 Minimum value: 0 Step distance: 1 Multiple: 0 ||
|3| Task switch| 1| on_off| Enumeration| Task off: 02 Task on: 03 ||
|4| Week| 1| week| Weekly data| Inverse calculation| If all are 0, it means single mode, which is effective only once; otherwise, it is cycle mode, and the corresponding bit is judged whether it is set to 1. Position 1 means it is effective on the same day. For example, 0x42 means that the task takes effect on Saturday and Monday (note that the corresponding task switch must be in the on state)
|5| Start time| 2 |start_time |Value |Maximum value: 1439 Minimum value: 0 Step: 1 Multiple: 0 0x10: hex code, 16; Value range: 0~1439|
|6| End time| 2| end_time|Value |Maximum value: 1439 Minimum value: 0 Step: 1 Multiple: 0| 0x10: hex code, 16; Value range: 0~1439|
|7| On duration| 2| on_time|Value |Maximum value: 1439 Minimum value: 1 Step: 1 Multiple: 0| 0x10: hex code, 16; Value range: 0~1439|
|8| Off duration| 2| off_time|Value | Maximum value: 1439 Minimum value: 1 Step: 1 Multiple: 0| 0x10: hex code, 16; value range: 0~1439|
|9| Hue (hundreds)| 1| H_hundreds| Value| Maximum value: 3 Minimum value: 0 Step: 1 Multiple: 0| 0x03, 0x10: hex code. Big endian format, the first byte represents hundreds, the second byte represents tens and ones. The actual value represents 316, value range: 0~360|
|10| Hue (tens and ones)| 1| H_tens_ones| Value| Maximum value: 99 Minimum value: 0 Step: 1 Multiple: 0| 0x03, 0x10: hex code. Big endian format, the first byte represents hundreds, the second byte represents tens and ones. The actual value represents 316, and the range is 0~360|
|11| Saturation percentage| 1 |S| Value| Maximum value: 100 Minimum value: 0 Step: 1 Multiple: 0| 0x10: hex code, 16%; Range: 0~100|
|12| Brightness percentage| 1 |V| Value| Maximum value: 100 Minimum value: 0 Step: 1 Multiple: 0| 0x10: hex code, 16%; Range: 0~100|
|13| Brightness percentage| 1| B| Value| Maximum value: 100 Minimum value: 0 Step: 1 Multiple: 0| 0x10: hex code, 16%; Range: 0~100|
|14| Color temperature percentage| 1| T | Value| Maximum value: 100 Minimum value: 0 Step: 1 Multiple: 0| 0x10: hex code, 16%; value range: 0~100|

### How to develop
- Monitor, report and send DP according to UI interaction
  - [Specific monitoring and sending examples](/en/miniapp/solution-panel/ability#device-function-point-management)

### Notes
None

### Related materials
- [Function page]: 
  - None
- [Component]: 
  - None
- [Tutorial]: 
  - None
- [SDK]: 
  - None
- [API]: 
  - None