r/linux_programming • u/vlad20112 • Feb 07 '22
Advice on working with LibUSB
Hi, everyone ! I learn interaction behind hardware device and software. I have a USB device but I don't understand how I can interact with it. I am using Libusb library for it. Would you share a links with code examples or maybe articles which related on this topic?
4
Upvotes
View all comments
Show parent comment
1
u/jonasfilho Feb 12 '22
I don't have experience with that type of device.
Do you have documentation or are you reverse engineering the thing from scratch?
I imagine it complies with some standard so that tools can work with, right? So at the very least you could start there.
Regardless, I would also take a look at the output from
lsusb -vjust to know the basics: which interfaces and endpoints are there, which class of device it is, etc.