LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-29-2012, 10:13 PM   #1
WhyWontThisWork
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Rep: Reputation: 0
using vstusb to talk to a ocean optics usb spectrometer (its like a camera)


Hello,
We're trying to use include/linux/usb/vstusb.h from the linux kernel (we're assuming its with the regular kernel https://git.kernel.org/?p=linux/kern...0c8f035737a5c3 ) on an ARM processor. We currently have a dev machine running Ubuntu however when we try to talk with the software all the usb devices disappear from a /sbin/lsusb

Anyway, my question is two pronged ..
1. Are we correct that the driver is part of the distributed kernel?
2. How do we talk over IOCTL or regular read()/write() methods to a USB device? (using vstusb)

We're hoping that we are not going to have to write a driver by hand as we struggling to figure out how to talk to USB devices easily

we have also looked into
Code:
http://qce-ga.sourceforge.net/
http://qce-ga.sourceforge.net/howto-usbid.html
http://hcgilje.wordpress.com/resources/xbee_arduino_code/
http://www.linuxjournal.com/article/4786
http://lwn.net/images/pdf/LDD3/ch13.pdf
http://stackoverflow.com/questions/117474/how-to-sniff-usb-port-under-windows
http://www.oceanoptics.com/products/omnidriver.asp
http://www.tech-pro.net/intro_usb.html
http://www.cs.indiana.edu/~bpisupat/work/usb.html
https://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cbc30118d7a376dab4113f299c0c8f035737a5c3
http://www.oceanoptics.com/technical/omnidriverinstall.pdf
https://www.kernel.org/doc/htmldocs/writing_usb_driver.html
http://cateee.net/lkddb/
http://www.linuxjournal.com/article/4786
http://cateee.net/lkddb/web-lkddb/USB_VST.html
http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/drivers/usb/misc/vstusb.c
ubuntu.wikimedia.org/git/ubuntu-jaunty/drivers/usb/misc/vstusb.c
How can we talk to this device, all we need is the basic functionality of grabbing the "picture". We're also going to run http://www.angstrom-distribution.org/

hope all is well (and Thank You)
 
Old 03-01-2012, 03:36 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
We're hoping that we are not going to have to write a driver by hand as we struggling to figure out how to talk to USB devices easily.

How can we talk to this device, all we need is the basic functionality of grabbing the "picture"
You should probably investigate how to implement udev (which responds to hotplug events in re USB devices) with the ARM processor. I'd suggest a web search for "arm processor usb udev" and start reading. I'm not a programmer, so I can't say than anything I found in my search would be useful to you.
 
Old 02-19-2013, 11:02 AM   #3
Carsten_koi
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
Did you find a solution -- I would be able to provide one based on libusb

Hi,

I have drivers for spectrometers of two companies (Avantes and Hamamatsu) and a python programme which adresses OOptics spectrometers via libusb.

If you are interested plese contact me. I'm also working (in the (very) long run) to write a kernel driver for the OOptics spectrometers. USB2000 should work, USB 4000 are working. If you have a 'Red Tide' then this 'driver' will not work ...

Carsten
 
Old 10-07-2013, 06:50 AM   #4
styx_
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
Carsten, how about your progress with Ocean Optics driver or libusb code?
It would be very nice if you share it
 
Old 10-15-2013, 04:50 PM   #5
Carsten_koi
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by styx_ View Post
Carsten, how about your progress with Ocean Optics driver or libusb code?
It would be very nice if you share it
I am sorry it took some time ... here you go:

Sourceforge site

While the documentation is not extremely excessive at the moment (nearer to nonexistant) the python modules are more or less well commented. Please note that I do not have a kernel module for the OceanOptics spectrometers (due to lazyness and well I was annoyed by their Win-Software some time ago so I circumvented this company as long as I could) so there is only libusb access. In exchange the Avantes libusb module did not work at all so there is only the kernel module.
If you go for the Hamamtsu spectrometer you actually have the choice. The Hamamatsu python module in combination with the kernel module was tested very much as we had a scientific instrument running on it for some time.

I am sure that there will be questions about the usage so I would ask you to use the sourceforge wiki thing to ask the questions.

Carsten

Last edited by Carsten_koi; 10-15-2013 at 04:55 PM.
 
  


Reply

Tags
driver, howto, ioctl, space, usb



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fiber optics phantom_cyph General 9 03-03-2007 05:37 PM
USB Logitech STX Camera | sytem startup camera active problem delta function Slackware 0 08-06-2006 04:23 PM
Fiber Optics Ryan0rZ General 3 12-18-2004 03:55 AM
fedora core1 LabTec USB optics mouse qwijibow Linux - Hardware 6 05-11-2004 09:30 PM
talk to USB verstapp Linux - Newbie 3 02-17-2004 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration