forked from sjas/DSRemote
-
Notifications
You must be signed in to change notification settings - Fork 2
/
readme_usbtmc_driver.txt
64 lines (37 loc) · 1.97 KB
/
readme_usbtmc_driver.txt
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
The DS1054Z is plug and play with a recent kernelversion.
You probably have to add yourself to the group "usbtmc" before you can access the device.
Here's how you do that:
First, check the groupname of the device, enter:
ls -l /dev/usbtmc*
Now, add yourself to the group (usbtmc in this example):
sudo usermod -a -G usbtmc <username>
You need to logout and login again to let the changes take into effect.
In case you have a permission problem because /dev/usbtmc0 uid and gid are set to root,
create a file /lib/udev/rules.d/30-usbtmc.rules that contains the following:
####################################################################################
# USBTMC instruments
# Rigol Technologies DS1000Z series
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="1ab1", ATTRS{idProduct}=="04ce", GROUP="usbtmc", MODE="0660"
# Devices
KERNEL=="usbtmc/*", MODE="0660", GROUP="usbtmc"
KERNEL=="usbtmc[0-9]*", MODE="0660", GROUP="usbtmc"
####################################################################################
You need to reboot in order to take it into effect.
///////////////////////////////////////////////////////////////////////////////
The following applies to the DS6000 series.
In order to let the system load the usbtmc driver automatically,
proceed as follows:
Create a new group, usbtmc:
sudo groupadd usbtmc
Add yourself to this group:
sudo usermod -a -G usbtmc <username>
Create a file /lib/udev/rules.d/30-usbtmc.rules with the following content:
####################################################################################
# USBTMC instruments
# Rigol Technologies DS6000 series
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="1ab1", ATTRS{idProduct}=="04b0", GROUP="usbtmc", MODE="0660"
# Devices
KERNEL=="usbtmc/*", MODE="0660", GROUP="usbtmc"
KERNEL=="usbtmc[0-9]*", MODE="0660", GROUP="usbtmc"
####################################################################################
You need to reboot in order to take it into effect.