Automatic adaptation method and upper computer

Through the automatic adaptation method, the upper computer is connected to the chip in the LED control system to automatically determine the boundary range of the physical chip, solving the problem of low manual debugging efficiency and improving the debugging efficiency of the LED control system.

CN119065900APending Publication Date: 2024-12-03XIAN QINGSONG PHOTOELECTRIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310612988.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The manual debugging of PHY chips in LED control systems is inefficient, and multiple parameters need to be debugged in cooperation with FPGA chips and control systems. It is difficult to determine the boundary range, resulting in inefficient debugging process.

Method used

The automatic adaptation method is adopted to connect the upper computer to the control chip, physical chip and FPGA chip to obtain the information of each chip, conduct testing and boundary range adjustments, and automatically determine the boundary range of the physical chip, eliminating the manual debugging process.

Benefits of technology

It improves the debugging efficiency of PHY chips, automatically obtains the boundary range of the physical chip, reduces the inefficient process of manual debugging, and improves the debugging efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065900A_ABST
    Figure CN119065900A_ABST
Patent Text Reader

Abstract

The invention provides an automatic adaptation method and an upper computer. The automatic adaptation method comprises the steps that first information of a first FPGA chip and second information corresponding to multiple physical chips are acquired; testing the corresponding physical chip based on the second information; transmitting a preset picture to a display screen through the physical chip in response to the fact that the physical chip passes the test; obtaining a first boundary range corresponding to the first information based on the first information and the second information in response to matching of the image displayed by the display screen and the preset image; and obtaining a first boundary range corresponding to the first information of each physical chip to obtain a test report. Wherein the first boundary range corresponding to the first information of each physical chip can be automatically obtained based on the first information of the first FPGA chip and the second information corresponding to the plurality of physical chips, so that a repeated and low-efficiency manual debugging process is omitted, and the debugging efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of numerical processing, and in particular to an automatic adaptation method and a host computer. Background Art

[0002] Typically, in an LED (Light-emitting Diode) control system, a PHY chip (Port Physical Layer, a chip for an external signal interface) needs to be manually debugged before use. During the manual debugging process, the FPGA chip (Field Programmable Gate Array) chip and the control chip of the control system are debugged in coordination to determine the boundary ranges of multiple parameters, which are then solidified into the FPGA chip program. The manual debugging process of the above-mentioned PHY chip is inefficient. Summary of the invention

[0003] In view of this, in order to solve the above technical problems, the present application provides an automatic adaptation method, which is applied to a host computer, wherein the host computer is respectively connected to a control chip, multiple physical chips and a first FPGA chip, and the control chip is respectively connected to each of the physical chips and the first FPGA chip. The automatic adaptation method comprises:

[0004] Acquire first information of the first FPGA chip and second information corresponding to the plurality of physical chips;

[0005] Testing the corresponding physical chip based on the second information;

[0006] In response to the physical chip passing the test, transmitting a preset picture to a display screen via the physical chip;

[0007] In response to the picture displayed on the display screen matching the preset picture, obtaining a first boundary range corresponding to the first information based on the first information and the second information;

[0008] A first boundary range corresponding to the first information of each physical chip is obtained to obtain a test report.

[0009] The first information of the first FPGA chip includes a register address of the first FPGA chip and a value range of a first value, and the step of obtaining a first boundary range corresponding to the first information based on the first information and the second information includes:

[0010] Reading version information from the first FPGA chip through the host computer;

[0011] In response to the host computer reading the version information, adjusting the first value multiple times;

[0012] Based on the multiple adjusted first numerical values, a first boundary range of the first FPGA chip is obtained, and the first boundary range is within the value range.

[0013] The second information includes second values ​​corresponding to the plurality of physical chips, and the step of obtaining a boundary range corresponding to the second information based on the first information and the second information includes:

[0014] In response to the host computer failing to read the version information, adjusting the second value through the control chip;

[0015] Return to the step of reading version information from the first FPGA chip through the host computer.

[0016] The second information includes third values ​​corresponding to the plurality of physical chips, and the step of obtaining a boundary range corresponding to the second information based on the first information and the second information includes:

[0017] The second value is adjusted by the control chip;

[0018] In response to the host computer failing to read the version information, adjusting the third value through the control chip;

[0019] Return to the step of reading version information from the first FPGA chip through the host computer.

[0020] Wherein, the automatic adaptation method further includes:

[0021] Acquire third information corresponding to each of the physical chips, where the third information includes address information of the physical chip;

[0022] Based on the first boundary range and the address information, a value range of each of the physical chips is obtained.

[0023] Wherein, the automatic adaptation method further includes:

[0024] Providing a second FPGA chip and a third FPGA chip, wherein parameters of the second FPGA chip and parameters of the third FPGA chip are the same as parameters of the first FPGA chip;

[0025] Repeating the automatic adaptation method on the second FPGA chip to obtain a second boundary range corresponding to the second FPGA chip;

[0026] Repeating the automatic adaptation method on the third FPGA chip to obtain a third boundary range corresponding to the third FPGA chip;

[0027] An intersection of the first boundary range, the second boundary range, and the third boundary range is obtained to obtain a boundary range.

[0028] The second information includes identification numbers corresponding to the plurality of physical chips, and the step of testing the corresponding physical chips based on the second information includes:

[0029] Reading the identification number through the control chip and matching the identification number with a preset value;

[0030] In response to the identification number successfully matching the preset value, it is determined that the physical chip test has passed.

[0031] The step of transmitting the preset picture to the display screen through the physical chip includes:

[0032] Sending the preset picture to the display screen through the control chip, so that the display screen displays the picture;

[0033] Matching the pixel values ​​of the picture with the pixel values ​​of the preset picture;

[0034] In response to the pixel values ​​of the picture successfully matching the pixel values ​​of the preset picture, it is determined that the picture displayed on the display screen matches the preset picture.

[0035] In order to solve the above technical problems, the present application also provides a host computer, including a memory and a processor, the processor is used to execute program instructions stored in the memory to implement the above automatic adaptation method.

[0036] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, which stores program instructions, and the above adaptation method is implemented when the program instructions are executed by a processor.

[0037] The present application provides an automatic adaptation method, which is applied to a host computer, wherein the host computer is respectively connected to a control chip, a plurality of physical chips and a first FPGA chip, wherein the control chip is respectively connected to each of the physical chips and the first FPGA chip, and the automatic adaptation method comprises: obtaining the first information of the first FPGA chip and the second information corresponding to the plurality of physical chips; testing the corresponding physical chip based on the second information; in response to the physical chip passing the test, transmitting a preset screen to a display screen through the physical chip; in response to the screen displayed on the display screen matching the preset screen, obtaining a first boundary range corresponding to the first information based on the first information and the second information; obtaining a first boundary range corresponding to the first information of each physical chip to obtain a test report. Among them, the automatic adaptation method applied to the host computer can automatically obtain the first boundary range corresponding to the first information of each physical chip based on the first information of the first FPGA chip and the second information corresponding to the plurality of physical chips, thereby eliminating the repeated and inefficient manual debugging process and improving the debugging efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The present application will be further described below in conjunction with the accompanying drawings and implementation methods, in which:

[0039] Figure 1 It is a schematic diagram of the framework of a first embodiment of an application system corresponding to an automatic adaptation method provided by the present application;

[0040] Figure 2 It is a flowchart diagram of a first embodiment of an automatic adaptation method provided by the present application;

[0041] Figure 3 It is a flowchart diagram of a second embodiment of an automatic adaptation method provided by the present application;

[0042] Figure 4 It is a flowchart diagram of a third embodiment of an automatic adaptation method provided by the present application;

[0043] Figure 5 It is a flowchart diagram of a fourth embodiment of an automatic adaptation method provided by the present application;

[0044] Figure 6 It is a flowchart diagram of a fifth embodiment of an automatic adaptation method provided by the present application;

[0045] Figure 7 It is a flowchart diagram of a sixth embodiment of an automatic adaptation method provided by the present application;

[0046] Figure 8 It is a schematic diagram of the framework of a first embodiment of a host computer provided by the present application;

[0047] Fig. 9 It is a schematic diagram of the framework of a first embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be appreciated that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the art without making creative work are within the scope of protection of the present application.

[0049] The terms "first", "second", and "third" in this application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", and "third" can expressly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the embodiments of this application, all directional indications (such as up, down, left, right, front, back...) are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). When the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products, or devices.

[0050] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0051] In order to improve the efficiency of PHY chip debugging in an LED control system, the present application provides an automatic debugging method, which is applied to a host computer, wherein the host computer is respectively connected to a control chip, multiple physical chips and a first FPGA chip, and the control chip is respectively connected to each of the physical chips and the first FPGA chip, see Figure 1 As shown, Figure 1 It is a framework diagram of a first embodiment of an application system corresponding to an automatic adaptation method provided in the present application.

[0052] Specifically, a first embodiment of an application system corresponding to an automatic adaptation method provided in the present application includes a host computer 11, a control chip 12, a first FPGA chip 13, a first physical chip 141, a second physical chip 142, a third physical chip 143, a fourth physical chip 144 and a display screen 15.

[0053] Specifically, an application system corresponding to an automatic adaptation method provided in the present application may be a control system suitable for LED spacing control systems, etc., which requires debugging of the PHY chip parameter range; the host computer 11 may be a personal computer, tablet or other electronic device that can be loaded with algorithm programs; the control chip 12 may be a CPU (Central Processing Unit) or MCU (Microcontroller Unit) or other chips that can control other units; the first physical chip 141, the second physical chip 142, the third physical chip 143 and the fourth physical chip 144 may be the same PHY chip, and the main function of the PHY chip is to decode the received analog signal and transmit the decoded digital signal through the interface.

[0054] Optionally, in some embodiments of the present application, the specific number of physical chips can be adjusted according to actual usage.

[0055] This application provides an automatic debugging method, see Figure 2 As shown, Figure 2 It is a flowchart diagram of a first embodiment of an automatic adaptation method provided by the present application, including:

[0056] S1: Obtain first information of the first FPGA chip 13 and second information corresponding to multiple physical chips.

[0057] Among them, the first information of the first FPGA chip 13 includes the register address and value range of the signal reception delay corresponding to the first FPGA chip 13, which can be obtained from the specification sheet of the first FPGA chip 13, for example, the host computer 11 obtains it from the specification sheet of the first FPGA chip 13.

[0058] The second information includes the register address and value range of the signal reception delay of multiple physical chips, the register address and value range of the signal reception drive strength, and the register address and value range of the signal transmission strength. For example, the upper computer 11 obtains the register address and value range of the signal reception delay, the register address and value range of the signal reception drive strength, and the register address and value range of the signal transmission strength of the first physical chip 141, the second physical chip 142, the third physical chip 143, and the fourth physical chip 144.

[0059] Optionally, the second information also includes the value and register address of the ID (Identity Document) corresponding to the physical chip. For example, the multiple physical chips may be the first physical chip 141, the second physical chip 142, the third physical chip 143 and the fourth physical chip 144 mentioned above, that is, the multiple physical chips are of the same model and uniform specifications. Therefore, the second information corresponding to the multiple physical chips can be obtained from the specification sheet of one of the physical chips, for example, the host computer 11 obtains it from the specification sheet of the first physical chip 141.

[0060] Optionally, after obtaining the first information of the first FPGA chip 13 and the second information corresponding to the plurality of physical chips, the first information and the second information are filled into a visualization interface, such as a visualization interface in a display interface of the host computer 11 .

[0061] S2: Testing the corresponding physical chip based on the second information.

[0062] Optionally, the host computer 11 tests the corresponding physical chip based on the second information.

[0063] Specifically, step S2 is used to verify the communication link between the control chip 12 and multiple physical chips.

[0064] S3: In response to the physical chip test passing, the preset picture is transmitted to the display screen 15 through the physical chip.

[0065] Optionally, the preset picture sent by the control chip 12 is a solid color picture, such as red, yellow or orange, etc. The solid color picture can be represented by a specific pixel value. For example, the pixel value of the preset solid red picture is (255,0,0); the physical chip is provided with a corresponding network port, and the solid color picture is transmitted to the LED display screen 15 through any physical chip and the corresponding network port; the LED display screen 15 includes a screen body for luminous display and a receiving card at the back, and the receiving card collects the pixel values ​​of the picture displayed on the screen body and matches them with the pixel values ​​of the preset solid color picture.

[0066] Specifically, step S3 is used to verify the image transmission in the application system corresponding to the automatic adaptation method provided in this embodiment.

[0067] S4: In response to the picture displayed on the display screen 15 matching the preset picture, a first boundary range corresponding to the first information is obtained based on the first information and the second information.

[0068] Optionally, the host computer 11 obtains a first boundary range corresponding to the first information based on the first information and the second information.

[0069] S5: Obtain a first boundary range corresponding to the first information of each physical chip to obtain a test report.

[0070] Among them, the first boundary range corresponding to the second information of each physical chip includes the first boundary value range of the signal reception delay corresponding to each physical chip, and the first boundary value range after debugging is within the value range of the signal reception delay corresponding to the physical chip recorded in the specification.

[0071] Optionally, the obtained test report includes displaying the test results of steps S1 - S5 and the first boundary range corresponding to the obtained first information and the first boundary range corresponding to the second information in a visual interface, for example, in a visual interface display in a display interface of the host computer 11 .

[0072] The automatic adaptation method provided in this embodiment is applied to the host computer 11, the host computer 11 is respectively connected to the control chip 12, multiple physical chips and the first FPGA chip 13, the control chip 12 is respectively connected to each physical chip and the first FPGA chip 13, and the automatic adaptation method includes: obtaining the first information of the first FPGA chip 13 and the second information corresponding to the multiple physical chips; testing the corresponding physical chip based on the second information; in response to the physical chip test passing, transmitting the preset screen to the display screen 15 through the physical chip; in response to the screen displayed on the display screen 15 matching the preset screen, obtaining the first boundary range corresponding to the first information based on the first information and the second information; obtaining the first boundary range corresponding to the first information of each physical chip to obtain a test report. Among them, the automatic adaptation method applied to the host computer 11 can automatically obtain the first boundary range corresponding to the first information of each physical chip based on the first information of the first FPGA chip 13 and the second information corresponding to the multiple physical chips, eliminating the repeated and inefficient manual debugging process and improving the debugging efficiency.

[0073] See also Figure 3 , Figure 3 is a flowchart diagram of a second embodiment of an automatic adaptation method provided by the present application, Figure 3 is Figure 2The description is based on the flowchart of the first FPGA chip 13, wherein the first information of the first FPGA chip 13 includes the register address of the first FPGA chip 13 and the value range of the first numerical value, and the step of obtaining the first boundary range corresponding to the first information based on the first information and the second information in S4 includes:

[0074] S41: Read version information from the first FPGA chip 13 through the host computer 11.

[0075] The host computer 11 is connected to the first FPGA chip 13, and the host computer 11 reads the version information of the first FPGA chip 13. This step is usually called "card detection".

[0076] S42: In response to the upper computer 11 reading the version information, the first value is adjusted multiple times.

[0077] Among them, the response to the host computer 11 reading the version information includes the host computer 11 reading the correct version information of the first FPGA chip 13, which is usually called "card detection success".

[0078] Specifically, the first numerical value includes the receiving signal delay of the first FPGA chip 13; multiple adjustments to the first numerical value include multiple changes in the value of the receiving signal delay of the first FPGA chip 13 within the value range of the specification sheet corresponding to the first FPGA chip 13.

[0079] S43: Based on the multiple adjusted first numerical values, a first boundary range of the first FPGA chip 13 is obtained, and the first boundary range is within the value range.

[0080] Among them, based on multiple adjusted first numerical values, obtaining the first boundary range of the first FPGA chip 13 includes changing the value of the receiving signal delay of the first FPGA chip 13 multiple times, and obtaining the value range of the receiving signal delay of the first FPGA chip 13 of "successful card detection", which is the first boundary range of the first FPGA chip 13.

[0081] See also Figure 4 , Figure 4 is a flowchart diagram of a third embodiment of an automatic adaptation method provided by the application, Figure 4 is Figure 3 The description is based on the flowchart of , wherein the second information includes second values ​​corresponding to multiple physical chips, and the step of obtaining a boundary range corresponding to the second information based on the first information and the second information in S4 includes:

