IDTech Windows SDK Guide  1.2.165.0
API reference for Augusta
 All Classes Namespaces Functions Variables Enumerations Properties Pages
Add Device Details to the Application's Manifest

In order for your application to recognize the device, the device's details must be added to the application's manifest file.

Open up your project's Package.appxmanifest file by right-clicking on it in the Solution Explorer, selecting "Open With...", and then choosing "XML (Text) Editor".

manifest_uwp.png

Search for the "Capabilities" tag and add the following code in between:

<DeviceCapability Name="humaninterfacedevice">
<!-- AUGUSTA (USB HID) -->
<Device Id="vidpid:0ACD 3820 usb">
<Function Type="usage:0002 0026"/>
</Device>
<!-- Augusta (USB KB) -->
<Device Id="vidpid:0ACD 3810">
<Function Type="usage:0001 *"/>
</Device>
<!-- AUGUSTA (USB HID SRED Non-Alternate) -->
<Device Id="vidpid:0ACD 3920 usb">
<Function Type="usage:0002 0026"/>
</Device>
<!-- AUGUSTA (USB HID Alternate) -->
<Device Id="vidpid:0ACD 3830 usb">
<Function Type="usage:0002 0026"/>
</Device>
</DeviceCapability>


The aforementioned code contains the possible combinations of vendor IDs (VID) and product IDs (PID) that an Augusta device could have depending on its configuration.

The Package.appxmanifest file should now look similar to the following:

<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
IgnorableNamespaces="uap mp">
<Identity
Name="9225de5f-0651-43ab-91e0-eb7143b78eab"
Publisher="CN=davidt"
Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="9225de5f-0651-43ab-91e0-eb7143b78eab" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties>
<DisplayName>Augusta_Simple_Demo_UWP</DisplayName>
<PublisherDisplayName>davidt</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate"/>
</Resources>
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="Augusta_Simple_Demo_UWP.App">
<uap:VisualElements
DisplayName="Augusta_Simple_Demo_UWP"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
Description="Augusta_Simple_Demo_UWP"
BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
<DeviceCapability Name="humaninterfacedevice">
<!-- AUGUSTA (USB HID) -->
<Device Id="vidpid:0ACD 3820 usb">
<Function Type="usage:0002 0026"/>
</Device>
<!-- Augusta (USB KB) -->
<Device Id="vidpid:0ACD 3810">
<Function Type="usage:0001 *"/>
</Device>
<!-- AUGUSTA (USB HID SRED Non-Alternate) -->
<Device Id="vidpid:0ACD 3920 usb">
<Function Type="usage:0002 0026"/>
</Device>
<!-- AUGUSTA (USB HID Alternate) -->
<Device Id="vidpid:0ACD 3830 usb">
<Function Type="usage:0002 0026"/>
</Device>
</DeviceCapability>
</Capabilities>
</Package>