Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KONDO Driver をUbuntu 22.04で認識させる #5

Closed
MibuchiYuta opened this issue May 12, 2022 · 5 comments
Closed

KONDO Driver をUbuntu 22.04で認識させる #5

MibuchiYuta opened this issue May 12, 2022 · 5 comments

Comments

@MibuchiYuta
Copy link

#1 の手順に沿ってUbuntu22.04で設定しても認識しない.

@MibuchiYuta
Copy link
Author

/etc/rc.localがそもそも存在しないようです

@MibuchiYuta
Copy link
Author

MibuchiYuta commented May 12, 2022

こちらのissue(citbrains/kondo_driver/issues/5)を参考に2つのファイルを編集する

sudo vi /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
 
modprobe ftdi-sio
echo "165C 0009" > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
 
exit 0
sudo vi /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
 
lp
rtc
ftdi_sio
 
#

実行権限を与える

sudo chmod 755 /etc/rc.local

@MibuchiYuta
Copy link
Author

MibuchiYuta commented May 13, 2022

rc.localサービス設定のスタートアップファイルを作成する

sudo vi /etc/systemd/system/rc-local.service
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99

[Install]
WantedBy=multi-user.target

サービスの自動起動の設定をする

sudo systemctl enable rc-local.service

参考サイト

@MibuchiYuta
Copy link
Author

再起動後,変換基板をUSBでつないで

sudo dmesg

を行うと以下の出力が得られた

[   54.101135] usb 6-2: New USB device found, idVendor=165c, idProduct=0009, bcdDevice= 6.00
[   54.101145] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   54.101148] usb 6-2: Product: RS485 USB/Serial Converter
[   54.101151] usb 6-2: Manufacturer: Kondo Kagaku
[   54.101153] usb 6-2: SerialNumber: KOUSB485
[   54.107042] ftdi_sio 6-2:1.0: FTDI USB Serial Device converter detected
[   54.107090] usb 6-2: Detected FT232RL
[   54.112470] usb 6-2: FTDI USB Serial Device converter now attached to ttyUSB0

@MibuchiYuta
Copy link
Author

ttyUSB0として認識されたので本issueを閉じます

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant