Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The argument to the script ("1-2") can change, in principle but should do so rarely.  The “1-2” is coming from the USB bus and port enumerations from the operating system:
 
ddamiani@daq-rix-andor-01:~$ egrep 136e /sys/bus/usb/devices/*/idVendor
/sys/bus/usb/devices/1-2.3.1/idVendor:136e
/sys/bus/usb/devices/1-2.4.1/idVendor:136e
 
The first part of the for X-Y.blah bit which is 1-2 currently.

Code Block
[root@daq-rix-andor-01 cpo]# more ~ddamiani/reset_andor.sh
#!/bin/bash

if [ $# -ne 1 ]; then
    echo "Usage $0 <device>"
    exit 1
fi

echo "${1}" > /sys/bus/usb/drivers/usb/unbind
echo "${1}" > /sys/bus/usb/drivers/usb/bind
[root@daq-rix-andor-01 cpo]#