Is it possible to generate an interrupt on USB plug in on a custom board having Intel Edison compute module? I was unable to set interrupt capability to USB_VBUS line on Edison using the MRAA library. Please help.
Thank you for contacting us. We'll try to help out with this case as much as we can.
In regards to the first question, it's not possible to do a USB interruption on the Edison. The USB_VBUS is a standard USB VBUS input and is only used to alert the Edison module that it has been connected to a host port. Could you explain your goal in more detail? If your goal remains the same as in /thread/110593 https://communities.intel.com/thread/110593 then we can continue with support in that thread.
We'll be waiting for your response.
Is there any command to know the reason for Edison wake up from sleep state? I am asking this because our device wakes up due to some unknown reasons. Typically we want Edison to wake up only on a USB plug in or any serial interrupt. Any clues?
I'm not aware of any command that just outputs the reason why the Edison wakes from sleep. What I'd try in this case is to review the logs that appear on dmesg. Dmesg will print in console messages whenever similar events occur. Maybe you can find information or at least some clues as to why the Edison is waking up when it's not supposed to.
Hopefully you can find this useful.