sde1000 / python-dali

Library for controlling DALI lighting systems
Other
150 stars 73 forks source link

Support for Philips USB to DALI (USB2DALI / LCN8600/00) #83

Open plaes opened 3 years ago

plaes commented 3 years ago

There's another possible USB2DALI device from Philips which I haven't yet been able to get working (with official software which requires key activation):

New USB device found, idVendor=0471, idProduct=0003, bcdDevice= 1.00
New USB device strings: Mfr=1, Product=2, SerialNumber=3
Product: Philips USB to DALI
Manufacturer: Philips Lighting
SerialNumber: XXX

USB HID descriptor:

0x06, 0x00, 0xFF,  // Usage Page (Vendor Defined 0xFF00)
0x09, 0x01,        // Usage (0x01)
0xA1, 0x01,        // Collection (Application)
0x15, 0x00,        //   Logical Minimum (0)
0x26, 0xFF, 0x00,  //   Logical Maximum (255)
0x75, 0x08,        //   Report Size (8)
0x95, 0x40,        //   Report Count (64)
0x09, 0x01,        //   Usage (0x01)
0x81, 0x02,        //   Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0x95, 0x40,        //   Report Count (64)
0x09, 0x01,        //   Usage (0x01)
0x91, 0x02,        //   Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0x95, 0x01,        //   Report Count (1)
0x09, 0x01,        //   Usage (0x01)
0xB1, 0x02,        //   Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
0xC0,              // End Collection
sde1000 commented 3 years ago

We would need a dump of the HID traffic annotated with notes of what the official software was doing to try to reverse-engineer the protocol for this device.