4.4 Ethernet
This sample uses Linux socket API to implement simple C/S structure. Two programs communicate via the TCP/IP stack. The pc
endpoint uses pc_server as service and the development board uses arm_client as clinet to communicate.
Hardware connection
Insert the USB disk into the development board,which stored the example in the 4 chapters.Connect the linux pc and
development board with net cable.
Software test
Place the program in the linux computer`s home directory,which completed in example/network/pc_server directory. Set a
static IP as 192.168.30.3 and start the service
,
perform below step
:
ifconfig eth0 192.168.30.3
./pc_server
As a client
,
the development board also need to set a static IP as 192.168.30.133
,
then start the arm_client program
,
perform below step
:
ifconfig eth0 192.168.30.133
./arm_client 192.168.30.3
form server: Make Your idea Real!
The linux computer will output below:
REC FROM
:
192.168.30.133
4.4 Ethernet
24
Summary of Contents for MYC-C8MMQ6-8E2D-160-I
Page 1: ......
Page 5: ...1 Software Resource 5 ...
Page 23: ...4 3 RTC 23 ...
Page 41: ...Figure 5 2 8 Kit configure 5 2 Config QtCreator 41 ...