Acquisition and conversion module test method and device, electronic equipment and storage medium

By sending simulation data and generating target test point simulation data, the problem of high human resources consumption in the acquisition and conversion module test is solved, fast and accurate test results are achieved, and testing costs and time are reduced.

CN119311575APending Publication Date: 2025-01-14KEHUA DATA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411219659.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The prior art requires a lot of human resources in the testing of the acquisition and conversion module. The test process is cumbersome and the samples are limited, making it difficult to quickly and effectively implement the testing of the acquisition and conversion module.

Method used

By sending pre-set simulation data and receiving feedback data, generating simulation data corresponding to the target measurement points based on the test data generation rules, and automatically generating a large number of different simulation data, achieving rapid and effective testing of the acquisition and conversion module, reducing manual participation.

Benefits of technology

It realizes fast and accurate testing of the acquisition and conversion module, reduces labor costs, improves test efficiency and sample base, and ensures the accuracy of the test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311575A_ABST
    Figure CN119311575A_ABST
Patent Text Reader

Abstract

The invention provides an acquisition and conversion module test method and device, electronic equipment and a storage medium. The method comprises the following steps: in response to a data acquisition request of an acquisition conversion module, sending preset first simulation data to the acquisition conversion module, and receiving first acquisition data fed back by the acquisition conversion module; if a test instruction is received, generating second simulation data corresponding to each target test point according to the test instruction and a preset test data generation rule; wherein the test instruction comprises at least one target test point; sending the second simulation data to an acquisition conversion module, and receiving second acquisition data fed back by the acquisition conversion module; and generating a test result of the acquisition conversion module according to the second simulation data, the first acquisition data and the second acquisition data. According to the invention, the acquisition conversion module can be rapidly and effectively tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing technology, and in particular to a method, device, electronic equipment and storage medium for testing an acquisition conversion module. Background Art

[0002] The acquisition conversion module is generally used to collect data and forward the collected data to the corresponding terminal. Among them, the accuracy of the acquisition and conversion module in collecting and forwarding data is very important, so the acquisition conversion module needs to be tested.

[0003] In the related art, when testing, generally, the relevant test personnel transfer the preset test data to the module to be tested, obtain the conversion data output by the module, and then manually compare the test data and the conversion data to test the module to be tested. However, this method requires setting additional data in the equipment test process, and when using this test method to test the acquisition conversion module, a large amount of human resources are required, making it difficult to quickly and effectively test the acquisition conversion module. Summary of the invention

[0004] The embodiment of the present invention provides a collection conversion module testing method, device, electronic equipment and storage medium to quickly and effectively test the collection conversion module.

[0005] In a first aspect, an embodiment of the present invention provides a method for testing an acquisition conversion module, comprising:

[0006] In response to a data acquisition request from the acquisition conversion module, the preset first simulation data is sent to the acquisition conversion module, and the first acquisition data fed back by the acquisition conversion module is received;

[0007] If a test instruction is received, second simulation data corresponding to each target measuring point is generated according to the test instruction and a preset test data generation rule; wherein the test instruction includes a test instruction for at least one target measuring point;

[0008] Sending the second simulation data to the acquisition conversion module, and receiving the second acquisition data fed back by the acquisition conversion module;

[0009] A test result of the acquisition conversion module is generated according to the second simulation data, the first acquisition data and the second acquisition data.

[0010] In a possible implementation, the test data generation rule includes a measurement point rule corresponding to each target measurement point, and the measurement point rule includes a data frequency and a data step length;

[0011] Generating second simulation data corresponding to each target measuring point according to the test instruction and the preset test data generation rule, including:

[0012] For each target measuring point in the test instruction, determining a measuring point rule corresponding to the target measuring point in the test data generation rule;

[0013] According to the data frequency and the data step length in the measuring point rule, second simulation data corresponding to the target measuring point is generated; wherein the second simulation data is different from the data corresponding to the target measuring point in the first simulation data.

[0014] In a possible implementation, sending the second simulation data to the acquisition conversion module, and receiving the second acquisition data fed back by the acquisition conversion module, includes:

[0015] Sorting the target test points in the test instruction to obtain a sorting result;

[0016] According to the sorting result, a target measuring point is selected from the test instruction, the second simulation data corresponding to the selected target measuring point is sent to the acquisition conversion module, and the second acquisition data fed back by the acquisition conversion module is received;

[0017] Determine whether the second collected data is the same as the data corresponding to the target measuring point in the first collected data;

[0018] If the second acquisition data is different from the data corresponding to the target measuring point in the first acquisition data, then according to the sorting result, the next target measuring point is selected from the test instruction, the second simulation data corresponding to the selected target measuring point is sent to the acquisition conversion module, and the subsequent steps are repeated until the second acquisition data corresponding to the last target measuring point in the test instruction is different from the data corresponding to the last target measuring point in the first acquisition data.

[0019] In a possible implementation, generating a test result of the acquisition conversion module according to the second simulation data, the first acquisition data, and the second acquisition data includes:

[0020] Generate a data comparison table for the target measuring point according to the first collected data, and the second simulation data and the second collected data corresponding to each target measuring point;

[0021] According to the data comparison table, respectively determine the number of target measuring points in the second collected data corresponding to each target measuring point that are the same as the second simulation data of the target measuring point;

[0022] Determine whether the number of measuring points corresponding to the target measuring point is not 1;

[0023] If the number of measuring points corresponding to the target measuring point is not 1, it is determined that the test result of the acquisition conversion module is unqualified.

[0024] In a possible implementation manner, after determining whether the number of measuring points corresponding to the target measuring point is not 1, the method further includes:

[0025] If the number of measuring points corresponding to the non-existent target measuring point is not 1, then for each target measuring point, determining a first sending time for sending the second simulation data corresponding to the target measuring point to the acquisition conversion module, and a first receiving time for receiving the second acquisition data corresponding to the target measuring point fed back by the acquisition conversion module; determining a test response time of the target measuring point according to the first sending time and the first receiving time;

[0026] Based on the test response time of each target test point, a first test result of the acquisition conversion module is generated.

[0027] In a possible implementation, the method is applied to a test device, the acquisition conversion module includes a plurality of output terminals, the test device includes a plurality of input terminals, each output terminal of the acquisition conversion module is respectively connected to an input terminal of the test device through a northbound protocol; the second acquisition data includes terminal acquisition data output by each output terminal of the acquisition conversion module;

[0028] Generating a test result of the acquisition conversion module according to the second simulation data, the first acquisition data and the second acquisition data, including:

[0029] Determine whether the second simulation data is the same as the corresponding data collected from each terminal;

[0030] If the second simulation data is different from the corresponding data collected at each end, determining that the test result of the collection conversion module is unqualified;

[0031] If the second simulation data is the same as the corresponding data collected at each end, then according to the second simulation data and the northbound protocol corresponding to each output end of the test device, respectively determine the protocol conversion data after each output end performs protocol conversion on the second simulation data;

[0032] Determine the protocol conversion result of each output terminal respectively according to the first collected data, and the protocol conversion data and terminal collected data corresponding to each output terminal;

[0033] Based on the protocol conversion result of each output terminal, a second test result of the acquisition conversion module is generated.

[0034] In a possible implementation, the method is applied to a test device, and before generating the second simulation data corresponding to each target measuring point according to the test instruction and a preset test data generation rule, the method further includes:

[0035] Determining whether the first simulation data is the same as the first collected data;

[0036] If the first simulation data is the same as the first acquisition data, determining the initial response time of the acquisition conversion module according to the second sending time of the first simulation data and the second receiving time of the first acquisition data;

[0037] According to the initial response time, a connection state between the test device and the acquisition conversion module is determined.

[0038] In a second aspect, an embodiment of the present invention provides a test device for an acquisition conversion module, comprising:

[0039] A connecting unit, configured to send the preset first simulation data to the acquisition conversion module in response to a data acquisition request from the acquisition conversion module, and receive the first acquisition data fed back by the acquisition conversion module;

[0040] A generating unit, configured to generate second simulation data corresponding to each target measuring point according to the test instruction and a preset test data generating rule if a test instruction is received; wherein the test instruction includes at least one target measuring point;

[0041] The test unit is used to send the second simulation data to the acquisition conversion module and receive the second acquisition data fed back by the acquisition conversion module; and generate a test result of the acquisition conversion module according to the second simulation data, the first acquisition data and the second acquisition data.

[0042] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in the first aspect or any possible implementation method of the first aspect are implemented.

[0043] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect or any possible implementation method of the first aspect are implemented.

[0044] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0045] The embodiment of the present invention sends the preset first simulation data to the acquisition conversion module and receives the first acquisition data fed back accordingly when testing. After that, the second simulation data corresponding to each target measuring point is newly generated according to the preset test data generation rule, and is sent to the acquisition conversion module, and the second acquisition data fed back accordingly is received. Then, the test result of the acquisition conversion module is generated according to the second simulation data, the first acquisition data and the second acquisition data. Among them, the embodiment of the present invention can establish a connection with the acquisition conversion module first by sending the first simulation data and receiving the first acquisition data first, and then test the acquisition conversion module; by generating the second simulation data according to the test data generation rule and sending it, a large number of different simulation data can be automatically generated, the cardinality of samples can be increased, the test can be automatically completed quickly and effectively, the participation of relevant test personnel can be reduced, and the labor cost can be reduced; and by generating the second simulation data of each target measuring point, the test related to the target measuring point in the acquisition conversion module can be realized, the target measuring point in the acquisition conversion module can be accurately tested, and the test result of the acquisition conversion module can be accurately and effectively obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 is a scene application diagram of the acquisition conversion module provided in an embodiment of the present invention;

[0048] Figure 2 This is an application scenario diagram of the acquisition conversion module testing method provided by an embodiment of the present invention;

[0049] Figure 3 is a flow chart of the implementation of the acquisition conversion module testing method provided by an embodiment of the present invention;

[0050] Figure 4 is a timing diagram of a collection conversion module testing method provided by an embodiment of the present invention;

[0051] Figure 5 is a structural schematic diagram of a collection and conversion module testing device provided by an embodiment of the present invention;

[0052] Figure 6 is a schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0054] The inventors have found that in order to test the acquisition conversion module, the test personnel are usually required to transfer the preset test data to the acquisition conversion module to be tested, and then obtain the conversion data output by the module to compare the test data with the conversion data. The test requires a lot of human resources, the process is cumbersome, and the test samples are limited, making it difficult to quickly and effectively test the acquisition conversion module. Therefore, it is necessary to consider a technology for testing the acquisition conversion module.

[0055] In order to realize the idea of ​​testing the acquisition conversion module quickly and effectively, in an embodiment of the present invention, the preset first simulation data is first sent to the acquisition conversion module, and the corresponding feedback first acquisition data is received, and then the second simulation data corresponding to each target measuring point is generated and sent to the acquisition conversion module, and the corresponding feedback second acquisition data is received. A large number of different simulation data can be automatically generated, the cardinality of samples can be increased, and testing can be carried out quickly and effectively; finally, by comparing the second simulation data, the first acquisition data and the second acquisition data, the target measuring points in the acquisition conversion module can be tested, and the acquisition conversion module can be quickly and effectively tested.

