Open thewhobox opened 1 year ago
Hi 'thewhobox', I also want to build my own DALI devices (DALI Slave). Did you get any further with this idea ?
@Bill-Gaytes yes I got it working. See pending pull request.
Hi Mike, Firstly thanks you for your reply. I will admit that I don't have a great deal of experience with the workings of GitHub so that's why I didn't look in Pull requests. I can see the Pull request where you made changes to Dali.cpp and then 3 Commits to make changes to Dali.h, DaliBus.cpp and DaliBus.h ? Would I be correct that I now need to take your changes and update the Dali library ?
I have all the Dali hardware for this but not really certain with the software. The example (Dali Blink) is not really that helpful either. Sorry for my naivety, but we all have keep learning.
Cheers Bill
On Sat, Oct 21, 2023 at 9:32 PM Mike @.***> wrote:
@Bill-Gaytes https://github.com/Bill-Gaytes yes I got it working. See pending pull request.
— Reply to this email directly, view it on GitHub https://github.com/hubsif/arduino-dali/issues/6#issuecomment-1773915213, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7XMGUUNNQJDAEOE7CAZYTYAQWM7AVCNFSM6AAAAAAZYLTH6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZTHEYTKMRRGM . You are receiving this because you were mentioned.Message ID: @.***>
Hey, there are two options to get it work in your project.
DaliBus.receivedCallback([](uint8_t *data, uint8_t len) -> void {
//do stuff with the raw message here
});
but you will have to parse these messages by yourself.
Hi Mike,
Many thanks, I followed the branch and updated the library, looks to be OK.
Other than the dali_blink sketch, do you know of any other examples using this library that I can have a look at so I can learn a bit more ?
Cheers
On Sun, Oct 22, 2023 at 11:29 AM Mike @.***> wrote:
Hey, there are two options to get it work in your project.
- you can make the changes manually by copy the changes in DaliBus.cpp and DaliBus.h and then set
DaliBus.receivedCallback([](uint8_t *data, uint8_t len) -> void { //do stuff with the raw message here });
- use my fork branch: https://github.com/thewhobox/arduino-dali/tree/feature-add-receiving
but you will have to parse these messages by yourself.
— Reply to this email directly, view it on GitHub https://github.com/hubsif/arduino-dali/issues/6#issuecomment-1774056497, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW7XMGXPQM6TMQWIL6PU7G3YATYSHAVCNFSM6AAAAAAZYLTH6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGA2TMNBZG4 . You are receiving this because you were mentioned.Message ID: @.***>
Depends on what you want to learn. If you want to build your own Dali Slave i highly recommend you to learn about the commands and what are they doing: https://onlinedocs.microchip.com/pr/GUID-0CDBB4BA-5972-4F58-98B2-3F0408F3E10B-en-US-1/index.html?GUID-DA5EBBA5-6A56-4135-AF78-FB1F780EF475
You would also need to implement memory banks, if you want your device to be setup by Dali Cockpit or something else: https://infosys.beckhoff.com/english.php?content=../content/1033/tcplclib_tc3_dali/6940982539.html&id=
Hi @Bill-Gaytes! You might also want to have a look at my project DALI-MQTT-actuator which uses this library (though it's not well documented (yet)).
Is it possible to enhance this lib to receive commands from the Dali bus? With this we could build a dali monitor or even own dali devices.
I think a good startpoint could be: https://github.com/hubsif/arduino-dali/blob/28aafd04348bb17abc3dc1fb5b110b98bf475cee/src/DaliBus.cpp#L207-L208
If we dont expect a response it is a command.