![]() |
How to get data on USB port using programming in C
Hi,
I done programming in turbo C. I get data on parallet port successfully.I control stepper motor through it. Now i want to get data on USB port & then control stepper motor.So anyone can tell me how can i do programming for that? Thanks in advance. Regards, diyora |
Re: How to get data on USB port using programming in C
USB is a serial port. Without individually controlled switching signals. You'll need to learn about it and write a driver, or buy one.
If you're talking about old, 16-bit Turbo C, I'd suggest you upgrade compilers. It'll cost you every bit of zero dollars unless you're talking about working with little-known systems. |
Re: How to get data on USB port using programming in C
Hi DaWei,
Thanks for reply & suggestion. Actully i am EC student.I am not to much aware of C language.Can you tell me what is the basic requiredment of driver? If you have any driver than tell me the basic idea of that. As i doing in parallel port & serial port communication, i write port address of that port & i get data on that. is it possible in USB port? From device manager i get address of parallel & serial port. For USB port their is memory range given.So can i do using that? Thanks & regards, diyora |
Re: How to get data on USB port using programming in C
http://www.lvr.com/usb.htm
http://www.lvr.com/parport.htm Yes, getting a compiler which is more in tune with your OS would be a start. |
Re: How to get data on USB port using programming in C
Wow, this is so weird. I clicked on Salem's link to the parallel port, and it mentioned IEEE standards for interfacing with the port. A lot of the work I've recently been doing has been for the Standards department in the IEEE organization. It's just really cool to see that.
Anyways. *poof* |
Re: How to get data on USB port using programming in C
This site has a lot of links to various usb papers. Of the most interest to you would be the official specification (the first link.) The specification (usb_20.pdf) is about 570 pages and there are a few dozen megs of supplements that come with it.
|
| All times are GMT -5. The time now is 3:20 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC