LED display screen data sending method and device adaptive to master and backup networks, terminal and storage medium

CN117593994BActive Publication Date: 2026-08-21SHANGHAI SANSI ELECTRONICS ENG +3
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210981577.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-15
Publication Date
2026-08-21
Estimated Expiration
2042-08-15

AI Technical Summary

Technical Problem

[0005]鉴于以上所述现有技术的缺点,本申请的目的在于提供一种主备网络自适应匹配的LED显示屏数据发送方法、装置、终端及存储介质,用于解决现有技术中主备网络通道分配策略不灵活导致存储器带宽压力大和FPGA逻辑资源耗用高的问题

Benefits of technology

[0017]本申请可根据预设的主网络发送数量,将数据帧、控制帧和同步帧数据路由至特定通信地址,并完成主备网络间的相互备份。当主网络发送数量变更时,主网络通道和备网络通道自动完成转换和相应参数的匹配,有效提高了LED发送卡主备网络输出分配的灵活性,从而进一步减轻存储器的带宽压力,轻量化FPGA逻辑资源。此外,开发人员还可根据硬件性能自定义扩展或裁剪相应的逻辑架构,使其具有更强的代码移植性和兼容性,能够进一步适应更复杂、需求更多样的应用场景。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117593994B_ABST
    Figure CN117593994B_ABST
Patent Text Reader

Abstract

The application discloses a kind of master backup network adaptive matching LED display screen data sending method, device, terminal and storage medium, the method includes: obtaining multiple groups of input requests, each group of input requests includes main channel synchronization frame input request, backup channel synchronization frame input request, main channel control frame input request, backup channel control frame input request and data frame input request;Select one of input request from each group of input requests, and according to master backup network matching rule, the selected input request is output to the main / backup network port which is mutually mapped with the starting physical address of the input request by main network output channel or backup network output channel.This application can automatically complete the matching of master backup network parameters and module instantiation according to user demand and the performance of LED sending device, send LED display screen data to specific communication address, flexibly allocate main backup network channel, effectively save memory bandwidth and FPGA logic resource.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of LED display technology, and in particular to a method, apparatus, terminal and storage medium for transmitting LED display data with adaptive matching between primary and backup networks. Background Technology

[0002] The LED transmitting card is an indispensable hardware device in the entire LED large-screen display system. Its main function is to perform a series of operations such as storage, scaling, cropping, splicing, and transmission of video data transmitted from upstream, and then transmit it to the downstream LED receiving card via gigabit Ethernet or fiber optic cable to complete the synchronous display of the image. To increase the security and stability of the LED large-screen system, more and more manufacturers are launching controller products that support network backup. That is, a single LED receiving card can simultaneously connect to both primary and backup gigabit networks. In case of communication interruption of the primary network due to external factors, the receiving card can identify the communication failure and automatically switch to the backup network, thereby ensuring that the LED large screen can continue to display normally in some important situations.

[0003] The difference between the primary and backup networks is that while the image data transmitted on both networks is the same, the content of the control frames transmitted differs. In existing technologies, the backup network in a transmitting card occupies the transmitting area of ​​one of the primary networks, meaning that the image transmitting areas of both primary networks are set to be the same, thus achieving mutual backup. The advantage of this method is its simplicity and speed; however, its disadvantage is that this primary / backup channel allocation strategy is not flexible enough. When user requirements change, necessitating an adjustment to the number of interfaces on the primary network, the backup network still occupies an independent transmitting channel. This leads to duplicate occupation of memory (DDR or SDRAM) read / write bandwidth, increasing the pressure on memory bandwidth and consequently increasing the utilization rate of FPGA logic resources.

[0004] Therefore, in response to the above problems, how to develop a data transmission method, device, terminal and storage medium that can adaptively match the primary and backup networks of the transmitting card, so as to improve the flexibility of primary and backup channel allocation in LED data transmission, thereby reducing the bandwidth pressure of memory, saving the consumption of FPGA logic resources, and adapting it to diverse application scenarios, is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] In view of the shortcomings of the prior art described above, the purpose of this application is to provide a method, device, terminal and storage medium for transmitting data of LED display screen with adaptive matching of primary and backup networks, so as to solve the problems of high memory bandwidth pressure and high FPGA logic resource consumption caused by the inflexible primary and backup network channel allocation strategy in the prior art.

[0006] To achieve the above and other related objectives, a first aspect of this application provides a method for transmitting data for an LED display screen with adaptive matching of primary and backup networks, comprising: acquiring multiple sets of input requests, each set of input requests including a primary channel synchronization frame input request, a backup channel synchronization frame input request, a primary channel control frame input request, a backup channel control frame input request, and a data frame input request; selecting one input request from each set of input requests, and outputting the selected input request through a primary network output channel or a backup network output channel to a primary / backup network port that is mapped to the starting physical address of the input request, according to the primary / backup network matching rules.

[0007] In some embodiments of the first aspect of this application, the primary / backup network matching rule includes: obtaining the transmission quantity of the backup network based on the preset transmission quantity of the primary network; wherein: if the preset transmission quantity of the primary network exceeds half of the total number of communication interfaces on the board, the difference between the total number of communication interfaces on the board and the preset transmission quantity of the primary network is used as the transmission quantity of the backup network; otherwise, the preset transmission quantity of the primary network is used as the transmission quantity of the backup network.

