Naze Kimi
Naze Kimi

Reputation: 413

How to communicate with the USB Host from a Linux USB Client

The host part will be a PC program made from c# in which I will use LibUSBdotnet to do the communication. My problem is how do I make the Linux side pickup and respond. I don't really know where to start. Whenever I try to search for it, all result show are "how linux communicates with a device attached to it". Or it does not matter if a device is host or client, because they utilize the same pipes/bus? Can I use something in "/dev/usb***"?

I have seen "libusb" which I believe is the linux cousin of libusbdotnet. Can I somehow use this library? If anyone can show me the right direction, I would really appreciate it.

Upvotes: 1

Views: 2328

Answers (1)

user2699113
user2699113

Reputation: 4509

AFAIK libusb is the library for usb-host side, not for usb-device side. So you cannot use it in your case. I suggest the same as myninjaname said - to analyse one of the Linux usb gadget drivers as a start point.

Upvotes: 3

Related Questions