You are not logged in.

#1 2007-10-26 06:03:40

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

USB programming newbie - help

Hi,

I am new to USB programming and need advice on which path to follow, writing a USB - enabled application. What API's if any are available for user-space USB programming? e.g. I want to incorporate code in an app I am writing to control a USB PAN-TILT servo for a web cam.

My  thanks in advance.


Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

#2 2007-10-26 07:32:10

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: USB programming newbie - help

Hello,

check out libusb, I successfully used it in one of my C projects
http://libusb.sourceforge.net/doc/

Offline

#3 2007-10-27 00:05:55

dunkelstern
Member
From: Augsburg, Germany
Registered: 2007-02-08
Posts: 68
Website

Re: USB programming newbie - help

If your device is a HID and you have HIDdev RAW support in your kernel you could use the RAW devicefile directly.
See http://sourceforge.net/projects/av-usbradio/ for an example how to do this smile

Last edited by dunkelstern (2007-10-27 00:06:17)

Offline

#4 2007-10-27 04:15:00

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Re: USB programming newbie - help

neok wrote:

Hi,

I am new to USB programming and need advice on which path to follow, writing a USB - enabled application. What API's if any are available for user-space USB programming? e.g. I want to incorporate code in an app I am writing to control a USB PAN-TILT servo for a web cam.

My  thanks in advance.

OK thanks for the tips, looks like libusb is the way to go. The device is a Phidget servo controller but for various reasons I prefer to avoid libphidget21 even  though it did work for me.


Regards

Neoklis ... Ham Radio Call: 5B4AZ

Offline

Board footer

Powered by FluxBB