CN113515461B - Communication test method and device, electronic equipment and storage medium - Google Patents

Communication test method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113515461B
CN113515461B CN202110881174.3A CN202110881174A CN113515461B CN 113515461 B CN113515461 B CN 113515461B CN 202110881174 A CN202110881174 A CN 202110881174A CN 113515461 B CN113515461 B CN 113515461B
Authority
CN
China
Prior art keywords
control instruction
module
tested
feedback data
control board
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110881174.3A
Other languages
Chinese (zh)
Other versions
CN113515461A (en
Inventor
王媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Information Technology Co Ltd
Original Assignee
Jingdong Technology Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Information Technology Co Ltd filed Critical Jingdong Technology Information Technology Co Ltd
Priority to CN202110881174.3A priority Critical patent/CN113515461B/en
Publication of CN113515461A publication Critical patent/CN113515461A/en
Application granted granted Critical
Publication of CN113515461B publication Critical patent/CN113515461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The embodiment of the invention discloses a communication test method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining a control instruction set corresponding to the communication test; wherein the control instruction set comprises at least one control instruction to be used; based on the at least one control instruction to be used, carrying out communication test on the module to be tested and the electric control board to obtain target feedback data corresponding to each control instruction to be used; and determining the communication test result of the module to be tested and the electric control board based on the target feedback data and the preset feedback data corresponding to the corresponding control instruction to be used. The technical scheme of the embodiment of the invention solves the problems of longer test period and lower working efficiency when the intelligent product is tested in a whole machine, realizes the communication test of the module to be tested and the electric control board in advance, and carries out subsequent operation after the test passes, thereby not only improving the test efficiency, but also reducing the technical effect of the working period.

Description

Communication test method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a communication test method, a device, electronic equipment and a storage medium.
Background
With the development of internet technology, more and more products tend to be intelligent. The generation of an intelligent product requires the cooperation of multiple parties of branding parties, technical service parties, module providers, and electronic control board providers. In order to improve the user experience and the requirements on the product quality, the performance of the intelligent product can be tested before the intelligent product is put on line.
At present, the performance of the product is tested by adopting the test mode: and after the equipment corresponding to the intelligent product is assembled, performing complete machine test on the intelligent product. And determining whether the intelligent product can be used according to the test result of the whole machine.
The inventors found that when implementing the present technical solution based on the above-described mode, the following problems exist:
One smart product involves more providers, and the longer the landing link of the resulting smart product. If the test result of the intelligent product is unqualified, the whole intelligent product may not be used; or the whole intelligent product is disassembled, and whether each module has a problem or not is checked in sequence, so that the problems of research and development resources waste and lower efficiency are solved. Meanwhile, when the number of the floor links is large, the access time of the intelligent product is long, the test period of the whole intelligent product is prolonged to a great extent, and the problems of time waste and low efficiency are solved.
Disclosure of Invention
The invention provides a communication test method, a device, electronic equipment and a storage medium, which realize the technical effect of leading a test role so as to improve the test efficiency.
In a first aspect, an embodiment of the present invention provides a communication testing method, where the method includes:
Determining a control instruction set corresponding to the communication test; wherein the control instruction set comprises at least one control instruction to be used;
Based on the at least one control instruction to be used, carrying out communication test on the module to be tested and the electric control board to obtain target feedback data corresponding to each control instruction to be used;
And determining the communication test result of the module to be tested and the electric control board based on the target feedback data and the preset feedback data corresponding to the corresponding control instruction to be used.
In a second aspect, an embodiment of the present invention further provides a communication testing apparatus, where the apparatus includes:
the control instruction determining module is used for determining a control instruction set corresponding to the communication test; wherein the control instruction set comprises at least one control instruction to be used;
The feedback data determining module is used for carrying out communication test on the module to be tested and the electric control board based on the at least one control instruction to be used to obtain target feedback data corresponding to each control instruction to be used; and the test result determining module is used for determining the communication test result of the module to be tested and the electric control board based on each target feedback data and the preset feedback data corresponding to the corresponding control instruction to be used.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
One or more processors;
Storage means for storing one or more programs,
When the one or more programs are executed by the one or more processors, the one or more processors implement the communication test method according to any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a communications test method according to any of the embodiments of the present invention.
According to the technical scheme, the control instruction set corresponding to the communication test is determined, and the communication test is carried out on the module to be tested and the electric control board based on the control instructions to be used in the control instruction set, so that the problems that in the prior art, after the access of each provider is completed, the intelligent product is tested, the access period is long, the testing efficiency is low are solved, further, if the testing result of the intelligent product is unqualified, the intelligent product needs to be split, the disassembled parts are further subjected to one-to-one check, the problems of low efficiency and resource waste are solved, the module to be tested and the electric control board are tested in advance before the access of each provider, the butt joint workload of the electric control board side and the product access side is reduced, the problems that when the intelligent product is unqualified in test, the disassembly is required to check each part in sequence, the testing efficiency is low, the resource waste is solved, and the testing convenience and the pre-arrangement technical effects are improved.
Drawings
In order to more clearly illustrate the technical solution of the exemplary embodiments of the present invention, a brief description is given below of the drawings required for describing the embodiments. It is obvious that the drawings presented are only drawings of some of the embodiments of the invention to be described, and not all the drawings, and that other drawings can be made according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a communication testing method according to an embodiment of the invention;
FIG. 2 is a flow chart of a communication testing method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a communication testing apparatus according to a third embodiment of the present invention;
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a schematic flow chart of a communication test method according to an embodiment of the present invention, where the embodiment is applicable to a situation of performing a communication test between a module to be tested and an electronic control board, and the method may be performed by a communication test device, where the device may be implemented in a software and/or hardware form, and the hardware may be an electronic device, where the electronic device may be a mobile terminal, a PC, or the like. The execution of the technical scheme can be executed by a server, can be executed by terminal equipment, and can be executed by the cooperation of the server and the terminal equipment.
Before introducing the technical scheme, an application scenario applicable to the technical scheme can be illustrated first. Generally, the intelligent product used by the user is determined based on multiple dimensions, such as products obtained after the branding party, the technical service platform, the module party, the electronic control board Fang Duo and the like cooperate. Wherein the branding party corresponds to the intelligent product; the technical service platform can be understood as a technical service platform if the intelligent product is expected to realize the function A, and a technical support party corresponding to the function A can be understood as the technical service platform; the module party can be understood as a user providing a module, and the module can be a chip supporting the operation of the intelligent product; an electronic control board may be understood as a user providing an electronic control board, which is a control panel in an intelligent product. Before the intelligent product is used, it is necessary to test the intelligent product to determine whether the quality of the intelligent product is overstretched. In this embodiment, in order to improve the testing efficiency of the intelligent product, the module and the electric control board may be tested for communication before the intelligent product is integrated, and this has the advantage that if the module and the electric control board can normally communicate, then the test may be passed during the whole machine test, and if the communication test result between the module and the electric control board is failed, then the whole machine test result is failed. At this time, the communication test can be performed on the module and the electronic control board in advance.
As shown in fig. 1, the method includes:
s110, determining a control instruction set corresponding to the communication test.
In this embodiment, the test between the module and the electronic control board may be used as a communication test. It can be understood that the communication test mainly determines whether the electric control board and the module can normally communicate with each other, and further determines whether the module can be integrated on the electric control board, or whether the intelligent product obtained after the module is integrated on the electric control board can pass the test. The control instruction set comprises a plurality of control instructions to be used. The specific content corresponding to each control instruction to be used is different, because the intelligent product can realize more functions, the test instructions corresponding to different functions are different, and in order to ensure that each function can be used, the test instructions corresponding to different functions can be set and used as the control instructions to be used.
Specifically, when the communication test is performed on the module and the electric control board, a plurality of control instructions corresponding to the communication test can be determined first, and the plurality of control instructions are used as control instructions to be used. The sum of the control instructions to be used may be a set of control instructions. That is, the control instruction set includes a plurality of elements, each element corresponding to a control instruction to be used.
In this embodiment, before determining the control instruction set corresponding to the communication test, the method includes: and establishing serial communication between the module to be tested and the electric control board, and determining a standard protocol of the serial communication so as to carry out data communication on the module to be tested and the electric control board based on the standard protocol.
It should be noted that, in general, one more module (chip) is used in one intelligent product, and before the chip is integrated on the electronic control board or after the chip is integrated on the electronic control board, the communication test can be performed on the module and the electronic control board by adopting the technical scheme provided by the embodiment of the invention.
If the module a is to be integrated onto the electric control board 1, the module a and the electric control board 1 may be tested in communication, and at this time, the module a may be used as the module to be tested, and the electric control board 1 may be used as the electric control board corresponding to the module a. Before the communication test, the module to be tested and the electric control board can be connected by using a serial port board so as to establish serial port communication between the module to be tested and the electric control board.
In an actual communication test, in order to improve the communication test efficiency, a standard protocol of serial port communication can be set to perform data communication based on the standard protocol, and optionally, joylink serial port standard protocols can be adopted between the module to be tested and the electric control board for communication. And packaging the control instruction to be used in a standard message format, and directly transmitting the control instruction to the module to be tested. Meanwhile, the serial port configuration requirement mainly comprises two aspects, namely, the baud rate in the first aspect and the data bit in the second aspect. Wherein, the baud rate can be provided with at least three selectable items, and the three selectable items are 9600/38400/115200 respectively, and the baud rate can be dynamically selected in the actual application process; the data bits may be 8 bits.
It should be noted that, in the process of communication test on the electric control board and the to-be-tested module, in order to avoid the problem that the electric control board and the to-be-tested module send data packets simultaneously to cause the loss of a certain data packet, the method can be limited to not send packets under the condition of serial port packet sending, and correspondingly, not send packets under the condition of serial port packet sending, the packet sending and the packet receiving can be understood as data sending and data receiving.
In this embodiment, determining a control instruction set corresponding to a communication test includes: and determining at least one control instruction to be used corresponding to the module to be tested according to the function corresponding to the module to be tested, and determining the control instruction set based on each control instruction to be used.
The module to be tested can achieve the functions of factory restoration, module restarting, wifi opening, wifi closing and the like. Control instructions to be used corresponding to different functions can be set, and the sum of all the control instructions to be used can be used as a control instruction set. That is, the control instruction set includes a plurality of control instructions to be used, and each control instruction to be used can realize a corresponding function.
And S120, carrying out communication test on the module to be tested and the electric control board based on the at least one control instruction to be used, and obtaining target feedback data corresponding to each control instruction to be used.
It should be noted that, before the module is integrated on the electric control board or after the module is integrated on the electric control board, the method provided by the embodiment of the invention can be adopted to determine whether the electric control board and the module can normally communicate. Under the general condition, if normal communication can be carried out between the module and the electric control board, the finally obtained intelligent product can be normally used, otherwise, the intelligent product cannot be normally used, so that the technical scheme realizes that the testing role is preposed, and the technical effect of testing convenience is improved.
For the sake of clearly describing the technical scheme of the embodiment of the invention, the communication test of a module to be tested and a corresponding electric control board is taken as an example.
The to-be-used instructions can be sequentially sent to the electric control board based on the to-be-tested module. If the electric control board and the module to be tested can normally communicate, the electric control board can feed back feedback data corresponding to the module to be tested, and the feedback data is taken as target feedback data.
Specifically, the to-be-used test instruction in the control instruction set can be sent to the electric control board corresponding to the to-be-used test instruction, and the electric control board can execute corresponding operation according to the received to-be-used test instruction and feed back corresponding feedback data to obtain the target feedback data.
In this embodiment, the performing, based on the at least one control instruction to be used, a communication test on the module to be tested and the electronic control board to obtain target feedback data corresponding to each control instruction to be used includes: when the to-be-tested module receives the test instruction, the to-be-used control instruction is sent to the electric control board based on the to-be-tested module; and receiving a control instruction to be used based on the electric control board, determining a response instruction corresponding to the control instruction to be used, taking the response instruction as the target feedback data, and sending the target feedback data to the module to be tested.
The test instruction may be understood as an initial instruction for performing a communication test on the module to be tested. The simulation electric control can be used for sending a test instruction to the module to be tested so as to start the communication test of the module to be tested and the electric control board.
In this embodiment, each control instruction to be used may be encapsulated in a standard message format. The fields in the standard message format may be: name, sync, version, cmd, seq, length, payload, crc16 to 16; wherein, sync: synchronization header "JL", i.e.: 0x4a,0x4c; version: a protocol version number; cmd: instruction type (basic instruction/network configuration/data transfer); seq: the instruction serial number, the instruction sending end starts accumulating from 1; the response end returns the received value; length: the length of the Payload data, the small end mode; payload: loaded data, length 0-1024; crc16 to 16: and (3) checking data, namely calculating Crc values of data behind the Sync, namely, version+cmd+seq+length+payload, and a small-end mode.
After the electric control board receives the control instruction to be used, the electric control board can execute the operation corresponding to the control instruction to be used and feed back the response instruction corresponding to the control instruction to be used, and the response instruction can be used as target feedback data and fed back the target feedback data to the module to be tested.
It should be noted that, after the to-be-tested module sends the to-be-used control instruction to the electric control board and receives the target feedback data fed back by the electric control board, the next to-be-used control instruction may be sent to the electric control board until the to-be-used control instruction is the last to-be-used test instruction in the control instruction set.
S130, determining communication test results of the module to be tested and the electric control board based on the target feedback data and preset feedback data corresponding to the corresponding control instruction to be used.
Wherein, the control command to be used is matched with the function of the module to be tested, and then the preset feedback data is matched with the corresponding control command to be used. It will be understood that the control command to be used and the standard feedback data corresponding to a certain function are known or preset. The feedback data of the standard corresponding to each control instruction to be used may be used as preset feedback data. For example, if the control command to be used is 1, the preset feedback data corresponding to the control command to be used is 1'. The communication test result includes two cases of communication test passing and communication test failing.
Specifically, feedback data corresponding to each control instruction to be used may be predetermined, and the feedback data may be used as preset feedback data. It is further understood that the correspondence between the control command to be used and the corresponding preset feedback data may be established in advance. And determining preset feedback data corresponding to the corresponding relation based on the corresponding relation and the control instruction to be used. If the received target feedback data are consistent with the corresponding preset feedback data, determining that the communication test result between the module to be tested and the electric control board is that the test is passed, otherwise, determining that the test is not passed. If the control command to be used is 00, the preset feedback data is 01, and if the received target feedback data is 01, the result corresponding to the control command to be used is passing. And if the target feedback data corresponding to each control instruction to be used is consistent with the preset feedback data, determining that the communication test result is passing.
That is, in order to shorten the product landing period, the product docking is efficiently completed. The technical scheme can carry out communication test on the module and the electric control board in advance. The standard message format is used for packaging the control instruction to simulate the communication between the module and the electric control board, and the module quality is verified by sending and receiving the instruction simply and conveniently. The module passing the test is integrated to the electric control board again, so that the quality of the module in the electric control joint debugging stage is ensured. And the two ends are subjected to quality isolation, so that the integrated test is efficiently completed.
According to the technical scheme, the control instruction set corresponding to the communication test is determined, and the communication test is carried out on the module to be tested and the electric control board based on the control instructions to be used in the control instruction set, so that the problems that in the prior art, after the access of each provider is completed, the intelligent product is tested, the access period is long, the testing efficiency is low are solved, further, if the testing result of the intelligent product is unqualified, the intelligent product needs to be split, the disassembled parts are further subjected to one-to-one check, the problems of low efficiency and resource waste are solved, the module to be tested and the electric control board are tested in advance before the access of each provider, the butt joint workload of the electric control board side and the product access side is reduced, the problems that when the intelligent product is unqualified in test, the disassembly is required to check each part in sequence, the testing efficiency is low, the resource waste is solved, and the testing convenience and the pre-arrangement technical effects are improved.
Example two
Fig. 2 is a schematic flow chart of a communication test method according to a second embodiment of the present invention, and on the basis of the foregoing embodiment, control instructions to be used in a control instruction set may be sequentially sent to a control board, so as to determine a communication test result based on target feedback data fed back by an electronic control board. Wherein, the technical terms identical to or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method includes:
S210, determining a control instruction set corresponding to a communication test; the control instruction set comprises at least one control instruction to be used.
S220, carrying out communication test on the module to be tested and the electric control board based on at least one control instruction to be used, and obtaining target feedback data corresponding to each control instruction to be used.
In this embodiment, the control command and the corresponding preset feedback data to be used may be as follows in table 1:
TABLE 1
The instruction type can be matched with the function name, the control instruction to be used corresponding to executing different functions is different, and correspondingly, the preset feedback data corresponding to the control instruction to be used is also different. The user can preset the preset feedback data corresponding to different control instructions to be used, so that when in communication test, the communication test result corresponding to the control instructions to be used is determined according to the target feedback data actually fed back and the preset feedback data. The remarks may be functions that the respective instructions to be tested correspondingly implement.
Specifically, the control instruction to be used can be sent to the electric control board, target feedback data fed back by the electric control board is received in the die set to be tested, and if the target feedback data is determined to be consistent with corresponding preset feedback data, the control instruction to be used next is sent to the electric control board.
And S230, if the target feedback data received by the module to be tested is consistent with the preset feedback data corresponding to the control instruction to be used, repeatedly executing the module to be tested and sending the next control instruction to be used to the electric control board until the control instruction to be used is the last control instruction to be used in the control instruction set. It should be noted that, each control instruction to be used in the control instruction set may be sent to the electronic control board successively based on the module to be tested. After the electric control board determines target feedback data corresponding to the control instruction to be used, the target feedback data can be fed back to the module to be tested.
Specifically, if the target feedback data received by the module to be tested is consistent with the preset feedback data corresponding to the control instruction to be used, the test result corresponding to the control instruction to be used is passed, and at this time, the next control instruction to be used, which is different from the last control instruction to be used, can be repeatedly executed and sent to the electric control board until the control instruction to be used is the last control instruction to be used in the control instruction set. And simultaneously, the last control instruction to be used is sent to the electric control board.
The control instruction set includes six control instructions to be used, namely Sync:4a 4c; version;01; cmd;05; seq; n; length:01 00; payload:01: restoring to leave the factory; 02: restarting the module; 03: turning on Wi-Fi;04: turning off Wi-Fi;05: low power consumption is turned on; 06: closing low power consumption; 07: … … Crc16 and 16. The preset response instruction corresponding to the control instruction to be used may be 00: ok;01: error. The instruction that the electronic control board can feed back is: sync:4a 4c; version:01; cmd:05; seq: n; length:01 00; payload: result (1 Byte): 00: ok;01: error; crc16 and 16. The first to-be-used instruction can be sent to the electric control board, if the feedback target feedback data is consistent with the preset feedback data, the electric control board sends the second to-be-used control instruction to the electric control board, and if the feedback target feedback data fed back by the electric control board is consistent with the preset feedback data corresponding to the second to-be-used control instruction, the third to-be-used control instruction is continuously sent to the electric control board until the to-be-used control instruction is the last to-be-used control instruction.
S240, if the target feedback data corresponding to the last control instruction to be used is consistent with the corresponding preset feedback data, determining that the communication test result of the module to be tested and the electric control board is passing.
Specifically, if the target feedback data corresponding to the last control instruction to be used is consistent with the corresponding preset feedback data, it is indicated that normal communication can be performed between the module to be tested and the electric control board, that is, the communication test result is passed.
On the basis of the technical scheme, if the target feedback data received by the module to be tested is inconsistent with the preset feedback data corresponding to the control instruction to be used, determining that the communication test result of the module to be tested and the electric control board is not passed.
It is understood that, after the control command to be used is sent to the electronic control board, the electronic control board may feed back the corresponding target feedback data. The content of the target feedback data can be inconsistent with the preset feedback data corresponding to the control instruction to be used, and can also be a null value, in this case, the communication test result can be determined to be failed, namely, the communication test result of the module to be tested and the electric control board can be determined to be failed as long as the fact that the target feedback data is inconsistent with the preset feedback data is detected.
It should be noted that, in practical application, in order to improve the efficiency of the communication test between the module to be tested and the electric control board, it may also be: if the target feedback data received by the die set to be tested is inconsistent with the preset feedback data corresponding to the control instruction to be used, recording the identification of the control instruction to be used, and sending the next control instruction to be used to an electric control board until all the control instructions to be used in the control instruction set are tested, and determining that the communication test result is not passed; or if the target feedback data received by the module to be tested is inconsistent with the preset feedback data corresponding to the control instruction to be used, recording the identification of other untested control instructions to be used when the inconsistent times reach the preset times threshold value, and determining that the communication test result is failed.
In this embodiment, after determining that the communication test result is not passed, the method further includes: and carrying out communication test again on the processed module to be tested based on the recorded identification of the control instruction to be used.
It can be understood that: and under the condition that the target feedback data corresponding to a certain control instruction to be used is detected to be inconsistent with the preset feedback data, the communication test can still be performed. At this time, the identification of the control instruction to be used, which is inconsistent with the corresponding preset feedback data, may be recorded. The method has the advantages that all control instructions to be used in the control instruction set do not need to be tested in the next test, and only the control instructions to be used corresponding to the identification of the control instructions to be used are used for communication test, so that the technical effect of test efficiency is improved.
Based on the above technical solutions, after determining that the communication test result is failed, the method further includes: determining error prompt information corresponding to a communication test result; the prompt information comprises the control instruction to be used and target feedback data.
According to the technical scheme, the control instruction set corresponding to the communication test is determined, and the communication test is carried out on the module to be tested and the electric control board based on the control instructions to be used in the control instruction set, so that the problems that in the prior art, after the access of each provider is completed, the intelligent product is tested, the access period is long, the testing efficiency is low are solved, further, if the testing result of the intelligent product is unqualified, the intelligent product needs to be split, the disassembled parts are further subjected to one-to-one check, the problems of low efficiency and resource waste are solved, the module to be tested and the electric control board are tested in advance before the access of each provider, the butt joint workload of the electric control board side and the product access side is reduced, the problems that when the intelligent product is unqualified in test, the disassembly is required to check each part in sequence, the testing efficiency is low, the resource waste is solved, and the testing convenience and the pre-arrangement technical effects are improved.
Example III
Fig. 3 is a schematic structural diagram of a communication testing device according to a fourth embodiment of the present invention, where, as shown in fig. 3, the device includes: a control instruction determination module 310, a feedback data determination module 320, and a test result determination module 330.
Wherein, the control instruction determining module 310 is configured to determine a control instruction set corresponding to the communication test; wherein the control instruction set comprises at least one control instruction to be used; the feedback data determining module 320 is configured to perform a communication test on the module to be tested and the electronic control board based on the at least one control instruction to be used, so as to obtain target feedback data corresponding to each control instruction to be used; the test result determining module 330 is configured to determine a communication test result of the module to be tested and the electric control board based on each target feedback data and preset feedback data corresponding to the corresponding control command to be used.
On the basis of the technical scheme, before the control instruction determining module is used for determining the control instruction set corresponding to the communication test, the control instruction determining module is further used for: and establishing serial communication between the module to be tested and the electric control board, and determining a standard protocol of the serial communication so as to carry out data communication on the module to be tested and the electric control board based on the standard protocol.
On the basis of the technical scheme, the control instruction determining module is further used for determining at least one control instruction to be used corresponding to the module to be tested according to the function corresponding to the module to be tested, and determining the control instruction set based on each control instruction to be used.
On the basis of the technical scheme, the target feedback data determining module comprises:
The to-be-used control instruction sending unit is used for sending the to-be-used control instruction to the electric control board based on the to-be-tested module when the to-be-tested module receives the test instruction;
And the feedback data feedback unit is used for receiving a control instruction to be used based on the electric control board, determining a response instruction corresponding to the control instruction to be used, taking the response instruction as the target feedback data, and sending the target feedback data to the module to be tested.
On the basis of the technical scheme, the to-be-used control instruction sending unit is used for sequentially sending each to-be-used control instruction in the control instruction set to the electric control board based on the to-be-tested module; correspondingly, if the target feedback data received by the module to be tested is consistent with the preset feedback data corresponding to the control instruction to be used, the feedback data feedback unit is used for repeatedly executing the step of sending the next control instruction to be used to the electric control board based on the module to be tested until the control instruction to be used is the last control instruction to be used in the control instruction set; and if the target feedback data corresponding to the last control instruction to be used is consistent with the corresponding preset feedback data, determining that the communication test result of the module to be tested and the electric control board is passing.
Based on the technical scheme, the test result determining module is further used for:
and if the target feedback data received by the module to be tested is inconsistent with the preset feedback data corresponding to the control instruction to be used, determining that the communication test result of the module to be tested and the electric control board is not passed.
Based on the technical scheme, the test result determining module is further used for:
if the target feedback data received by the die set to be tested is inconsistent with the preset feedback data corresponding to the control instruction to be used, recording the identification of the control instruction to be used, and sending the next control instruction to be used to an electric control board until all the control instructions to be used in the control instruction set are tested, and determining that the communication test result is not passed;
Or if the target feedback data received by the module to be tested is inconsistent with the preset feedback data corresponding to the control instruction to be used, recording the identification of the control instruction to be used, and when the inconsistent times are detected to reach a preset times threshold, recording other untested control instructions to be used, and determining that the communication test result is failed.
On the basis of the technical scheme, the test result determining module is further used for carrying out communication test on the processed module to be tested again based on the recorded identification of the control instruction to be used.
According to the technical scheme, the control instruction set corresponding to the communication test is determined, and the communication test is carried out on the module to be tested and the electric control board based on the control instructions to be used in the control instruction set, so that the problems that in the prior art, after the access of each provider is completed, the intelligent product is tested, the access period is long, the testing efficiency is low are solved, further, if the testing result of the intelligent product is unqualified, the intelligent product needs to be split, the disassembled parts are further subjected to one-to-one check, the problems of low efficiency and resource waste are solved, the module to be tested and the electric control board are tested in advance before the access of each provider, the butt joint workload of the electric control board side and the product access side is reduced, the problems that when the intelligent product is unqualified in test, the disassembly is required to check each part in sequence, the testing efficiency is low, the resource waste is solved, and the testing convenience and the pre-arrangement technical effects are improved. The communication test device provided by the embodiment of the invention can execute the communication test method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present invention.
Example IV
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Fig. 4 shows a block diagram of an exemplary electronic device 40 suitable for use in implementing the embodiments of the present invention. The electronic device 40 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 4, the electronic device 40 is in the form of a general purpose computing device. Components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, a bus 403 that connects the various system components (including the system memory 402 and the processing units 401).
Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 40 and includes both volatile and non-volatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 404 and/or cache memory 405. Electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 403 through one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored in, for example, memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), one or more devices that enable a user to interact with the electronic device 40, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 411. Also, electronic device 40 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 412. As shown, network adapter 412 communicates with other modules of electronic device 40 over bus 403. It should be appreciated that although not shown in fig. 4, other hardware and/or software modules may be used in connection with electronic device 40, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 401 executes various functional applications and data processing by running a program stored in the system memory 402, for example, implementing the communication test method provided by the embodiment of the present invention.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions for performing a communication test method when executed by a computer processor.
The method comprises the following steps:
Determining a control instruction set corresponding to the communication test; wherein the control instruction set comprises at least one control instruction to be used;
Based on the at least one control instruction to be used, carrying out communication test on the module to be tested and the electric control board to obtain target feedback data corresponding to each control instruction to be used;
And determining the communication test result of the module to be tested and the electric control board based on the target feedback data and the preset feedback data corresponding to the corresponding control instruction to be used.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A method of communication testing, comprising:
Determining a control instruction set corresponding to the communication test; wherein the control instruction set comprises at least one control instruction to be used;
Based on the at least one control instruction to be used, carrying out communication test on the module to be tested and the electric control board to obtain target feedback data corresponding to each control instruction to be used;
Determining communication test results of the module to be tested and the electric control board based on each target feedback data and preset feedback data corresponding to the corresponding control instruction to be used;
The communication test is performed on the module to be tested and the electric control board based on the at least one control instruction to be used to obtain target feedback data corresponding to each control instruction to be used, and the communication test comprises the following steps:
When the to-be-tested module receives the test instruction, the to-be-used control instruction is sent to the electric control board based on the to-be-tested module;
receiving the control instruction to be used based on the electric control board, determining a response instruction corresponding to the control instruction to be used, taking the response instruction as the target feedback data, and sending the target feedback data to the module to be tested;
the sending the control instruction to be used to the electric control board based on the module to be tested comprises the following steps:
Each control instruction to be used in the control instruction set is successively sent to the electric control board based on the to-be-tested module;
The determining the communication test result of the module to be tested and the electric control board based on each target feedback data and the preset feedback data corresponding to the corresponding control instruction to be used comprises the following steps:
If the target feedback data received by the module to be tested is consistent with the preset feedback data corresponding to the control instruction to be used, repeatedly executing the process of sending the next control instruction to be used to the electric control board based on the module to be tested until the control instruction to be used is the last control instruction to be used in the control instruction set;
And if the target feedback data corresponding to the last control instruction to be used is consistent with the corresponding preset feedback data, determining that the communication test result of the module to be tested and the electric control board is passing.
2. The method of claim 1, comprising, prior to said determining a set of control instructions corresponding to a communication test:
And establishing serial communication between the module to be tested and the electric control board, and determining a standard protocol of the serial communication so as to carry out data communication on the module to be tested and the electric control board based on the standard protocol.
3. The method of claim 2, wherein determining the set of control instructions corresponding to the communication test comprises:
and determining at least one control instruction to be used corresponding to the module to be tested according to the function corresponding to the module to be tested, and determining the control instruction set based on each control instruction to be used.
4. The method according to claim 1, wherein determining the communication test result of the module to be tested and the electronic control board based on each target feedback data and the preset feedback data corresponding to the corresponding control command to be used includes:
and if the target feedback data received by the module to be tested is inconsistent with the preset feedback data corresponding to the control instruction to be used, determining that the communication test result of the module to be tested and the electric control board is not passed.
5. The method according to claim 1, wherein determining the communication test result of the module to be tested and the electronic control board based on each target feedback data and the preset feedback data corresponding to the corresponding control command to be used includes:
If the target feedback data received by the die set to be tested is inconsistent with the preset feedback data corresponding to the control instruction to be used, recording the identification of the control instruction to be used, and sending the next control instruction to be used to an electric control board until all the control instructions to be used in the control instruction set are tested, and determining that the communication test result is not passed; or alternatively, the first and second heat exchangers may be,
If the target feedback data received by the module to be tested is inconsistent with the preset feedback data corresponding to the control instruction to be used, the identification of the control instruction to be used is recorded, when the inconsistent times reach the preset times threshold value, the identification of other untested control instructions to be used is recorded, and the communication test result is determined to be failed.
6. The method of claim 5, further comprising, after determining that the communication test result is not passed:
And carrying out communication test again on the processed module to be tested based on the recorded identification of the control instruction to be used.
7. A communication test device, comprising:
the control instruction determining module is used for determining a control instruction set corresponding to the communication test; wherein the control instruction set comprises at least one control instruction to be used;
the feedback data determining module is used for carrying out communication test on the module to be tested and the electric control board based on the at least one control instruction to be used to obtain target feedback data corresponding to each control instruction to be used;
The test result determining module is used for determining communication test results of the module to be tested and the electric control board based on each target feedback data and preset feedback data corresponding to the corresponding control instruction to be used;
wherein, the feedback data determining module includes:
The to-be-used control instruction sending unit is used for sending the to-be-used control instruction to the electric control board based on the to-be-tested module when the to-be-tested module receives the test instruction;
The feedback data feedback unit is used for receiving the control instruction to be used based on the electric control board, determining a response instruction corresponding to the control instruction to be used, taking the response instruction as the target feedback data, and sending the target feedback data to the module to be tested;
The to-be-used control instruction sending unit is specifically configured to:
Each control instruction to be used in the control instruction set is successively sent to the electric control board based on the to-be-tested module;
The feedback data feedback unit is specifically configured to:
If the target feedback data received by the module to be tested is consistent with the preset feedback data corresponding to the control instruction to be used, repeatedly executing the process of sending the next control instruction to be used to the electric control board based on the module to be tested until the control instruction to be used is the last control instruction to be used in the control instruction set;
And if the target feedback data corresponding to the last control instruction to be used is consistent with the corresponding preset feedback data, determining that the communication test result of the module to be tested and the electric control board is passing.
8. An electronic device, the electronic device comprising:
One or more processors;
Storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the communications testing method of any of claims 1-6.
9. A storage medium containing computer executable instructions for performing the communications test method of any of claims 1-6 when executed by a computer processor.
CN202110881174.3A 2021-08-02 2021-08-02 Communication test method and device, electronic equipment and storage medium Active CN113515461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110881174.3A CN113515461B (en) 2021-08-02 2021-08-02 Communication test method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110881174.3A CN113515461B (en) 2021-08-02 2021-08-02 Communication test method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113515461A CN113515461A (en) 2021-10-19
CN113515461B true CN113515461B (en) 2024-06-18

Family

ID=78067764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110881174.3A Active CN113515461B (en) 2021-08-02 2021-08-02 Communication test method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113515461B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111366835A (en) * 2020-02-14 2020-07-03 广东智科电子股份有限公司 Electric control board test method and test system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2473889B1 (en) * 2009-09-03 2018-11-14 Fisher Controls International Llc Emergency test control panel device, system and method
CN102087625A (en) * 2009-12-04 2011-06-08 鸿富锦精密工业(深圳)有限公司 Boot test system and test method
US20200364132A1 (en) * 2019-05-13 2020-11-19 S2 Technologies, Inc. System and method of writing, planning and executing manual tests utilizing hosting services for version control and project boards
CN110933059A (en) * 2019-11-22 2020-03-27 广州视源电子科技股份有限公司 Data communication method and device, electronic equipment, upper computer and storage medium
CN111026596A (en) * 2019-12-31 2020-04-17 珠海市运泰利自动化设备有限公司 Test platform architecture and method for computer mainboard standard
CN111274130A (en) * 2020-01-16 2020-06-12 深圳乐信软件技术有限公司 Automatic testing method, device, equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111366835A (en) * 2020-02-14 2020-07-03 广东智科电子股份有限公司 Electric control board test method and test system

Also Published As

Publication number Publication date
CN113515461A (en) 2021-10-19

