Contribute Device IDs
Add USB and PCI devices from your computer or driver files to the Manuals+ database.
Your files stay in your browser. Choosing or dropping a report, files, or a folder automatically shares detected hardware details with the public device catalog.
Share your computer’s device list
Connect the peripherals you want to include. Create a local report of the USB and PCI devices your operating system can see. The import excludes serial numbers, network addresses, and computer identifiers.
- Copy the command and run it in Terminal. It reads hardware information and saves a report in your home folder.
- Choose the report using the path printed by Terminal.
Show command
sh <<'MANUALS_PLUS_MACOS'
umask 077
report=$(mktemp "$HOME/manuals-plus-devices-macos.XXXXXXXX") || exit
/usr/bin/osascript -l JavaScript <<'JXA' > "$report" || exit
ObjC.import('Foundation');
function registry(className) {
var task = $.NSTask.alloc.init;
var pipe = $.NSPipe.pipe;
task.setLaunchPath('/usr/sbin/ioreg');
task.setArguments(['-a', '-r', '-d', '1', '-c', className]);
task.setStandardOutput(pipe);
task.launch;
var data = pipe.fileHandleForReading.readDataToEndOfFile;
task.waitUntilExit;
if (task.terminationStatus !== 0) return $.NSArray.array;
var rows = $.NSPropertyListSerialization.propertyListWithDataOptionsFormatError(data, 0, null, null);
return rows.isNil() ? $.NSArray.array : rows;
}
var alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
function number(node, key, width) {
var value = node.objectForKey(key);
var result = ObjC.unwrap(value);
if (typeof result !== 'number') {
if (value.isNil() || !value.isKindOfClass($.NSData) || Number(value.length) < width) return '';
var base64 = ObjC.unwrap(value.base64EncodedStringWithOptions(0));
var a = alphabet.indexOf(base64.charAt(0));
var b = alphabet.indexOf(base64.charAt(1));
var c = alphabet.indexOf(base64.charAt(2));
var d = alphabet.indexOf(base64.charAt(3));
result = a * 4 + (b >> 4);
if (width >= 2) result += ((b & 15) * 16 + (c >> 2)) * 256;
if (width === 3) result += ((c & 3) * 64 + d) * 65536;
}
if (result < 0 || result >= Math.pow(256, width)) return '';
return ('000000' + result.toString(16)).slice(-2 * width);
}
function label(node, key) {
var value = node.objectForKey(key);
var result = ObjC.unwrap(value);
if (typeof result !== 'string' && !value.isNil() && value.isKindOfClass($.NSData)) {
result = ObjC.unwrap($.NSString.alloc.initWithDataEncoding(value, $.NSUTF8StringEncoding));
}
return typeof result === 'string' ? result.split('\u0000')[0] : '';
}
var devices = [];
var usb = registry('IOUSBHostDevice');
if (!Number(usb.count)) usb = registry('IOUSBDevice');
for (var i = 0; i < Number(usb.count); i++) {
var node = usb.objectAtIndex(i);
var vid = number(node, 'idVendor', 2);
var pid = number(node, 'idProduct', 2);
if (vid && pid) devices.push({bus: 'usb', vid: vid, pid: pid,
name: label(node, 'USB Product Name'), manufacturer: label(node, 'USB Vendor Name'),
revision: number(node, 'bcdDevice', 2),
classCode: number(node, 'bDeviceClass', 1) + number(node, 'bDeviceSubClass', 1) + number(node, 'bDeviceProtocol', 1)});
}
var pci = registry('IOPCIDevice');
for (var i = 0; i < Number(pci.count); i++) {
var node = pci.objectAtIndex(i);
var vid = number(node, 'vendor-id', 2);
var pid = number(node, 'device-id', 2);
if (vid && pid) devices.push({bus: 'pci', vid: vid, pid: pid, name: label(node, 'model'),
revision: number(node, 'revision-id', 1), classCode: number(node, 'class-code', 3),
subvendor: number(node, 'subsystem-vendor-id', 2), subdevice: number(node, 'subsystem-id', 2)});
}
JSON.stringify({schema: 'manuals-plus-device-inventory', version: 1, platform: 'macos', devices: devices});
JXA
printf 'Device report saved to %s\n' "$report"
MANUALS_PLUS_MACOS
- Copy the command and run it in Terminal. It reads hardware information and saves a report in your home folder.
- Choose the report using the path printed by Terminal.
Show command
sh <<'MANUALS_PLUS_LINUX'
umask 077
report=$(mktemp "$HOME/manuals-plus-devices-linux.XXXXXXXX") || exit
field() {
if [ -r "$1" ] && [ -f "$1" ]; then
value=
IFS= read -r value < "$1" || :
printf '%s' "$value" | tr '\t\r' ' '
fi
}
{
printf '%s\n' '# Manuals+ Linux device inventory v1'
for dev in /sys/bus/usb/devices/*; do
[ -r "$dev/idVendor" ] && [ -r "$dev/idProduct" ] || continue
printf 'usb\t%s\t%s\t%s\t%s%s%s\t\t\t%s\t%s\n' \
"$(field "$dev/idVendor")" "$(field "$dev/idProduct")" "$(field "$dev/bcdDevice")" \
"$(field "$dev/bDeviceClass")" "$(field "$dev/bDeviceSubClass")" "$(field "$dev/bDeviceProtocol")" \
"$(field "$dev/product")" "$(field "$dev/manufacturer")"
done
for dev in /sys/bus/pci/devices/*; do
[ -r "$dev/vendor" ] && [ -r "$dev/device" ] || continue
printf 'pci\t%s\t%s\t%s\t%s\t%s\t%s\t\t\n' \
"$(field "$dev/vendor")" "$(field "$dev/device")" "$(field "$dev/revision")" \
"$(field "$dev/class")" "$(field "$dev/subsystem_vendor")" "$(field "$dev/subsystem_device")"
done
if command -v lsusb >/dev/null 2>&1; then
printf '%s\n' '-- USB names --'
LC_ALL=C lsusb 2>/dev/null | sed -n 's/^Bus [0-9][0-9]* Device [0-9][0-9]*: ID //p'
fi
if command -v lspci >/dev/null 2>&1; then
printf '%s\n' '-- PCI names --'
LC_ALL=C lspci -vmm -nn 2>/dev/null | sed -n '/^\(Vendor\|Device\|Class\|SVendor\|SDevice\|Rev\|ProgIf\):/p; /^$/p'
fi
} > "$report" || exit
printf 'Device report saved to %s\n' "$report"
MANUALS_PLUS_LINUX
- Copy the command and run it in PowerShell. It reads hardware information and saves a report in your home folder.
- Choose the report using the path printed by PowerShell.
Show command
& {
$report = Join-Path $HOME ('manuals-plus-devices-windows-' + [guid]::NewGuid().ToString('N') + '.json')
$matchStem = '^(USB\\VID_[0-9a-f]{4}&PID_[0-9a-f]{4}|PCI\\VEN_[0-9a-f]{4}&DEV_[0-9a-f]{4})'
$matchID = '(' + $matchStem + '(?:&[a-z0-9_]{1,24})*)(?:\\.*)?$'
$providers = @{}
Get-CimInstance -ClassName Win32_PnPSignedDriver -Property DeviceID,DriverProviderName -ErrorAction SilentlyContinue |
ForEach-Object {
if ($_.DeviceID -match $matchStem -and $_.DriverProviderName) {
$providers[$_.DeviceID] = $_.DriverProviderName
}
}
$devices = @(Get-CimInstance -ClassName Win32_PnPEntity -Property Present,PNPDeviceID,HardwareID,Name,Manufacturer -ErrorAction Stop |
ForEach-Object {
if ($_.Present -eq $false) { return }
$device = $_
$primary = ''
$classCode = ''
foreach ($id in @($device.HardwareID) + @($device.PNPDeviceID)) {
if ($id -match $matchID) {
if (!$primary) { $primary = $Matches[1] }
if ($id -match '&CC_([a-f0-9]{6}|[a-f0-9]{4})(?:&|\\|$)') {
if ($Matches[1].Length -gt $classCode.Length) { $classCode = $Matches[1] }
}
}
}
if ($primary) {
$provider = ''
if ($device.PNPDeviceID) { $provider = $providers[$device.PNPDeviceID] }
[ordered]@{hardwareId = $primary; name = [string]$device.Name; manufacturer = [string]$device.Manufacturer;
provider = [string]$provider; classCode = $classCode}
}
})
[ordered]@{schema = 'manuals-plus-device-inventory'; version = 1; platform = 'windows'; devices = $devices} |
ConvertTo-Json -Depth 4 | Set-Content -LiteralPath $report -Encoding UTF8 -ErrorAction Stop
Write-Host "Device report saved to $report"
}
Drop a device report, driver files, or a folder
Scan a saved report, INF, plist, Windows installer, macOS app bundle, or archive. Packages must be smaller than 50 MB.
Supported driver formats
Windows INF, macOS XML and binary plists, and Linux hardware database files, module aliases, PCI maps, and udev rules. For a Mac app, drop its .app folder here or choose a ZIP containing the app. Hardware IDs are usually in the bundled driver extension.
ZIP, 7z, CAB, MSI, macOS packages, disk images, and supported self-extracting EXE installers can be inspected in the browser. For a password-protected or unsupported installer, extract it first and choose its driver folder.
Archive decoder license · Archive decoder source · XML reader license
Detected devices
| Device | Manufacturer and brand | Source in your files |
|---|