custom usb-seriel udev relus for compatible usb-seriel devices using kermit

custom usb-seriel udev relus for compatible usb-seriel devices

 

add-pl2303.rules:

  

ACTION== "add",KERNEL=="ttyUSB*", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", MODE:="0777", SYMLINK+="ttypl2303"

 

remove-pl2303.rules

 

ACTION== "remove",KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE:="0777", SYMLINK+="ttypl2303"

 

add-ftdi.rules

 

ACTION== "add",KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE:="0777", SYMLINK+="ttypl2303"

 

remove-ftdi.rules

 

ACTION== "remove",KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE:="0777", SYMLINK+="ttypl2303"

 

install kermit

$ sudo apt-get install ckermit

 

configure kermit under ~/.kermrc,  as follows:

#cat ~/.kermrc
set line /dev/ttypl2303
set speed 115200
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set window 5

 

posted @ 2019-01-14 09:19  嵌入式实操  阅读(200)  评论(0编辑  收藏  举报