TLDR:
- From the FACET control server, first ssh onto mcclogin, e.g. (the -Y is for x-forwarding):
ssh smeuren@mcclogin -Y - Ssh onto the pi:
ssh e320@e320pi -Y - Start the motor GUI:
python3 ./kim/kim.py
Current interface:
- Channel 1/2 are currently connected
- Displays current position
- Select: distance, velocity, acceleration
- Movement: up/down
Reset:
- After beam tuning etc. the pi might need to be reset. To this end toggle power supply:
- facethome → Experimenter → Li20 → IP Table Power Strip:
- E320 pico is the Thorlabs pico motor controller
- E320 pi is the Raspberry pi that is controlling the Thorlabs motor controller
Location:
- Installed January 20, 2022
- Last check: April 21, 2022
Generalities:
- Made accessible on the SLAC network (IP assignment) through SLAC IT; this required to give them access and let them "manage" the device; we still have sudo rights. The software modifications ("chef" script") were carried out by E-320 (SLAC_IT_discussion.pdf)
- The device is shielded from the internet, but we can do software updates and install packages via apt
- Main purpose: access the Thorlabs motor controller KIM 101 (KIM101-APTManual.pdf), which is connected to the pi via USB
How to reach:
- only reachable from within the SLAC network
- Host name: e320pi.slac.stanford.edu (172.25.77.138)
- ssh smeuren@fastx3.slac.stanford.edu -Y
ssh e320@e320pi
Hardware configuration:
- cat /proc/meminfo: MemTotal: 3884332 kB
- lscpu: 4 Cortex-A72, max 1.5 GHz (aarch64, ARM)
Software configuration:
- lsb_release -a: Ubuntu 20.04.3 LTS
Thorlabs motor controller:
- Connected via USB (actually, a USB to serial converter internally)
- Run newport emulator: sudo python3 picoserver.py (need sudo rights to bind to telnet port 23)
- Connect to telnet: telnet e320pi
- Source code: kim_code_2022_FEB.pdf
Find the USB terminal:
find /sys/bus/usb/devices/usb*/ -name dev (idea taken from: https://unix.stackexchange.com/questions/144029/command-to-determine-ports-of-a-device-like-dev-ttyusb0)
Check status of UFW (firewall):
sudo ufw status verbose
- ssh: port 22, should be "ALLOW IN"
- telnet: "sudo ufw allow 23": opens telnet access
Allow access to USB terminal:
sudo usermod -a -G dialout e320