Skip to content

fujiisoup/lab_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Control scripts for experiment in Fujii team

Installing USB-RS232C convertors

In this scripts, we will use serial port. We need some package and drivers for it,

Python packages

  • pyserial
conda install pyserial

Ubuntu

Install ftdi driver

  • libusb-1.0 apt-get install libusb-1.0

With ftdi device

  • create /etc/udev/rules.d/11-ftdi.rules

With PL2303 device

Find the manufacturer ID and product ID

lsusb

It shows something like the following

Bus 002 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port

In this case, the manufacturer ID is 067b and product ID is 2303.

Create a file /etc/udev/rules.d/pl2303.rules and add the following line

# PL2302 USB2.0-RS232 convertor
SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", GROUP="usbtmc", MODE="0660"

Then, restart.

Usage

Find the COM port

dmesg | grep tty

It should be like /dev/ttyUSB0

Windows

Install ftdi driver

Find the COM port. It will look like COM3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages