{"action":"created","issue":{"url":"https://api.github.com/repos/MadLittleMods/node-usb-detection/issues/8","labels_url":"https://api.github.com/repos/MadLittleMods/node-usb-detection/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/MadLittleMods/node-usb-detection/issues/8/comments","events_url":"https://api.github.com/repos/MadLittleMods/node-usb-detection/issues/8/events","html_url":"https://github.com/MadLittleMods/node-usb-detection/issues/8","id":71992854,"number":8,"title":"deviceAddress does not match libusb device address","user":{"login":"matthova","id":4811753,"avatar_url":"https://avatars.githubusercontent.com/u/4811753?v=3","gravatar_id":"","url":"https://api.github.com/users/matthova","html_url":"https://github.com/matthova","followers_url":"https://api.github.com/users/matthova/followers","following_url":"https://api.github.com/users/matthova/following{/other_user}","gists_url":"https://api.github.com/users/matthova/gists{/gist_id}","starred_url":"https://api.github.com/users/matthova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthova/subscriptions","organizations_url":"https://api.github.com/users/matthova/orgs","repos_url":"https://api.github.com/users/matthova/repos","events_url":"https://api.github.com/users/matthova/events{/privacy}","received_events_url":"https://api.github.com/users/matthova/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-29T21:21:34Z","updated_at":"2015-06-15T06:44:05Z","closed_at":null,"body":"The deviceAddress provided by usb-detection is not consistent with the same device's device address via libusb. This is on Windows 7, Node 0.10.35.\r\n\r\nFor example\r\nusb-detection provides:\r\ninDevice\r\n { locationId: 0,\r\n  vendorId: 1133,\r\n  productId: 50484,\r\n  deviceName: 'USB Composite Device',\r\n  manufacturer: '(Standard USB Host Controller)',\r\n  serialNumber: '',\r\n  deviceAddress: 18 }\r\n\r\nwhile (npm's) usb provides\r\n { busNumber: 1,\r\n  deviceAddress: 21,\r\n  deviceDescriptor:\r\n   { bLength: 18,\r\n     bDescriptorType: 1,\r\n     bcdUSB: 512,\r\n     bDeviceClass: 0,\r\n     bDeviceSubClass: 0,\r\n     bDeviceProtocol: 0,\r\n     bMaxPacketSize0: 8,\r\n     idVendor: 1133,\r\n     idProduct: 50484,\r\n     bcdDevice: 10496,\r\n     iManufacturer: 1,\r\n     iProduct: 2,\r\n     iSerialNumber: 0,\r\n     bNumConfigurations: 1 },\r\n  portNumbers: [ 1 ] }\r\n\r\nThe offset between libusb and usb-detection changes with any instance of the node process.\r\n\r\nAll the same, awesome library! Very useful."},"comment":{"url":"https://api.github.com/repos/MadLittleMods/node-usb-detection/issues/comments/111952978","html_url":"https://github.com/MadLittleMods/node-usb-detection/issues/8#issuecomment-111952978","issue_url":"https://api.github.com/repos/MadLittleMods/node-usb-detection/issues/8","id":111952978,"user":{"login":"MadLittleMods","id":558581,"avatar_url":"https://avatars.githubusercontent.com/u/558581?v=3","gravatar_id":"","url":"https://api.github.com/users/MadLittleMods","html_url":"https://github.com/MadLittleMods","followers_url":"https://api.github.com/users/MadLittleMods/followers","following_url":"https://api.github.com/users/MadLittleMods/following{/other_user}","gists_url":"https://api.github.com/users/MadLittleMods/gists{/gist_id}","starred_url":"https://api.github.com/users/MadLittleMods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadLittleMods/subscriptions","organizations_url":"https://api.github.com/users/MadLittleMods/orgs","repos_url":"https://api.github.com/users/MadLittleMods/repos","events_url":"https://api.github.com/users/MadLittleMods/events{/privacy}","received_events_url":"https://api.github.com/users/MadLittleMods/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T06:44:05Z","updated_at":"2015-06-15T06:44:05Z","body":"Thank you for the bug report. I saw your issue the moment you posted but I haven't gotten around to investigating. "}}