Log in Page Discussion History Go to the site toolbox

Swissranger SR3000

From WikIRI

Ubuntu 10.04

  • It is possible to find the last version of the camera driver in Mesa Imaging website:
 Mesa Imaging Website
  • Last good tested driver is : libmesasr-dev-1.0.14-706
  • Check that your system has a group called "usb":
 grep usb /etc/group
  • If there is no group, create it:
 sudo groupadd usb
  • Check that your user belongs to "usb" group:
 groups | grep usb
  • If your user does not belong to "usb" execute:
 usermod -a -G usb username
  • Please download manually the specific calibration file, for our SR3100 is:
 camData1000697d.xml 
  • Save it to /usr/share/libmesasr/camData1000697d.xml
  • After driver installation, please connect the camera to the usb port and execute on a terminal:
 libMesaSRTester
  • Choose Option "1", afterwards options "s".
  • At this time you should be able to see something like this:
 1: Camera Camera File Stream
 2: Camera '010':MESA   3D-SR3000   ' Serial: 1000697d' 
 x: exit
 s: scan
  • Choose Option "2" to evaluate if the camera works. You should get a SUCCESS nearly everywhere. Take into account that SR3000 does not have all the features that SR4000 have.


Ubuntu 8.04

It is possible to find the last version of the camera driver in Mesa Imaging website:

But it is highly recommended to use the last good driver installation on Linux described in here. In order to minimize the risks do as it says:

First of all you must install the following package: Libusbsr_1.0.10-541_i386

This driver has been tested under Ubuntu 8.04. It requires libusb-0.1-12 which itself requires usbdevfs.

User access

If you want to access the SwissRanger as a user other than root, make sure you give the appropriate permissions with chmod.

  • sudo chmod -R a+rwx /proc/bus/usb

(further solution in /usr/local/share/doc/libusbSR-1.0.10/README

For a permanent solution, modify the usbdevfs entry in /etc/fstab by setting devmode appropriately, for example:

  • usbdevfs /proc/bus/usb usbdevfs devmode=0666,noauto 0 0

For other mount options, refer to the usbdevfs implementation.

  • umount /proc/bus/usb
  • mount -o devmode=0666 -n -t usbfs /proc/bus/usb /proc/bus/usb


Open a command terminal and create inside /etc/udev/rules.d/ a file with the name "99-swiss-ranger.rules" with the following contents:

  • SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="1ad2", SYSFS{idProduct}=="0074", MODE="660", GROUP="plugdev"
  • BUS=="usb", ACTION=="add", SYSFS{idVendor}=="1ad2", SYSFS{idProduct}=="0074", MODE="660", GROUP="plugdev"

After this you should log out & log in your session again.

Note that in some distros the USB file system might not be declared inside /etc/fstab, but rather directly mounted during initialization (e.g. in /etc/rc.sysinit).

NOTE_1: you have to add the path /usr/local/lib to the environment variable LD_LIBRARY_PATH.

IMPORTANT: Some functions in the library use the type DWORD, but it has not been defined, in order to solve this issue you have to define the type DWORD in the definesSR.h file. Copy the following code line under the WORD type definition:

  • #typedef unsigned long DWORD;

Site Toolbox:

This page was last modified on 21 September 2011, at 10:46. - This page has been accessed 1,474 times. - Disclaimers - About WikIRI