[0056] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0057] The acquisition and conversion module is mainly used to collect data and perform protocol conversion on photovoltaic-related equipment or power-related equipment, and output the converted data to the corresponding terminal. Figure 1 The scenario application diagram of the acquisition and conversion module is shown, in which the acquisition device inputs the relevant data into the acquisition and conversion module through the southbound protocol, the acquisition and conversion module processes and converts the relevant data, and then outputs the converted data to the corresponding terminal.

[0058] If there is only one terminal, the converted data can be output to the corresponding receiving terminal, such as Figure 1 The acquisition conversion module outputs the data to the receiving terminal 1 through the northbound protocol. If there are multiple terminals, the converted data can be output to the corresponding terminals respectively, such as Figure 1The receiving terminal 2, the display interface 1 and the display interface 2 are also included. The acquisition conversion module can output data to the receiving terminal 1 and the receiving terminal 2 through the northbound protocol, and output data to the display interface 1 and the display interface 2 through the interface protocol.

[0059] Here, the southbound protocol refers to a connection interface from a higher level to a lower level device, that is, a downward data interface. The northbound protocol refers to a connection interface from a lower level device to a higher level, that is, an upward data interface; the interface protocol is one of the northbound protocols, which is intended to display event communication in the interface.

[0060] Optionally, the device to be collected may be a photovoltaic-related device or a power-related device, etc., and the receiving terminal may be a personal digital assistant (PDA) device, a handheld device with wireless communication function (such as a smart phone, a tablet computer), a computing device (such as a personal computer (PC)), a vehicle-mounted device, a wearable device (such as a smart watch, a smart bracelet), a smart home device (such as a smart display device), etc.

[0061] On this basis, the embodiment of the present invention realizes the functions of the device to be collected and the terminal to receive data through the test device. Figure 2 In the application scenario diagram of the acquisition conversion module testing method shown, the test device sends data to the acquisition conversion module through the southbound protocol, and receives the data sent by the acquisition conversion module through the northbound protocol (or interface protocol).

[0062] When testing the acquisition conversion module sending data to a terminal, you can refer to Figure 1 The solid arrow in the figure shows that the test device obtains the data sent by the acquisition conversion module through a northbound protocol. When testing the situation where the acquisition conversion module sends data to multiple terminals, you can refer to Figure 1 With reference to the solid arrows and dotted arrows in FIG. 1 , the test device obtains the data sent by the acquisition conversion module through multiple northbound protocols (and / or interface protocols).

[0063] Based on this, the acquisition test module is tested. The method provided in this embodiment can be applied to Figure 2 The test device in Figure 3 The implementation flow chart of the acquisition conversion module testing method provided by the embodiment of the present invention is detailed as follows:

[0064] Step S301 , in response to a data acquisition request from an acquisition conversion module, sending preset first simulation data to the acquisition conversion module, and receiving first acquisition data fed back by the acquisition conversion module.

[0065] In this embodiment, after the acquisition conversion module is started, a data acquisition request can be sent to acquire data and perform conversion. At this time, the pre-set first simulation data will be sent to the acquisition conversion module first, wherein the pre-set first simulation data can be data assembled according to the southbound protocol and satisfy the data acquisition request. The first simulation data can be a set of fixed data, or multiple sets of fixed data can be pre-set, from which one set is selected as the first simulation data.

[0066] Here, the first simulation data can be continuously sent to the acquisition conversion module within a preset time to ensure stable data transmission. Here, after receiving the first simulation data, the acquisition conversion module can perform protocol conversion and data processing on the first simulation data.

[0067] At the same time, this embodiment can also obtain the data processed by the acquisition conversion module, that is, the first acquisition data, through the North Line Protocol. By sending data to the acquisition conversion module and obtaining the data of the acquisition conversion module, a stable connection can be established for subsequent testing.

[0068] Here, when acquiring the first acquisition data, the data of the acquisition conversion device may be acquired at the fastest allowed request interval to ensure the real-time nature of the data.

[0069] Step S302: if a test instruction is received, second simulation data corresponding to each target measuring point is generated according to the test instruction and a preset test data generation rule; wherein the test instruction includes a test instruction for at least one target measuring point.

[0070] In this embodiment, the acquisition conversion module includes multiple measuring points. At least one measuring point in the acquisition conversion module can be selected as the target measuring point, or all measuring points in the acquisition conversion module can be selected as the target measuring point.

[0071] Here, the measurement point includes the collection point and / or calculation point. The collection point refers to the measurement point collected from the device through communication, and the calculation point refers to the measurement point configured with the calculation formula, which may contain the alias or point number of other collection points or the alias or point number of other calculation points.

[0072] In this embodiment, the acquisition conversion module is tested, mainly involving acquisition points. If the device under test (i.e., the acquisition conversion module) involves calculation points, the calculation points can also be tested. According to the data required by the calculation points, corresponding simulation data can be generated for testing.

[0073] In addition, the test data generation rules of this embodiment may include rules for generating simulation data for each target measuring point, that is, the measuring point rules for each measuring point. Through the test data generation rules, simulation data corresponding to each target measuring point can be automatically generated to test the target measuring point.

[0074] Optionally, the test data generation rule includes a measurement point rule corresponding to each target measurement point, and the measurement point rule may include data frequency and data step length. In addition, the measurement point rule may also include data quantity and data range, etc.

