Lutron notifications problem
adys
Posts: 395
Hi all
I am having strange lutron problems.
Some of the keypads that use to work, don't send notifications anymore to the lutron driver (p5)
I am sending commands to the keypad, the commands are executed ok, the lutron sends the notification but the driver ignore them. I print every string that is coming from the driver, and some specific keypads just not notified.
There are registered to the driver like all the rest of the keypads, and some of them use to get notification, and now they don't.
I check few days from different directions.
Went back to previous versions of the lutron, and previous versions of my code, and its just wont notify the driver... I can see the notification in the lutron console but they are not getting to the driver, and only on the specific keypads.
Any ideas?
Thanks,
Ady.
I am having strange lutron problems.
Some of the keypads that use to work, don't send notifications anymore to the lutron driver (p5)
I am sending commands to the keypad, the commands are executed ok, the lutron sends the notification but the driver ignore them. I print every string that is coming from the driver, and some specific keypads just not notified.
There are registered to the driver like all the rest of the keypads, and some of them use to get notification, and now they don't.
I check few days from different directions.
Went back to previous versions of the lutron, and previous versions of my code, and its just wont notify the driver... I can see the notification in the lutron console but they are not getting to the driver, and only on the specific keypads.
Any ideas?
Thanks,
Ady.
0
Comments
Recently tho, I have had to stop using the duet module for everything other that a communication buffer. If I had the time, I would probably just write my own module, but using the duet module to maintain communication and buffer commands seems to be working well enough right now. I started having problems when I tried to add more than 32 keypads to the module. I feel it may have worked, but the boot up time of the processor jumped to absolutely unbearable (over 20 minutes, but I never let it actually boot up all the way cause I needed to get work done).
Parsing the data that comes from the Lutron processor is actually very easy and if you see it coming from the processor, I would just circumvent or replace the module.
Jeff
Are you using the AMX module or something else?
The driver you speak of, is that a driver you set up in the Lutron processor for that port (ip/serial) with the desired feedback checked?
So some keypads send the KLS string and others don't?
Do you have your own buffer set up so you can watch what is actually coming in from Lutron or are you just looking at what the module shows you coming in?
IP
AMX P5 module
Yes
All of them send KLS, but the module sends notifications only for some of them, even that all keypads are registerd. I am listening to evey string coming from the driver, its just don't send nothing for those specific keypads.
no, I am listening like this:
DATA_EVENT[vdvLights]
{
COMMAND:
{
printDebug("'LutronCommnad : ',DATA.TEXT")
...do the reset...
}
}
See if that helps. This is sounding a lot like the problems I was having with the duet module. Make sure you are using the most current module (send a ?VERSION command to make sure that NS4 didn't pick an older version at compile time). I just don't remember if assigning the problem keypads to a different index fixed the problem or not.
Jeff
Its not working... I moved the keypad index from 6 to 64, not working... (I have 63 keypads for now)
Any ideas guys?
Thanks
Ady.
You will need to write the GET_IP_KP function to return the proper index of the keypad within the array you are using to store the LED states (or modify the code to do what you need with the information).
I have given up on using the IP comm module for anything more than making the connection, maintaining it, and buffering the commands I send to it. I also only add 1 Keypad (maybe it was 2), because when the reboot time was stupid when I tried adding a bunch of keypads. It seems that the module creates a separate port on the virtual device for each keypad. This doesn't seem to work out well when you have 224 keypads
Jeff
Sorry for the delay, I was in a vacation.
This is very helpfull information.
I notice that when using PASSBACK-1 command I am getting the notification string to the code, why the driver don't send it to me I don't understand...
I will try to use your solution, everything is working for me with this driver, except 3-4 keypads that the driver ignore the notifications coming from them.
Maybe the ip port issue you are saying is the key to solve the problem...
BTW, I never use the buffer way and work direct with the DATA.TEXT...
Any reason to work with buffer in this case?
Thanks,
Ady.
As for the buffer approach, I had to add that in because occasionally the Lutron processor will send 2 updates in the same message. I also think that occasionally the updates are split between 2 messages. Because of this, I was missing a couple of updates occasionally. Switching to a buffer cleared everything up.
Hope this helps,
Jeff
I will call supprt today to see if there is any chance to solve that.
Your fix is ok and easy to implement, but the "hard" thing to do is to save the leds state in the code for every keypad, and I will be happy to avoid that. not only that, I will have to sync all the leds and their states upon system loading.
Annoying...
Someone from AMX should fix that module.
We duplicated the virtual keypad, change its address to something else, and hope!
Its working!
Same code, nothing has been change...
I will update soon if it working for all the rest.
Ady.