USB port in linux

This is a discussion on USB port in linux within the Networking/Device Communication forums, part of the General Programming Boards category; Hi, I am making a C program that can send USB signals to microcontroller( wich I have) and usb controlls ...

  1. #1
    Registered User yann's Avatar
    Join Date
    Sep 2009
    Location
    Zagreb, Croatia
    Posts
    186

    USB port in linux

    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?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,555
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    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

  4. #4
    Registered User yann's Avatar
    Join Date
    Sep 2009
    Location
    Zagreb, Croatia
    Posts
    186
    Quote Originally Posted by MK27 View Post
    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 ).
    Ok, thank you, I'll try.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. USB port in linux
    By yann in forum Networking/Device Communication
    Replies: 7
    Last Post: 09-13-2009, 08:08 AM
  2. FTP program
    By jakemott in forum Linux Programming
    Replies: 14
    Last Post: 10-06-2008, 01:58 PM
  3. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  4. Port app from Windows to Linux
    By BobS0327 in forum Linux Programming
    Replies: 12
    Last Post: 02-12-2006, 01:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21