There is a custom USB device I need to communicate with. There is no particular driver for it. The device doesn't show as /dev/tty*
.
I found out how I can use libudev
to enumerate the USB devices and let's say I manage to get the corresponding struct udev_device
.
What I can't figure out is how I can open(2)
the device so I can write(2)
to and read(2)
from it.
Is it possible to communicate with a generic USB device, setting baudrate and just read/write? If so, what "file" should I open after I find the device with libudev
? If not, is writing a kernel-level driver necessary?