Xunwei-i.MX6ULL Development Board-Network Test Method (I)
[Copy link]
The data used in this chapter has been put into the development board network disk data, the path is "11_Linux system development advanced\87_Chapter_Network test method use data".
This chapter takes the test of 100M network as an example. The development board and the computer are directly connected through the network cable. The file system is the minimum Linux system. If you want to test the gigabit network, the computer network card and network cable must support gigabit network communication.
The basic test method is to start a server on the computer, and then start a client on the board device of the network port to be tested, perform CS communication, and count the test results.
87.1 Test environment setup
If you test a 100M network, check the network card information as shown in Figure 87.1.1:
If you test a Gigabit network, first make sure that the computer network card is a Gigabit network. Right-click "My Computer", select "Manage", enter the Device Manager, click to enter, and open the Network Adapter, as shown in Figure 87.1.2:
If the network card under the network adapter contains Gigabit, GBE, 10/100/1000M or RTL8169, it is a Gigabit network card. The author's computer network card is shown in Figure 87.1.3:
Make sure the network cable supports Gigabit network. If the network cable is marked with CAT5e, CAT6, CAT6a or CAT7, it supports Gigabit network. If it is marked with CAT1, CAT2, CAT3, CAT4 or CAT5, it does not support and cannot perform Gigabit network testing. The network cable needs to be replaced.
After checking the network card and network cable, connect the development board and the computer with a network cable. Confirm that the network card connection speed and duplex mode are 1.0Gbps full-duplex. You can right-click Ethernet, set properties, select Configuration, Advanced, Connection Speed and Full-Duplex Settings.
Open the computer "Network Adapter", select "Local Network", if the corresponding router or switch supports Gigabit network, it will automatically be recognized as 1G in the network adapter. The author's PC supports Gigabit network, and the development board supports Gigabit network, which is displayed as 1.0Gbps
2. Install Java environment
Because Jperf software requires Java environment, we need to install Java environment on the computer first, otherwise it does not need to be installed.
Double-click the executable file "jdk-8u25-windows-x64.exe" in the compressed package, and complete the installation according to the wizard. The installation path can be selected by default, otherwise the subsequent environment variables need to be modified by the user according to the situation.
After the installation is complete, let's modify the environment variables.
Right-click "My Computer" and enter "Properties", as shown in Figure 87.2.2, and click "Advanced System Settings".
As shown in Figure 87.2.3, open the environment variable setting window.
Add the environment variable "C:\Program Files\Java\jdk1.8.0_25\;" at the end. Note that there must be a semicolon at the end.
Click "OK" to complete the JDK environment variable setting.
As shown in Figure 87.2.5, this is the default path for JDK installation. If the user's JDK installation path is different, the user needs to slightly change the path.
After the environment variables are set, test it.
Enter the DOS command line, as shown in Figure 87.2.6, and enter the command "#java -version". If the java version appears, it means that the environment variable is set correctly.
|