Hi, I am making a C program that can send USB signals to microcontroller( wich I have) and usb controlls a robot... How to do that?
Hi, I am making a C program that can send USB signals to microcontroller( wich I have) and usb controlls a robot... How to do that?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
This requires some kernel programming, but since you probably have all the necessary documentation for the controller, it might not be so hard. Have a look here:
USB port in linux
The second article will especially interest you, I think. It's by Mr Greg K-H, who is part of the kernel development team and is available on the kernel mailing list (but not the nicest guy IMO, so don't say I sent you ).
Last edited by MK27; 09-11-2009 at 09:52 AM.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge