Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Open Points: 75 Time: 08:04 - May 11, 2010  

msaeedi

USB programming in linux with c++

Hi
I'm working on a c project in Linux. This project contains two components, one transmitter and one receiver each one should be executed on a different PC. Hence, two PCs should be communicated. To do so, USB port have to be used. Hence, my question is how to use USB programming in Linux to send data from one PC and receive data in another one and vice versa. I read some examples about libusb and checked them. currently, I used my flash disk as a USB device and I tried to open it and send some bytes (in bulk mode). However, I think I should buy a USB data cable (bridge cable?) first to connect both PCs. Then, I should set configurations of both USB ports as desired (in both PCs, is it possible or I cannot to re-set them?) and after that I can use usblib functions to send and receive data. Am I right or I missed something? I tried to set my flash configuration previously and I encountered a problem, i.e., device is busy and so on. Please help. I appreciate your time and effort.

Mehdi

Categories

Answer Discussion
Tutorials

 

This question has not yet been answered.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Tutorials cannot be submitted until the Answer Discussion is complete.

Submit answers in the Answer Discussion area

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10279

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es