Similar Documents

Publication Publication Date Title
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
CN108696589B (en) Block chain data transmission method, device, equipment and storage medium
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN109756568A (en) Processing method, equipment and the computer readable storage medium of file
CN109508295B (en) Block chain consensus algorithm testing method and device, calculating device and storage medium
CN111506335A (en) DSP + FPGA-based program online upgrading method and system
CN108647131B (en) Output system of running log
CN108337163B (en) Method and apparatus for aggregating links
CN112422485B (en) Communication method and device of transmission control protocol
CN113515461B (en) Communication test method and device, electronic equipment and storage medium
CN110609786B (en) Software testing method, device, computer equipment and storage medium
CN108052401A (en) System property monitor method, terminal device and computer readable storage medium
CN104536884A (en) Code testing method and device
CN111913861A (en) Performance test method, device, equipment and medium of Internet of things system
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
CN113391931B (en) Remote control method and device based on Bluetooth, computer equipment and storage medium
CN114244758A (en) Network diagnosis method, storage medium, electronic device and system of android platform
CN111459819B (en) Software testing method and device, electronic equipment and computer readable medium
CN112131095B (en) Pressure testing method and device
CN111464398A (en) Self-organizing centreless network high-level protocol testing method, equipment and storage medium
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN111371799A (en) Method, device and equipment for controlling data transmission and reception of MCTP (Multi-channel media processing protocol) controller
CN112423068A (en) Smart television debugging method and device, mobile terminal and readable storage medium
JP7436921B2 (en) Test system, test method and program
CN117978792B (en) Interaction method, device, equipment and medium of application program and Web terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Information Technology Co.,Ltd.

Address before: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Shuke Haiyi Information Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant