Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
and will prepare an appropriate response packet depending upon the pushbutton state.
The PC then requests a packet of data from the device (which will be taken from the interrupt IN endpoint). Once the PC
application receives the response packet, it will update the pushbutton state label.
Try experimenting with the application by holding down the appropriate pushbutton on the demo board, and then
simultaneously clicking on the “Get Pushbutton State” button. Then try to repeat the process, but this time without holding
down the pushbutton on the demo board.
To make for a more fluid and gratifying end user experience, a real USB application would probably want to launch a
separate thread to periodically poll the pushbutton state, so as to get updates regularly. This is not done in this simple demo,
so as to avoid cluttering the PC application project with source code that is not related to USB communication.
Running the demo on an Android v3.1+ device
There are two main ways to get the example application on to the target Android device: the Android Market and by
compiling the source code.
1. The demo application can be downloaded from Microchip’s Android Marketplace page:
https://market.android.com/developer?pub=Microchip+Technology+Inc
2. The source code for this demo is also provided in the demo project folder. For more information about how to build and
load Android applications, please refer to the following pages:
• http://developer.android.com/index.html
• http://developer.android.com/sdk/index.html
• http://developer.android.com/sdk/installing.html
While there are no devices attached, the Android application will indicate that no devices are attached.
1.6 Demos MLA - USB Library Help Device - HID - Custom Demo
273
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf