その後 setting up connections of Blade 3, you can log in to it on Windows, macOS, or Ubuntu using Android Debug Bridge (ADB), a serial communication tool, or via SSH.
This document describes how to log in to Blade 3 using a serial communication tool. For details about login using the ADB tool and via SSH, refer to the following documents:
準備
- USB-TTLコンバーター
- A computer: Windows, macOS, or Ubuntu
- ブレード3ボード
ウィンドウズ
ステップ1.ハードウェアの接続
1.1 Connect the GND, TXD, and RXD pins of the USB to TTL converter to the GND, RXD, and TXD pins of Blade 3, respectively.
1.2 USB-TTLコンバータをコンピュータに接続します。
ステップ2.ドライバーのダウンロードとインストール
2.1 Download a driver according to the USB to TTL converter that you are using.
2.2 Unzip the driver zip file and select the corresponding file (.exe) to install based on your computer architecture (32-bit or 64-bit).
あなたの コンピュータ, 開く デバイスマネージャー and check your Blade 3’s serial 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 3. Install and configure PuTTY
PuTTY is one of the serial communication tools generally used on Windows, and is used for illustration in this document.
3.1 Select the PuTTY file (.msi) to install based on your コンピュータ・アーキテクチャ(32ビットまたは64ビット)。
3.2 Open PuTTY and configure Connection type, Serial lineそして Speed as shown in the following figure. Then click オープン.
When the screen terminal opens, it will probably be blank. Hit 入る and you should see the console of Blade 3.
マック
ステップ1.ハードウェアの接続
1.1 Connect the GND, TXD, and RXD pins of the USB to TTL converter to the GND, RXD, and TXD pins of Blade 3, respectively.
1.2 USB-TTLコンバータをコンピュータに接続します。
Step 2. Install Picocom
Picocom is one of the serial communication tools generally used on macOS, and is used for illustration in this document.
(Optional) 2.1 Install Homebrew if it is not installed yet by running the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2.2 Install Picocom by running the following command:
brew install picocom
Step 3. Connect to Blade 3
-b
はボーレートを設定するもので、次のように設定しなければならない。 1500000.
sudo picocom -b 1500000 /dev/tty.usbserial-0
コマンドの出力は以下の通り:
picocom v3.1
port is : /dev/tty.usbserial-0
flowcontrol : none
baudrate is : 1500000
parity is : none
databits are : 8
stopbits are : 1
escape is : C-a
noinit is : no
noreset is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv -E
imap is :
omap is :
emap is : crcrlf,delbs,
Type [C-a] [C-h] to see available commands
Terminal ready
プレス 入る and you are directed to the console of Blade 3.
Step 4. Exit
4.1 プレス CTRL+A.
4.2 押し続ける CTRL を押してください。 Q.
Ubuntuの場合
ステップ1.ハードウェアの接続
1.1 Connect the GND, TXD, and RXD pins of the USB to TTL converter to the GND, RXD, and TXD pins of Blade 3, respectively.
1.2 USB-TTLコンバータをコンピュータに接続します。
Step 2. Install Picocom
Picocom is one of the serial communication tools generally used on Ubuntu, and is used for illustration in this document. Run the following commands to install Picocom:
sudo apt update
sudo apt install picocom
ステップ3. Connect to Blade 3
-b
はボーレートを設定するもので、次のように設定しなければならない。 1500000.
sudo picocom -b 1500000 /dev/ttyUSB0
コマンドの出力は以下の通り:
picocom v3.1
port is : /dev/ttyUSB0
flowcontrol : none
baudrate is : 1500000
parity is : none
databits are : 8
stopbits are : 1
escape is : C-a
noinit is : no
noreset is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv -E
imap is :
omap is :
emap is : crcrlf,delbs,
Type [C-a] [C-h] to see avaiable commands
Terminal ready
Step 4. Exit
4.1 プレス CTRL+A.
4.2 押し続ける CTRL を押してください。 Q.
What you can do next
After login to Blade 3, you can perform operations based on your requirements, such as checking device information, installing or uninstalling software, editing configuration files, and starting or stoping services.
Check device information
cat /etc/os-release
cat /var/log/syslog
dmesg
Install or uninstall software
sudo apt update
sudo apt upgrade
sudo apt install [software name]
sudo apt uninstall [software name]
Edit configuration files
vi [file path]
Start or stop services
sudo systemctl start [service name]
sudo systemctl stop [service name]