[0082] S421: In response to the host computer 11 not reading the version information, the control chip 12 adjusts the second value.

[0083] Among them, in response to the upper computer 11 not reading the version information including the upper computer 11 not receiving the correct version information of the first FPGA chip 13, the possible reason is that the data signal carrying the version information of the first FPGA chip 13 is too small or too large, and the strength of the data signal is not within the detection range of the upper computer 11. Therefore, adjusting the second numerical value through the control chip 12 includes adjusting the driving strength of the receiving signal of the physical chip, so that the data signal carrying the version information of the first FPGA chip 13 is amplified or reduced when passing through the physical chip, so that the data signal can be detected by the upper computer 11.

[0084] Return to execute S41: read the version information from the first FPGA chip through the host computer 11.

[0085] Specifically, according to multiple adjustments of the second value and multiple cycles of steps S41-S421-S41, the second value, that is, the effective value range of the driving strength of the receiving signal of the physical chip, can be obtained. Within this range, the version information of the first FPGA chip 13 can be detected by the host computer 11, and then step S42 is executed.

[0086] See also Figure 5 , Figure 5 is a flowchart diagram of a fourth embodiment of an automatic adaptation method provided by the application, Figure 5 is Figure 4 The description is based on the flowchart of , wherein the second information includes third values ​​corresponding to multiple physical chips, and the step of obtaining a boundary range corresponding to the second information based on the first information and the second information in S4 includes:

[0087] In step S421 , the control chip 12 completes the adjustment of the second value.

[0088] S422: In response to the host computer 11 not reading the version information, the control chip 12 adjusts the third value.

[0089] Among them, in response to the upper computer 11 not reading the version information, including the upper computer 11 not receiving the correct version information of the first FPGA chip 13, the possible reason is the edge alignment method of the data receiving signal and the reference clock receiving signal of the physical chip, resulting in the data signal carrying the version information of the first FPGA chip 13 not being effectively received.

[0090] Specifically, the third value corresponding to the physical chip includes an edge alignment mode of a received signal of the physical chip; adjusting the third value corresponding to the physical chip includes changing the edge alignment mode of the received signal of the physical chip to rising edge alignment, center alignment or falling edge alignment.

[0091] Specifically, step S422 ensures that the data signal carrying the version information of the first FPGA chip 13 can be effectively received by changing the relative positions of the data receiving signal and the reference clock receiving signal of the physical chip in the clock domain.

[0092] Return to execute S41: read the version information from the first FPGA chip through the host computer 11.

[0093] Specifically, according to multiple adjustments to the second and third values ​​and multiple cycles of steps S41-S421-S422-S41, the effective range of the third value, that is, the alignment method of the received signal of the physical chip, can be obtained; and the effective value range of the second value, that is, the effective value range of the driving strength of the received signal of the physical chip can be obtained. Within this range, the version information of the first FPGA chip 13 can be detected by the host computer 11, and then step S42 is executed.

[0094] The automatic adaptation method provided in this embodiment is applied to the host computer 11, the host computer 11 is respectively connected to the control chip 12, multiple physical chips and the first FPGA chip 13, the control chip 12 is respectively connected to each physical chip and the first FPGA chip 13, and the automatic adaptation method includes: obtaining the first information of the first FPGA chip 13 and the second information corresponding to the multiple physical chips; testing the corresponding physical chip based on the second information; in response to the physical chip test passing, transmitting the preset screen to the display screen 15 through the physical chip; in response to the screen displayed on the display screen 15 matching the preset screen, obtaining the first boundary range corresponding to the first information based on the first information and the second information; obtaining the first boundary range corresponding to the first information of each physical chip to obtain a test report. Among them, the automatic adaptation method applied to the host computer 11 can automatically obtain the first boundary range corresponding to the first information of each physical chip based on the first information of the first FPGA chip 13 and the second information corresponding to the multiple physical chips, eliminating the repeated and inefficient manual debugging process and improving the debugging efficiency.

