Chapter 10: HDK Demo Application
Creating Registry Keys
146
Psion Teklogix Omnii HDK User Manual
10.4
Creating Registry Keys
Certain keys and values must be created in the Omnii registry in order for Omnii to recognize the
expansion device and load the appropriate drivers. A driver for the HDK Demo application
(TestDriver.dll) is included with the application and should be copied to the Windows folder (see
Section 10.2: “Installing the HDK Demo Application”).
Follow the instructions in this section to create the necessary registry keys for the type of device
you wish to test using the HDK Demo application. More detailed information on these registry
keys can be found in Section 4.4: “Registry Keys”.
1. If the following registry key does not exist, create it:
2. Within that key, create a subkey for the device to be tested, constructed as a concatenation
of the Manufacturer and Model names stored in the 1-wire EEPROM of the expansion
device. For more information on these fields, see Section 10.6.2.4: “EEPROM”. In the
examples that follow, the Manufacturer is “Psion Teklogix” and the Model is
“Exp1_[devicetype]”.
3. Under the device subkey, create the registry values for the type of device being tested as
indicated in the following subsections:
USB Device Registry Keys
UART Device Registry Keys
[HKLM\Drivers\BuiltIn\Peripherals\devices\0]
Note: The EEPROM function of the HDK Demo application can be used to access the 1-wire
EEPROM of the connected device, even before everything else (including the registry keys)
has been configured. This allows you to ensure these values are properly configured and
match the registry entries.
; Registry entry for a USB device
;
[HKLM\Drivers\BuiltIn\Peripherals\devices\0\Psion Teklogix Exp1_USB]
; EEPROM Manufacturer field = “Psion Teklogix”, EEPROM Model field = “Exp1_USB”
“Name”=sz:”USB Device”
“ConnectorId”=dword:0 ;0 = Expansion Port 1 (End-Cap Expansion)
“PowerMode”=dword:1 ;Power off in suspend, power on on resume
“LoadFlags”=dword:2 ;0x02, load default USB host driver
; Registry entry for a serial device
;
[HKLM\Drivers\BuiltIn\Peripherals\devices\0\Psion Teklogix Exp1_UART]
; EEPROM Manufacturer field = “Psion Teklogix”, EEPROM Model field = “Exp1_UART”
“Name”=sz:”UART Serial Device”
“ConnectorId”=dword:0 ;0 = Expansion Port 1 (End-Cap Expansion)
“PinFunctions”=dword:0F ;0x0F = Set pins 0-3 for serial function
“PowerMode”=dword:1 ;Power off in suspend, power on on resume
“LoadFlags”=dword:1 ;0x01, load default UART driver
Summary of Contents for OMNii HDK XT10
Page 4: ......
Page 10: ......
Page 12: ......
Page 18: ......
Page 20: ......
Page 24: ......
Page 26: ......
Page 32: ......
Page 72: ......
Page 90: ......
Page 92: ......
Page 116: ......
Page 124: ......
Page 126: ......
Page 130: ......
Page 132: ......
Page 154: ......
Page 168: ......
Page 170: ......
Page 182: ......
Page 184: ......
Page 188: ......