# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# MLA -- USB Library

20 December, 2013

- 1
- 2
…
- 285
- 286
- 287
- 288
- 289
…
- 311
- 312

the demo folder under the system_config folder. Each demo board will have a corresponding folder with an io_mapping.h file
in it. For example, for the PIC24FJ256GB110 PIM for the Explorer 16, this would be the following file:
<install_directory>/apps/usb/host/cdc_basic/firmware/src/system_config/exp16/pic24fj256gb110_pim/io_mapping.h
For more information about each demo board, please refer to the Demo Board Information section.
Demo Operation
This is a simple demo to show how an embedded CDC host can be implemented. When a CDC-RS232 device is attached to
the host, the demo host application polls for input data from the device and displays the data on the LCD mounted on the
explorer 16 board.
1.6.16 Host - HID - Keyboard Demo
This demo shows how to interface to USB keyboards. Many USB barcode scanners also appear as a USB keyboard.
Description
Supported Demo Boards
The matrix of which demos are supported on a specific board can be found in the Release Notes demo board support
section. Verify that the board you wish to use will work with this demo. This table also describes some of the limitations that
the board might have while running this demo.
Demo Board I/O Mapping
Each demo board has a different number of push buttons, LEDs, and other features with various different names for these
components. To determine which board features are used for which demo features, please refer to the io_mapping.h file in
the demo folder under the system_config folder. Each demo board will have a corresponding folder with an io_mapping.h file
in it. For example, for the PIC24FJ256GB110 PIM for the Explorer 16, this would be the following file:
<install_directory>/apps/usb/host/hid_keyboard/firmware/src/system_config/exp16/pic24fj256gb110_pim/io_mapping.h
For more information about each demo board, please refer to the Demo Board Information section.
Demo Operation
When the device is programmed correctly with the HID host keyboard application the LCD screen on the Explorer 16 should
read “Device Detached” if there is no device attached to the USB port. At this point plug in a USB keyboard, bar code
scanner that supports HID keyboard emulation, or magnetic card reader that supports HID keyboard emulation. Type a key
on the keyboard. This character should be printed on the LCD screen. Pressing the “ESC” key will clear the screen and
return the cursor to the first position.
Limitations:
• Neither compound nor composite devices are supported. Some keyboards are either compound or composite.
• The “~” prints as an arrow character instead (“->”). This is an effect of the LCD screen on the Explorer 16. The ascii
character for “~” is remapped in the LCD controller.
• The “\” prints as a “¥” character instead. This is an effect of the LCD screen on the Explorer 16. The ascii character for
“\” is remapped in the LCD controller.
• Backspace and arrow keys may have issues on Explorer 16 boards with certain LCD modules
1.6.17 Host - HID - Mouse Demo
This demo shows how to read the basic position and button information from a standard USB mouse.
1.6 Demos MLA - USB Library Help Host - HID - Mouse Demo
287

- 1
- 2
…
- 285
- 286
- 287
- 288
- 289
…
- 311
- 312