[0095] See also Figure 6 , Figure 6 is a flowchart diagram of a fifth embodiment of an automatic adaptation method provided by the application, Figure 6 is Figure 2 The description is based on the flowchart of FIG. 1 , wherein, after obtaining the boundary range corresponding to the first information in step S4, the automatic adaptation method provided in this embodiment further includes:

[0096] S51: Obtain third information corresponding to each physical chip, where the third information includes address information of the physical chip.

[0097] Among them, the physical chip includes physical chips, each physical chip is connected to a network port, and the address information of the physical chip includes the group and address of the network port corresponding to the physical chip; the group of the network port indicates the bus position of the physical chip corresponding to the network port in the control system, and the address of the network port indicates the hardware address of the corresponding physical chip on the bus.

[0098] Specifically, obtaining the third information corresponding to each physical chip includes obtaining the bus position of the physical chip corresponding to the network port in the control system and the hardware address of the corresponding physical chip on the bus according to the hardware installation status of each circuit board carrying the physical chip.

[0099] S52: Based on the first boundary range and the address information, obtain the value range of each physical chip.

[0100] Among them, since the network port corresponding to each physical chip has a different group and address, the first boundary value range of the corresponding signal reception delay of each physical chip after debugging is different, and multiple physical chips correspond to multiple first boundary value ranges of the corresponding signal reception delay after debugging.

[0101] Specifically, based on the first boundary range and address information, including the first boundary range of the first FPGA chip 13 that has been obtained, that is, the first boundary value range of the signal reception delay corresponding to the first FPGA chip 13 after automatic debugging and the group and address of the network port corresponding to each physical chip, the value range of the signal reception delay of the network port corresponding to each physical chip is obtained, that is, the numerical range of each physical chip, that is, the boundary range corresponding to the first information of each physical chip.

[0102] The automatic adaptation method provided in this embodiment includes: obtaining the first information of the first FPGA chip 13 and the second information corresponding to multiple physical chips; testing the corresponding physical chip based on the second information; in response to the physical chip test passing, transmitting the preset screen to the display screen 15 through the physical chip; in response to the screen displayed on the display screen 15 matching the preset screen, obtaining the first boundary range corresponding to the first information based on the first information and the second information; obtaining the first boundary range corresponding to the first information of each physical chip to obtain a test report. Among them, the automatic adaptation method applied to the host computer 11 can automatically obtain the first boundary range corresponding to the first information of each physical chip and the boundary range corresponding to the first information of each physical chip based on the first information of the first FPGA chip 13 and the second information corresponding to multiple physical chips, eliminating the repeated and inefficient manual debugging process and improving the debugging efficiency.

[0103] In some embodiments of this application, see Figure 7 , Figure 7: is a flowchart diagram of a sixth embodiment of an automatic adaptation method provided by the present application. The automatic adaptation method of this embodiment further includes:

[0104] S61: Provide a second FPGA chip and a third FPGA chip, wherein the parameters of the second FPGA chip and the parameters of the third FPGA chip are the same as the parameters of the first FPGA chip 13.

[0105] Specifically, this embodiment provides three FPGA chips of the same model for testing.

[0106] S62: Repeat the automatic adaptation method on the second FPGA chip to obtain a second boundary range corresponding to the second FPGA chip.

[0107] Specifically, repeatedly executing the automatic adaptation method on the second FPGA chip includes repeating steps S1-S5 on the second FPGA chip to obtain a second boundary range corresponding to the second FPGA chip, that is, a second boundary value range of the signal reception delay corresponding to the second FPGA chip after automatic debugging.

[0108] S63: Repeat the automatic adaptation method for the third FPGA chip to obtain a third boundary range corresponding to the third FPGA chip.

[0109] Specifically, repeatedly executing the automatic adaptation method on the third FPGA chip includes repeating steps S1-S5 on the third FPGA chip to obtain a third boundary range corresponding to the third FPGA chip, that is, a third boundary value range of the signal reception delay corresponding to the third FPGA chip after automatic debugging.

[0110] S64: Obtain the intersection of the first boundary range, the second boundary range, and the third boundary range to obtain a boundary range.

[0111] Specifically, the intersection of the boundary ranges corresponding to the three FPGA chips is the value range of the average signal reception delay of the FPGA chip of this model in this embodiment, that is, the boundary range.