[0008] In some embodiments of the first aspect of this application, the primary / backup network matching rule includes: obtaining the starting communication address of the backup network based on the preset transmission quantity of the primary network; wherein: if the preset transmission quantity of the primary network exceeds half but is less than half of the total number of onboard communication interfaces, then the (R+1)th communication address is used as the starting communication address of the backup network; if the preset transmission quantity of the primary network is the same as the total number of onboard communication interfaces, then all onboard communication interfaces are primary network interfaces, and no backup network interface needs to be configured; if none of the above conditions are met, then the (R+1)th communication address is used as the starting communication address of the backup network. One communication address is used as the starting communication address of the backup network; R represents the preset number of transmissions of the main network, and T represents the total number of communication interfaces on the board.

[0009] In some embodiments of the first aspect of this application, the primary / backup network matching rule includes: obtaining the primary network port number that is a backup to the backup network starting address based on the preset transmission quantity of the primary network; wherein: if the preset transmission quantity of the primary network exceeds half but is less than half of the total number of onboard communication interfaces, then the primary network port number is selected based on the preset transmission quantity of the primary network. One primary network port number is used as the primary network port number that serves as a backup for the starting communication address of the backup network; otherwise, the first primary network port number is used as the primary network port number that serves as a backup for the starting communication address of the backup network; R represents the preset number of transmissions of the primary network, and T represents the total number of communication interfaces on the board.

[0010] To achieve the above and other related objectives, a second aspect of this application provides a data transmission device for an LED display screen with adaptive matching between primary and backup networks, comprising: a synchronization frame transmission module for transmitting video frame switching instructions; a control frame transmission module for transmitting system control commands; a data frame transmission module for processing and transmitting data frames; a frame type selection transmission module for acquiring input requests from the synchronization frame transmission module, the control frame transmission module, and the data frame transmission module, and forwarding the video frame switching instructions, system control commands, and data frames to a second routing module through a primary network output channel or a backup network output channel; a first routing module for routing the video frame switching instructions and system control commands to the frame type selection transmission module; and a second routing module for routing the output of the frame type selection transmission module to a primary / backup network port that is mapped to the starting physical address of the input request, wherein the output of the frame type selection transmission module includes video frame switching instructions, system control commands, and data frames; wherein the synchronization frame transmission module and the control frame transmission module are connected to the first routing module, and the data frame transmission module, the first routing module, and the second routing module are connected to the frame type selection transmission module.

[0011] In some embodiments of the second aspect of this application, the device includes an onboard unit having multiple communication interfaces for transmitting LED data. The number of the communication interfaces and the maximum number of main network interfaces among the communication interfaces are adaptively changed according to the pixel carrying capacity of the LED data transmission card, allowing for custom expansion or trimming.

[0012] In some embodiments of the second aspect of this application, after the number of communication interfaces and the maximum number of main network interfaces among the communication interfaces are changed, the device adjusts the instantiation strategy for the synchronization frame sending module, control frame sending module, data frame sending module and frame type selection sending module.

[0013] In some embodiments of the second aspect of this application, the instantiation strategy includes: instantiating X1 synchronization frame sending modules, wherein X1 and the number of synchronization frames Y1 that each synchronization frame sending module can serially output at one time satisfy X1×Y1≥T; instantiating the maximum number of requests for parallel transmission of control frames at one time to T; instantiating X2 data frame sending modules, wherein X2 and the number of data frames Y2 that each data frame sending module can parallelly output at one time satisfy X2×Y2≥M; instantiating M frame type selection sending modules; wherein T represents the total number of communication interfaces on the board, and M represents the maximum number of main network interfaces among the communication interfaces.

[0014] To achieve the above and other related objectives, a third aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method.

[0015] To achieve the above and other related objectives, a fourth aspect of this application provides an electronic terminal, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to cause the terminal to perform the method.

[0016] As described above, the data transmission method, apparatus, terminal, and storage medium for adaptive matching of primary and backup networks provided in this application have the following beneficial effects:

[0017] This application can route data frames, control frames, and synchronization frames to specific communication addresses based on a preset primary network transmission quantity, and complete mutual backup between the primary and backup networks. When the primary network transmission quantity changes, the primary and backup network channels automatically complete the conversion and matching of corresponding parameters, effectively improving the flexibility of primary and backup network output allocation for the LED transmitting card, thereby further reducing memory bandwidth pressure and lightweighting FPGA logic resources. Furthermore, developers can customize, extend, or tailor the corresponding logic architecture according to hardware performance, making it more portable and compatible, and enabling it to adapt to more complex and diverse application scenarios. Attached Figure Description

[0018] Figure 1 The diagram shown is a flowchart illustrating the method described in one embodiment of this application.

[0019] Figure 2 This diagram illustrates the routing matching process of synchronization frames when the user-preset number of main network transmissions is 4, as shown in one embodiment of this application.

[0020] Figure 3 This diagram illustrates the routing matching process of synchronization frames when the user-preset number of main network transmissions is 3, as shown in one embodiment of this application.

[0021] Figure 4 This diagram illustrates the routing matching process of synchronization frames when the user-preset number of main network transmissions is 2, as shown in one embodiment of this application.

[0022] Figure 5 This diagram illustrates the routing matching process of synchronization frames when the user-preset main network transmission quantity is 1, as shown in one embodiment of this application.

[0023] Figure 6 The diagram shown is a structural schematic of the device described in one embodiment of this application.

[0024] Figure 7 The diagram shown is a structural schematic of the device in one embodiment of this application, which has a total of 4 communication interfaces and a maximum number of transmissions on the main network of 4.

[0025] Figure 8The diagram shown is a structural schematic of the device with a total of 16 communication interfaces and a maximum number of transmissions on the main network of 8, as described in one embodiment of this application.

[0026] Figure 9 The diagram shown is a flowchart illustrating the concurrent polling mechanism of the control frame sending module in one embodiment of this application.

[0027] Figure 10 The diagram shows a flowchart illustrating the operation of the data frame sending module in one embodiment of this application.

[0028] Figure 11 The diagram shown is a schematic representation of the internal logic structure of the data frame sending module in one embodiment of this application.

[0029] Figure 12 The diagram shows the input-output relationship of the frame type selection and sending module in one embodiment of this application.

[0030] Figure 13 The diagram shows a structural schematic of an LED sending card using the aforementioned device.

[0031] Figure 14 The diagram shown is a structural schematic of an electronic terminal according to an embodiment of this application. Detailed Implementation

[0032] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, unless otherwise specified, the following embodiments and features in the embodiments can be combined with each other.

[0033] As used herein, the singular forms “a,” “an,” and “the” are intended to include the plural forms as well, unless the context indicates otherwise. It should be further understood that the terms “comprising,” “including,” indicate the presence of the stated feature, operation, element, component, item, kind, and / or group, but do not preclude the presence, occurrence, or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms “or” and “and / or” as used herein are interpreted as inclusive, or mean any one or any combination thereof. Thus, “A, B, or C” or “A, B, and / or C” means “any one of: A; B; C; A and B; A and C; B and C; A, B, and C.” Exceptions to this definition occur only when combinations of elements, functions, or operations are inherently mutually exclusive in some manner.

[0034] To address the problems mentioned above, this invention provides a method, apparatus, terminal, and storage medium for transmitting data to an LED display screen using adaptive matching of primary and backup networks. This aims to solve the problems of inflexible primary / backup network channel allocation strategies in the prior art, which lead to high memory bandwidth pressure and high FPGA logic resource consumption. Furthermore, to make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions in the embodiments of this invention are further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only for explaining the invention and are not intended to limit the invention.

[0035] This invention provides a method for transmitting LED display screen data with adaptive matching of primary and backup networks, an apparatus for transmitting LED display screen data with adaptive matching of primary and backup networks, a storage medium storing an executable program for implementing the method, and an electronic terminal. Regarding the implementation of the method, this invention will describe exemplary implementation scenarios of transmitting LED display screen data with adaptive matching of primary and backup networks.

[0036] like Figure 1 The diagram illustrates a flowchart of a primary / backup network adaptive matching method for transmitting LED display data, according to an embodiment of the present invention. The primary / backup network adaptive matching method for transmitting LED display data in this embodiment mainly includes the following steps:

[0037] Step S11: Obtain multiple sets of input requests. Each set of input requests includes a main channel synchronization frame input request, a backup channel synchronization frame input request, a main channel control frame input request, a backup channel control frame input request, and a data frame input request.

[0038] Specifically, the frame type selection and sending module obtains the primary channel synchronization frame input request and the backup channel synchronization frame input request from the synchronization frame sending module, the primary channel control frame input request and the backup channel control frame input request from the control frame sending module, and the data frame input request from the data frame sending module. It should be noted that since the content transmitted in the primary and backup network channels is identical and synchronized, the data frame has only one input channel. This data will be automatically copied into two copies and output from both the primary and backup network channels. Other synchronization frames and control frames will be distinguished based on the primary and backup input channels. For example, data from the primary synchronization frame input channel will only be output from the primary network channel and will not be output to the backup network channel.

[0039] Step S12: Select one input request from each group of input requests, and according to the primary / backup network matching rules, output the selected input request through the primary network output channel or the backup network output channel to the primary / backup network port that is mapped to the starting physical address of the input request.

[0040] Specifically, the frame type selection and transmission module circularly detects the main channel synchronization frame input request, the backup channel synchronization frame input request, the main channel control frame input request, the backup channel control frame input request, and the data frame input request, and responds to one of the input requests. According to the main-backup network matching rule, the corresponding data is sent to the main / backup network port mapped to the starting physical address of the input request through the main network output channel or the backup network output channel, completing the data transmission process.

[0041] In some implementation processes of this embodiment, the main-backup network matching rule includes: obtaining the transmission quantity of the backup network according to the preset transmission quantity of the main network.

[0042] Specifically, if then B = R;

[0043] If then B = T - R;

[0044] Among them, B represents the transmission quantity of the backup network, R represents the preset transmission quantity of the main network, and T represents the total number of communication interfaces on the board.

[0045] In some implementation processes of this embodiment, the main-backup network matching rule includes: obtaining the starting communication address of the backup network according to the preset transmission quantity of the main network.

[0046] Specifically, if then use the th communication address as the starting communication address of the backup network;

[0047] If and R < T, then use the (R + 1)th communication address as the starting communication address of the backup network;

[0048] If R = T, then all communication interfaces on the board are used as the main network transmission interfaces, and there is no need to configure the starting communication address of the backup network;

[0049] Among them, R represents the preset transmission quantity of the main network, and T represents the total number of communication interfaces on the board.

[0050] In some implementation processes of this embodiment, the main-backup network matching rule includes: obtaining the main network port number that is a backup to the starting address of the backup network according to the preset transmission quantity of the main network.

[0051] Specifically, if then the main network port number that is a backup to the starting communication address of the backup network is 1;

[0052] If If R < T, the main network port number that is a backup to the starting communication address of the standby network is

[0053] where R represents the preset transmission quantity of the main network, and T represents the total number of on-board communication interfaces.

[0054] It should be noted that in this embodiment, the preset transmission quantity of the main network comes from the upstream terminal and is set online by developers or users. The typical implementation device of the upstream terminal is a computer, and the specific form of the computer can be a personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation device, email transceiver, game console, tablet computer, wearable device, or any combination of these devices. In addition, the communication interfaces and communication addresses mentioned in this embodiment can be RJ45, RJ-11, SC optical fiber, FDDI, AUI, BNC, Console, etc., and this embodiment does not limit this.

[0055] To understand this embodiment more clearly, the following combines Figures 2 to 5 to make a detailed description of the LED display data sending process.

[0056] For simplicity and understandability, in the embodiment of Figures 2 to 5 the total number of communication interfaces on the board for LED network data sending is set to 4, the maximum number of main networks that can be set by the user is also set to 4, and Figures 2 to 5 only the data sending process of the synchronization frame under different main and standby network quantity requirements is shown, and the sending processes of the control frame and data frame are the same as the principle of the shown synchronization frame sending.

[0057] Figure 2 Figure showing the routing matching process of the synchronization frame when the preset transmission quantity of the main network for the user is 4. At this time, all 4 network channels output by the LED sending card are main networks, and there is no standby network. The synchronization frame sending request passes through routing module A and is input to the synchronization frame main channel of each frame type selection sending module, and then the output main network is connected to each external communication interface through routing module B.

[0058] Figure 3 Figure showing the routing matching process of the synchronization frame when the preset transmission quantity of the main network for the user is 3. At this time, among the 4 output channels of the LED sending card, 3 are main networks and 1 is a standby network. And Figure 2The difference is that the synchronization frame request with address number 4 is input to the backup channel of frame type selection sending module 2 via routing module A, and then the output backup network is sent to the communication interface with address number 4 via routing module B. Overall, the first three network ports of the LED sending card output the main network, while the fourth network port outputs the backup network, and this backup network and the main network port 2 serve as backups for each other.

[0059] Figure 4 This diagram illustrates the routing and matching process for synchronization frames when the preset primary network transmission quantity is 2. At this time, of the four output channels of the LED transmitting card, two are for the primary network and two are for the backup network. Figure 3 The difference is that the synchronization frame request with address number 3 is routed through routing module A, with the input frame type selected as the backup channel of sending module 1, and the output backup network is sent to the communication interface with address number 3 via routing module B. Overall, the first two network ports of the LED sending card output to the main network, and the last two network ports output to the backup network. Among them, the third network port and the main network port 1 serve as backups for each other, and the fourth network port and the main network port 2 serve as backups for each other.

[0060] Figure 5 This diagram illustrates the routing matching process for synchronization frames when the user-preset primary network transmission quantity is 1. At this time, of the four output channels of the LED transmitting card, one is for the primary network and one is for the backup network. Figure 4 The difference is that routing module B only connects the primary and backup network outputs of frame type selection sending module 1 to the external communication interface, disabling the other three frame type selection sending modules. Overall, the first network port of the LED sending card outputs to the primary network, the third network port outputs to the backup network, and the second and fourth network ports have no output. Among them, the third network port and the primary network port 1 serve as backups for each other.

[0061] It should be noted that, in Figure 3 , Figure 4 , Figure 5 In the illustrated embodiment, when network interface 3 outputs a backup network, network interface 3 and network interface 1 serve as backups for each other; when network interface 4 outputs a backup network, network interface 4 and network interface 2 serve as backups for each other. The significance of using this primary / backup network matching rule to determine the backup primary network port number is that when the primary network transmission quantity requirement changes between the above embodiments, the primary network port number that serves as backup for network port 4 and network port 3 remains fixed, avoiding frequent changes in the primary network port number that serves as backup for the backup network. This helps save on the consumption of logic resources within the FPGA and improves the utilization rate of logic resources.

[0062] like Figure 6The diagram illustrates a structural schematic of an LED display screen data transmission device with adaptive matching of primary and backup networks, according to an embodiment of the present invention. In this embodiment, the LED display screen data transmission device with adaptive matching of primary and backup networks includes:

