{"action":"created","issue":{"url":"https://api.github.com/repos/dominicgs/USBProxy/issues/51","labels_url":"https://api.github.com/repos/dominicgs/USBProxy/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/dominicgs/USBProxy/issues/51/comments","events_url":"https://api.github.com/repos/dominicgs/USBProxy/issues/51/events","html_url":"https://github.com/dominicgs/USBProxy/issues/51","id":109786951,"number":51,"title":"Is it support printers ?","user":{"login":"taoyuan","id":4882922,"avatar_url":"https://avatars.githubusercontent.com/u/4882922?v=3","gravatar_id":"","url":"https://api.github.com/users/taoyuan","html_url":"https://github.com/taoyuan","followers_url":"https://api.github.com/users/taoyuan/followers","following_url":"https://api.github.com/users/taoyuan/following{/other_user}","gists_url":"https://api.github.com/users/taoyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/taoyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taoyuan/subscriptions","organizations_url":"https://api.github.com/users/taoyuan/orgs","repos_url":"https://api.github.com/users/taoyuan/repos","events_url":"https://api.github.com/users/taoyuan/events{/privacy}","received_events_url":"https://api.github.com/users/taoyuan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-10-05T12:35:50Z","updated_at":"2015-11-06T16:35:19Z","closed_at":null,"body":"I have installed and tested the awesome project. It work fine with keyboard and mouse, although a little slow. \r\n\r\nHowever, it is not so lucky with thermal printers. Here is the output:\r\n\r\n```sh\r\nLoading plugins from /usr/local/lib/USBProxy/\r\nvendorId=ffffffff\r\nproductId=ffffffff\r\ncleaning up /tmp\r\nremoving 2\r\nMade directory /tmp/gadget-NP8yI5 for gadget\r\nPrinting Config data\r\n        Strings: 2\r\n                DeviceProxy: DeviceProxy_LibUSB\r\n                HostProxy: HostProxy_GadgetFS\r\n        Vectors: 1\r\n                Plugins:\r\n                        PacketFilter_StreamLog\r\nPointer: 1\r\n                PacketFilter_StreamLog::file: 0xb6dd69f0\r\nDevice: 12 01 00 02 00 00 00 40 83 04 20 57 00 01 01 02 03 01\r\n  Manufacturer: Spirit\r\n  Product:      SPRT Printer\r\n  Serial:       11101800002\r\n        *Config(1): 09 02 20 00 01 01 00 c0 01\r\n                Interface(0):\r\n                        *Alt(0): 09 04 00 00 02 07 01 02 00\r\n                                EP(01): 07 05 01 02 40 00 00\r\n                                EP(82): 07 05 82 02 40 00 00\r\nsearching in [/tmp/gadget-NP8yI5]\r\nStarting setup reader thread (23002) for EP00.\r\nStarting setup writer thread (23003) for EP00.\r\n[80 06 02 03 09 04 02 00]\r\n[80 06 02 03 09 04 02 00]: 1a 03\r\n[80 06 02 03 09 04 1a 00]\r\n[80 06 02 03 09 04 1a 00]: 1a 03 53 00 50 00 52 00 54 00 20 00 50 00 72 00 69 00 6e 00 74 00 65 00 72 00\r\n[80 06 01 03 09 04 02 00]\r\n[80 06 01 03 09 04 02 00]: 0e 03\r\n[80 06 01 03 09 04 0e 00]\r\n[80 06 01 03 09 04 0e 00]: 0e 03 53 00 70 00 69 00 72 00 69 00 74 00\r\n[80 06 03 03 09 04 02 00]\r\n[80 06 03 03 09 04 02 00]: 18 03\r\n[80 06 03 03 09 04 18 00]\r\n[80 06 03 03 09 04 18 00]: 18 03 31 00 31 00 31 00 30 00 31 00 38 00 30 00 30 00 30 00 30 00 32 00\r\n[00 09 01 00 00 00 00 00]\r\nOpened EP01\r\nOpened EP82\r\nStarting reader thread (23007) for EP82.\r\nStarting writer thread (23008) for EP82.\r\nStarting writer thread (23006) for EP01.\r\nStarting reader thread (23005) for EP01.\r\n[80 06 02 03 09 04 02 00]\r\n[80 06 02 03 09 04 02 00]: 1a 03\r\n[80 06 02 03 09 04 1a 00]\r\n[80 06 02 03 09 04 1a 00]: 1a 03 53 00 50 00 52 00 54 00 20 00 50 00 72 00 69 00 6e 00 74 00 65 00 72 00\r\n[80 06 01 03 09 04 02 00]\r\n[80 06 01 03 09 04 02 00]: 0e 03\r\n[80 06 01 03 09 04 0e 00]\r\n[80 06 01 03 09 04 0e 00]: 0e 03 53 00 70 00 69 00 72 00 69 00 74 00\r\n[80 06 03 03 09 04 02 00]\r\n[80 06 03 03 09 04 02 00]: 18 03\r\n[80 06 03 03 09 04 18 00]\r\n[80 06 03 03 09 04 18 00]: 18 03 31 00 31 00 31 00 30 00 31 00 38 00 30 00 30 00 30 00 30 00 32 00\r\n[80 06 00 03 00 00 ff 00]\r\n[80 06 00 03 00 00 04 00]: 04 03 09 04\r\n[80 06 02 03 09 04 ff 00]\r\n[80 06 02 03 09 04 1a 00]: 1a 03 53 00 50 00 52 00 54 00 20 00 50 00 72 00 69 00 6e 00 74 00 65 00 72 00\r\n[80 06 01 03 09 04 ff 00]\r\n[80 06 01 03 09 04 0e 00]: 0e 03 53 00 70 00 69 00 72 00 69 00 74 00\r\n[80 06 03 03 09 04 ff 00]\r\n[80 06 03 03 09 04 18 00]: 18 03 31 00 31 00 31 00 30 00 31 00 38 00 30 00 30 00 30 00 30 00 32 00\r\n[00 09 01 00 00 00 00 00]\r\n// blocked here\r\n```\r\n\r\nAnd after a few seconds, it exit without any further message. Before the `usb-mitm` process exit, the host can recognize the device, but can not operate it.\r\n\r\nThanks for any help."},"comment":{"url":"https://api.github.com/repos/dominicgs/USBProxy/issues/comments/154461982","html_url":"https://github.com/dominicgs/USBProxy/issues/51#issuecomment-154461982","issue_url":"https://api.github.com/repos/dominicgs/USBProxy/issues/51","id":154461982,"user":{"login":"taoyuan","id":4882922,"avatar_url":"https://avatars.githubusercontent.com/u/4882922?v=3","gravatar_id":"","url":"https://api.github.com/users/taoyuan","html_url":"https://github.com/taoyuan","followers_url":"https://api.github.com/users/taoyuan/followers","following_url":"https://api.github.com/users/taoyuan/following{/other_user}","gists_url":"https://api.github.com/users/taoyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/taoyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taoyuan/subscriptions","organizations_url":"https://api.github.com/users/taoyuan/orgs","repos_url":"https://api.github.com/users/taoyuan/repos","events_url":"https://api.github.com/users/taoyuan/events{/privacy}","received_events_url":"https://api.github.com/users/taoyuan/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T16:35:19Z","updated_at":"2015-11-06T16:35:19Z","body":"I haven't tried using `usbmon`. \r\n\r\nBut I tried using `node.js` to implement similar functionality, and found that the printer can not process control request `[00 09 01 00 00 00 00 00]`, it throws some `transfer error`."}}