I want to detect if my AndroidTV device is on or in sleep mode using the USB port. The port remains powered even if the device is sleeping (ie I can light an LED with dropping resistor even if it is in sleep mode).
Originally I was trying to test if the port was powered using my iPod and looking at the charging indicator. I see now this was a bad test of port power as the iPod shows not charging when the AndroidTV is sleeping.
Even though my originally testing method was flawed, it produced the results I am trying to achieve. Is there something simple I can do with the data out to detect wake/sleep on the USB port?
Originally I was trying to test if the port was powered using my iPod and looking at the charging indicator. I see now this was a bad test of port power as the iPod shows not charging when the AndroidTV is sleeping.
Even though my originally testing method was flawed, it produced the results I am trying to achieve. Is there something simple I can do with the data out to detect wake/sleep on the USB port?