[0063] The system includes a synchronization frame sending module for sending video frame switching commands to the LED display screen; a control frame sending module for transmitting user-defined system control commands, such as adjusting the brightness, color temperature, and layout of the LED display screen; a data frame sending module for requesting image data from the memory, performing pixel stitching, Ethernet encapsulation, CRC verification, and other operations, and finally outputting the display data frame; and a frame type selection sending module for cyclically detecting five input requests and responding to one of the channels, forwarding the data from that channel to the corresponding output terminal via the main network output channel or the backup network output channel. The five input requests consist of two synchronization frame requests, two control frame requests, and one data frame request, totaling five input channels. The output... It consists of two output channels: one main network and one backup network. Routing module A routes the outputs of the synchronization frame sending module and the control frame sending module to the corresponding frame type selection sending module according to the main / backup network matching rules. Routing module B routes the output of the frame type selection sending module to the main / backup network port that maps to the starting physical address of the input request, according to the main / backup network matching rules. The output of the frame type selection sending module includes video frame switching instructions, system control commands, and data frames. The synchronization frame sending module and the control frame sending module are connected to routing module A, and the data frame sending module, routing module A, and routing module B are connected to the frame type selection sending module.

[0064] In some sub-embodiments of this embodiment, the device includes an onboard unit with multiple communication interfaces for LED data transmission. The number of communication interfaces and the maximum number of main network interfaces among the communication interfaces are adaptively changed according to the pixel carrying capacity of the LED data transmission card, allowing for custom expansion or trimming.

[0065] Specifically, the pixel load capacity of the LED data transmitting card refers to the maximum number of pixels the card can transmit. Assuming each network port can output 600,000 pixels and the LED data transmitting card has four main network interfaces, then the pixel load capacity of the LED data transmitting card is 2,400,000 (60 × 4) million pixels. In this embodiment, the number of communication interfaces and the maximum number of main network interfaces in the communication interface can be adjusted according to the needs of users or developers. For example, assuming the current pixel load capacity of the LED data transmitting card is 6 million pixels and each network port can output 600,000 pixels, then the device needs to set the maximum number of main network interfaces in the communication interface to at least 10. The total number of communication interfaces can be adjusted according to the needs of the backup network. If the pixel performance of the LED data transmitting card needs to be increased to 7.2 million pixels, the maximum number of main network interfaces in the communication interface needs to be expanded to at least 12. If the pixel performance of the LED data transmitting card needs to be reduced to 4.8 million pixels, the maximum number of main network interfaces in the communication interface only needs to be reduced to 8 to meet the needs of custom expansion or trimming.

[0066] In some sub-implementations of this embodiment, after the number of communication interfaces and the maximum number of main network interfaces among the communication interfaces are changed, the device adjusts the instantiation strategy for the synchronization frame sending module, control frame sending module, data frame sending module, and frame type selection sending module.

[0067] Instantiation, or calling of sub-modules, aims to automatically instantiate a corresponding number of primary modules after the total number of communication interfaces on the board used for LED network data transmission and the maximum number of transmissions of the LED main network are adjusted, so that the data transmission device can meet the basic requirements of development and operation. Specifically, the instantiation objects involved in this application are the synchronization frame transmission module, the control frame transmission module, the data frame transmission module, and the frame type selection transmission module.

[0068] In some sub-implementations of this embodiment, the instantiation strategy includes: instantiating X1 synchronization frame sending modules, wherein X1 and the number of synchronization frames Y1 that each synchronization frame sending module can serially output at one time satisfy X1×Y1≥T; instantiating the maximum number of requests for parallel transmission of control frames at one time to T; instantiating X2 data frame sending modules, wherein X2 and the number of data frames Y2 that each data frame sending module can parallelly output at one time satisfy X2×Y2≥M; instantiating M frame type selection sending modules; wherein T represents the total number of communication interfaces on the board, and M represents the maximum number of transmissions of the main network.

[0069] To better understand this embodiment and related embodiments, the following will be combined with... Figure 7 , Figure 8The instantiation strategy is explained in detail.

[0070] Figure 7 The diagram shown illustrates the structure of a device with a total of 4 communication interfaces and a maximum main network transmission quantity of 4, as described in one embodiment of this application. In this type of low-to-mid-range LED transmitting card, which uses an adaptive matching primary / backup network for LED display data transmission, the total number of onboard communication interfaces T is set to 4, and the maximum main network transmission quantity M is set to 4. Each network port outputs 600,000 pixels, meaning the total output capacity of this low-to-mid-range transmitting card is 2,400,000 (60 × 4) million pixels.

[0071] In this embodiment, the number of synchronous frames that the synchronous frame sending module can serially output at one time and the number of data frames that the data frame sending module can parallelly output at one time are both 4. According to the instantiation strategy, in the logical architecture of this low-end sending card, only one synchronous frame sending module and one data frame sending module need to be instantiated. The maximum number of requests that the control frame sending module output interface can send in parallel at one time is instantiated to 4, and the frame type selection sending module is instantiated to 4.

[0072] The synchronization frame sending module employs a sending mechanism that combines internal serial output with parallel output between modules. This mechanism aims to balance sending efficiency with FPGA logic resources. For example, when the FPGA chip has abundant logic resources, the number of synchronization frames output serially by each synchronization frame sending module can be set to 1. Under this setting, the sending of each synchronization frame is independent, achieving the highest sending efficiency but consuming the most logic resources. When the FPGA chip has limited logic resources, the number of synchronization frames output serially by each synchronization frame sending module can be set to 4 or more. Under this setting, each synchronization frame is treated as a group and sent serially through a single module. This results in lower sending efficiency but also reduces the consumption of FPGA logic resources.

