{"action":"created","issue":{"url":"https://api.github.com/repos/qzind/tray/issues/288","repository_url":"https://api.github.com/repos/qzind/tray","labels_url":"https://api.github.com/repos/qzind/tray/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/qzind/tray/issues/288/comments","events_url":"https://api.github.com/repos/qzind/tray/issues/288/events","html_url":"https://github.com/qzind/tray/issues/288","id":307502610,"number":288,"title":"Can't read data from Honeywell Scanner","user":{"login":"tresf","id":6345473,"avatar_url":"https://avatars0.githubusercontent.com/u/6345473?v=4","gravatar_id":"","url":"https://api.github.com/users/tresf","html_url":"https://github.com/tresf","followers_url":"https://api.github.com/users/tresf/followers","following_url":"https://api.github.com/users/tresf/following{/other_user}","gists_url":"https://api.github.com/users/tresf/gists{/gist_id}","starred_url":"https://api.github.com/users/tresf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tresf/subscriptions","organizations_url":"https://api.github.com/users/tresf/orgs","repos_url":"https://api.github.com/users/tresf/repos","events_url":"https://api.github.com/users/tresf/events{/privacy}","received_events_url":"https://api.github.com/users/tresf/received_events","type":"User","site_admin":false},"labels":[{"id":327962859,"url":"https://api.github.com/repos/qzind/tray/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/qzind/tray/milestones/10","html_url":"https://github.com/qzind/tray/milestone/10","labels_url":"https://api.github.com/repos/qzind/tray/milestones/10/labels","id":2892309,"number":10,"title":"2.0.6","description":null,"creator":{"login":"tresf","id":6345473,"avatar_url":"https://avatars0.githubusercontent.com/u/6345473?v=4","gravatar_id":"","url":"https://api.github.com/users/tresf","html_url":"https://github.com/tresf","followers_url":"https://api.github.com/users/tresf/followers","following_url":"https://api.github.com/users/tresf/following{/other_user}","gists_url":"https://api.github.com/users/tresf/gists{/gist_id}","starred_url":"https://api.github.com/users/tresf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tresf/subscriptions","organizations_url":"https://api.github.com/users/tresf/orgs","repos_url":"https://api.github.com/users/tresf/repos","events_url":"https://api.github.com/users/tresf/events{/privacy}","received_events_url":"https://api.github.com/users/tresf/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":5,"state":"open","created_at":"2017-11-06T20:23:09Z","updated_at":"2018-03-27T04:10:37Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-03-22T04:30:10Z","updated_at":"2018-03-27T04:10:37Z","closed_at":"2018-03-27T04:10:37Z","author_association":"CONTRIBUTOR","body":"**Edit:** The solution is to provide a `usagePage` parameter.  This is an API change... (2.0.6 and greater only)\r\n\r\n```js\r\nvar device = {\r\n   vendorId: '0x0c2e',\r\n   productId: '0x0b87',\r\n   usagePage: '0x008c', //filter out 0xff8c\r\n   readSize: 61,\r\n   interval: 10, //ms\r\n```\r\n\r\n**Before**\r\n```js\r\nqz.hid.claimDevice(device.vendorId, device.productId);\r\n```\r\n\r\n**After**\r\n```js\r\nqz.hid.claimDevice(device);\r\n```\r\n\r\n--- \r\n\r\nWe found a problem while working on #286 with the way Honeywell scanners work with QZ Tray... \r\n\r\n* Honeywell installs two USB devices with the same `VID` / `PID`.\r\n* QZ Tray grabs the first device with may NOT be the HID device.\r\n* QZ Tray can never read data from the Honeywell barcode scanner.\r\n\r\nA second feature will be added which allows querying on `UsagePage` parameter from the Honeywell scanner.\r\n* `-116`  Incorrect USB device\r\n* ` 140` The HID device, the one we want\r\n\r\nTested on:\r\n* [X] Windows - Works using PureJavaHIDAPI\r\n* [X] MacOS - Works using HID4Java\r\n* [ ] Linux - Broken \r\n"},"comment":{"url":"https://api.github.com/repos/qzind/tray/issues/comments/376391105","html_url":"https://github.com/qzind/tray/issues/288#issuecomment-376391105","issue_url":"https://api.github.com/repos/qzind/tray/issues/288","id":376391105,"user":{"login":"tresf","id":6345473,"avatar_url":"https://avatars0.githubusercontent.com/u/6345473?v=4","gravatar_id":"","url":"https://api.github.com/users/tresf","html_url":"https://github.com/tresf","followers_url":"https://api.github.com/users/tresf/followers","following_url":"https://api.github.com/users/tresf/following{/other_user}","gists_url":"https://api.github.com/users/tresf/gists{/gist_id}","starred_url":"https://api.github.com/users/tresf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tresf/subscriptions","organizations_url":"https://api.github.com/users/tresf/orgs","repos_url":"https://api.github.com/users/tresf/repos","events_url":"https://api.github.com/users/tresf/events{/privacy}","received_events_url":"https://api.github.com/users/tresf/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T04:10:37Z","updated_at":"2018-03-27T04:10:37Z","author_association":"CONTRIBUTOR","body":"Closed via #289."}}
{"actor":{"display_login":"tresf"}}