Author Topic: DALI2 Project PIC32MX  (Read 308 times)

0 Members and 1 Guest are viewing this topic.

Offline walflucaaTopic starter

  • Newbie
  • Posts: 1
  • Country: it
DALI2 Project PIC32MX
« on: November 10, 2022, 02:02:00 pm »
Good evening everyone!
I am working on a project with a DALI2 ballast. The aim of the project is to create a small prototype of a smart LED luminaire, controllable via PC. In order to make this prototype, I've been using a mikroe board (https://www.mikroe.com/clicker-2-pic32mx) together with their click board (https://www.mikroe.com/dali-2-click) that allows to use the DALI protocol to control ballasts.

My question is related to mikroe programming tools and libraries, if anyone is familiar with them, since I've not been able to find help anywhere, not even on their website.

They provide a library for DALI2 (https://libstock.mikroe.com/projects/view/2333/dali-2-click), with some examples attached that allow to turn on/off and dim the light, which I have tried and work perfectly. They also provide a compiler, called mikroC, which I have used to build the code. Now I'd like to improve the project and "ask" data to the DALI2 ballast connected to the board (something that the DALI protocol allows you to do), like lamp failure or on-off status or power level and so on. Coding is not my strength, so I'm sorry for the long question.

I have noticed in the dali.c and dali.h folders available on github, which are part of the library mentioned previously, that there is a function which allows to "grab" data from a buffer on the board and to write it somewhere (?)
The function is dali2_getBallastResponse(); (https://github.com/MikroElektronika/DAL ... 2_driver.c)
Does anyone know what kind of data this function gets access to, and how can i read it (maybe on a txt file or print it on screen)? Or if there are any other ways in which I can query the ballast's data and read the answer?

Thank you for your help!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf