LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   using vstusb to talk to a ocean optics usb spectrometer (its like a camera) (https://www.linuxquestions.org/questions/linux-hardware-18/using-vstusb-to-talk-to-a-ocean-optics-usb-spectrometer-its-like-a-camera-932061/)

WhyWontThisWork 02-29-2012 10:13 PM

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)

bigrigdriver 03-01-2012 03:36 PM

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.

Carsten_koi 02-19-2013 11:02 AM

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

styx_ 10-07-2013 06:50 AM

Carsten, how about your progress with Ocean Optics driver or libusb code?
It would be very nice if you share it :)

Carsten_koi 10-15-2013 04:50 PM

Quote:

Originally Posted by styx_ (Post 5041458)
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


All times are GMT -5. The time now is 06:17 AM.