[0075] This embodiment generates second simulation data corresponding to each target measuring point according to the test instruction and the preset test data generation rule. For each target measuring point in the test instruction, the measuring point rule corresponding to the target measuring point in the test data generation rule is first determined; and then the second simulation data corresponding to the target measuring point is generated according to the data frequency and the data step size in the measuring point rule; wherein the second simulation data is different from the data corresponding to the target measuring point in the first simulation data.

[0076] In this embodiment, for each target measuring point, the cardinality of the samples of the generated simulation data and the coverage of the boundaries can be ensured according to the data range, data frequency, data step and data quantity corresponding to the target measuring point, so as to generate simulation data comprehensively, effectively and automatically.

[0077] Here, the second simulation data of each target measuring point is different from the data corresponding to the target measuring point in the first simulation data, so that there is a change between the second simulation data and the first simulation data, so as to accurately test the target measuring point.

[0078] Step S303: sending the second simulation data to the acquisition conversion module, and receiving the second acquisition data fed back by the acquisition conversion module.

[0079] In this embodiment, the acquisition and conversion module can receive the second simulation data, convert and process the second simulation data, and then send the processed data to the corresponding terminal for processing or display according to the corresponding northbound protocol.

[0080] If the acquisition and conversion module only sends data to one terminal, it can receive a set of second acquisition data fed back by the acquisition and conversion module; if the acquisition and conversion module sends data to multiple terminals, it can receive multiple sets of second acquisition data fed back by the acquisition and conversion module, that is, each set of data sent by the acquisition and conversion module.

[0081] Step S304: Generate a test result of the acquisition conversion module according to the second simulation data, the first acquisition data and the second acquisition data.

[0082] In this embodiment, by comparing the second simulation data, the first acquisition data and the second acquisition data, the data integrity and validity of each target measuring point of the acquisition conversion module can be verified, and whether there are problems in the conversion, processing and sending process of each target measuring point by the acquisition conversion module can be obtained. The solid line tests the acquisition conversion module.

[0083] The embodiment of the present invention can, when performing a test, first send the preset first simulation data to the acquisition conversion module, and receive the corresponding feedback first acquisition data, and then, according to the preset test data generation rule, newly generate the second simulation data corresponding to each target measuring point, and send it to the acquisition conversion module, and receive the corresponding feedback second acquisition data. It can first establish a stable connection with the acquisition conversion module, and then test the acquisition conversion module, and can automatically, quickly and effectively complete the test, reduce the participation of relevant testers, and reduce labor costs; by generating the second simulation data for each target measuring point, the test related to the target measuring point in the acquisition conversion module is realized, the target measuring point in the acquisition conversion module can be accurately tested, and the test results of the acquisition conversion module can be accurately and effectively obtained.

[0084] In some embodiments, sending the second simulation data to the acquisition conversion module and receiving the second acquisition data fed back by the acquisition conversion module can be performed by first sorting the target measuring points in the test instruction to obtain a sorting result; selecting a target measuring point from the test instruction according to the sorting result, sending the second simulation data corresponding to the selected target measuring point to the acquisition conversion module, and receiving the second acquisition data fed back by the acquisition conversion module; then determining whether the second acquisition data is the same as the data corresponding to the target measuring point in the first acquisition data; if the second acquisition data is different from the data corresponding to the target measuring point in the first acquisition data, selecting the next target measuring point from the test instruction according to the sorting result, sending the second simulation data corresponding to the selected target measuring point to the acquisition conversion module, and repeating the subsequent steps until the second acquisition data corresponding to the last target measuring point in the test instruction is different from the data corresponding to the last target measuring point in the first acquisition data.

[0085] In this embodiment, when sending the second simulation data, each target measuring point may be sent point by point, and the second acquisition data fed back by the acquisition conversion module at this time is obtained, that is, each target measuring point is tested.

[0086] Here, the target measuring points may be sorted according to the point numbers of the target measuring points, or may be sorted according to the order of the target measuring points in the test instruction. There is no restriction on the sorting method, which is mainly for the convenience of subsequent traversal of each target measuring point.

[0087] When testing each target measuring point, since second simulation data different from the target measuring point in the first simulation data is sent to the acquisition conversion module, correspondingly, the data of the target measuring point in the second acquisition data fed back by the acquisition conversion module at this time will also change accordingly. Therefore, by comparing the second acquisition data with the data of the target measuring point in the first acquisition data, it can be determined whether the acquisition conversion module has received the second simulation data of the target measuring point, so as to determine whether data transmission of the next target measuring point can be performed.

[0088] Here, in addition to determining whether the second acquisition data is identical to the data corresponding to the target measuring point in the first acquisition data, it is also possible to determine whether the data of the target measuring point in the second acquisition data is identical to the second simulation data of the target measuring point. If the data of the target measuring point in the second acquisition data is identical to the second simulation data of the target measuring point, it can also be indicated that the acquisition conversion module has received the second simulation data of the target measuring point, and data transmission for the next target measuring point can be performed.

[0089] In some embodiments, the test result of the acquisition conversion module is generated according to the second simulation data, the first acquisition data and the second acquisition data. The method may be to first generate a data comparison table about the target measuring point according to the first acquisition data and the second simulation data and the second acquisition data corresponding to each target measuring point; then, according to the data comparison table, determine the number of measuring points of the target measuring point that is the same as the second simulation data of the target measuring point in the second acquisition data corresponding to each target measuring point; finally, determine whether there is a target measuring point whose number of measuring points is not 1; if there is a target measuring point whose number of measuring points is not 1, determine that the test result of the acquisition conversion module is unqualified.