[0073] It should be noted that, in this embodiment, each module in the data frame sending module can output 4 data frames in parallel at one time (i.e., 4 display channels), and the number is determined by the memory data bit width and the available bit width of M18K in the FPGA.

[0074] Figure 8 The diagram shown illustrates the structure of the device with a total of 16 communication interfaces and a maximum main network transmission quantity of 8, as described in one embodiment of this application. In this type of mid-to-high-end LED transmitting card, which uses a primary / backup network adaptive matching LED display data transmitting device, the total number of onboard communication interfaces T is set to 16, and the maximum main network transmission quantity M is set to 8. Each network port outputs 600,000 pixels, meaning the total effective output capacity of this mid-to-high-end transmitting card is 4,800,000 (60 × 8) million pixels.

[0075] At Figure 8 In the embodiment shown, according to the instantiation strategy, the device needs to instantiate 4 synchronization frame sending modules, 2 data frame sending modules, and instantiate the maximum number of requests that the output interface of the control frame sending module can send in parallel at one time to 16, and instantiate the frame type selection sending module to 8.

[0076] It should be noted that the advantage of the instantiation strategy described in this invention is that when the total number of communication interfaces and the number of main network interfaces on the device are adjusted, the device will automatically instantiate the minimum number of corresponding first-level modules to meet development and operation requirements, effectively avoiding the instantiation of too many first-level modules and saving FPGA logic resources.

[0077] like Figure 9 As shown, to further balance logic resources and control frame transmission efficiency, in some sub-implementations of this embodiment, the control frame transmission module adopts a concurrent polling mechanism, including:

[0078] Step S21: Send control frame requests in parallel to all frame type selection and sending modules.

[0079] Step S22: Wait for several clock cycles and record the tag of the frame type selection sending module that generates response signals during this period.

[0080] Step S23: End all control frame requests and send control frame data and data valid signal to the frame type selection and sending module corresponding to the tag.

[0081] Step S24: After the control frame data is sent, count the tags of the remaining frame type selection sending modules that have not generated response signals, and send control frame requests again to the frame type selection sending modules corresponding to these tags, then return to step S22.

[0082] If the statistical results show that all frame type selection sending modules have generated responses, then the gigabit ports on the board have successfully sent control frames, and step S25 is executed.

[0083] Step S25: End this control frame transmission. Wait for the next control frame transmission command from the user, then return to step S21.

[0084] It should be noted that by adopting this concurrent polling mechanism, the number of communications between the control frame sending module and the frame type selection sending module can be reduced, thereby improving the working efficiency of the control frame sending module and the utilization rate of FPGA logic resources.

[0085] like Figure 10 As shown, in some sub-implementations of this embodiment, the specific steps of the data frame sending module include:

[0086] Step S31: Decompose the image sending area set by the user into pixel reading requests.

[0087] Step S32: Calculate the mapping from pixel address to memory physical address.

[0088] Step S33: Wait for the pixel data from the memory to be returned, and store the returned data into the on-chip SRAM.

[0089] Step S34: The four display channels compete to read data from the SRAM and send it to the corresponding pixel read buffer.

[0090] Step S35: The four display channels read data from the corresponding pixel buffers, perform a series of operations such as Ethernet protocol encapsulation and CRC verification, and finally send the data to the display channels.

[0091] Figure 11 The diagram shows the structure of the secondary sub-modules within the data frame sending module.

[0092] Figure 12 The diagram illustrates the input / output relationship of the frame type selection and sending module. As shown, the module has five types of data inputs: "Main Channel Synchronization Frame Input Request," "Backup Channel Synchronization Frame Input Request," "Data Frame Input Request," "Main Channel Control Frame Input Request," and "Backup Channel Control Frame Input Request." Since the content of the display data frame transmitted on the main and backup network channels is identical and synchronized, there is only one input channel for the display data frame. This data will be automatically copied into two copies and output from both the main and backup network channels. Other synchronization frames and control frames will be distinguished based on the main and backup input channels. For example, data from the main synchronization frame input channel will only be output from the main network channel and will not be output to the backup network channel.

[0093] Figure 13 The diagram shown illustrates the structure of an LED sending card using the aforementioned device. Figure 13 As shown, the LED sending card includes: an audio output unit 8, an audio and video decoding unit 1, an FPGA programmable unit 3, an MCU embedded processing unit 2, a memory unit 4, an LED network output unit 5, a debugging control unit 6, and a relay unit 7. The audio and video decoding unit has an HDMI input interface 1 and an HDMI input interface 2, as well as an HDMI loop-out interface.

[0094] Specifically, the FPGA programmable unit obtains the preset number of transmissions from the main network from the debug control unit. The debug control unit can communicate with the upstream terminal. The typical implementation device of the upstream terminal is a computer. The specific form of the computer can be a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination of these devices. This embodiment does not limit this.

[0095] In addition, the FPGA programmable unit sends data frames, control frames, and synchronization frames to the LED network output unit, which then sends them to the downstream LED receiving card.

