LED sending card network port data anomaly detection method, device, equipment and medium
By analyzing and comparing the theoretical and practical packet information of LED sending card network port data, automated monitoring and accurate detection of abnormal network port data are achieved, and the problems of low manual detection efficiency and poor accuracy in the existing technology are solved, and the problem of improved Product stability and R&D efficiency.
Patent Information
- Application Number
- CN202411546735.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2044-11-01
AI Technical Summary
It is difficult for the existing technology to automatically monitor and accurately detect abnormal situations in the network port data of the LED sending card, resulting in the possible problems of noise, splash screen, and frizz screen in the LED display screen, affecting the stability and R&D efficiency of the product.
By obtaining the network port data output by the LED sending card, the network port control range and packet protocol information are analyzed to determine the theoretical packet transmission information per frame, and the actual packet transmission information per frame is determined based on the actual received network port data, and the actual packet transmission information is determined, and the comparison is made to obtain Abnormal detection results.
It realizes automatic monitoring of abnormal network port data of LED sending card, improves the accuracy of detection results, enhances the stability and reliability of the product, and saves R&D costs and time.
Smart Images

Figure CN119094395B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of LED control technology, and in particular to a method, device, equipment and medium for detecting abnormal data of a network port of an LED sending card. Background Art
[0002] With the rapid development of the information age, the utilization rate of LED display screens is getting higher and higher. For LED sending cards, in order to maximize the number of LED screen points carried by a single network port, general LED sending cards use Gigabit Ethernet to send in the form of customized RGB packets. This use of a customized protocol packet sending mechanism greatly reduces the bandwidth overhead of the Ethernet protocol, thereby improving the utilization of the network port bandwidth.
[0003] However, compared with the TCP / IP transmission protocol with a retransmission mechanism, the custom RGB transmission protocol does not have a retransmission mechanism, but transmits data at the fastest rate. Therefore, the custom transmission protocol is an unreliable transmission protocol. When designing the hardware and debugging the software of the sending card, network port data errors and data packet loss are often encountered, which will cause noise, flickering, and flowery screens on the LED display. At present, the data transmission anomalies of the LED sending card are generally detected by manually observing whether there are flickers or noises on the LED display, which is very time-consuming. In addition, the severity of the anomalies varies in different environments, and some minor anomalies are difficult to observe, which affects the reliability of the research and development conclusions. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, equipment and medium for detecting abnormal data of a network port of an LED sending card, so as to realize automatic monitoring of abnormal data of a network port of an LED sending card and improve the accuracy of the detection result.
[0005] In a first aspect, an embodiment of the present invention provides a method for detecting abnormal data of an LED sending card network port, the method comprising:
[0006] Get the network port data output by the LED sending card;
[0007] Parsing the network port data to obtain the network port control range and data packet protocol information;
[0008] Determine theoretical packet transmission information per frame according to the network port control range and the data packet protocol information;
[0009] Determine actual packet transmission information for each frame according to the network port data;
[0010] The actual packet sending information per frame is compared with the theoretical packet sending information per frame to obtain an abnormality detection result of the network port data.
[0011] Optionally, the theoretical packet sending information per frame includes the theoretical number of packets sent per frame and / or the theoretical row and column ordering of packets per frame; the actual packet sending information per frame includes at least one of the actual number of packets sent per frame, the actual data packet ordering per frame and the actual row and column ordering of packets per frame.
[0012] Optionally, after obtaining the network port data output by the LED sending card, the method further includes:
[0013] Parse the network port data to obtain a theoretical CRC checksum for each data packet;
[0014] Perform secondary verification according to the valid data of each data packet in the network port data to generate a corresponding actual CRC check number;
[0015] The actual CRC check number is compared with the theoretical CRC check number, and the abnormality detection result is supplemented according to the comparison result.
[0016] Optionally, before determining theoretical packet transmission information per frame according to the network port control range and the data packet protocol information, the method further includes:
[0017] Confirm that the connection status with the network port output end of the LED sending card is normal;
[0018] The network port data is parsed, and confirmation is made that a preset number of frame header valid flags have been detected.
[0019] Optionally, after comparing the actual packet sending information per frame with the theoretical packet sending information per frame to obtain the abnormality detection result of the network port data, the method further includes:
[0020] The abnormality detection result is sent to the host computer in real time for display.
[0021] Optionally, after obtaining the network port data output by the LED sending card, the method further includes:
[0022] The network port data is sent to the LED screen display system in real time to control the LED display screen for display.
[0023] In a second aspect, an embodiment of the present invention further provides a device for detecting abnormal data of a network port of an LED sending card, the device comprising:
[0024] The network port data acquisition module is used to obtain the network port data output by the LED sending card;
[0025] A network port data analysis module, used to analyze the network port data to obtain the network port control range and data packet protocol information;
[0026] A theoretical packet sending information determination module, used to determine theoretical packet sending information per frame according to the network port control range and the data packet protocol information;
[0027] An actual packet sending information determination module, used to determine actual packet sending information of each frame according to the network port data;
[0028] The detection result determination module is used to compare the actual packet sending information per frame with the theoretical packet sending information per frame to obtain the abnormality detection result of the network port data.
[0029] In a third aspect, an embodiment of the present invention further provides a detection device, the detection device comprising:
[0030] one or more processors;
[0031] A memory for storing one or more programs;
[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the LED sending card network port data anomaly detection method provided in any embodiment of the present invention.
[0033] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for detecting abnormal data of an LED sending card network port provided in any embodiment of the present invention is implemented.
[0034] In a fifth aspect, an embodiment of the present invention further provides a computer program product, which includes a computer program, and when the program is executed by a processor, the method for detecting abnormal data of an LED sending card network port provided in any embodiment of the present invention is implemented.
[0035] The embodiment of the present invention provides a method for detecting abnormality of network port data of an LED sending card. First, the network port data output by the LED sending card is obtained, and then the network port data is parsed to obtain the network port control range and data packet protocol information, and then the theoretical packet sending information per frame is determined according to the network port control range and the data packet protocol information. At the same time, the actual packet sending information per frame can be determined according to the obtained network port data, so that the actual packet sending information per frame can be compared with the theoretical packet sending information per frame to obtain the abnormality detection result of the network port data of the LED sending card. The method for detecting abnormality of network port data of an LED sending card provided by the embodiment of the present invention realizes the automatic monitoring of abnormality of network port data of an LED sending card by counting the actual packet sending situation and comparing it with the theoretical situation, and can accurately count the abnormal situation, which provides a reliable basis for the stability and reliability of related products, greatly improves the efficiency of correcting abnormal status of products during the research and development process, and saves a lot of research and development costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A flowchart of a method for detecting abnormal data of an LED sending card network port provided in Embodiment 1 of the present invention;
[0037] Figure 2 A schematic diagram of a connection topology structure of a detection device provided in Embodiment 1 of the present invention;
[0038] Figure 3 A schematic diagram of the structure of a device for detecting abnormal data at a network port of an LED sending card provided in the second embodiment of the present invention;
[0039] Figure 4 This is a schematic diagram of the structure of the detection device provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0040] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0041] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0042] Embodiment 1
[0043] Figure 1 This is a flow chart of the method for detecting abnormal data of the network port of the LED sending card provided in the first embodiment of the present invention. This embodiment can be applied to the situation where it is necessary to detect abnormal data provided by the LED sending card to the LED screen display system during the development of the LED sending card and related products. The method can be executed by the device for detecting abnormal data of the network port of the LED sending card provided in the embodiment of the present invention. The device can be implemented by hardware and / or software, and can generally be integrated into the detection equipment. Figure 1 As shown, the specific steps include:
[0044] S11, obtain the network port data output by the LED sending card.
[0045] S12: Analyze the network port data to obtain the network port control range and data packet protocol information.
[0046] S13, determining theoretical packet transmission information per frame according to the network port control range and the data packet protocol information.
[0047] S14. Determine actual packet transmission information for each frame according to the network port data.
[0048] S15. Compare the actual packet sending information per frame with the theoretical packet sending information per frame to obtain an abnormality detection result of the network port data.
[0049] Specifically, Figure 2 As shown, the detection device can be connected to the network port output end of the LED sending card through the network port, so as to receive the network port data output by the LED sending card through the network cable. The network port data is transmitted in the form of data packets. Each frame of data can correspond to multiple data packets, and the network port control range and data packet protocol information can be carried in the frame header, so that the detection device can obtain it by parsing the network port data. Among them, the frame header refers to a characteristic data packet with a position delimiter of a specific identification sequence. There is one at the starting position of each frame, which can be used to mark the beginning or end of a frame. The data packet between two frame headers is the data packet corresponding to a frame. The network port control range can include the control width X and control height Y of the network port of the LED sending card to which it is connected. The data packet protocol information can be used to declare the number of pixels that can be transmitted by a valid data packet. For example, a 256-pixel protocol can be used, that is, a protocol for transmitting 256 pixel data in a valid data packet. A 512-pixel padded protocol can also be used, that is, a protocol for transmitting 512 pixel data in a valid data packet, and so on.
[0050] After parsing and obtaining the network port control range and data packet protocol information, the theoretical packet information per frame can be determined based on the network port control range and data packet protocol information, that is, the data packet situation that the LED sending card should send within one frame time in theory, as a standard for judging whether there is any abnormality in packet sending. On the other hand, after obtaining the network port data output by the LED sending card, the actual packet sending information per frame can also be obtained based on the statistics of the network port data actually received, that is, the data packet situation that the LED sending card actually sends within one frame time. Then the actual packet sending information per frame can be compared with the theoretical packet sending information per frame. When the actual situation is different from the theoretical situation, it means that there is an abnormality in the packet sending of the LED sending card, and the specific abnormal content can be further obtained by statistics.
[0051] Wherein, optionally, the theoretical packet sending information per frame includes the theoretical number of packets sent per frame and / or the theoretical row and column packet ordering per frame; the actual packet sending information per frame includes at least one of the actual number of packets sent per frame, the actual data packet ordering per frame, and the actual row and column packet ordering per frame. Wherein, the row and column packet refers to the number of packets in the row or column of the data packet. For each frame of data, each corresponding data packet can have its own row and column packet sequence number to identify the row or column of the data packet.
[0052] Specifically, after parsing the network port control range and data packet protocol information, the theoretical number of packets sent per frame can be calculated based on the network port control range and data packet protocol information, that is, how many data packets should a frame of data contain in theory, and the theoretical maximum packet sequence number can be obtained. At the same time, the actual number of packets sent per frame can be statistically obtained based on the network port data actually received, and the corresponding packet sequence number can be parsed in real time based on the packet header information of each received data packet, thereby obtaining the actual order of packets per frame. Then the actual number of packets sent per frame can be compared with the theoretical number of packets sent per frame to determine whether they are consistent, that is, to determine whether the total number of data packets is normal. It can also be determined based on the theoretical maximum packet sequence number whether there is a packet sequence number error in the actual order of packets per frame, and the specific abnormal position can be determined. Among them, the packet header refers to a serial number with a certain identifier as the identification header of the data packet to mark the boundary of a packet of valid data. Each data packet has a packet header for identification, and the valid data therein is the data actually used for LED display control.
[0053] After parsing the network port control range and data packet protocol information, the theoretical row and column packet ordering per frame can be calculated based on the network port control range and data packet protocol information. For example, the number of data packets required to transmit a row of data can be calculated based on the control width and the number of pixels that can be transmitted by each data packet, and the sequence number of the last packet in a row can be obtained. At the same time, the number of rows contained in a frame of data can be determined based on the control height, so that the theoretical row and column packet ordering per frame can be determined, that is, the row and column packet sequence number of each data packet in a frame of data in theory. For the network port data actually received, the corresponding row and column packet sequence number can be parsed in real time based on the packet header information of each received data packet, so as to obtain the actual row and column packet ordering per frame. Then, based on the theoretical row and column packet ordering per frame, it can be determined whether there is an error in the row and column packet sequence number in the actual row and column packet ordering per frame, and the specific abnormal position can be determined.
[0054] Furthermore, the theoretical frame rate of the current data transmission and the theoretical interval between frames can be calculated based on the network port control range and the data packet protocol information. At the same time, the actual number of frame headers can be counted based on the actual received network port data, so as to determine whether the total number of frames is normal.
[0055] On the basis of the above technical solution, optionally, after obtaining the network port data output by the LED sending card, it also includes: parsing the network port data to obtain the theoretical CRC check number of each data packet; performing a secondary check based on the valid data of each data packet in the network port data to generate a corresponding actual CRC check number; comparing the actual CRC check number with the theoretical CRC check number, and supplementing the abnormal detection result according to the comparison result. Specifically, the corresponding theoretical CRC check number can be obtained in real time according to the packet header information of each received data packet, and the valid data in each received data packet can be secondary checked in real time to generate the corresponding actual CRC check number. Then the actual CRC check number is compared with the corresponding theoretical CRC check number to obtain the corresponding error packet information as the abnormal detection result.
[0056] On the basis of the above technical solution, optionally, before determining the theoretical packet transmission information of each frame according to the control range of the network port and the data packet protocol information, it also includes: confirming that the connection status with the network port output end of the LED sending card is normal; parsing the network port data, and confirming that a preset number of frame header valid flags have been detected. Specifically, at the beginning of the abnormal detection process, the connection status of the network port can be obtained by first reading the register status of the local PHY chip. After confirming that the connection status with the network port output end of the LED sending card is normal, the frame synchronization information can be obtained by parsing the frame header information in the received network port data. When it is confirmed that a preset number, such as 60 frame header valid flags, is detected, it can be considered that the detection environment has been stable, so that the subsequent detection process can be better started.
[0057] Based on the above technical solution, optionally, after comparing the actual packet transmission information per frame with the theoretical packet transmission information per frame to obtain the abnormality detection result of the network port data, it also includes: sending the abnormality detection result to the host computer in real time for display. Specifically, Figure 2 As shown, the detection device can be connected to the host computer and can send the abnormal detection results to the host computer through the serial port in real time. The host computer can further count and analyze the received abnormal detection results for use by R&D personnel.
[0058] Based on the above technical solution, optionally, after obtaining the network port data output by the LED sending card, it also includes: sending the network port data to the LED screen display system in real time to control the LED display screen to display. Figure 2As shown, the detection equipment can be connected to the existing LED screen display system through the network port, and can send the network port data received from the LED sending card to the LED screen display system intact in real time, so as to achieve abnormal detection without affecting the control of the LED sending card over the LED display screen, so as to facilitate R&D personnel to analyze the abnormal situation actually displayed on the screen.
[0059] The technical solution provided by the embodiment of the present invention first obtains the network port data output by the LED sending card, then parses the network port data to obtain the network port control range and data packet protocol information, and then determines the theoretical packet sending information per frame based on the network port control range and data packet protocol information. At the same time, the actual packet sending information per frame can be determined based on the obtained network port data, so that the actual packet sending information per frame can be compared with the theoretical packet sending information per frame to obtain the abnormal detection result of the network port data of the LED sending card. By counting the actual packet sending situation and comparing it with the theoretical situation, the automatic monitoring of the abnormal network port data of the LED sending card is realized, and the abnormal situation can be accurately counted, which provides a reliable basis for the stability and reliability of related products, greatly improves the efficiency of correcting the abnormal state of the product during the research and development process, and saves a lot of research and development costs.
[0060] Embodiment 2
[0061] Figure 3 This is a schematic diagram of the structure of the LED sending card network port data anomaly detection device provided in the second embodiment of the present invention. The device can be implemented by hardware and / or software, and can generally be integrated into a detection device to execute the LED sending card network port data anomaly detection method provided in any embodiment of the present invention. Figure 3 As shown, the device comprises:
[0062] The network port data acquisition module 31 is used to acquire the network port data output by the LED sending card;
[0063] The network port data analysis module 32 is used to analyze the network port data to obtain the network port control range and data packet protocol information;
[0064] Theoretical packet sending information determination module 33, used to determine theoretical packet sending information per frame according to the network port control range and the data packet protocol information;
[0065] An actual packet sending information determination module 34, used to determine actual packet sending information of each frame according to the network port data;
[0066] The detection result determination module 35 is used to compare the actual packet sending information per frame with the theoretical packet sending information per frame to obtain the abnormality detection result of the network port data.
[0067] The technical solution provided by the embodiment of the present invention first obtains the network port data output by the LED sending card, then parses the network port data to obtain the network port control range and data packet protocol information, and then determines the theoretical packet sending information per frame based on the network port control range and data packet protocol information. At the same time, the actual packet sending information per frame can be determined based on the obtained network port data, so that the actual packet sending information per frame can be compared with the theoretical packet sending information per frame to obtain the abnormal detection result of the network port data of the LED sending card. By counting the actual packet sending situation and comparing it with the theoretical situation, the automatic monitoring of the abnormal network port data of the LED sending card is realized, and the abnormal situation can be accurately counted, which provides a reliable basis for the stability and reliability of related products, greatly improves the efficiency of correcting the abnormal state of the product during the research and development process, and saves a lot of research and development costs.
[0068] Based on the above technical solution, optionally, the theoretical packet sending information per frame includes the theoretical number of packets sent per frame and / or the theoretical row and column packet ordering per frame; the actual packet sending information per frame includes at least one of the actual number of packets sent per frame, the actual data packet ordering per frame and the actual row and column packet ordering per frame.
[0069] On the basis of the above technical solution, optionally, the LED sending card network port data abnormality detection device further includes:
[0070] A theoretical check number determination module is used to parse the network port data after acquiring the network port data output by the LED sending card to obtain a theoretical CRC check number for each data packet;
[0071] An actual check number determination module is used to perform a secondary check according to the valid data of each data packet in the network port data to generate a corresponding actual CRC check number;
[0072] The check digit comparison module is used to compare the actual CRC check digit with the theoretical CRC check digit, and to supplement the abnormality detection result according to the comparison result.
[0073] On the basis of the above technical solution, optionally, the LED sending card network port data abnormality detection device further includes:
[0074] A connection status determination module, used for confirming that the connection status with the network port output end of the LED sending card is normal before determining the theoretical packet transmission information of each frame according to the network port control range and the data packet protocol information;
[0075] The frame header valid flag detection module is used to parse the network port data and confirm that a preset number of frame header valid flags have been detected.
[0076] On the basis of the above technical solution, optionally, the LED sending card network port data abnormality detection device further includes:
[0077] The detection result uploading module is used to compare the actual packet sending information per frame with the theoretical packet sending information per frame to obtain the abnormal detection result of the network port data, and then send the abnormal detection result to the host computer in real time for display.
[0078] On the basis of the above technical solution, optionally, the LED sending card network port data abnormality detection device further includes:
[0079] The network port data sending module is used to send the network port data to the LED screen display system in real time after acquiring the network port data output by the LED sending card, so as to control the LED display screen to display.
[0080] The LED sending card network port data anomaly detection device provided in the embodiment of the present invention can execute the LED sending card network port data anomaly detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0081] It is worth noting that in the above-mentioned embodiment of the LED sending card network port data anomaly detection device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0082] Embodiment 3
[0083] Figure 4 The schematic diagram of the structure of the detection device provided in the third embodiment of the present invention shows a block diagram of an exemplary detection device suitable for implementing the implementation mode of the present invention. Figure 4 The detection device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. Figure 4 As shown, the detection device includes a processor 41, a memory 42, an input device 43 and an output device 44; the number of the processor 41 in the detection device can be one or more. Figure 4 Taking a processor 41 as an example, the processor 41, memory 42, input device 43 and output device 44 in the detection device can be connected through a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0084] The memory 42, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the LED sending card network port data anomaly detection method in the embodiment of the present invention (for example, the network port data acquisition module 31, the network port data analysis module 32, the theoretical package information determination module 33, the actual package information determination module 34 and the detection result determination module 35 in the LED sending card network port data anomaly detection device). The processor 41 executes various functional applications and data processing of the detection device by running the software programs, instructions and modules stored in the memory 42, that is, realizes the above-mentioned LED sending card network port data anomaly detection method.
[0085] The memory 42 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the detection device, etc. In addition, the memory 42 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 42 may further include a memory remotely arranged relative to the processor 41, and these remote memories may be connected to the detection device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0086] The input device 43 can be used to obtain the network port data output by the LED sending card, and generate key signal input related to the user settings and function control of the detection device, etc. The output device 44 can be used to send abnormal detection results to the host computer, etc.
[0087] Embodiment 4
[0088] Embodiment 4 of the present invention further provides a storage medium containing computer executable instructions, which, when executed by a computer processor, is used to execute a method for detecting abnormal data of a network port of an LED sending card, the method comprising:
[0089] Get the network port data output by the LED sending card;
[0090] Parsing the network port data to obtain the network port control range and data packet protocol information;
[0091] Determine theoretical packet transmission information per frame according to the network port control range and the data packet protocol information;
[0092] Determine actual packet transmission information for each frame according to the network port data;
[0093] The actual packet sending information per frame is compared with the theoretical packet sending information per frame to obtain an abnormality detection result of the network port data.
[0094] The storage medium may be any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system, which is connected to the computer system via a network (such as the Internet). The second computer system may provide program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). The storage medium may store program instructions (e.g., embodied as a computer program) that may be executed by one or more processors.
[0095] Of course, the computer executable instructions of a storage medium including computer executable instructions provided in an embodiment of the present invention are not limited to the method operations described above, and can also execute related operations in the LED sending card network port data anomaly detection method provided in any embodiment of the present invention.
[0096] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0097] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0098] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0099] Embodiment 5
[0100] Embodiment 5 of the present invention further provides a computer program product, which includes a computer program (also referred to as code, instruction), which can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it is used to execute the LED sending card network port data anomaly detection method provided in any of the above embodiments, and has the corresponding beneficial effects of the execution method.
[0101] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for detecting abnormal data of a LED sending card network port, characterized in that: include: Get the network port data output by the LED sending card; Parse the network port data to obtain the network port control range and data packet protocol information; the network port control range includes the control width and control height of the network port of the LED sending card connected to it; The data packet protocol information is used to declare the number of pixels that can be transmitted by a valid data packet; Determine theoretical packet transmission information per frame according to the network port control range and the data packet protocol information; The theoretical packet sending information per frame includes the theoretical number of packets sent per frame and / or the theoretical row and column order of packets sent per frame; The row and column packet refers to the packet number of the row or column of the data packet; Determine actual packet transmission information for each frame according to the network port data; The actual packet transmission information per frame includes at least one of the actual number of packets transmitted per frame, the actual data packet sequence per frame, and the actual row and column sequence of packets per frame; The actual packet sending information per frame is compared with the theoretical packet sending information per frame to obtain an abnormality detection result of the network port data.
2. The LED sending card network port data anomaly detection method according to claim 1, characterized in that: After obtaining the network port data output by the LED sending card, the method further includes: Parse the network port data to obtain a theoretical CRC checksum for each data packet; Perform secondary verification according to the valid data of each data packet in the network port data to generate a corresponding actual CRC check number; The actual CRC check number is compared with the theoretical CRC check number, and the abnormality detection result is supplemented according to the comparison result.
3. The LED sending card network port data anomaly detection method according to claim 1, characterized in that: Before determining theoretical packet transmission information of each frame according to the network port control range and the data packet protocol information, the method further includes: Confirm that the connection status with the network port output end of the LED sending card is normal; The network port data is parsed, and confirmation is made that a preset number of frame header valid flags have been detected.
4. The LED sending card network port data anomaly detection method according to claim 1, characterized in that: After comparing the actual packet sending information per frame with the theoretical packet sending information per frame to obtain the abnormality detection result of the network port data, the method further includes: The abnormality detection result is sent to the host computer in real time for display.
5. The LED sending card network port data anomaly detection method according to claim 1, characterized in that: After obtaining the network port data output by the LED sending card, the method further includes: The network port data is sent to the LED screen display system in real time to control the LED display screen for display.
6. A device for detecting abnormal data of a network port of an LED sending card, characterized in that: include: The network port data acquisition module is used to obtain the network port data output by the LED sending card; A network port data analysis module is used to analyze the network port data to obtain the network port control range and data packet protocol information; the network port control range includes the control width and control height of the network port of the LED sending card connected to it; The data packet protocol information is used to declare the number of pixels that can be transmitted by a valid data packet; A theoretical packet sending information determination module, used to determine theoretical packet sending information per frame according to the network port control range and the data packet protocol information; The theoretical packet sending information per frame includes the theoretical number of packets sent per frame and / or the theoretical row and column order of packets sent per frame; The row and column packet refers to the packet number of the row or column of the data packet; An actual packet sending information determination module, used to determine actual packet sending information of each frame according to the network port data; The actual packet transmission information per frame includes at least one of the actual number of packets transmitted per frame, the actual data packet sequence per frame, and the actual row and column sequence of packets per frame; The detection result determination module is used to compare the actual packet sending information per frame with the theoretical packet sending information per frame to obtain the abnormality detection result of the network port data.
7. A detection device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the LED sending card network port data anomaly detection method as described in any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for detecting abnormal data of an LED sending card network port as described in any one of claims 1 to 5 is implemented.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by the processor, the method for detecting abnormal data of the network port of the LED sending card as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Redundancy-removing anti-jitter stage lighting data processing method, device and system
CN114511011A
Cited By
Cascade-extendable LED sending card multi-network-port display data comparison detection system and method, and medium
CN121585578A