PDA

View Full Version : How do I locate and write to a USB port?


bobleny
10-14-2009, 08:48 PM
Hi, I'm trying to figure out how to write to a USB port. I'm looking for something real basic. From my limited understanding, I need to locate the USB port address, then write a series of 1's and 0's.

Normally, a USB port's address is found when a device is plugged in via software monitoring the ports. In this particular case, the port will not know the device is there. So, for the present moment I will need to manually locate the USB port's address. How do I do so? It doesn't matter if the port address is that of the device. Once I know the addresses, I can try each one until the device works.

Next, I need to write to the port. I throw my hands up for this one. I have no idea... I'm looking for a down and dirty write to port kind of deal. I think doing this is C would be my best option for now.

So, after my long post, any takers?
Any help would be much appreciated!

Thanks,
Bob

oracleguy
10-14-2009, 10:15 PM
Well the specifics would depend on the operating system. However you are going to have to write a device driver if you want raw access to a USB device.