manual: serial number explanations + udev rule for LDA

This commit is contained in:
Yann Sionneau 2015-06-19 16:41:44 +02:00
parent 988ec5c7e2
commit 4cdf1c4b81
2 changed files with 27 additions and 1 deletions

View File

@ -15,7 +15,11 @@ def get_argparser():
choices=["LDA-102", "LDA-602"])
simple_network_args(parser, 3253)
parser.add_argument("-d", "--device", default=None,
help="USB serial number of the device."
help="USB serial number of the device. "
"The serial number is written on a sticker under "
"the device, you should write for example "
"-d \"SN:03461\". You must prepend enough 0 for it "
"to be 5 digits."
" Omit for simulation mode.")
verbosity_args(parser)
return parser

View File

@ -34,6 +34,28 @@ Client
Lab Brick Digital Attenuator (LDA)
----------------------------------
On Linux, you need to give your user access to the usb device.
You can do that by creating a file under /etc/udev/rules.d/ named 99-lda.rules
with the following content::
SUBSYSTEM=="usb", ATTR{idVendor}=="041f", MODE="0666"
Then you need to tell udev to reload its rules::
$ sudo invoke-rc.d udev reload
You must also unplug/replug your device if it was already plugged in.
Then, to run the Lab Brick Digital Attenuator (LDA) controller::
$ lda_controller -d SN:xxxxx
The serial number must contain 5 digits, prepend any number of 0 necessary.
Also, the "SN:" prefix is mandatory.
You can chose the exact LDA model with the -P parameter. The default being LDA-102.
Driver
++++++