File: lighting_node_rgb.md

package info (click to toggle)
liquidctl 1.15.0-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,312 kB
  • sloc: python: 13,599; sh: 712; xml: 84; makefile: 4
file content (261 lines) | stat: -rw-r--r-- 5,062 bytes parent folder | download | duplicates (3)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
# Corsair Commander Pro and Lighting Node Pro protocol

### Compatible devices

| Device Name | USB ID | LED channels | Fan channels |
| ----------- | ------ | ------------ | ------------ |
| Commander Pro | `1B1C:0C10` | 2 | 6 |
| Lighting Node Pro | `1B1C:0C0B` | 2 | 0 |

### Command formats

Host -> Device: 16 bytes
Device -> Host: 64 bytes

## Get Information commands

### Get Firmware version -  `0x02`

Response:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x00 |
| 0x01 | X |
| 0x02 | Y |
| 0x03 | Z |

Firmware version is `X.Y.Z`

### Get Bootloader version -  `0x06`

Response:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x00 |
| 0x01 | X |
| 0x02 | Y |

Bootloader version is `X.Y`

### Get temperature sensor configuration -  `0x10`

Response:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x00 |
| 0x01 | `0x01` temp sensor 1 connected, otherwise `0x00` |
| 0x02 | `0x01` temp sensor 2 connected, otherwise `0x00` |
| 0x03 | `0x01` temp sensor 3 connected, otherwise `0x00` |
| 0x04 | `0x01` temp sensor 4 connected, otherwise `0x00` |


### Get temperature value -  `0x11`

Request:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x11 |
|  0x01 | temp sensor number (0x00 - 0x03) |

Response:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x00 |
| 0x01 | temp MSB |
| 0x02 | temp LSB |

Divide the temperature value by 100 to get the value is degrees celsius.

### Get bus voltage value -  `0x12`

Request:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x12 |
|  0x01 | rail number (0x00 - 0x02) |

rail 0 = 12v
rail 1 = 5v
rail 2 = 3.3v

Response:

| Byte index | Description |
| ---------- | ----------- |
| 0x00 | 0x00 |
| 0x01 | voltage MSB |
| 0x02 | voltage LSB |

Divide the value by 1000 to get the actual voltage.

### Get fan configuration -  `0x20`

Response:

| Byte index | Description |
| ---------- | ----------- |
| 0x00 | 0x00 |
| 0x01 | Fan 1 mode |
| 0x02 | Fan 2 mode |
| 0x03 | Fan 3 mode |
| 0x04 | Fan 4 mode |
| 0x05 | Fan 5 mode |
| 0x06 | Fan 6 mode |

Fan modes:

| Fan Mode     | Value |
| ------------ | ----- |
| Disconnected | 0x00  |
| DC (3 pin)   | 0x01  |
| PWM (4 pin)  | 0x02  |


### Get fan RPM value -  `0x21`

Request:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x21 |
|  0x01 | fan number (0x00 - 0x05) |

Response:

| Byte index | Description |
| ---------- | ----------- |
| 0x00 | 0x00 |
| 0x01 | rpm MSB |
| 0x02 | rpm LSB |


## Set commands

### Set fixed % - `0x23`

Request:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x23 |
|  0x01 | fan number (0x00 - 0x05) |
|  0x02 | percentage |

### Set fan curve % - `0x25`

Request:

| Byte index | Description |
| ---------- | ----------- |
| 0x00 | 0x25 |
| 0x01 | fan number (0x00 - 0x05) |
| 0x02 | temp sensor to use (0x00 - 0x03) 0xFF to use external sensor |
| 0x03, 0x04 | temp point 1 MSB |
| 0x05, 0x06 | temp point 2 MSB |
| 0x07, 0x08 | temp point 3 MSB |
| 0x09, 0x0A | temp point 4 MSB |
| 0x0B, 0x0C | temp point 5 MSB |
| 0x0D, 0x0E | temp point 6 MSB |
| 0x0F, 0x10 | rpm point 1 MSB  |
| 0x11, 0x12 | rpm point 2 MSB  |
| 0x13, 0x14 | rpm point 3 MSB  |
| 0x15, 0x16 | rpm point 4 MSB  |
| 0x17, 0x18 | rpm point 5 MSB  |
| 0x19, 0x1A | rpm point 6 MSB  |

### Hardware LED commands

- Send reset channel
- send start LED effect
- set channel to hardware mode
- send effect (one or more messages)
- send commit


### Reset channel  - `0x37`

Request:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x37 |
|  0x01 | channel number (0x00 or 0x01) |


### Start channel LED effect  - `0x34`

Request:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x34 |
|  0x01 | channel number (0x00 or 0x01) |

### Set channel state - `0x38`

Request:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x38 |
|  0x01 | channel number (0x00 or 0x01) |
|  0x02 | 0x01 hardware control, 0x02 software control |


### Set LED effect - `0x35`

Request:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x35 |
|  0x01 | channel number (0x00 or 0x01) |
|  0x02 | start LED number |
|  0x03 | number of LEDs |
|  0x04 | mode |
|  0x05 | speed |
|  0x06 | direction |
|  0x07 | random colors |
|  0x08 | 0xFF |


| mode | value | Num Colors |
| ---- | ----- | --------- |
| rainbow     | `0x00` | 0 |
| color_shift | `0x01` | 2 |
| color_pulse | `0x02` | 2 |
| color_wave  | `0x03` | 2 |
| fixed       | `0x04` | 1 |
| visor       | `0x06` | 2 |
| marquee     | `0x07` | 1 |
| blink       | `0x08` | 2 |
| sequential  | `0x09` | 1 |
| rainbow2    | `0x0A` | 0 |

| speed | value |
| ----- | ----- |
| slow | `0x02` |
| medium | `0x01` |
| fast | `0x00` |


| direction | value |
| ----- | ----- |
| forward | `0x01` |
| backward | `0x00` |


### Commit hardware settings  - `0x33`

Request:

| Byte index | Description |
| ---------- | ----------- |
|  0x00 | 0x33 |
|  0x01 | 0xFF |