Hi,
I have to implement a new feature which is to set power budget limit on a port based on class.We are allowing the user to specify the class also alongwith poe enable command on a port so that if a new PD connected to that port,first we can check what is the class of the PD using 0c-0f registers and compare the class with what user has configured,if it turns out to be same or lower class than what the user has configured,we would turn on the PD otherwise throw some error logs.
e.g poe enable <class>.
As part of this poe enable command,I was doing 2 things as part of register settings:
1.Enabling detection enable register(0x14).
2.Sending PWON command (0x19).
Now as per the requirement,need to add a third thing between the two:
1.Enabling detection enable register(0x14).
2.Check 0c-0f registers and compare the class with class configured.----------------This check is always giving me 0x0 even after adding 5 sec delay after step 1.
3..Sending PWON command (0x19).
After step3 when I checking 0c-0f regsiters,they are properly giving me class of the PD connected.
Can sombody help me with this,can my requirement be fulfilled by doing some regsiter settings?
Hoping an early reply.
Thanks & Regards
Ayush Raj