[0096] It should be noted that the LED display screen data transmission device with adaptive matching primary and backup networks provided in the above embodiments is only illustrated by the division of the above-described program modules when transmitting LED display screen data. In pre-application scenarios, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the LED display screen data transmission device with adaptive matching primary and backup networks provided in the above embodiments and the LED display screen data transmission method embodiments with adaptive matching primary and backup networks belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.

[0097] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented using computer program-related hardware. The aforementioned computer program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0098] In the embodiments provided in this application, the computer-readable and writable storage medium may include read-only memory, random access memory, EEPROM, CD-ROM or other optical disc storage devices, disk storage devices or other magnetic storage devices, flash memory, USB flash drive, portable hard drive, or any other medium capable of storing desired program code in the form of instructions or data structures and accessible by a computer. Additionally, any connection may be appropriately referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. However, it should be understood that computer-readable and writable storage media and data storage media do not include connections, carrier waves, signals, or other transient media, but are intended for non-transient, tangible storage media. The disks and optical discs used in the application include compact discs (CDs), laser discs, optical discs, digital multifunction discs (DVDs), floppy disks, and Blu-ray discs, where disks typically copy data magnetically, while optical discs use lasers to copy data optically.

[0099] The LED display screen data transmission method with adaptive matching of primary and backup networks provided in this embodiment of the invention can be implemented on the terminal side or the server side. For the hardware structure of the LED display screen data transmission terminal with adaptive matching of primary and backup networks, please refer to [link to relevant documentation]. Figure 14 This is a schematic diagram of an optional hardware structure of an LED display screen data transmission terminal 1400 with adaptive matching primary and backup networks provided in an embodiment of the present invention. The terminal 1400 can be a mobile phone, computer device, tablet device, personal digital processing device, factory back-end processing device, etc. The LED display screen data transmission terminal 1400 with adaptive matching primary and backup networks includes: at least one processor 1401, a memory 1402, at least one network interface 1404, and a user interface 1406. The various components in the device are coupled together through a bus system 1405. It is understood that the bus system 1405 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 1405 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 14 The general will label all buses as bus systems.

[0100] The user interface 1406 may include a monitor, keyboard, mouse, trackball, clicker, button, touchpad, or touch screen.

[0101] It is understood that memory 1402 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM) or programmable read-only memory (PROM), used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM) and synchronous static random access memory (SSRAM). The memories described in the embodiments of this invention are intended to include, but are not limited to, these and any other suitable categories of memory.

[0102] In this embodiment of the invention, the memory 1402 is used to store various types of data to support the operation of the LED display data transmission terminal 1400 with adaptive matching of primary and backup networks. Examples of this data include: any executable program for operation on the LED display data transmission terminal 1400 with adaptive matching of primary and backup networks, such as operating system 14021 and application program 14022; operating system 14021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and handling hardware-based tasks. Application program 14022 may include various applications, such as media player, browser, etc., for implementing various application services. The LED display data transmission method with adaptive matching of primary and backup networks provided in this embodiment of the invention can be included in application program 14022.

[0103] The methods disclosed in the above embodiments of the present invention can be applied to or implemented by processor 1401. Processor 1401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 1401 or by instructions in the form of software. The processor 1401 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 1401 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. General-purpose processor 1401 may be a microprocessor or any conventional processor, etc. The steps of the accessory optimization method provided in the embodiments of the present invention can be directly reflected as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in a memory. The processor reads the information in the memory and combines it with its hardware to complete the steps of the aforementioned method.

[0104] In an exemplary embodiment, the LED display data transmission terminal 1400 with adaptive matching between primary and backup networks can be used by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), or complex programmable logic devices (CPLDs) to perform the aforementioned method.

[0105] In summary, this application provides a method, apparatus, terminal, and medium for transmitting data from an LED display screen using adaptive matching of primary and backup networks. This invention offers a method to improve the data transmission efficiency of LED displays using adaptive matching of primary and backup networks, addressing the problems of inflexible primary / backup network channel allocation strategies in existing technologies, which lead to high memory bandwidth pressure and high FPGA logic resource consumption. Therefore, this application effectively overcomes the various shortcomings of existing technologies and has high industrial applicability.

[0106] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this application should still be covered by the claims of this application.

Claims

1. A method for transmitting data for an LED display screen using adaptive matching of primary and backup networks, characterized in that, include: Acquire multiple sets of input requests, each set of input requests including main channel synchronization frame input request, backup channel synchronization frame input request, main channel control frame input request, backup channel control frame input request and data frame input request; Select one input request from each group of input requests, and output the selected input request to the primary / backup network port that is mapped to the starting physical address of the input request through the primary network output channel or the backup network output channel, according to the primary / backup network matching rules. The primary / backup network matching rules include: The transmission quantity for the backup network is obtained based on the preset transmission quantity for the primary network; where: If the preset transmission quantity of the main network exceeds half of the total number of communication interfaces on the board, the difference between the total number of communication interfaces on the board and the preset transmission quantity of the main network shall be used as the transmission quantity of the backup network. Otherwise, the preset transmission quantity of the primary network will be used as the transmission quantity of the backup network; Based on the preset transmission quantity of the main network, the starting communication address of the backup network is obtained; where: If the preset transmission quantity of the main network exceeds half but is less than half of the total number of onboard communication interfaces, then the ( ) ( ) communication addresses are used as the starting communication addresses for the backup network; If the preset number of transmissions of the main network is the same as the total number of communication interfaces on the board, then all communication interfaces on the board are main network interfaces, and there is no need to configure backup network interfaces. If none of the above conditions are met, then the ( ) ( ) communication addresses are used as the starting communication addresses for the backup network; R represents the preset number of transmissions on the main network, and T represents the total number of communication interfaces on the board. Based on the preset transmission quantity of the primary network, the port number of the primary network, which serves as a backup to the starting address of the backup network, is obtained; where: If the preset transmission quantity of the main network exceeds half but is less than half of the total number of onboard communication interfaces, then the ( ) One primary network port number serves as the backup primary network port number for the initial communication address of the backup network; Otherwise, the first primary network port number is used as the primary network port number that serves as backup for the backup network, with the starting communication address being the backup address. R represents the preset number of transmissions on the main network, and T represents the total number of communication interfaces on the board.

