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.

  1. Copy the command and run it in Terminal. It reads hardware information and saves a report in your home folder.
  2. 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

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