Skip to content
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

also receive commands #6

Open
thewhobox opened this issue Jun 29, 2023 · 7 comments
Open

also receive commands #6

thewhobox opened this issue Jun 29, 2023 · 7 comments

Comments

@thewhobox
Copy link

thewhobox commented Jun 29, 2023

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:

case IDLE:
break; // ignore, we didn't expect rx

If we dont expect a response it is a command.

@Bill-Gaytes
Copy link

Hi 'thewhobox',
I also want to build my own DALI devices (DALI Slave). Did you get any further with this idea ?

@thewhobox
Copy link
Author

@Bill-Gaytes yes I got it working. See pending pull request.

@Bill-Gaytes
Copy link

Bill-Gaytes commented Oct 22, 2023 via email

@thewhobox
Copy link
Author

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
});

but you will have to parse these messages by yourself.

@Bill-Gaytes
Copy link

Bill-Gaytes commented Oct 24, 2023 via email

@thewhobox
Copy link
Author

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=

@hubsif
Copy link
Owner

hubsif commented Oct 25, 2023

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)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants