24.2.6.6. Netx Duo Ping
24.2.6.6.1. Overview
The netx duo ping example shows netx arp and icmp functions. This example enables ping response function.
24.2.6.6.2. Board Setting
Connect an Ethernet port on PC to a RGMII port or a RMII port on the development board with an Ethernet cable
24.2.6.6.3. Project Configuration
Ethernet Port Settings: Refer to Ethernet common project settings
By Setting
CONFIG_NETX_ENABLE_DHCPto zero or comment the definition code in CMakeLists.txt, the DHCP will be disabledWhen DHCP is disabled, comment or delete
set(CONFIG_ECLIPSE_THREADX_NETXDUO_ADDONS_DHCP 1)can decrease project source files number
24.2.6.6.4. Running the example
When the example runs successfully, it will print phy link status periodically until its status becomes Up, and it will print ICMP packets received count periodically. Following message is displayed in the terminal:
NetXDuo is running
IP address: 192.168.1.223
Mask: 255.255.255.0
received 0 ICMP packets
Enet phy init passed !
received 0 ICMP packets
Link Status: Down
received 0 ICMP packets
received 0 ICMP packets
Link Status: Up
Link Speed: 1000Mbps
Link Duplex: Full duplex
received 0 ICMP packets
received 0 ICMP packets
received 0 ICMP packets
received 0 ICMP packets
received 0 ICMP packets
received 0 ICMP packets
received 1 ICMP packets
received 2 ICMP packets
received 3 ICMP packets
received 4 ICMP packets