DSRemote/readme_usbtmc_driver.txt

71 wiersze
2.0 KiB
Plaintext
Czysty Zwykły widok Historia

2015-05-30 13:03:00 +00:00
2017-02-04 17:07:43 +00:00
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:
2018-02-01 20:02:50 +00:00
2017-02-04 17:07:43 +00:00
First, check the groupname of the device, enter:
ls -l /dev/usbtmc*
2018-02-01 20:02:50 +00:00
In case it is root, enter the command:
sudo groupadd usbtmc
Now, add yourself to the group:
2017-02-04 17:07:43 +00:00
sudo usermod -a -G usbtmc <username>
2018-02-01 20:02:50 +00:00
2017-02-04 17:07:43 +00:00
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.
2015-06-06 11:02:35 +00:00
2015-05-30 13:03:00 +00:00
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>
2017-02-04 17:07:43 +00:00
Create a file /lib/udev/rules.d/30-usbtmc.rules with the following content:
2015-05-30 13:03:00 +00:00
####################################################################################
# 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"
####################################################################################
2017-02-04 17:07:43 +00:00
You need to reboot in order to take it into effect.
2015-05-30 13:03:00 +00:00