![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2007
Posts: 2
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Nov 2007
Posts: 2
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Nov 2007
Posts: 33
Rep Power: 0
![]() |
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.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut. |
|
|
|
|
|
#5 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,825
Rep Power: 5
![]() |
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* |
|
|
|
|
|
#6 |
|
Hobbyist Programmer
Join Date: May 2006
Location: West Jordan, Utah, United States
Posts: 176
Rep Power: 3
![]() |
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.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Data logging problem from the serial port | jerryleo | Perl | 0 | Jan 10th, 2006 7:47 AM |
| Agricultural Data Systems programming job offer | faheja | Paid Job Offers | 2 | Dec 28th, 2005 7:38 AM |
| Program related to Printer Port Programming post | shadowhunter | C++ | 9 | Apr 6th, 2005 7:04 PM |
| port programming | dominic | C++ | 1 | Feb 14th, 2005 10:52 AM |
| Beginner programming parellel port in C++ | Velvet_leopard | C++ | 0 | Feb 3rd, 2005 12:41 AM |