Guest User

Untitled

a guest
Jun 7th, 2021
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. USB HID Device Info Program
  3.  
  4. This Sketch shows information about plugged in HID devices
  5.  
  6. *** You can control the output by simple character input to Serial ***
  7. R - Turns on or off showing the raw data
  8. C - Toggles showing changed data only on or off
  9. <anything else> - toggles showing the Hid formatted breakdown of the data
  10.  
  11.  
  12. USBDeviceInfo claim this=20005F68
  13.  
  14. ****************************************
  15. ** Device Level **
  16. vid=258A
  17. pid=36
  18. bDeviceClass = 0
  19. bDeviceSubClass = 0
  20. bDeviceProtocol = 0
  21. 09 04 00 00 01 03 01 02 00 09 21 11 01 00 01 22 47 00 07 05 81 03 08 00 01 09 04 01 00 01 03 01
  22. 01 00 09 21 11 01 00 01 22 D5 00 07 05 82 03 08 00 01
  23.  
  24. USBDeviceInfo claim this=20005F68
  25.  
  26. ****************************************
  27. ** Interface Level **
  28. 09 04 00 00 01 03 01 02 00 09 21 11 01 00 01 22 47 00 07 05 81 03 08 00 01 09 04 01 00 01 03 01
  29. 01 00 09 21 11 01 00 01 22 D5 00 07 05 82 03 08 00 01
  30. bInterfaceNumber = 0
  31. number end points = 1
  32. bInterfaceClass = 3
  33. bInterfaceSubClass = 1
  34. HID (BOOT)
  35. bInterfaceProtocol = 2
  36. report descriptor size = 71
  37. endpoint = 81
  38. attributes = 3 Interrupt
  39. size = 8
  40. interval = 1
  41.  
  42. USBDeviceInfo claim this=20005F68
  43.  
  44. ****************************************
  45. ** Interface Level **
  46. 09 04 01 00 01 03 01 01 00 09 21 11 01 00 01 22 D5 00 07 05 82 03 08 00 01
  47. bInterfaceNumber = 1
  48. number end points = 1
  49. bInterfaceClass = 3
  50. bInterfaceSubClass = 1
  51. HID (BOOT)
  52. bInterfaceProtocol = 1
  53. report descriptor size = 213
  54. endpoint = 82
  55. attributes = 3 Interrupt
  56. size = 8
  57. interval = 1
  58. *** Device HID1 258a: 36 - connected ***
  59. manufacturer: SINOWEALTH
  60. product: Wired Gaming Mouse
  61. HIDDumpController Claim: 258a:36 usage: 10002 - Yes
  62. *** HID Device hdc1 258a: 36 - connected ***
  63. manufacturer: SINOWEALTH
  64. product: Wired Gaming Mouse
  65. HID(10002): 00 01 00 00 00 00 00 00
  66. Begin topusage:10000 type:2 min:0 max:1
  67. usage=90001, value=0 (BUTTON 1)
  68. usage=90002, value=0 (BUTTON 2)
  69. usage=90003, value=0 (BUTTON 3)
  70. usage=90004, value=0 (BUTTON 4)
  71. usage=90005, value=0 (BUTTON 5)
  72. Begin topusage:10000 type:6 min:-32768 max:32767
  73. usage=10030, value=1(X)
  74. usage=10031, value=0(Y)
  75. Begin topusage:10000 type:6 min:-128 max:127
  76. usage=10038, value=0(Wheel)
  77. Begin topusage:10000 type:6 min:-128 max:127
  78. usage=C0238, value=0(AC Pan)
  79. END:
  80. HID(10002): 00 01 00 00 00 00 00 00
  81. Begin topusage:10000 type:2 min:0 max:1
  82. usage=90001, value=0 (BUTTON 1)
  83. usage=90002, value=0 (BUTTON 2)
  84. usage=90003, value=0 (BUTTON 3)
  85. usage=90004, value=0 (BUTTON 4)
  86. usage=90005, value=0 (BUTTON 5)
  87. Begin topusage:10000 type:6 min:-32768 max:32767
  88. usage=10030, value=1(X)
  89. usage=10031, value=0(Y)
  90. Begin topusage:10000 type:6 min:-128 max:127
  91. usage=10038, value=0(Wheel)
  92. Begin topusage:10000 type:6 min:-128 max:127
  93. usage=C0238, value=0(AC Pan)
  94. END:
  95. HID(10002): 00 02 00 00 00 00 00 00
  96. Begin topusage:10000 type:2 min:0 max:1
  97. usage=90001, value=0 (BUTTON 1)
  98. usage=90002, value=0 (BUTTON 2)
  99. usage=90003, value=0 (BUTTON 3)
  100. usage=90004, value=0 (BUTTON 4)
  101. usage=90005, value=0 (BUTTON 5)
  102. Begin topusage:10000 type:6 min:-32768 max:32767
  103. usage=10030, value=2(X)
  104. usage=10031, value=0(Y)
  105. Begin topusage:10000 type:6 min:-128 max:127
  106. usage=10038, value=0(Wheel)
  107. Begin topusage:10000 type:6 min:-128 max:127
  108. usage=C0238, value=0(AC Pan)
  109. END:
  110. HID(10002): 00 02 00 FF FF 00 00 00
  111. Begin topusage:10000 type:2 min:0 max:1
  112. usage=90001, value=0 (BUTTON 1)
  113. usage=90002, value=0 (BUTTON 2)
  114. usage=90003, value=0 (BUTTON 3)
  115. usage=90004, value=0 (BUTTON 4)
  116. usage=90005, value=0 (BUTTON 5)
  117. Begin topusage:10000 type:6 min:-32768 max:32767
  118. usage=10030, value=2(X)
  119. usage=10031, value=-1(Y)
  120. Begin topusage:10000 type:6 min:-128 max:127
  121. usage=10038, value=0(Wheel)
  122. Begin topusage:10000 type:6 min:-128 max:127
  123. usage=C0238, value=0(AC Pan)
  124. END:
  125. HID(10002): 00 03 00 00 00 00 00 00
  126. Begin topusage:10000 type:2 min:0 max:1
  127. usage=90001, value=0 (BUTTON 1)
  128. usage=90002, value=0 (BUTTON 2)
  129. usage=90003, value=0 (BUTTON 3)
  130. usage=90004, value=0 (BUTTON 4)
  131. usage=90005, value=0 (BUTTON 5)
  132. Begin topusage:10000 type:6 min:-32768 max:32767
  133. usage=10030, value=3(X)
  134. usage=10031, value=0(Y)
  135. Begin topusage:10000 type:6 min:-128 max:127
  136. usage=10038, value=0(Wheel)
  137. Begin topusage:10000 type:6 min:-128 max:127
  138. usage=C0238, value=0(AC Pan)
  139. END:
  140. HID(10002): 00 03 00 00 00 00 00 00
  141. Begin topusage:10000 type:2 min:0 max:1
  142. usage=90001, value=0 (BUTTON 1)
  143. usage=90002, value=0 (BUTTON 2)
  144. usage=90003, value=0 (BUTTON 3)
  145. usage=90004, value=0 (BUTTON 4)
  146. usage=90005, value=0 (BUTTON 5)
  147. Begin topusage:10000 type:6 min:-32768 max:32767
  148. usage=10030, value=3(X)
  149. usage=10031, value=0(Y)
  150. Begin topusage:10000 type:6 min:-128 max:127
  151. usage=10038, value=0(Wheel)
  152. Begin topusage:10000 type:6 min:-128 max:127
  153. usage=C0238, value=0(AC Pan)
  154. END:
  155. HID(10002): 00 03 00 FF FF 00 00 00
  156. Begin topusage:10000 type:2 min:0 max:1
  157. usage=90001, value=0 (BUTTON 1)
  158. usage=90002, value=0 (BUTTON 2)
  159. usage=90003, value=0 (BUTTON 3)
  160. usage=90004, value=0 (BUTTON 4)
  161. usage=90005, value=0 (BUTTON 5)
  162. Begin topusage:10000 type:6 min:-32768 max:32767
  163. usage=10030, value=3(X)
  164. usage=10031, value=-1(Y)
  165. Begin topusage:10000 type:6 min:-128 max:127
  166. usage=10038, value=0(Wheel)
  167. Begin topusage:10000 type:6 min:-128 max:127
  168. usage=C0238, value=0(AC Pan)
  169. END:
  170. HID(10002): 00 02 00 00 00 00 00 00
  171. Begin topusage:10000 type:2 min:0 max:1
  172. usage=90001, value=0 (BUTTON 1)
  173. usage=90002, value=0 (BUTTON 2)
  174. usage=90003, value=0 (BUTTON 3)
  175. usage=90004, value=0 (BUTTON 4)
  176. usage=90005, value=0 (BUTTON 5)
  177. Begin topusage:10000 type:6 min:-32768 max:32767
  178. usage=10030, value=2(X)
  179. usage=10031, value=0(Y)
  180. Begin topusage:10000 type:6 min:-128 max:127
  181. usage=10038, value=0(Wheel)
  182. Begin topusage:10000 type:6 min:-128 max:127
  183. usage=C0238, value=0(AC Pan)
  184. END:
  185. HID(10002): 00 03 00 00 00 00 00 00
  186. Begin topusage:10000 type:2 min:0 max:1
  187. usage=90001, value=0 (BUTTON 1)
  188. usage=90002, value=0 (BUTTON 2)
  189. usage=90003, value=0 (BUTTON 3)
  190. usage=90004, value=0 (BUTTON 4)
  191. usage=90005, value=0 (BUTTON 5)
  192. Begin topusage:10000 type:6 min:-32768 max:32767
  193. usage=10030, value=3(X)
  194. usage=10031, value=0(Y)
  195. Begin topusage:10000 type:6 min:-128 max:127
  196. usage=10038, value=0(Wheel)
  197. Begin topusage:10000 type:6 min:-128 max:127
  198. usage=C0238, value=0(AC Pan)
  199. END:
  200. HID(10002): 00 03 00 00 00 00 00 00
  201. Begin topusage:10000 type:2 min:0 max:1
  202. usage=90001, value=0 (BUTTON 1)
  203. usage=90002, value=0 (BUTTON 2)
  204. usage=90003, value=0 (BUTTON 3)
  205. usage=90004, value=0 (BUTTON 4)
  206. usage=90005, value=0 (BUTTON 5)
  207. Begin topusage:10000 type:6 min:-32768 max:32767
  208. usage=10030, value=3(X)
  209. usage=10031, value=0(Y)
  210. Begin topusage:10000 type:6 min:-128 max:127
  211. usage=10038, value=0(Wheel)
  212. Begin topusage:10000 type:6 min:-128 max:127
  213. usage=C0238, value=0(AC Pan)
  214. END:
  215. HID(10002): 00 03 00 00 00 00 00 00
  216. Begin topusage:10000 type:2 min:0 max:1
  217. usage=90001, value=0 (BUTTON 1)
  218. usage=90002, value=0 (BUTTON 2)
  219. usage=90003, value=0 (BUTTON 3)
  220. usage=90004, value=0 (BUTTON 4)
  221. usage=90005, value=0 (BUTTON 5)
  222. Begin topusage:10000 type:6 min:-32768 max:32767
  223. usage=10030, value=3(X)
  224. usage=10031, value=0(Y)
  225. Begin topusage:10000 type:6 min:-128 max:127
  226. usage=10038, value=0(Wheel)
  227. Begin topusage:10000 type:6 min:-128 max:127
  228. usage=C0238, value=0(AC Pan)
  229. END:
  230. HID(10002): 00 03 00 FF FF 00 00 00
  231. Begin topusage:10000 type:2 min:0 max:1
  232. usage=90001, value=0 (BUTTON 1)
  233. usage=90002, value=0 (BUTTON 2)
  234. usage=90003, value=0 (BUTTON 3)
  235. usage=90004, value=0 (BUTTON 4)
  236. usage=90005, value=0 (BUTTON 5)
  237. Begin topusage:10000 type:6 min:-32768 max:32767
  238. usage=10030, value=3(X)
  239. usage=10031, value=-1(Y)
  240. Begin topusage:10000 type:6 min:-128 max:127
  241. usage=10038, value=0(Wheel)
  242. Begin topusage:10000 type:6 min:-128 max:127
  243. usage=C0238, value=0(AC Pan)
  244. END:
  245. HID(10002): 00 02 00 00 00 00 00 00
  246. Begin topusage:10000 type:2 min:0 max:1
  247. usage=90001, value=0 (BUTTON 1)
  248. usage=90002, value=0 (BUTTON 2)
  249. usage=90003, value=0 (BUTTON 3)
  250. usage=90004, value=0 (BUTTON 4)
  251. usage=90005, value=0 (BUTTON 5)
  252. Begin topusage:10000 type:6 min:-32768 max:32767
  253. usage=10030, value=2(X)
  254. usage=10031, value=0(Y)
  255. Begin topusage:10000 type:6 min:-128 max:127
  256. usage=10038, value=0(Wheel)
  257. Begin topusage:10000 type:6 min:-128 max:127
  258. usage=C0238, value=0(AC Pan)
  259. END:
  260. HID(10002): 00 03 00 00 00 00 00 00
  261. Begin topusage:10000 type:2 min:0 max:1
  262. usage=90001, value=0 (BUTTON 1)
  263. usage=90002, value=0 (BUTTON 2)
  264. usage=90003, value=0 (BUTTON 3)
  265. usage=90004, value=0 (BUTTON 4)
  266. usage=90005, value=0 (BUTTON 5)
  267. Begin topusage:10000 type:6 min:-32768 max:32767
  268. usage=10030, value=3(X)
  269. usage=10031, value=0(Y)
  270. Begin topusage:10000 type:6 min:-128 max:127
  271. usage=10038, value=0(Wheel)
  272. Begin topusage:10000 type:6 min:-128 max:127
  273. usage=C0238, value=0(AC Pan)
  274. END:
  275. HID(10002): 00 03 00 00 00 00 00 00
  276. Begin topusage:10000 type:2 min:0 max:1
  277. usage=90001, value=0 (BUTTON 1)
  278. usage=90002, value=0 (BUTTON 2)
  279. usage=90003, value=0 (BUTTON 3)
  280. usage=90004, value=0 (BUTTON 4)
  281. usage=90005, value=0 (BUTTON 5)
  282. Begin topusage:10000 type:6 min:-32768 max:32767
  283. usage=10030, value=3(X)
  284. usage=10031, value=0(Y)
  285. Begin topusage:10000 type:6 min:-128 max:127
  286. usage=10038, value=0(Wheel)
  287. Begin topusage:10000 type:6 min:-128 max:127
  288. usage=C0238, value=0(AC Pan)
  289. END:
  290. HID(10002): 00 03 00 00 00 00 00 00
  291. Begin topusage:10000 type:2 min:0 max:1
  292. usage=90001, value=0 (BUTTON 1)
  293. usage=90002, value=0 (BUTTON 2)
  294. usage=90003, value=0 (BUTTON 3)
  295. usage=90004, value=0 (BUTTON 4)
  296. usage=90005, value=0 (BUTTON 5)
  297. Begin topusage:10000 type:6 min:-32768 max:32767
  298. usage=10030, value=3(X)
  299. usage=10031, value=0(Y)
  300. Begin topusage:10000 type:6 min:-128 max:127
  301. usage=10038, value=0(Wheel)
  302. Begin topusage:10000 type:6 min:-128 max:127
  303. usage=C0238, value=0(AC Pan)
  304. END:
  305. HID(10002): 00 02 00 00 00 00 00 00
  306. Begin topusage:10000 type:2 min:0 max:1
  307. usage=90001, value=0 (BUTTON 1)
  308. usage=90002, value=0 (BUTTON 2)
  309. usage=90003, value=0 (BUTTON 3)
  310. usage=90004, value=0 (BUTTON 4)
  311. usage=90005, value=0 (BUTTON 5)
  312. Begin topusage:10000 type:6 min:-32768 max:32767
  313. usage=10030, value=2(X)
  314. usage=10031, value=0(Y)
  315. Begin topusage:10000 type:6 min:-128 max:127
  316. usage=10038, value=0(Wheel)
  317. Begin topusage:10000 type:6 min:-128 max:127
  318. usage=C0238, value=0(AC Pan)
  319. END:
  320. HID(10002): 00 02 00 00 00 00 00 00
  321. Begin topusage:10000 type:2 min:0 max:1
  322. usage=90001, value=0 (BUTTON 1)
  323. usage=90002, value=0 (BUTTON 2)
  324. usage=90003, value=0 (BUTTON 3)
  325. usage=90004, value=0 (BUTTON 4)
  326. usage=90005, value=0 (BUTTON 5)
  327. Begin topusage:10000 type:6 min:-32768 max:32767
  328. usage=10030, value=2(X)
  329. usage=10031, value=0(Y)
  330. Begin topusage:10000 type:6 min:-128 max:127
  331. usage=10038, value=0(Wheel)
  332. Begin topusage:10000 type:6 min:-128 max:127
  333. usage=C0238, value=0(AC Pan)
  334. END:
  335. HID(10002): 00 03 00 00 00 00 00 00
  336. Begin topusage:10000 type:2 min:0 max:1
  337. usage=90001, value=0 (BUTTON 1)
  338. usage=90002, value=0 (BUTTON 2)
  339. usage=90003, value=0 (BUTTON 3)
  340. usage=90004, value=0 (BUTTON 4)
  341. usage=90005, value=0 (BUTTON 5)
  342. Begin topusage:10000 type:6 min:-32768 max:32767
  343. usage=10030, value=3(X)
  344. usage=10031, value=0(Y)
  345. Begin topusage:10000 type:6 min:-128 max:127
  346. usage=10038, value=0(Wheel)
  347. Begin topusage:10000 type:6 min:-128 max:127
  348. usage=C0238, value=0(AC Pan)
  349. END:
  350. HID(10002): 00 02 00 00 00 00 00 00
  351. Begin topusage:10000 type:2 min:0 max:1
  352. usage=90001, value=0 (BUTTON 1)
  353. usage=90002, value=0 (BUTTON 2)
  354. usage=90003, value=0 (BUTTON 3)
  355. usage=90004, value=0 (BUTTON 4)
  356. usage=90005, value=0 (BUTTON 5)
  357. Begin topusage:10000 type:6 min:-32768 max:32767
  358. usage=10030, value=2(X)
  359. usage=10031, value=0(Y)
  360. Begin topusage:10000 type:6 min:-128 max:127
  361. usage=10038, value=0(Wheel)
  362. Begin topusage:10000 type:6 min:-128 max:127
  363. usage=C0238, value=0(AC Pan)
  364. END:
  365. HID(10002): 00 02 00 00 00 00 00 00
  366. Begin topusage:10000 type:2 min:0 max:1
  367. usage=90001, value=0 (BUTTON 1)
  368. usage=90002, value=0 (BUTTON 2)
  369. usage=90003, value=0 (BUTTON 3)
  370. usage=90004, value=0 (BUTTON 4)
  371. usage=90005, value=0 (BUTTON 5)
  372. Begin topusage:10000 type:6 min:-32768 max:32767
  373. usage=10030, value=2(X)
  374. usage=10031, value=0(Y)
  375. Begin topusage:10000 type:6 min:-128 max:127
  376. usage=10038, value=0(Wheel)
  377. Begin topusage:10000 type:6 min:-128 max:127
  378. usage=C0238, value=0(AC Pan)
  379. END:
  380. HID(10002): 00 02 00 00 00 00 00 00
  381. Begin topusage:10000 type:2 min:0 max:1
  382. usage=90001, value=0 (BUTTON 1)
  383. usage=90002, value=0 (BUTTON 2)
  384. usage=90003, value=0 (BUTTON 3)
  385. usage=90004, value=0 (BUTTON 4)
  386. usage=90005, value=0 (BUTTON 5)
  387. Begin topusage:10000 type:6 min:-32768 max:32767
  388. usage=10030, value=2(X)
  389. usage=10031, value=0(Y)
  390. Begin topusage:10000 type:6 min:-128 max:127
  391. usage=10038, value=0(Wheel)
  392. Begin topusage:10000 type:6 min:-128 max:127
  393. usage=C0238, value=0(AC Pan)
  394. END:
  395. HID(10002): 00 02 00 00 00 00 00 00
  396. Begin topusage:10000 type:2 min:0 max:1
  397. usage=90001, value=0 (BUTTON 1)
  398. usage=90002, value=0 (BUTTON 2)
  399. usage=90003, value=0 (BUTTON 3)
  400. usage=90004, value=0 (BUTTON 4)
  401. usage=90005, value=0 (BUTTON 5)
  402. Begin topusage:10000 type:6 min:-32768 max:32767
  403. usage=10030, value=2(X)
  404. usage=10031, value=0(Y)
  405. Begin topusage:10000 type:6 min:-128 max:127
  406. usage=10038, value=0(Wheel)
  407. Begin topusage:10000 type:6 min:-128 max:127
  408. usage=C0238, value=0(AC Pan)
  409. END:
  410. HID(10002): 00 02 00 00 00 00 00 00
  411. Begin topusage:10000 type:2 min:0 max:1
  412. usage=90001, value=0 (BUTTON 1)
  413. usage=90002, value=0 (BUTTON 2)
  414. usage=90003, value=0 (BUTTON 3)
  415. usage=90004, value=0 (BUTTON 4)
  416. usage=90005, value=0 (BUTTON 5)
  417. Begin topusage:10000 type:6 min:-32768 max:32767
  418. usage=10030, value=2(X)
  419. usage=10031, value=0(Y)
  420. Begin topusage:10000 type:6 min:-128 max:127
  421. usage=10038, value=0(Wheel)
  422. Begin topusage:10000 type:6 min:-128 max:127
  423. usage=C0238, value=0(AC Pan)
  424. END:
  425.  
RAW Paste Data