html5-img
1 / 13

Week 07 (09/05/13)

Week 07 (09/05/13). USB-serial convert & terminal forwarding. 尚哲. 成功的 步驟 (USB mod install). wget http://192.168.1.2/pl2303.o wget http://192.168.1.2/usbserial.o 拔出 USB insmod usbserial.o insmod pl2303.o debug=1 mknod /dev/ttyUSB0 c 188 0 chmod 666 /dev/ttyUSB. 成功 的步驟 ( 結果圖 1).

Télécharger la présentation

Week 07 (09/05/13)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Week 07 (09/05/13) USB-serial convert & terminal forwarding 尚哲

  2. 成功的步驟 (USB mod install) • wget http://192.168.1.2/pl2303.o • wget http://192.168.1.2/usbserial.o • 拔出USB • insmod usbserial.o • insmod pl2303.o debug=1 • mknod /dev/ttyUSB0 c 188 0 • chmod 666 /dev/ttyUSB

  3. 成功的步驟 (結果圖1) • 插入USB • dmesg

  4. 成功的步驟 (結果圖2)

  5. 嘗試做法 • getty -L ttyUSB0 -h 115200 ansi • getty -L ttyUSB0 -h 115200 vt100 • picocom -b 115200 /dev/ttyUSB0

  6. about getty • 功能說明:設置終端機模式,連線速率和管制線路。 • 語  法:getty [-h][-d<組態配置文件>][-r<延遲秒數>][-t<超時秒數>][-w<等待字元串>] [終端機編號][連線速率<終端機類型><管制線路>] 或 getty [-c<定義配置文件>] • 補充說明: • getty指令是UNIX之類操作系統啟動時所必須的3個步驟之一。 • 參  數: • -c<定義配置文件> 指定定義配置文件,預設為/etc/gettydefs。 • -d<組態配置文件> 指定組態配置文件,預設為/etc/conf.getty。 • -h 當傳輸速率為0時就強制斷線。 • -r<延遲秒數> 設置延遲時間。 • -t<超時秒數> 設置等待登入的時間。 • -w<等待字元串> 設置等待回應的字元串。

  7. 嘗試做法: getty (失敗) • cd gateway; • make menuconfig • in busybox, select getty • getty -L ttyUSB0 -h 115200 ansi

  8. about picocom • picocom is a minimal dumb-terminal emulation program. It is ideal for embedded systems since its memory footprint is minimal (less than 20K, when stripped). Apart from being a handy little tool, the source distribution includes a simple, easy to use, and thoroughly documented terminal-management library.

  9. 嘗試做法 picocom (有希望) • mkdir /tmp/tmp • mount /tmp/tmp /opt • ipkg.sh update • ipkg.sh install ipkg • ipkg update • ipkg install picocom • picocom -b 115200 /dev/ttyUSB0 需上網

  10. picocom -b 115200 /dev/ttyUSB0(非預期的結果)

  11. (預期結果)

  12. (嘗試做法)Auto load mod in AP • 儲存方法???

  13. 下兩週進度 • 完成picocom or others tty forwarding方法 • 每次開機後自動install的方法 • save file ( usbserial.o pl2303.o ) • save initialize script

More Related