introduction
With the popularity and speed of the network, the network communication method is adopted by more users, that is, the user communicates with the display through a hub or a network direct connection. Through the hub, the IP of the PC and the display screen may not be on the same network segment; when the network is directly connected, the IP addresses of the PC and the display must be on the same network segment. Either way, you must know the IP address of both to communicate. However, during the debugging process, because the LED control card is too much, the placement time is too long, or it is configured by different people, sometimes the user may not know the IP address of the display, which makes it difficult to work. In addition, the factory-configured IP address and the field-installed IP address may be different, and the field-installed display IP address varies widely depending on the user, and the IP address segment is different. In this way, during the debugging process, it is necessary to repeatedly modify the IP address of the display or the PC, which brings a lot of work. Therefore, based on these problems in the application, some users have proposed whether to use the network direct connection method, without knowing the IP address of the LED display, and without modifying the IP of the PC, the PC and the LED display network communication can be realized. The user can more easily debug the LED display. Through market research, some software claims to realize the direct connection of the LED display network, but it is not satisfactory in terms of implementation, such as stability, reliability and timeliness. After research, this paper proposes a new method of network direct connection, which can solve these problems well, and let users debug the display conveniently, reliably and efficiently.
1 Main functional requirements analysis and model building
For network direct connection, the hardware is shown in Figure 1. The PC is connected to the display with a network direct connection, and then manually set their IP addresses on the same network segment to communicate.
Figure 1 network direct connection diagram
However, in this way, if the IP address of the display is not known in advance, communication will be difficult. In order to achieve the purpose of direct communication between the PC and the display without knowing the IP address of the display, it can be solved by the DHCP service principle: setting the LED display to a fixed IP address DHCP server, setting the PC network card to automatic The way to obtain an IP address is to automatically configure the IP address of the PC's network card through the DHCP service function, so that the network connection channel is established. Some developers use this method to achieve network direct connection, but this method has some problems: First, because UDP communication is not connected communication, its communication reliability is worse, it is easy to fail; second, only through The system that comes with the operating system is completed, without intervention, the user cannot set the timeout, sometimes the waiting time is too long, and the longest is 60 seconds. Third, DHCP is a fixed IP mode, which is obviously not very good in practical applications; In the system, the original NIC configuration information of the PC cannot be restored.
SHENZHEN CHONDEKUAI TECHNOLOGY CO.LTD , https://www.szsiheyi.com