English 中文(简体)
Question about Process communication over USB cable
原标题:
  • 时间:2009-12-04 08:29:39
  •  标签:
  • usb

I have some questions regarding communication over USB cable in Linux, in a Host-Target Device environment.(USB2.0) Please help as we are stuck for the below imiplementation. We have a host PC connected to a target device (Linux OS) through USB cable. On the target device we need to spawn 3 or 4 child processes. [Using fork() or some equivalent system call] All the child process should communicate to the host PC independently though there own source file descriptor and sink file descriptors. As per our experimentation, one process communicates to the PC at a time then the control is given to another process. But our requirement is for simultaneous communication. We are not sure whether USB driver(2.0/3.0) supports this methodology.

Any pointers regarding this will be helpful.

Thank you.

-AD

问题回答

As per our experimentation, one process communicates to the PC at a time then the control is given to another process.

This is how computers work. Only one thread at a time has control of a particular CPU - when it blocks for i/o or exhausts its quantum, control is given to another thread.

What do you need simultaneity for that you can t manage with sending data one after the other?

USB is a serial bus protocol with a SINGLE DATA BUS, and this means, what you are looking for is not possible.

But we can have 4 different USB COMMUNICATION PIPES which can provide different paths, but NOT simultaneously.





相关问题
Question about Process communication over USB cable

I have some questions regarding communication over USB cable in Linux, in a Host-Target Device environment.(USB2.0) Please help as we are stuck for the below imiplementation. We have a host PC ...

Turn on PC with USB-device

I want to be able to turn my PC on and off using an IR-remote sensor that is connected via USB to the PC. The sensor is a custom PCB implemented with an AVR microprocessor and V-USB software USB-...

Is there software or code to alter USB power output

I had a look at this and this but no one sounded particularly sure of their ideas and I m kind of after a different thing anyway. I want to hook my usb power cables (red and black) up to my phone so I ...

Monitor USB traffic

I want to view all traffic going out the USB, with the potential to block data transactions to/from the USB based on content policy. How would this be done? Any way to achieve this in C#, or is it ...

热门标签