2. A data transmission device for an LED display screen with adaptive matching between primary and backup networks, characterized in that, include: The synchronization frame sending module is used to send video frame switching commands; The control frame sending module is used to send system control commands; The data frame sending module is used to process and send data frames; The frame type selection and sending module is used to obtain the input requests from the synchronization frame sending module, control frame sending module, and data frame sending module, and forward the video frame switching command, system control command, and data frame to the second routing module through the main network output channel or the backup network output channel. The first routing module is used to route the video frame switching command and system control command to the frame type selection and sending module according to the primary and backup network matching rules. The second routing module is used to route the output of the frame type selection and sending module to the primary / backup network port that is mapped to the starting physical address of the input request, according to the primary / backup network matching rules. The output of the frame type selection and sending module includes video frame switching instructions, system control commands, and data frames. The synchronization frame sending module and the control frame sending module are connected to the first routing module, and the data frame sending module, the first routing module, and the second routing module are connected to the frame type selection sending module. The primary / backup network matching rules include: The transmission quantity for the backup network is obtained based on the preset transmission quantity for the primary network; where: If the preset transmission quantity of the main network exceeds half of the total number of communication interfaces on the board, the difference between the total number of communication interfaces on the board and the preset transmission quantity of the main network shall be used as the transmission quantity of the backup network. Otherwise, the preset transmission quantity of the primary network will be used as the transmission quantity of the backup network; Based on the preset transmission quantity of the main network, the starting communication address of the backup network is obtained; where: If the preset transmission quantity of the main network exceeds half but is less than half of the total number of onboard communication interfaces, then the ( ) ( ) communication addresses are used as the starting communication addresses for the backup network; If the preset number of transmissions of the main network is the same as the total number of communication interfaces on the board, then all communication interfaces on the board are main network interfaces, and there is no need to configure backup network interfaces. If none of the above conditions are met, then the ( ) ( ) communication addresses are used as the starting communication addresses for the backup network; R represents the preset number of transmissions on the main network, and T represents the total number of communication interfaces on the board. Based on the preset transmission quantity of the primary network, the port number of the primary network, which serves as a backup to the starting address of the backup network, is obtained; where: If the preset transmission quantity of the main network exceeds half but is less than half of the total number of onboard communication interfaces, then the ( ) One primary network port number serves as the backup primary network port number for the initial communication address of the backup network; Otherwise, the first primary network port number is used as the primary network port number that serves as backup for the backup network, with the starting communication address being the backup address. R represents the preset number of transmissions on the main network, and T represents the total number of communication interfaces on the board.

3. The LED display screen data transmission device with adaptive matching of primary and backup networks according to claim 2, characterized in that, The device includes an onboard unit with multiple communication interfaces for LED data transmission. The number of communication interfaces and the maximum number of main network interfaces among the communication interfaces can be adaptively changed according to the pixel carrying capacity of the LED data transmission card, allowing for custom expansion or trimming.

4. The LED display screen data transmission device with adaptive matching of primary and backup networks according to claim 3, characterized in that, After the number of communication interfaces and the maximum number of main network interfaces among the communication interfaces are changed, the device adjusts the instantiation strategy for the synchronization frame sending module, control frame sending module, data frame sending module and frame type selection sending module.

5. The LED display screen data transmission device with adaptive matching of primary and backup networks according to claim 4, characterized in that, The instantiation strategy includes: instantiation One synchronization frame sending module, among which... The number of synchronization frames that can be serially output at one time by each synchronization frame sending module satisfy ; Instantiate the maximum number of requests that can be sent in parallel at one time to T; instantiation A data frame sending module, wherein... The number of data frames that each data frame sending module can output in parallel at one time. satisfy ; Instantiate M frame type selection and transmission modules; Where T represents the total number of communication interfaces on the board, and M represents the maximum number of main network interfaces among the communication interfaces.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of claim 1.

7. An electronic terminal, characterized in that, include: Processor and memory; The memory is used to store computer programs; The processor is configured to execute a computer program stored in the memory to cause the terminal to perform the method as described in claim 1.

Citation Information

Patent Citations

  • Communication control method and system based on data type

    CN107396416A

  • Edge computing execution, management and cooperation method, device and system and storage medium

    CN111988352A