Device control bytes reference

How to control different USB LED devices using HIDSharp library (by James F. Bellinger).
Replace R,G,B with your color values.
Example blink(1):
SetFeature(new byte[9] { 0x01, 0x63, 255, 0, 0, 0x00, 0x00, 0, 0x00} );
Set the color red (255, 0, 0) for all LEDs (0).

You should be able to port the informations below to any programming language.
Note: There are a lot more options for the different devices. You will only find the most relevant for NotifierLight.

blink(1)
VID: 0x27B8 - PID: 0x01ED
Control bytes:
Color: byte[9] {0x01, 0x63, R,G,B, 0x00, 0x00, L, 0x00}
L = 0 All, 1 LED1, 2 LED2

BlinkM (with LinkM)
VID: 0x20A0 - PID: 0x4110
Control bytes:
Color: byte[10] {0x01, 0xDA, 0x01, 0x05, 0x00, 0x09, 0x6E, R,G,B}
Blinkstick
VID: 0x20a0 - PID: 0x41e5
Control bytes:
Mode: byte[2] {0x04, M}
M = 0 Normal, 1 Inverse, 2 WS2812, 3 WS2812 mirror
Color (Mode 0,1,3): byte[4] {0x01, R,G,B}
Color (Mode 2): byte[6] {0x05, 0x00,L, R,G,B}
L = Address of LED in modes 2 and 3

Busylight LYNC
VID: 0x04D8 - PID: 0xF848
Control bytes:
Color: byte[9] {0x00, 0x00,  0x00, R,G,B,  0x00, 0x00, 0x00}
Use Write instead SetFeature

Busylight UC
VID: 0x27BB - PID: 0x3BCB
Control bytes:
Color: byte[9] {0x00, 0x00,  0x00, R,G,B,  0x00, 0x00, 0x00}
Use Write instead SetFeature

Blync v1
VID: 0x1130 - PID: 0x0001
Control bytes:
Color: byte[9] {0x00, 0x55, 0x53, 0x42, 0x43, 0x00, 0x40, 0x02, CI}
CI = ColorIndex: white: 15, cyan: 31, magenta: 47, blue: 63, yellow: 79, green: 95, red: 111, off: 255
Use Write instead SetFeature

Blync v3 (untested)
VID: 0x0E53 - PID: 0x2516
Control bytes:
Color: byte[9] {0x00, R,B,G, 0x00, 0x00, 0x40, 0x02, 0xFF}
Use Write instead SetFeature

DreamCheeky USBMailNotifier
VID: 0x1D34 - PID: 0x0004
Control bytes:
 
Init: byte[9] {0x00, 0x1F, 0x01, 0x29, 0x00, 0xB8, 0x54, 0x2C, 0x03}
Init: byte[9] {0x00, 0x00, 0x01, 0x29, 0x00, 0xB8, 0x54, 0x2C, 0x04}
Needed somehow for initialization!
Color: byte[9] {0x00, R,G,B, 0x00, 0x00, 0x54, 0x2C, 0x05}
Note: DreamCheeky only understands RGB values up to 64!
Use Write instead SetFeature

DealExtreme USBMailNotifier
VID: 0x1294 - PID: 0x1320
Control bytes:
Color: byte[2] {0x00, CI}
CI = ColorIndex: off: 0, blue 1, red 2, green 3, cyan 4, purple 5, yellow 6, white 7
Use Write instead SetFeature

No comments:

Post a Comment