-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supported hardware list #81
Comments
Not currently, but the serial protocol described at https://atxled.com/pdf/AL-DALI-HAT.pdf looks reasonably simple so driving it shouldn't be too difficult. |
You even have python example code: https://atxled.com/Pi/code.php |
Thank you, may I ask you also about this one: |
I don't have any information on the USB protocol used by that Helvar interface (they don't appear to publish it, and I've never had access to a sample for reverse-engineering). Not currently supported. |
I have a sample available from Linux it load show as:
I can do some test if you can tell me what to do. |
Ok, so it's showing up as a generic HID device. To work out what the protocol is, I would install the DIGIDIM Toolbox software on Windows in a virtual machine, and give it access to the USB device. Use the Toolbox software to send DALI commands through the interface while watching the USB traffic on Linux using Wireshark. |
Hello, I have installed the Digidim software on a windows machine connected to usb to the Helvar 510 and made a capture using Wireshark while sending dim and on off commands. Don't hesitate to tell me if you need any further testing or another capture. |
It would be helpful if you could run some queries so we can see examples of reading backward frames from the device — all the USBHID frames from the device in that capture appeared to be simple acknowledgements with no data. Can you describe your test setup, too — what do you have connected to the DALI bus? Have you assigned addresses to the control gear and/or devices? |
Hi, sorry for the long delay, I was out of the office. And here's a capture done when starting the application, during which there's a scan of the dali network, which I guess does some queries. |
Hello again, I have found an implementation of the usb driver for helvar510 in rust. |
I have found a command history in the Helvar Toolbox app describing all commands passed and reply received with hex codes. I have redone a capture and exported the command history to a csv file, you can find them both attached: I have begun reading the code in hid.py to see if I could adapt an existing driver but I cannot make sense of the first 2 bytes of each commands in the capture. |
Here are some notes based on that capture:
So it looks like the first two bytes of the packet sent to the device are some kind of command code:
Then the second two bytes of the packet appear to be a 16-bit DALI frame. In the response, the first two bytes appear to be some kind of type code:
Probably enough to start experimenting. No indication that the device supports 24-bit frames, so try writing a 16-bit only driver? |
Hi,
I've found this raspberry shield https://www.shop.atxled.com/products/dali-hat-for-raspberry-pi-b-and-b?variant=18469832884339
Is this supported?
In alternative any suggestion on a cheap DALI2 to USB adapter is really appreciated.
Thanks, BR
The text was updated successfully, but these errors were encountered: