Ubuntu下Pointgrey CMS-U3-13Y3M-CS调试配置

系统配置1

系统内核
1
uname -r

内核必须要至少3.5.0版本。

Dependences
1
2
3
4
5
6
7
8
# Ubuntu 16.04
sudo apt-get install libraw1394-11 libgtkmm-2.4-1v5 libglademm-2.4-1v5 libgtkglextmm-x11-1.2-dev libgtkglextmm-x11-1.2 libusb-1.0-0

# Ubuntu 14.04
sudo apt-get install libraw1394-11 libgtkmm-2.4-1v5 libglademm-2.4-1v5 libgtkglextmm-x11-1.2-dev libgtkglextmm-x11-1.2 libusb-1.0-0

# Ubuntu 12.04
sudo apt-get install libgtkmm-2.4-dev libglademm-2.4-dev libusb-1.0-0
系统设置
1
sudo gedit /etc/default/grub

1
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

替换为

1
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.usbfs_memory_mb=1000"

保存后执行:

1
sudo update-grub

重启,然后运行下指令测试:

1
cat /sys/module/usbcore/parameters/usbfs_memory_mb

安装FlyCapture SDK

For 14.04:

1
2
3
4
5
cd tools/flycapture2-2.9.3.43-amd64

sudo apt-get install libraw1394-11 libgtkmm-2.4-1c2a libglademm-2.4-1c2a libgtkglextmm-x11-1.2-dev libgtkglextmm-x11-1.2 libusb-1.0-0 libglademm-2.4-dev

sudo sh install_flycapture.sh

For 16.04:

1
2
3
4
5
6
7
8
cd tools/flycapture2-2.11.3.164-amd64

sudo apt-get install libraw1394-11 libavcodec-ffmpeg56 \
libavformat-ffmpeg56 libswscale-ffmpeg3 libswresample-ffmpeg1 \
libavutil-ffmpeg54 libgtkmm-2.4-dev libglademm-2.4-dev \
libgtkglextmm-x11-1.2-dev libusb-1.0-0

sudo sh install_flycapture.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Would you like to add a udev entry to allow access to IEEE-1394 and USB hardware?
If this is not ran then your cameras may be only accessible by running flycap as sudo.
(y/n)$ y
Launching conf script

This script will assist users in configuring their udev rules to allow
access to 1394 and USB devices. The script will create a udev rule which
will add the 1394 cards and USB devices to a group called pgrimaging.
The user may also choose to restart the udev daemon. All of this can be done
manually as well. Please note that this script will change the permissions
for all IEEE1394 devices including hard drives and web cams. It will allow
the user to read and modify data on any IEEE1394 device.


Enter the name of the user to add to this user group.
$ yourusername
Is this user name ok?: yourusername
(y/n)$ y

Add user yourusername to group pgrimaging.
Is this ok?:
(y/n)$ y

Writing the udev rules file.

Do you want to restart the udev daemon?
(y/n)$ y
udev stop/waiting
udev start/running, process 5764

Configuration complete. A reboot may be required on some systems for changes to take effect

Complete

运行测试

1
flycap
flycap

  1. https://www.ptgrey.com/tan/10685↩︎