write and read to a USB port using the command line

rfsweitzer

New Member
Joined
Aug 31, 2018
Messages
1
Reaction score
0
Credits
0
I have an Ubuntu 18.04 system connected to and embedded controller board via USB. The board is a USB device. I can enumerate the board with the Ubuntu system. It shows up with command lsusb. To debug my firmware on the board I would like to send data to the board via USB and read data from the board via USB. The USB has 2 BULK endpoints. EP0 used for commands. EP1 OUT used to send data from host and EP1 IN used for host to receive data. Are there bash commands to send data to the EP0 OUT? Send data to the EP1 OUT and read data from EP1 IN? The command lsusb gives the port number, VID and PID.

Thanks




How to Ask
Is your question about Ubuntu?

We prefer questions that can be answered, not just discussed.

Provide details. Share your research.

If your question is about this website, ask it on meta instead.

visit the help center »
asking help »
 

Members online


Top