I want to write data to USB port using C in Linux.
Basically, I want to read data from a file and send to USB port, where I will receive from my target board.
Can any one suggest how to do this successfully or any application for this?
I want to write data to USB port using C in Linux.
Basically, I want to read data from a file and send to USB port, where I will receive from my target board.
Can any one suggest how to do this successfully or any application for this?
You may use libusb library for this. Take a look at: https://libusb.info/
However you need to know something about USB protocol. USB is not like serial ports where you send raw data on one side and receive them on the other one. You need to know how USB works.