Detection Method, Device and Lighting Device of Data Distribution Card
By loading the arbitration program when the data allocation card is powered on and automatically loading the toughware program according to the installation location, the problem of manual matching of hardware and toughware in the prior art is solved, and automated loading is achieved, hardware errors and board damage are avoided, and efficiency and security are improved.
Patent Information
- Application Number
- CN202111663253.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2041-12-30
AI Technical Summary
In the prior art, since different products run different toughness programs, it is necessary to manually find the matching hardware installation location and the matching toughness program. Once an error occurs, the board is easily damaged, which is inefficient and has great safety risks.
When the data allocation card is powered on, the FPGA loads the arbitration program, determines the installation position based on the pin voltage signal output by the video input card, and loads the corresponding toughness program according to the installation position, so as to automatically different load different toughness programs.
There is no need for manual identification and matching, and it automatically loads different toughness programs, effectively avoiding hardware application errors and board damage, improving efficiency and eliminating safety hazards.
Smart Images

Figure CN114328057B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hardware detection, and in particular, to a detection method, device and lighting device for a data distribution card. Background Art
[0002] Under normal circumstances, due to different performance characteristics of different products, there are generally different hardware designs. Further, in order to reduce the types of hardware designs, hardware compatibility designs for different products are adopted. However, even when the hardware is the same, different products still run different firmware, resulting in the need for manual download and differentiation. For example, the processing chip in the data distribution card is a Field Programmable Gate Array (FPGA for short). In a normal product system, this card may be installed on the left or the right. Then when it is installed on the left or the right, the direction of the data flow is different, and there are also differences in the internal processing logic. That is, when on the left, the right side of the data distribution card is the data flow input, and the left side is the data flow output. Conversely, when on the right, the right side of the data distribution card is the data flow output, and the left side is the data flow input. In such a conventional situation, the factory will download different firmware programs according to the installation position of the distribution card. Once the firmware program is installed incorrectly, it may damage the distribution card itself. Therefore, using the above method requires finding and matching the hardware installation position and manually matching the firmware. Once an error occurs, it will damage the board, and it has low efficiency and great potential safety hazards.
[0003] In view of the above problems, no effective solution has been proposed yet. Summary of the Invention
[0004] Embodiments of the present invention provide a detection method, device and lighting device for a data distribution card, so as to at least solve the technical problem in the prior art that different products run different firmware programs, and it is necessary to manually find and match the hardware installation position and the matching firmware program, and once an error occurs, it is easy to damage the board.
[0005] According to one aspect of the embodiments of the present invention, a detection method for a data distribution card is provided. Each of the data distribution cards includes a Field Programmable Gate Array (FPGA) and a storage area. The storage area pre-stores an arbitration program and a firmware program. The storage position of the firmware program corresponds one-to-one with the installation position of the data distribution card. The method includes: when the data distribution card is powered on, the FPGA loads the arbitration program to determine the installation position of the data distribution card; according to the installation position of the data distribution card, load the corresponding firmware program of the data distribution card.
[0006] Optionally, before the data distribution card is powered on, the method further includes: dividing the storage area into a plurality of program storage areas; respectively storing the arbitration program and the firmware program into the corresponding program storage areas.
[0007] Optionally, dividing the storage area into a plurality of program storage areas includes: obtaining the number of the arbitration programs and the number of the firmware programs, where the number of the firmware programs is determined according to the installation position of the data distribution card; determining the number of partitions of the storage area according to the number of the arbitration programs and the number of the firmware programs; and dividing the storage area according to the number of partitions to obtain a plurality of the program storage areas.
[0008] Optionally, when the FPGA loads the arbitration program to determine the installation position of the data distribution card, it includes: the arbitration program determines the installation position of the data distribution card according to the pin voltage signal output by the video input card.
[0009] Optionally, the arbitration program determines the installation position of the data distribution card according to the pin voltage signal output by the video input card, including: when the pin voltage signal output by the video input card is that the first pin outputs a high level and the second pin outputs a low level, determining that the installation position of the data distribution card is the first installation position; when the pin voltage signal output by the video input card is that the first pin outputs a low level and the second pin outputs a high level, determining that the installation position of the data distribution card is the second installation position.
[0010] According to another aspect of the embodiments of the present invention, there is also provided a detection device for a data distribution card. Each data distribution card includes a field programmable gate array (FPGA) and a storage area. The storage area pre-stores an arbitration program and a firmware program. The storage position of the firmware program corresponds one-to-one with the installation position of the data distribution card. The device includes: a first loading module, configured to, when the data distribution card is powered on, the FPGA loads the arbitration program to determine the installation position of the data distribution card; and a second loading module, configured to load the firmware program corresponding to the data distribution card according to the installation position of the data distribution card.
[0011] Optionally, the device further includes: a partitioning module, configured to divide the storage area into a plurality of program storage areas before the data distribution card is powered on; and a storage module, configured to respectively store the arbitration program and the firmware program into the corresponding program storage areas.
[0012] According to another aspect of the embodiments of the present invention, a lighting device is further provided. The lighting device at least includes a data distribution card, a power supply module, a video input card, and a lamp board that are respectively connected to the data distribution card. Among them, the data distribution card is used to execute the detection method of the data distribution card described in any one of the above.
[0013] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided. The computer-readable storage medium includes a stored program. Among them, when the program runs, it controls the device where the computer-readable storage medium is located to execute the detection method of the data distribution card described in any one of the above.
[0014] According to another aspect of the embodiments of the present invention, a processor is further provided. The processor is used to run a program. Among them, when the program runs, it executes the detection method of the data distribution card described in any one of the above.
[0015] In the embodiments of the present invention, each data distribution card includes a field programmable gate array (FPGA) and a storage area. The storage area pre-stores an arbitration program and a firmware program. The storage location of the firmware program corresponds one-to-one with the installation location of the data distribution card. The method includes: when the data distribution card is powered on, the FPGA loads the arbitration program to determine the installation location of the data distribution card; according to the installation location of the data distribution card, the firmware program corresponding to the data distribution card is loaded. By preferentially loading the arbitration program, the installation location of the data distribution card can be arbitrated, and the firmware program corresponding to the data distribution card is loaded according to the installation location of the data distribution card, achieving the purpose of automatically distinguishing and loading different firmware programs without manual screening and matching, thereby realizing the technical effects of effectively avoiding hardware application errors and board damage, improving efficiency, and eliminating potential hazards, and further solving the technical problem in the prior art that different firmware programs need to be run due to different products, and it is necessary to manually find and match the hardware installation location and the matching firmware program, and once an error occurs, the board is easily damaged. Description of the Drawings
[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:
[0017] Figure 1 is a flowchart of the detection method of the data distribution card according to the embodiments of the present invention;
[0018] Figure 2 is a schematic diagram of the detection method of the data distribution card according to an optional embodiment of the present invention;
[0019] Figure 3Schematic diagram of the program storage area of the data distribution card according to an alternative embodiment of the present invention;
[0020] Figure 4 Schematic diagram of the detection device of the data distribution card according to an embodiment of the present invention;
[0021] Figure 5 Schematic diagram of the light-emitting device according to an embodiment of the present invention. Detailed implementation manners
[0022] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0024] Embodiment 1
[0025] According to an embodiment of the present invention, an embodiment of a detection method for a data distribution card is provided. Each data distribution card includes a field programmable gate array (FPGA) and a storage area. The storage area pre-stores an arbitration program and a firmware program, and the storage location of the firmware program corresponds one-to-one with the installation location of the data distribution card. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from that here.
[0026] Figure 1 Flowchart of the detection method for the data distribution card according to an embodiment of the present invention, as Figure 1 shown, the method includes the following steps:
[0027] Step S102: When the data distribution card is powered on, the FPGA loads the arbitration program to determine the installation location of the data distribution card;
[0028] Step S104: According to the installation location of the data distribution card, load the corresponding firmware program of the data distribution card.
[0029] Through the above steps, the arbitration program can be preferentially loaded to arbitrate the installation location of the data distribution card, and the corresponding firmware program of the data distribution card can be loaded according to the installation location of the data distribution card, achieving the purpose of automatically differentiating and loading different firmware programs without manual screening and matching, thus realizing the technical effects of effectively avoiding hardware application errors and board damage, improving efficiency, and eliminating potential hazards, and further solving the technical problem in the prior art that different firmware programs need to be manually searched and matched for the hardware installation location due to different products, and it is easy to damage the board once an error occurs.
[0030] In an alternative embodiment, before the data distribution card is powered on, the above method further includes: dividing the storage area into multiple program storage areas; respectively storing the arbitration program and the firmware program into the corresponding program storage areas.
[0031] The above storage area can be divided into multiple program storage areas, and an arbitration program and one or more firmware programs can be stored into the corresponding program storage areas. For example, the first program storage area is used to store an arbitration program, and the second to the Nth program storage areas are used to store one or more firmware programs respectively. It should be noted that the value of N above is a non-zero positive integer. Through the above embodiment, the storage location of the firmware program can also be made to correspond one-to-one with the installation location of the data distribution card.
[0032] In an alternative embodiment, dividing the storage area into multiple program storage areas includes: obtaining the number of arbitration programs and the number of firmware programs, where the number of firmware programs is determined according to the installation location of the data distribution card; determining the number of partitions of the storage area according to the number of arbitration programs and the number of firmware programs; dividing the storage area according to the number of partitions to obtain multiple program storage areas.
[0033] In the specific implementation process, the number of the above arbitration programs is one, and the number of the above firmware programs can be one or more, without any limitation in the specific implementation. Additionally, the number of firmware programs can be determined according to the installation location of the data distribution card. For example, the installation locations of the data distribution cards can be counted, and if the installation locations of the data distribution cards do not repeat, then the number of firmware programs can be calculated; further, by adding the number of arbitration programs and the number of firmware programs, the number of partitions of the storage area can be calculated; then, the storage area is divided using the number of partitions to obtain multiple program storage areas, that is, the storage area is divided into as many program storage areas as the number of partitions.
[0034] In an alternative implementation, the FPGA loads the arbitration program to determine the installation location of the data distribution card, including: the arbitration program determines the installation location of the data distribution card according to the pin voltage signal output by the video input card. Through the above implementation, the installation location of the data distribution card can be accurately determined using the pin voltage signal output by the video input card.
[0035] Optionally, when the pin voltage signal output by the video input card is that the first pin outputs a high level and the second pin outputs a low level, the installation location of the data distribution card is determined to be the first installation location; when the pin voltage signal output by the video input card is that the first pin outputs a low level and the second pin outputs a high level, the installation location of the data distribution card is determined to be the second installation location.
[0036] It should be noted that the number of pins of the video input card can be adjusted according to the number of data distribution cards, so as to achieve the determination of the installation locations of more data distribution cards.
[0037] A detailed description of an alternative implementation of the present invention will be given below.
[0038] The present invention adds an arbitration firmware program to the program storage area of the data distribution card, and this arbitration program can perform arbitration according to the installation location of the data distribution card to distinguish different firmware programs loaded by the data distribution card.
[0039] Figure 2 is a schematic diagram of the detection method of the data distribution card according to an alternative embodiment of the present invention. As Figure 2 shown, when the data distribution card is powered on, the FPGA loads the arbitration program, and the arbitration program will judge the installation location of the data distribution card according to the high and low levels of pins 1 and 2 output by the video input card. For example, when 1 is at a high level and 2 is at a low level, it is installed on the left side, and when 1 is at a low level and 2 is at a high level, it is installed on the right side. The arbitration program will perform secondary program startup and loading according to the installation location of the data distribution card, and load the firmware program on the corresponding side.
[0040] Figure 3It is a schematic diagram of the program storage area of the data distribution card according to an alternative embodiment of the present invention. As Figure 3 shown, for each data distribution card, one that can be divided into three program storage areas can be adopted. When the data distribution card is produced, three programs are downloaded and stored. Each time it is powered on, the data distribution card preferentially loads the arbitration program. After arbitration, secondary loading is started, and the left program (corresponding to the above arbitration program) or the right program (corresponding to the above arbitration program) is loaded according to the installation position of the data distribution card, thus eliminating the need for manual identification and matching.
[0041] Embodiment 2
[0042] According to another aspect of the embodiments of the present invention, a detection device for a data distribution card is further provided. Each data distribution card includes a field programmable gate array (FPGA) and a storage area. The storage area pre-stores an arbitration program and a firmware program. The storage location of the firmware program corresponds one-to-one with the installation position of the data distribution card. Figure 4 It is a schematic diagram of the detection device for the data distribution card according to the embodiments of the present invention. As Figure 4 shown, the detection device for the data distribution card includes: a first loading module 42 and a second loading module 44. The following provides a detailed description of the detection device for the data distribution card.
[0043] The first loading module 42 is used to load the arbitration program by the FPGA when the data distribution card is powered on to determine the installation position of the data distribution card. The second loading module 44 is connected to the first loading module 42 and is used to load the firmware program corresponding to the data distribution card according to the installation position of the data distribution card.
[0044] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following ways: the above-mentioned various modules can be located in the same processor; and / or, the above-mentioned various modules are located in different processors in any combination.
[0045] In the above embodiment, the detection device for the data distribution card can arbitrate the installation position of the data distribution card by preferentially loading the arbitration program and load the firmware program corresponding to the data distribution card according to the installation position of the data distribution card, achieving the purpose of automatically differentiating and loading different firmware programs without manual identification and matching, thus realizing the technical effects of effectively avoiding hardware application errors and board damage, improving efficiency, and eliminating potential hazards. Furthermore, it solves the technical problem in the prior art that since different products run different firmware programs, it is necessary to manually search for and match the hardware installation position and the matching firmware program, and once an error occurs, it is easy to damage the board.
[0046] It should be noted here that the above first loading module 42 and second loading module 44 correspond to steps S102 to S104 in Embodiment 1. The examples and application scenarios implemented by the above modules and the corresponding steps are the same, but are not limited to the content disclosed in the above Embodiment 1.
[0047] Optionally, the above device further includes: a partitioning module, configured to partition the storage area into multiple program storage areas before the data distribution card is powered on; a storage module, configured to store the arbitration program and the firmware program into the corresponding program storage areas respectively.
[0048] Optionally, the above partitioning module includes: an obtaining unit, configured to obtain the number of arbitration programs and the number of firmware programs, where the number of firmware programs is determined according to the installation position of the data distribution card; a determining unit, configured to determine the number of partitions of the storage area according to the number of arbitration programs and the number of firmware programs; and a obtaining unit, configured to partition the storage area according to the number of partitions to obtain multiple program storage areas.
[0049] Optionally, the above first loading module 42 includes: a determining module, configured to determine the installation position of the data distribution card according to the pin voltage signal output by the video input card for the arbitration program.
[0050] Optionally, the above determining module includes: a first determining unit, configured to determine that the installation position of the data distribution card is the first installation position when the pin voltage signal output by the video input card is that the first pin outputs a high level and the second pin outputs a low level; a second determining unit, configured to determine that the installation position of the data distribution card is the second installation position when the pin voltage signal output by the video input card is that the first pin outputs a low level and the second pin outputs a high level.
[0051] Embodiment 3
[0052] According to another aspect of the embodiments of the present invention, a lighting device is further provided. Figure 5 is a schematic diagram of the lighting device according to the embodiments of the present invention. As Figure 5 shown, the lighting device at least includes a data distribution card, a power module, a video input card, and a lamp board respectively connected to the data distribution card, where the above data distribution card is configured to execute the detection method of the data distribution card in any one of the above.
[0053] In the above embodiments, the lighting device can prioritize the loading of the arbitration program through the data distribution card to arbitrate the installation position of the data distribution card, and load the firmware program corresponding to the data distribution card according to the installation position of the data distribution card, achieving the purpose of automatically differentiating and loading different firmware programs without manual identification and matching, thereby realizing the technical effects of effectively avoiding hardware application errors and board damage, improving efficiency, and eliminating potential hazards, and further solving the technical problem in the prior art that since different products run different firmware programs, it is necessary to manually search for and match the hardware installation position and the matching firmware program, and once an error occurs, it is easy to damage the board.
[0054] Embodiment 4
[0055] According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium. The computer-readable storage medium includes a stored program, wherein when the program runs, it controls the device where the computer-readable storage medium is located to execute the detection method of the data distribution card in any one of the above.
[0056] Optionally, in this embodiment, the above computer-readable storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network and / or in any one of the mobile terminals in the mobile terminal group. The above computer-readable storage medium includes a stored program.
[0057] Optionally, when the program runs, it controls the device where the computer-readable storage medium is located to execute the following functions: when the data distribution card is powered on, the FPGA loads the arbitration program to determine the installation position of the data distribution card; according to the installation position of the data distribution card, load the firmware program corresponding to the data distribution card.
[0058] Optionally, before the data distribution card is powered on, the above method further includes: dividing the storage area into multiple program storage areas; respectively storing the arbitration program and the firmware program into the corresponding program storage areas.
[0059] Optionally, dividing the storage area into multiple program storage areas includes: obtaining the number of arbitration programs and the number of firmware programs, wherein the number of firmware programs is determined according to the installation position of the data distribution card; determining the number of partitions of the storage area according to the number of arbitration programs and the number of firmware programs; dividing the storage area according to the number of partitions to obtain multiple program storage areas.
[0060] Optionally, the FPGA loads the arbitration program to determine the installation position of the data distribution card, including: the arbitration program determines the installation position of the data distribution card according to the pin voltage signal output by the video input card.
[0061] Optionally, the arbitration program determines the installation position of the data distribution card according to the pin voltage signal output by the video input card, including: when the pin voltage signal output by the video input card is that the first pin outputs a high level and the second pin outputs a low level, determining that the installation position of the data distribution card is the first installation position; when the pin voltage signal output by the video input card is that the first pin outputs a low level and the second pin outputs a high level, determining that the installation position of the data distribution card is the second installation position.
[0062] Embodiment 5
[0063] According to another aspect of the embodiments of the present invention, a processor is further provided, and the processor is used to run a program. When the program runs, it executes the detection method of the data distribution card in any one of the above.
[0064] The embodiments of the present invention provide a device, which includes a processor, a memory, and a program stored on the memory and executable on the processor. When the processor executes the program, the following steps are implemented: when the data distribution card is powered on, the FPGA loads the arbitration program to determine the installation position of the data distribution card; according to the installation position of the data distribution card, the corresponding firmware program of the data distribution card is loaded.
[0065] Optionally, before the data distribution card is powered on, the above method further includes: dividing the storage area into multiple program storage areas; respectively storing the arbitration program and the firmware program into the corresponding program storage areas.
[0066] Optionally, dividing the storage area into multiple program storage areas includes: obtaining the number of arbitration programs and the number of firmware programs, where the number of firmware programs is determined according to the installation position of the data distribution card; determining the number of partitions of the storage area according to the number of arbitration programs and the number of firmware programs; dividing the storage area according to the number of partitions to obtain multiple program storage areas.
[0067] Optionally, the FPGA loads the arbitration program to determine the installation position of the data distribution card, including: the arbitration program determines the installation position of the data distribution card according to the pin voltage signal output by the video input card.
[0068] Optionally, the arbitration program determines the installation position of the data distribution card according to the pin voltage signal output by the video input card, including: when the pin voltage signal output by the video input card is that the first pin outputs a high level and the second pin outputs a low level, determining that the installation position of the data distribution card is the first installation position; when the pin voltage signal output by the video input card is that the first pin outputs a low level and the second pin outputs a high level, determining that the installation position of the data distribution card is the second installation position.
[0069] The present invention also provides a computer program product which, when executed on a data processing device, is adapted to execute a program initialized with the following method steps: when the data distribution card is powered on, the FPGA loads an arbitration program to determine the installation location of the data distribution card; and according to the installation location of the data distribution card, loads the corresponding firmware program of the data distribution card.
[0070] Optionally, before the data distribution card is powered on, the above method further includes: dividing the storage area into multiple program storage areas; and respectively storing the arbitration program and the firmware program into the corresponding program storage areas.
[0071] Optionally, dividing the storage area into multiple program storage areas includes: obtaining the number of arbitration programs and the number of firmware programs, where the number of firmware programs is determined according to the installation location of the data distribution card; determining the number of partitions of the storage area according to the number of arbitration programs and the number of firmware programs; and dividing the storage area according to the number of partitions to obtain multiple program storage areas.
[0072] Optionally, the FPGA loads the arbitration program to determine the installation location of the data distribution card, including: the arbitration program determines the installation location of the data distribution card according to the pin voltage signal output by the video input card.
[0073] Optionally, the arbitration program determines the installation location of the data distribution card according to the pin voltage signal output by the video input card, including: when the pin voltage signal output by the video input card is that the first pin outputs a high level and the second pin outputs a low level, determining that the installation location of the data distribution card is the first installation location; and when the pin voltage signal output by the video input card is that the first pin outputs a low level and the second pin outputs a high level, determining that the installation location of the data distribution card is the second installation location.
[0074] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0075] In the above embodiments of the present invention, the descriptions of the respective embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0076] In several embodiments provided by the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units can be a logical function division, and in actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the units or modules can be in an electrical or other form.
[0077] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed over multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0078] In addition, each functional unit in various embodiments of the present invention may be integrated in a processing unit, may exist separately as individual physical units, or two or more units may be integrated in one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0079] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs, etc., which can store program codes.
[0080] The above description is only a preferred embodiment of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.
Claims
1. A detection method for a data distribution card, characterized in that, Each of the data distribution cards includes a field programmable gate array (FPGA) and a storage area, where an arbitration program and a firmware program are pre-stored. The storage location of the firmware program corresponds one-to-one with the installation location of the data distribution card. The method includes: When the data distribution card is powered on, the FPGA loads the arbitration program to determine the installation location of the data distribution card; According to the installation location of the data distribution card, load the corresponding firmware program of the data distribution card. The FPGA loading the arbitration program to determine the installation location of the data distribution card includes: The arbitration program determines the installation location of the data distribution card according to the pin voltage signal output by the video input card.
2. The method according to claim 1, characterized in that, Before the data distribution card is powered on, the method further includes: Dividing the storage area into multiple program storage areas; Storing the arbitration program and the firmware program into the corresponding program storage areas respectively.
3. The method according to claim 2, characterized in that, Dividing the storage area into multiple program storage areas includes: Obtaining the number of the arbitration programs and the number of the firmware programs, where the number of the firmware programs is determined according to the installation location of the data distribution card; Determining the number of partitions of the storage area according to the number of the arbitration programs and the number of the firmware programs; Dividing the storage area according to the number of partitions to obtain multiple program storage areas.
4. The method according to any one of claims 1 to 3, characterized in that, The arbitration program determines the installation location of the data distribution card according to the pin voltage signal output by the video input card, including: When the pin voltage signal output by the video input card is that the first pin outputs a high level and the second pin outputs a low level, determining that the installation location of the data distribution card is the first installation location; When the pin voltage signal output by the video input card is that the first pin outputs a low level and the second pin outputs a high level, determining that the installation location of the data distribution card is the second installation location.
5. A detection device for a data distribution card, characterized in that, Each of the data distribution cards includes a field programmable gate array (FPGA) and a storage area, where an arbitration program and a firmware program are pre-stored. The storage location of the firmware program corresponds one-to-one with the installation location of the data distribution card. The device includes: A first loading module, configured to, when the data distribution card is powered on, the FPGA loads the arbitration program to determine the installation location of the data distribution card; A second loading module, configured to load the corresponding firmware program of the data distribution card according to the installation location of the data distribution card; For the FPGA to load the arbitration program, the first loading module includes: a determining module, configured to the arbitration program determines the installation location of the data distribution card according to the pin voltage signal output by the video input card.
6. The device according to claim 5, characterized in that, The device further includes: A dividing module, configured to divide the storage area into multiple program storage areas before the data distribution card is powered on; A storing module, configured to store the arbitration program and the firmware program into the corresponding program storage areas respectively.
7. A light-emitting device, characterized in that, The light-emitting device at least includes a data distribution card, a power module, a video input card, and a lamp board that are respectively connected to the data distribution card. Among them, the data distribution card is used to execute the detection method of the data distribution card according to any one of claims 1 to 4.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program. Among them, when the program runs, it controls the device where the computer-readable storage medium is located to execute the detection method of the data distribution card according to any one of claims 1 to 4.
9. A processor, characterized in that, The processor is used to run a program. Among them, when the program runs, it executes the detection method of the data distribution card according to any one of claims 1 to 4.
Citation Information
Patent Citations
Transmission pneumatic component detection system
CN110672317A
FPGA configuration method and device and FPGA device
CN111061677A