>1) Could two PC applications work on the same USB port? How to avoid
>confliction?
Yes.. for example you install printer drivers and camera drivers onto the PC.
You can connect either device to any USB port and the OS knows which software to
launch. I'm sure there are also methods to launch a generic application
regardless of which device is connected.
>2) Are the PC applications able to check the type of the USB
>peripherals connected? If so I can let the first PC application
>"active" when USB peripheral A is detected, and the second PC
>application "active" when USB peripheral B is detected. This way
>multiple PC applications can work together with one physical USB port.
Again it would be the job of the driver to report the type and identity of the
device connected. I should assume most API's would have a simple method that is
called for this (e.g. device_id = usb->probe()). This method would probe the
device with some generic command, which instructs the firmware to report basic
information (like ID, version, etc).
>3) I guess the firmware running inside of the USB slave peripherals
>(not driver), has the similar behavior to the PC application's, right?
>I guess the codes for the firmware also look like:
>while (usb->connected() == true){
> usb->read_from_device();
> usb->write_to_device();
>}
I should think the firmware would function in much the same way as the drives
yes, but don't take my word on it. I'm not a developer of USB or any hardware
based communications, I'm largely a web programmer (my experience with devices
is based on paralell/serial communications, I've never worked with USB).
Again you would be best to post to a software group as they would be much more
knowledgable.
Regards,
Chris
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----