[0090] In this embodiment, considering that the measuring points in the acquisition conversion module are generally acquisition points, that is, each measuring point in the simulation data has a one-to-one correspondence with each measuring point in the acquisition conversion module, therefore, according to the generated second simulation data and the acquired second acquisition data, through the data changes, a comparison table of the target measuring points of the second simulation data and the measuring points where the second acquisition data in the acquisition conversion module has changed, that is, a data comparison table of the target measuring points can be established.

[0091] By judging whether the number of measuring points corresponding to the target measuring point is 1, the corresponding situation of the target measuring point in the acquisition and conversion module can be tested, and the uniqueness of the measuring points in the received data, converted data and output data in the acquisition and conversion module can be tested.

[0092] Here, if the number of measuring points corresponding to the target measuring point is not 1, it means that there is a problem with the corresponding relationship of the target measuring point in the acquisition conversion module, and the test result can be determined as unqualified.

[0093] In addition, if the measurement points in the acquisition conversion module to be tested also include calculation points, and the calculation points are determined by calculation of other acquisition points, then corresponding measurement point data can be set for the target measurement point. According to the second simulation data corresponding to the target measurement point, the calculation data corresponding to the relevant calculation point is calculated, and it is determined whether the data corresponding to the calculation point in the second acquisition data fed back by the acquisition conversion module is the same as the above calculation data.

[0094] And, determining the number of target measuring points corresponding to the second simulation data of the target measuring point in the second acquisition data corresponding to the target measuring point, and judging whether the number of measuring points is the same as the total number of acquisition points and calculation points corresponding to the target measuring point.

[0095] Optionally, after determining whether there is a target measuring point and the number of measuring points corresponding to it is not 1, if there is no target measuring point and the number of measuring points corresponding to it is not 1, then, for each target measuring point, a first sending time for sending the second simulation data corresponding to the target measuring point to the acquisition conversion module and a first receiving time for receiving the second acquisition data corresponding to the target measuring point fed back by the acquisition conversion module are determined; a test response time of the target measuring point is determined according to the first sending time and the first receiving time; and finally, a first test result of the acquisition conversion module is generated based on the test response time of each target measuring point.

[0096] In this embodiment, if the number of measuring points corresponding to all target measuring points is 1, it means that each measuring point in the simulation data corresponds one-to-one to each measuring point in the acquisition conversion module, and the real-time performance of the acquisition and feedback data of the acquisition conversion module can be further detected.

[0097] Here, the time difference between sending and receiving can be calculated through the first sending time and the first receiving time corresponding to the target measuring point, which is used as the test response time of the target measuring point, and the time duration for the acquisition and conversion module to collect the data of the target measuring point and perform processing, conversion and sending is obtained, thereby obtaining the real-time performance of the data collected and the feedback data by the acquisition and conversion module.

[0098] Among them, since the acquisition conversion module continuously sends data, the first receiving time of the second acquisition data corresponding to the target measuring point can be determined in the following way: first, a group of second acquisition data corresponding to the target measuring point is determined, and the time of receiving the group of second acquisition data is determined as the first receiving time of the second acquisition data corresponding to the target measuring point.

[0099] The above describes the process of testing the acquisition conversion module. The following will continue to describe the process of testing when the acquisition conversion module has multiple output terminals and can feed back data to multiple receiving terminals.

[0100] In some embodiments, the method is applied to a test device, the acquisition conversion module may include multiple output terminals, and the test device may also include multiple input terminals. Each output terminal of the acquisition conversion module is connected to an input terminal of the test device through a northbound protocol; the second acquisition data includes the terminal acquisition data output by each output terminal of the acquisition conversion module.

[0101] This embodiment generates a test result of the acquisition conversion module based on the second simulation data, the first acquisition data, and the second acquisition data. It can be that first, it is determined whether the second simulation data is the same as the corresponding acquisition data of each end; if the second simulation data is different from the corresponding acquisition data of each end, it is determined that the test result of the acquisition conversion module is unqualified; if the second simulation data is the same as the corresponding acquisition data of each end, then according to the second simulation data and the northbound protocol corresponding to each output end of the test device, the protocol conversion data after the protocol conversion of the second simulation data by each output end is determined respectively.

[0102] Then, according to the first collected data, and the protocol conversion data and terminal collection data corresponding to each output terminal, the protocol conversion result of each output terminal is determined respectively; based on the protocol conversion result of each output terminal, a second test result of the collection conversion module is generated.

[0103] In this embodiment, considering that the acquisition conversion module can output the collected data to multiple receiving terminals, each connected northbound protocol can be tested separately to detect whether the data output by the acquisition conversion module to each receiving terminal is correct and whether the protocol conversion of the output data is correct.

[0104] Here, by judging whether the second simulation data is the same as the corresponding data collected at each terminal, it is possible to detect whether the data output by the collection conversion module to each receiving terminal is correct, and test the accuracy of the data received, processed and fed back by the collection conversion module.

[0105] Furthermore, it is also possible to detect whether the data output by the acquisition and conversion module to each receiving terminal is the same, and test the consistency of the output of the acquisition and conversion module.

[0106] In addition, through the first acquisition data, as well as the protocol conversion data and end acquisition data corresponding to each output end, it is possible to further determine whether the measurement point where the data change occurs in the acquisition and conversion module is unique, as well as the real-time nature of the received data. The implementation method here can refer to the relevant description in the above embodiment, but each end is tested and determined separately, which will not be repeated here.

