2016年7月6日水曜日

Raspberry Pi Zero usbシリアル接続

【材料】日本橋シリコンハウス共立で購入
USB-シリアル変換モジュール(PL-2303) 300円
GPIOヘッダーピン 1列40ピン 80円 (必要最低限のピン3本のみ使用)
ケーブル(4-4バラ) 80円

【制作状況】


6,8,10に接続




【接続状況】



【接続】
linux機(thinkpad X200)にusb接続
$ dmesg
[358074.980075] usb 1-1: new full-speed USB device number 6 using uhci_hcd
[358075.142079] usb 1-1: New USB device found, idVendor=067b, idProduct=2303
[358075.142084] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[358075.142087] usb 1-1: Product: USB-Serial Controller
[358075.142090] usb 1-1: Manufacturer: Prolific Technology Inc.
[358076.272437] usbcore: registered new interface driver pl2303
[358076.272462] usbserial: USB Serial support registered for pl2303
[358076.272493] pl2303 1-1:1.0: pl2303 converter detected
[358076.285232] usb 1-1: pl2303 converter now attached to ttyUSB0

$ lsusb
Bus 001 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port

$ screen /dev/ttyUSB0 115200
Raspbian GNU/Linux 8 raspi-zero ttyAMA0

raspi-zero login: pi
Password:
Last login: Wed Jul  6 19:56:06 JST 2016 from 192.168.2.102 on pts/0
Linux raspi-zero 4.4.11+ #888 Mon May 23 20:02:58 BST 2016 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

接続成功


関連記事