本書では、キャリアボードとしてLeetop A206を使用します。他の機種のキャリアボードを使用する場合は、操作が若干異なる場合があります。
Mixtile Core 3588E(以下、Core 3588E)のキャリアボードは、40ピンの拡張ヘッダを通して、VCC、GND、GPIO、I2C, I2S、UART、SPI インターフェース。下図にピン配置を示す。
This document describes how to establish serial communication via the UART interfaces.
コア3588Eのピン配置と定義の詳細については、以下を参照してください。 コア 3588E ピン定義.
準備
- Core 3588Eの接続設定.
- USB-TTLコンバーター
- A serial communication software: for example, PuTTY for Windows, and Picocom for Mac and Ubuntu
ステップ
ハードウェアの接続
Connect the USB to TTL convertor to the 40-pin header and your computer. The pin matching is as follows:
ウィンドウズ
Step 1. On your computer, open デバイスマネージャー and find the board’s COM port.
Take note of the COM port for the device named “Ports (COM & LPT)” (such as “COM4”). You will use it in the next step.
Step 2. Open PuTTY and configure Connection type, Serial lineそして Speed as shown in the following figure. Then click オープン. The screen terminal opens and it is blank by default.
Step 3. On your monitor, open a terminal and run picocom -b 9600 /dev/ttyS1
. Ensure that the terminal shows ターミナル・レディ.
Step 4. On your computer, input any string. You can see the string shown on the monitor’s terminal window, which means that the RX interface of Core 3588E works properly.
Step 5. On the monitor, start a new terminal window, input echo hello >/dev/ttyS1
. You can see hello on your computer, which means that the TX interface of Core 3588E works properly.
On Mac and Ubuntu
Step 1. Connect to Core 3588E using a serial communication tool (Picocom).
(On Mac) Open a terminal, input picocom -b 9600 /dev/tty.usb
, and press the tab key for auto completion.
(On Ubuntu) Open a terminal, input picocom -b 9600 /dev/ttyUSB
, and press the tab key for auto completion.
Step 2. Press 入る to execute this command.
The following is an example of the command and the output on macOS. The command output is the same on Ubuntu except for the display of port (dev/ttyUSBX).
picocom -b 9600 /dev/tty.usbserial-AQ00KD9O
picocom v3.1
port is : /dev/tty.usbserial-AQ00KD9O
flowcontrol : none
baudrate is : 9600
parity is : none
databits are : 8
stopbits are : 1
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
hangup is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv -E
imap is :
omap is :
emap is : crcrlf,delbs,
logfile is : none
initstring : none
exit_after is : not set
exit is : no
Type [C-a] [C-h] to see available commands
Terminal ready
Step 3. On your monitor, open a terminal and run picocom -b 9600 /dev/ttyS1
. Ensure that the terminal also shows ターミナル・レディ
.
Step 4. On your computer, input any string. You can see the string shown on the monitor’s terminal window, which means that the RX interface of Core 3588E works properly.
Step 5. On the monitor, start a new terminal window, input echo hello >/dev/ttyS1
. You can see hello
on your computer, which means that the TX interface of Core 3588E works properly.