1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! Yodn E600 LED light source controller adapter.
//!
//! The E600 uses a binary protocol over serial/USB.
//! Each command is a byte sequence; responses are fixed-length byte packets.
//!
//! Key binary protocol commands:
//!
//! | Command bytes | Response | Meaning |
//! |---------------------|-------------|-----------------------------------|
//! | `[0x70]` | `[0x70, ...]`| Open / handshake |
//! | `[0x57, 0x00]` | 3 bytes | Get lamp state (byte[2]=state) |
//! | `[0x56, ch]` | 3 bytes | Get channel intensity (byte[2]) |
//! | `[0x55, ch]` | 3 bytes | Get channel temperature (byte[2]) |
//! | `[0x53, ch]` | 4 bytes | Get channel use time (hours) |
//! | `[0x52]` | 2 bytes | Get error code (byte[1]) |
//! | `[0x60, 0x00, 0x01]`| - | Turn lamp ON |
//! | `[0x60, 0x00, 0x00]`| - | Turn lamp OFF |
//! | `[0x75]` | - | Close / shutdown |
//!
//! Channel IDs: CH1=0x01, CH2=0x02, CH3=0x03
pub use YodnE600;
use crate;
use crateDeviceType;
pub const DEVICE_NAME_E600: &str = "YodnE600";
static DEVICE_LIST: & = &;
;