[0112] Specifically, in some embodiments of the present application, more than three FPGA chips may be selected for testing, and the intersection of the test results using multiple FPGA chips may be used to make the obtained results more accurate.

[0113] Optionally, in some embodiments of the present application, based on the boundary range obtained in step S64 and the address information of each network port, a value range of the average signal reception delay of each network port can be obtained.

[0114] In some embodiments of the present application, the second information includes identification numbers corresponding to a plurality of physical chips, and the step of testing the corresponding physical chips based on the second information includes:

[0115] S21: Read the identification number through the control chip 12 and match the identification number with the preset value.

[0116] Specifically, the identification number corresponding to the physical chip includes a string of identity codes assigned after the physical chip is produced, which can be obtained from the specification sheet of the physical chip of the corresponding model. The identification number corresponding to the physical chip is set in advance in the host computer 11, which is the preset value. The control chip 12 reads the identification number of the physical chip and compares it with the preset value.

[0117] S22: In response to the identification number successfully matching the preset value, it is determined that the physical chip test has passed.

[0118] Specifically, the control chip 12 determines that the read identification number is the same as the preset value, and then the test of the physical chip in step S2 passes.

[0119] In some embodiments of the present application, the step of transmitting the preset picture to the display screen 15 through the physical chip includes:

[0120] S31: Sending the preset picture to the display screen 15 through the control chip 12, so that the display screen 15 displays the picture.

[0121] Specifically, the display screen 15 includes a screen body and a receiving card. The control chip 12 sends the pre-set picture to the screen body of the display screen 15, and the screen body displays the picture; the preset picture is a solid color picture.

[0122] S32: Matching the pixel values ​​of the picture with the pixel values ​​of the preset picture.

[0123] Specifically, the preset picture is a solid color picture, and its color information can be represented by pixel values. For example, the pixel value of the preset solid red picture is (255, 0, 0). The pixel value of the displayed picture can be extracted by the receiving card, and the pixel value of the displayed picture is compared with the pixel value of the preset picture.

[0124] S33: In response to the pixel values ​​of the picture successfully matching the pixel values ​​of the preset picture, it is determined that the picture displayed on the display screen 15 matches the preset picture.

[0125] Specifically, if the pixel value of the displayed image is consistent with the pixel value of the preset image, it is determined that the display screen 15 can normally receive the image content transmitted by the control chip 12 .

[0126] The automatic adaptation method provided in this embodiment includes: obtaining the first information of the first FPGA chip 13 and the second information corresponding to multiple physical chips; testing the corresponding physical chip based on the second information; in response to the physical chip test passing, transmitting the preset screen to the display screen 15 through the physical chip; in response to the screen displayed on the display screen 15 matching the preset screen, obtaining the first boundary range corresponding to the first information based on the first information and the second information; obtaining the first boundary range corresponding to the first information of each physical chip to obtain a test report. Among them, the automatic adaptation method applied to the host computer 11 can automatically obtain the first boundary range corresponding to the first information of each physical chip and the boundary range corresponding to the first information of each physical chip based on the first information of the first FPGA chip 13 and the second information corresponding to multiple physical chips, eliminating the repeated and inefficient manual debugging process and improving the debugging efficiency.

[0127] This application also provides a host computer 11, see Figure 8 As shown, Figure 8 It is a framework diagram of a first embodiment of a host computer 11 provided in the present application. The host computer 11 of this embodiment includes a memory 111 and a processor 112. The processor 112 is used to execute program instructions stored in the memory 111 to implement the automatic adaptation method provided in the above embodiment.

[0128] Specifically, in the embodiment of the present application, the processor 112 may also be referred to as a CPU (Central Processing Unit). The processor 112 may be an integrated circuit chip having signal processing capabilities. The processor 112 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or the processor 112 may also be any conventional processor, etc.

[0129] This application also provides a computer-readable storage medium, see Fig. 9 As shown, Fig. 9 The computer-readable storage medium 81 in this embodiment stores program instructions 82, which, when executed by the processor 112, are used to implement the automatic adaptation method of the above embodiment.