[0107] In some embodiments, the method provided by the present invention is applied to a test device. Before generating the second simulation data corresponding to each target measuring point according to the test instruction and the preset test data generation rule, it can also be determined whether the first simulation data is the same as the first acquisition data; if the first simulation data is the same as the first acquisition data, the initial response time of the acquisition conversion module is determined according to the second sending time of the first simulation data and the second receiving time of the first acquisition data; and then the connection status between the test device and the acquisition conversion module is determined according to the initial response time.

[0108] In this embodiment, the first simulation data sent and the first acquisition data obtained are compared. If the first simulation data are the same as the first acquisition data, it means that the acquisition conversion module is connected normally, and protocol conversion and data transmission can be performed. If the first simulation data are different from the first acquisition data, it means that the acquisition conversion module may have connection problems or be interfered with, and hardware fault detection can be performed before subsequent testing.

[0109] Here, the sending time of the first simulation data and the receiving time of the first acquisition data are also obtained. By comparing the sending time and the receiving time, the time difference of the acquisition conversion module converting the data, that is, the initial response time, can be obtained.

[0110] If the initial response time is less than the second time threshold, it means that the time interval between sending the first simulation data to the acquisition conversion module to receive the first simulation data, and then sending the first acquisition data to the acquisition conversion module, and receiving the first acquisition data is normal, that is, the connection of the acquisition conversion module is stable, and data can be transmitted normally and effectively. If the initial response time is greater than or equal to the second time threshold, it means that the time interval of the above data transmission process is long, and there may be an unstable connection problem in the acquisition conversion module. Then, hardware fault detection can be performed to ensure a stable connection for subsequent testing.

[0111] Here, when acquiring the first acquisition data, the data of the acquisition conversion device may be acquired at the fastest allowed request interval to ensure the accuracy of the initial response time calculation and the real-time nature of the data.

[0112] In one possible embodiment, see Figure 4 The timing diagram of the acquisition conversion module test method shown in FIG. 1 is used to illustrate the information interaction between the test device and the acquisition conversion module. Figure 4 As shown, the acquisition conversion module testing method may include:

[0113] Step S401: the acquisition conversion module sends a data acquisition request.

[0114] Step S402: the testing device sends preset first simulation data to the acquisition conversion module in response to the data acquisition request.

[0115] Step S403: the acquisition conversion module feeds back the first acquisition data to the testing device.

[0116] Step S404: the test device compares the first simulation data and the first acquisition data, as well as the second sending time of the first simulation data and the second receiving time of the first acquisition data, to determine the connection status between the test device and the acquisition conversion module.

[0117] Step S405, if the test device receives the test instruction and the connection between the test device and the acquisition conversion module is stable, the test device generates second simulation data corresponding to each target measuring point according to the test instruction and the preset test data generation rule; wherein the test instruction includes at least one target measuring point.

[0118] Step S406 : the testing device sends the second simulation data corresponding to each target measuring point to the acquisition conversion module one by one according to the sorting result.

[0119] Step S407: the acquisition conversion module sends the second acquisition data corresponding to each target measuring point to the test device through each output terminal.

[0120] Step S408: The testing device generates a test result of the acquisition conversion module according to the second simulation data, the first acquisition data and the second acquisition data of each terminal.

[0121] The specific implementation process and principle of this embodiment can be found in the specific descriptions of the above embodiments, and will not be repeated here.

[0122] The embodiment of the present invention sends the preset first simulation data to the acquisition conversion module and receives the corresponding first collection data fed back during the test. Then, according to the preset test data generation rule, the second simulation data corresponding to each target measuring point is newly generated and sent to the acquisition conversion module, and the corresponding second collection data fed back is received. A stable connection can be established with the acquisition conversion module first, and then the acquisition conversion module is tested. The test can be completed automatically, quickly and effectively, and the participation of relevant test personnel can be reduced, and the labor cost can be reduced. By generating the second simulation data of each target measuring point, the test related to the target measuring point in the acquisition conversion module can be realized, and the target measuring point in the acquisition conversion module can be accurately tested, and the test results of the acquisition conversion module can be accurately and effectively obtained. Among them, by generating the second simulation data for each measuring point and obtaining the corresponding second collection data, each measuring point can be tested on the basis of data changes, and the accurate and effective test of the acquisition conversion module can be realized. In addition, during the test, if the acquisition conversion module includes multiple output terminals, the terminal collection data fed back by each output terminal is obtained, and each terminal of the acquisition conversion module is tested, so as to realize a comprehensive and complete test of the acquisition conversion module.

[0123] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0124] The following is an embodiment of the device of the present invention. For details not described in detail, reference may be made to the corresponding method embodiments described above.

[0125] Figure 5 The structure diagram of the acquisition conversion module test device provided by the embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows, wherein the acquisition conversion module test device can be applied to the test device in the above method embodiment:

[0126] like Figure 5 As shown, the acquisition conversion module testing device 50 includes:

[0127] The connection unit 51 is used to send the preset first simulation data to the acquisition conversion module in response to the data acquisition request of the acquisition conversion module, and receive the first acquisition data fed back by the acquisition conversion module;

[0128] A generating unit 52, configured to generate second simulation data corresponding to each target measuring point according to the test instruction and a preset test data generating rule if a test instruction is received; wherein the test instruction includes a test instruction of at least one target measuring point;

[0129] The test unit 53 is used to send the second simulation data to the acquisition conversion module, and receive the second acquisition data fed back by the acquisition conversion module; and generate a test result of the acquisition conversion module according to the second simulation data, the first acquisition data and the second acquisition data.

[0130] In a possible implementation, the test data generation rule includes a measurement point rule corresponding to each target measurement point, and the measurement point rule includes a data frequency and a data step size;

[0131] The generating unit 52 is specifically used for:

