sde1000 / python-dali

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

Tridonic Connection in Windows #122

Open duyanguyen opened 1 year ago

duyanguyen commented 1 year ago

image

Hi,

I am currently in my initial steps to setup connection with the Tridonic DALI USB device. However, I am running into this /dev/dali/daliusb-* not found issue while trying to run the async-buswatch.py example. My setup is fairly simply: Windows 10 PC with python-dali installed to Tridonic via USB to LED Driver. So far I have been using DALI Cockpit to send command without issue and I was able to detect the device with its serial number using this software. My goal now is to write customized python code to adjust the dimming profile of the driver for testing purposes. I would really appreciate any feedback and/or guidance.

Best regards,

sde1000 commented 1 year ago

That particular driver is not written for use on Windows — it uses the Linux-only 'hidraw' API to access the device.

You may have more luck trying the code in dali/driver/tridonic.py which uses a more generic USB API to access the device. That code isn't async though.

markus-becker-tridonic-com commented 9 months ago

@sde1000 Possibly one could use https://github.com/apmorton/pyhidapi as an additional backend for HID based devices. It seems to be fairly cross-platform.