)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"3db0e406d78e2aacdf77a8508802ac58bc65250a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"33c83124_f9607dfc","updated":"2023-12-07 22:24:02.000000000","message":"Tomas, there are two binary files in this patch. Is it correct?","commit_id":"2d770ab67403f1ec7493bf8e5b7c93a2d5550f92"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"fa302a1e4b2031aa42a329f5926460702d0ced9d","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"624ca071_63e43880","in_reply_to":"0fcae1cc_b70f8054","updated":"2023-12-08 12:01:38.000000000","message":"Thanks for finding the unbind trick, Antonio!\n\n\u003e Does this new dump from lsusb fit your needs? You mention you only need \u0027report length\u0027\n\u003e \n\u003e Should we go for the binary report, or use the lsusb dump?\n\nWell, if we ever need to reconstruct the original binary from a lsusb dump, it would be really hard. Otherwise the dump is sufficient to get an idea about the structure and to check visually if a vendor does not code something nasty in the descriptor. Let\u0027s settle with the dump only for now","commit_id":"2d770ab67403f1ec7493bf8e5b7c93a2d5550f92"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"d7ddeac6cf6afab194176b810a6d833afca01688","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":2,"id":"e387bce7_1356edd3","in_reply_to":"33c83124_f9607dfc","updated":"2023-12-08 08:27:45.000000000","message":"I wanted to ask, you noticed first.\nlsusb does not show HID report descriptor.\nWe would need the descriptor of HID based CMSIS-DAPs if we want to parse it to get the report length.\nThe files are binary copies of /sys/bus/hid/*/report_descriptor\nOf course we can put hexdump -C of the file but in that case we cannot directly use a decoder (e.g. https://github.com/abend0c1/hidrdd) on the file.\nWhat do you think?","commit_id":"2d770ab67403f1ec7493bf8e5b7c93a2d5550f92"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"0f7596e2e28c4dedcb98eea3803c2217302cb287","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"8e5ef364_70b992a1","in_reply_to":"624ca071_63e43880","updated":"2023-12-08 12:37:58.000000000","message":"Ok, let\u0027s keep going this way, for the moment.\nI will try to update the script to handle this HID report","commit_id":"2d770ab67403f1ec7493bf8e5b7c93a2d5550f92"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"5a1696eb1c3cfcdb5a4b2661c66714cf75506cb1","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":2,"id":"0fcae1cc_b70f8054","in_reply_to":"e387bce7_1356edd3","updated":"2023-12-08 10:31:20.000000000","message":"Interesting! I haven\u0027t noticed the \"UNAVAILABLE\" text.\n\nThere are few tools to decode the HID report descriptor, and I expect their output to slightly differ. Plus we should not force any user to install one of these tools.\nIn https://www.slashdev.ca/2010/05/08/get-usb-report-descriptor-with-linux/\nthere is a long list of such tools.\nAnd there is also a method to get the text dump of the HID report directly from lsusb. It\u0027s a little tricky, but maybe we can automatize it in the script doc/usb_adapters/dump.sh\nIn my case, I have a ULINK2 with VIP:PID C251:2722 (use uppercase hex digits)\n$ ls -d /sys/bus/usb/drivers/usbhid/*/*:C251:2722.*\n/sys/bus/usb/drivers/usbhid/3-6.3.2.2:1.0/0003:C251:2722.000A\nextract the string \u00273-6.3.2.2:1.0\u0027\n$ sudo sh -c \u0027echo -n 3-6.3.2.2:1.0 \u003e /sys/bus/usb/drivers/usbhid/unbind\u0027\nthen finally\n$ lsusb -v -d c251:2722\n\nDoes this new dump from lsusb fit your needs? You mention you only need \u0027report length\u0027\n\nShould we go for the binary report, or use the lsusb dump?","commit_id":"2d770ab67403f1ec7493bf8e5b7c93a2d5550f92"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"54c12a51d0cb032fa99a7711dcf57a50f3cb3496","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"2247030a_ecccd2a3","updated":"2023-12-16 07:54:22.000000000","message":"script updated in https://review.openocd.org/c/8046","commit_id":"16e9b9c44fa62ea6eec99d1fb7bc43a8f1cc2f7e"}]}
