Results 1 to 3 of 3
Hello,
Newbie here, I wanted to ask if there's a way of knowing the USB port base address so that I can access it throuhg C program,as I already ahve ...
- 07-28-2007 #1Just Joined!
- Join Date
- Jul 2007
- Posts
- 2
USB port base address??
Hello,
Newbie here, I wanted to ask if there's a way of knowing the USB port base address so that I can access it throuhg C program,as I already ahve a program to access the parallel port addres and retrieve the data arriving there, but I need to do it now for the USB. The thing is that, an Analog to Digital converter will be connected to the USB port (via, parallel to USB cable), and I need to keep a tab on the digital data coming through the USB port. So I want to know if there's a way of doing so (few lines of codes would do a world of good). Plz quick solution is needed, my last year project is on teh stake. Hope to see my problems answered. Bye, and thx for reading
- 07-29-2007 #2Linux User
- Join Date
- Jul 2004
- Location
- Poland
- Posts
- 368
Hi, I'm not sure if you can program USB the way you programmed parallel port, due to the more complex nature of USB. Some references on how the USB works. The easiest approach is to use the libusb project home library. Basically you list all the devices on the bus, find the one you're interested in by vendor and product ids and start sending/receiving data. The funniest way is to find out how the communication takes place: there may be several logical connections to the device (aka end-points), also there are several transfer modes: control, bulk, interrupt and iso*...something. Remember that "lsusb -v" command might help in deciphering the configs. Also an USB sniffer might shed some light upon what data is send to/from the device. I can't write a tutorial on using USB here, but there are some for the libusb that should get you on track. Good luck.
"I don't know what I'm running from
And I don't know where I'm running to
There's something deep and strange inside of me I see"
- 07-30-2007 #3Just Joined!
- Join Date
- Jul 2007
- Posts
- 2
Thx
I've read lots of those helping tutorials and ways to send and recieve data via USB, (and Yes I agree it's COMPLEX), but THANX a lot anyway, for responding , at least I am aware of the fact that there definitely might not be a way to communicate to USB just like a parallel port. Thanx.


Reply With Quote