Configure Command-Line Session for Intel SoC Device
Obtain the IP address of your Intel® SoC device, and verify serial port communication to your Intel SoC device, by using a command-line session with the Intel SoC device.
You can:
View the device output while the hardware starts up.
Get or set the Intel SoC IP address, as described in Get IP Address of Intel SoC Device.
If you have multiple Intel SoC devices connected to your development computer, disconnect those you are not using.
Identify COM Port
Determine the COM port number assigned to the USB UART connection of the Intel SoC device by the development computer.
In Windows®, open Devices and Printers.
Locate the USB device that connects to the Intel SoC platform, such as FT232R USB UART.
Open FT232R USB UART. To see the COM port number of the USB Serial Port, select the Hardware tab.
Open Serial Connection
Open a serial connection to the Intel SoC device using a terminal software, such as PuTTy:
Configure the PuTTy for Serial connection.
Enter these values:
Serial line to connect to: Enter the COM port number.
Speed:
115200
Flow control:
None
In the PuTTY dialog box, select the Session category.
For Connection type, select
Serial
.For Saved Sessions, enter a new name, such as “Serial”.
Click Save, and then click Open.
When a terminal window opens, press the Enter key on your keyboard. The terminal window displays a Linux® command prompt.
Get Device IP Address
Get the Intel SoC hardware IP address from the Linux command line:
At the Linux command line, enter:
ifconfig
.Locate the
eth0
device and get the value ofinet addr
from the command-line output.Confirm the connection to the device. See Send PING Request to Intel SoC Device.
Close the terminal session.
Open SSH Connection
Open an SSH connection to the device using a terminal software, such as PuTTy:
To configure the PuTTy for SSH connection, select Session.
Enter these values:
Host Name (or IP address): Enter the
inet addr
of the device.Port:
22
For Saved Sessions, enter a new name, such as
SSH
.Click Save, then Open.
When a terminal window opens, log in as the user
root
with passwordcyclonevsoc
. The terminal window displays a Linux terminal.Close the terminal session.
At the MATLAB® command prompt, create a hardware object by specifying all the optional arguments:
hTarget = dlhdl.Target('Intel','Interface','Ethernet','IPAddress','192.168.1.101','Username', 'root', 'Password','cyclonevsoc') hTarget.validateConnection
hTarget.validateConnection ### Validating connection to target over SSH ### SSH connection successful ### Validating connection to bitstream over Ethernet interface ### Bitstream connection over Ethernet interface successful