[0132] For each target measuring point in the test instruction, determine the measuring point rule corresponding to the target measuring point in the test data generation rule;

[0133] According to the data frequency and the data step length in the measuring point rule, second simulation data corresponding to the target measuring point is generated; wherein the second simulation data is different from the data corresponding to the target measuring point in the first simulation data.

[0134] In a possible implementation, the testing unit 53 is specifically configured to:

[0135] Sort the target test points in the test instructions to obtain the sorting results;

[0136] According to the sorting result, a target measuring point is selected from the test instruction, the second simulation data corresponding to the selected target measuring point is sent to the acquisition conversion module, and the second acquisition data fed back by the acquisition conversion module is received;

[0137] Determine whether the second collected data is the same as the data corresponding to the target measuring point in the first collected data;

[0138] If the second acquisition data is different from the data corresponding to the target measuring point in the first acquisition data, the next target measuring point is selected from the test instruction according to the sorting result, the second simulation data corresponding to the selected target measuring point is sent to the acquisition conversion module, and the subsequent steps are repeated until the second acquisition data corresponding to the last target measuring point in the test instruction is different from the data corresponding to the last target measuring point in the first acquisition data.

[0139] In a possible implementation, the testing unit 53 is specifically configured to:

[0140] Generate a data comparison table about the target measuring point according to the first collected data, and the second simulation data and the second collected data corresponding to each target measuring point;

[0141] According to the data comparison table, respectively determine the number of target measuring points in the second collected data corresponding to each target measuring point that are the same as the second simulation data of the target measuring point;

[0142] Determine whether the number of measuring points corresponding to the target measuring point is not 1;

[0143] If the number of measuring points corresponding to the target measuring point is not 1, it is determined that the test result of the acquisition conversion module is unqualified.

[0144] In a possible implementation, the testing unit 53 is specifically configured to:

[0145] If the number of measuring points corresponding to the non-existent target measuring point is not 1, then for each target measuring point, determining a first sending time for sending the second simulation data corresponding to the target measuring point to the acquisition conversion module, and a first receiving time for receiving the second acquisition data corresponding to the target measuring point fed back by the acquisition conversion module; determining a test response time of the target measuring point according to the first sending time and the first receiving time;

[0146] Based on the test response time of each target test point, a first test result of the acquisition conversion module is generated.

[0147] In a possible implementation, the method is applied to a test device, the acquisition conversion module includes a plurality of output terminals, the test device includes a plurality of input terminals, each output terminal of the acquisition conversion module is respectively connected to an input terminal of the test device through a northbound protocol; the second acquisition data includes terminal acquisition data output by each output terminal of the acquisition conversion module;

[0148] The testing unit 53 is specifically used for:

[0149] Determine whether the second simulation data is the same as the corresponding data collected from each terminal;

[0150] If the second simulation data is different from the corresponding data collected at each end, it is determined that the test result of the collection conversion module is unqualified;

[0151] If the second simulation data is the same as the corresponding data collected at each end, then according to the second simulation data and the northbound protocol corresponding to each output end of the test device, respectively determine the protocol conversion data after each output end performs protocol conversion on the second simulation data;

[0152] Determine the protocol conversion result of each output terminal respectively according to the first collected data, and the protocol conversion data and terminal collected data corresponding to each output terminal;

[0153] Based on the protocol conversion result of each output terminal, a second test result of the acquisition conversion module is generated.

[0154] In a possible implementation, the method is applied to a test device, and the connecting unit 51 is further used for:

[0155] Determining whether the first simulation data is the same as the first acquisition data;

[0156] If the first simulation data is the same as the first acquisition data, determining the initial response time of the acquisition conversion module according to the second sending time of the first simulation data and the second receiving time of the first acquisition data;

[0157] According to the initial response time, the connection status between the test device and the acquisition conversion module is determined.

[0158] Figure 6 is a schematic diagram of an electronic device provided by an embodiment of the present invention. Optionally, the electronic device may be a test device in the above method embodiment. Figure 6 As shown, the electronic device 60 of this embodiment includes: a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and executable on the processor 61. When the processor 61 executes the computer program 63, the steps in the above-mentioned various acquisition conversion module test method embodiments are implemented, for example Figure 3Alternatively, when the processor 61 executes the computer program 63, the functions of each unit in the above-mentioned device embodiments are realized, for example Figure 5 The functions of the units 51 to 53 are shown.

[0159] Exemplarily, the computer program 63 may be divided into one or more modules / units, one or more modules / units are stored in the memory 62 and executed by the processor 61 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program 63 in the electronic device 60. For example, the computer program 63 may be divided into Figure 5 Units 51 to 53 are shown.

[0160] The electronic device 60 may include, but is not limited to, a processor 61 and a memory 62. Those skilled in the art will appreciate that Figure 6 It is only an example of the electronic device 60 and does not constitute a limitation of the electronic device 60. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0161] The processor 61 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0162] The memory 62 may be an internal storage unit of the electronic device 60, such as a hard disk or memory of the electronic device 60. The memory 62 may also be an external storage device of the electronic device 60, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 60. Further, the memory 62 may also include both an internal storage unit of the electronic device 60 and an external storage device. The memory 62 is used to store computer programs and other programs and data required by the electronic device. The memory 62 may also be used to temporarily store data that has been output or is to be output.

