HAN Pilot Platform
Demonstration Manual
59
www.terasic.com
September 6, 2019
Figure 3-22 Source Code Folder Tree
The socket_client project includes a Makefile and a source file main.c. For different platforms, the
Makefile content is different, but the main.c content is the same. The socket_server project has the
file project architecture.
Demonstration Setup
Here we show the procedure to execute the socket client-server communication demonstration. In
this setup procedure, the server program is running to Intel SoC FPGA board and the Socket Client
is running on Windows PC.
1.
Connect the HAN Pilot Platform to Network via Ethernet port (J25).
2.
Connect a USB cable to the USB-to-UART connector (J27) on the HAN Pilot Platform and the
host Windows PC.
3.
Copy the executable file “socket_server” into the microSD card under the "
/home/root
" folder
in Linux. (HAN Pilot Platform LXDE has pre-installed this code, so users can skip this copy
action.)
4.
Insert the LXDE booting micro SD card into the HAN Pilot Platform.
5.
Power on the HAN Pilot Platform.
6.
In Windows, launch the Putty to connect HAN Pilot Platform via the UART-to-USB port.
7.
In the Putty, type "root" to login LXDE Linux.
8.
Type "
./socket_server 2020
" to launch the server program with port number 2020 as shown in
. The port number can be any value between 2000 and 63500.
Figure 3-23 Start Socket Server
Содержание HAN Pilot Platform
Страница 1: ......
Страница 92: ...HAN Pilot Platform Demonstration Manual 91 www terasic com September 6 2019...