[0130] When the embodiments of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially 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, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk.

[0131] It can be understood that the above are only implementation modes of the present application, and the patent scope of the present application is not limited thereto. For ordinary technicians in this field, they can make equivalent substitutions or changes based on the technical solution and inventive concept of the present invention, and all these changes or substitutions should fall within the protection scope of the claims attached to the present invention.

Claims

1. An automatic adaptation method, characterized in that: Applied to a host computer, the host computer is respectively connected to a control chip, a plurality of physical chips and a first FPGA chip, the control chip is respectively connected to each of the physical chips and the first FPGA chip, and the automatic adaptation method includes: Acquire first information of the first FPGA chip and second information corresponding to the plurality of physical chips; Testing the corresponding physical chip based on the second information; In response to the physical chip passing the test, transmitting a preset picture to a display screen through the physical chip; In response to the picture displayed on the display screen matching the preset picture, obtaining a first boundary range corresponding to the first information based on the first information and the second information; A first boundary range corresponding to the second information of each physical chip is obtained to obtain a test report.

2. The automatic adaptation method according to claim 1, characterized in that: The first information of the first FPGA chip includes a register address of the first FPGA chip and a value range of a first value, and the step of obtaining a first boundary range corresponding to the first information based on the first information and the second information includes: Reading version information from the first FPGA chip through the host computer; In response to the host computer reading the version information, adjusting the first value multiple times; Based on the multiple adjusted first numerical values, a first boundary range of the first FPGA chip is obtained, and the first boundary range is within the value range.

3. The automatic adaptation method according to claim 2, characterized in that: The second information includes second values ​​corresponding to the plurality of physical chips, and the step of obtaining a boundary range corresponding to the first information based on the first information and the second information includes: In response to the host computer failing to read the version information, adjusting the second value through the control chip; Return to the step of reading version information from the first FPGA chip through the host computer.

4. The automatic adaptation method according to claim 3, characterized in that: The second information includes third values ​​corresponding to the plurality of physical chips, and the step of obtaining a boundary range corresponding to the second information based on the first information and the second information includes: The second value is adjusted by the control chip; In response to the host computer failing to read the version information, adjusting the third value through the control chip; Return to the step of reading version information from the first FPGA chip through the host computer.

5. The automatic adaptation method according to any one of claims 2 to 4, characterized in that: The automatic adaptation method further comprises: Acquire third information corresponding to each of the physical chips, where the third information includes address information of the physical chip; Based on the first boundary range and the address information, a value range of each of the physical chips is obtained.

6. The automatic adaptation method according to any one of claims 2 to 4, characterized in that: The automatic adaptation method further comprises: Providing a second FPGA chip and a third FPGA chip, wherein parameters of the second FPGA chip and parameters of the third FPGA chip are the same as parameters of the first FPGA chip; Repeating the automatic adaptation method on the second FPGA chip to obtain a second boundary range corresponding to the second FPGA chip; Repeating the automatic adaptation method on the third FPGA chip to obtain a third boundary range corresponding to the third FPGA chip; An intersection of the first boundary range, the second boundary range, and the third boundary range is obtained to obtain a boundary range.

7. The automatic adaptation method according to any one of claims 1 to 4, characterized in that: The second information includes identification numbers corresponding to the plurality of physical chips, and the step of testing the corresponding physical chips based on the second information includes: Reading the identification number through the control chip and matching the identification number with a preset value; In response to the identification number successfully matching the preset value, it is determined that the physical chip test has passed.

8. The automatic adaptation method according to claim 1, characterized in that: The step of transmitting the preset picture to the display screen through the physical chip includes: Sending the preset picture to the display screen through the control chip, so that the display screen displays the picture; Matching the pixel values ​​of the picture with the pixel values ​​of the preset picture; In response to the pixel values ​​of the picture successfully matching the pixel values ​​of the preset picture, it is determined that the picture displayed on the display screen matches the preset picture.

9. A host computer, characterized in that: It comprises a memory and a processor, and the processor is used to execute program instructions stored in the memory to implement the automatic adaptation method described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program instructions, and when the program instructions are executed by a processor, the adaptation method according to any one of claims 1 to 8 is implemented.