[0163] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0164] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0165] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0166] In the embodiments provided by the present invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0167] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0168] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0169] If the integrated module / 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 this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media can include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0170] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A method for testing an acquisition conversion module, characterized in that: The method comprises: In response to a data acquisition request from the acquisition conversion module, the preset first simulation data is sent to the acquisition conversion module, and the first acquisition data fed back by the acquisition conversion module is received; If a test instruction is received, second simulation data corresponding to each target measuring point is generated according to the test instruction and a preset test data generation rule; wherein the test instruction includes a test instruction for at least one target measuring point; Sending the second simulation data to the acquisition conversion module, and receiving the second acquisition data fed back by the acquisition conversion module; A test result of the acquisition conversion module is generated according to the second simulation data, the first acquisition data and the second acquisition data.

2. The acquisition conversion module testing method according to claim 1, characterized in that: The test data generation rule includes a measurement point rule corresponding to each target measurement point, and the measurement point rule includes a data frequency and a data step length; Generating second simulation data corresponding to each target measuring point according to the test instruction and the preset test data generation rule, including: For each target measuring point in the test instruction, determining a measuring point rule corresponding to the target measuring point in the test data generation rule; According to the data frequency and the data step length in the measuring point rule, second simulation data corresponding to the target measuring point is generated; wherein the second simulation data is different from the data corresponding to the target measuring point in the first simulation data.

3. The acquisition conversion module testing method according to claim 2, characterized in that: Sending the second simulation data to the acquisition conversion module, and receiving the second acquisition data fed back by the acquisition conversion module, includes: Sorting the target test points in the test instruction to obtain a sorting result; According to the sorting result, a target measuring point is selected from the test instruction, the second simulation data corresponding to the selected target measuring point is sent to the acquisition conversion module, and the second acquisition data fed back by the acquisition conversion module is received; Determine whether the second collected data is the same as the data corresponding to the target measuring point in the first collected data; If the second acquisition data is different from the data corresponding to the target measuring point in the first acquisition data, then according to the sorting result, the next target measuring point is selected from the test instruction, the second simulation data corresponding to the selected target measuring point is sent to the acquisition conversion module, and the subsequent steps are repeated until the second acquisition data corresponding to the last target measuring point in the test instruction is different from the data corresponding to the last target measuring point in the first acquisition data.

4. The acquisition conversion module testing method according to any one of claims 1 to 3, characterized in that: Generating a test result of the acquisition conversion module according to the second simulation data, the first acquisition data and the second acquisition data, including: Generate a data comparison table for the target measuring point according to the first collected data, and the second simulation data and the second collected data corresponding to each target measuring point; According to the data comparison table, respectively determine the number of target measuring points in the second collected data corresponding to each target measuring point that are the same as the second simulation data of the target measuring point; Determine whether the number of measuring points corresponding to the target measuring point is not 1; If the number of measuring points corresponding to the target measuring point is not 1, it is determined that the test result of the acquisition conversion module is unqualified.

5. The acquisition conversion module testing method according to claim 4, characterized in that: After determining whether the number of measuring points corresponding to the target measuring point is not 1, the method further includes: If the number of measuring points corresponding to the non-existent target measuring point is not 1, then for each target measuring point, determining a first sending time for sending the second simulation data corresponding to the target measuring point to the acquisition conversion module, and a first receiving time for receiving the second acquisition data corresponding to the target measuring point fed back by the acquisition conversion module; determining a test response time of the target measuring point according to the first sending time and the first receiving time; Based on the test response time of each target test point, a first test result of the acquisition conversion module is generated.

6. The acquisition conversion module testing method according to any one of claims 1 to 3, characterized in that: The method is applied to a test device, the acquisition conversion module includes a plurality of output terminals, the test device includes a plurality of input terminals, and each output terminal of the acquisition conversion module is respectively connected to an input terminal of the test device through a northbound protocol; The second collected data includes the terminal collected data output by each output terminal of the collection conversion module; Generating a test result of the acquisition conversion module according to the second simulation data, the first acquisition data and the second acquisition data, including: Determine whether the second simulation data is the same as the corresponding data collected from each terminal; If the second simulation data is different from the corresponding data collected at each end, determining that the test result of the collection conversion module is unqualified; If the second simulation data is the same as the corresponding data collected at each end, then according to the second simulation data and the northbound protocol corresponding to each output end of the test device, respectively determine the protocol conversion data after each output end performs protocol conversion on the second simulation data; Determine the protocol conversion result of each output terminal respectively according to the first collected data, and the protocol conversion data and terminal collected data corresponding to each output terminal; Based on the protocol conversion result of each output terminal, a second test result of the acquisition conversion module is generated.

7. The acquisition conversion module testing method according to any one of claims 1 to 3, characterized in that: The method is applied to a test device, and before generating second simulation data corresponding to each target measuring point according to the test instruction and a preset test data generation rule, it also includes: Determining whether the first simulation data is the same as the first collected data; If the first simulation data is the same as the first acquisition data, determining the initial response time of the acquisition conversion module according to the second sending time of the first simulation data and the second receiving time of the first acquisition data; According to the initial response time, a connection state between the test device and the acquisition conversion module is determined.

8. A test device for an acquisition conversion module, characterized in that: include: A connecting unit, configured to send the preset first simulation data to the acquisition conversion module in response to a data acquisition request from the acquisition conversion module, and receive the first acquisition data fed back by the acquisition conversion module; A generating unit, configured to generate second simulation data corresponding to each target measuring point according to the test instruction and a preset test data generating rule if a test instruction is received; wherein the test instruction includes a test instruction for at least one target measuring point; The test unit is used to send the second simulation data to the acquisition conversion module and receive the second acquisition data fed back by the acquisition conversion module; and generate a test result of the acquisition conversion module according to the second simulation data, the first acquisition data and the second acquisition data.

9. An electronic device comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.