向 Intel SoC 设备发送 PING 请求
要检查 Intel® SoC 硬件是否正确配置,请重复执行Hardware Setup中的步骤或使用 alterasoc 函数。
在 MATLAB® 命令行窗口中,执行以下命令:
system('ping 169.254.1.20');您得到的丢包率应为 0%,如以下响应所示:
Pinging 169.254.1.20 with 32 bytes of data:
Reply from 169.254.1.20: bytes=32 time=5ms TTL=64
Reply from 169.254.1.20: bytes=32 time=2ms TTL=64
Reply from 169.254.1.20: bytes=32 time=2ms TTL=64
Reply from 169.254.1.20: bytes=32 time=2ms TTL=64
Ping statistics for 169.254.1.20:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 5ms, Average = 2ms