Disclosure of Invention
The embodiment of the invention provides a detection method and a detection system for an upper computer and a frequency conversion integrated board, which can improve the test efficiency of the frequency conversion integrated board.
In a first aspect, an embodiment of the present invention provides an upper computer, including: the system comprises a communication parameter acquisition unit, a communication detection unit, a control processing unit and a working state detection unit; wherein,
the communication parameter acquiring unit is used for acquiring communication parameters;
the communication detection unit is used for detecting whether the communication parameters are matched with a communication protocol corresponding to an external frequency conversion integrated board to be detected, and when the communication parameters are matched with the communication protocol of the frequency conversion integrated board to be detected, a control parameter input template is provided so that a user can input control parameters according to the control parameter input template;
the control processing unit is used for generating a control instruction according to the control parameter input by the user and sending the control instruction to the frequency conversion integrated board to be detected;
the working state detection unit is used for receiving working parameters and determining whether the working state of the to-be-detected frequency conversion integrated board is normal or not according to the working parameters, wherein the working parameters are generated when the to-be-detected frequency conversion integrated board controls an external load to work according to the control instruction.
Preferably, the first and second electrodes are formed of a metal,
the communication detection unit is further configured to provide a communication parameter modification template when the communication parameter is detected to be mismatched with the communication protocol, so that a user can modify the communication parameter according to the communication parameter modification template; triggering the communication parameter acquisition unit;
the communication parameter obtaining unit is configured to receive the modified communication parameter.
Preferably, the first and second electrodes are formed of a metal,
the communication parameters include: a communication header and a number of data bits;
the communication detection unit is configured to detect whether the communication header code and the data bit number are respectively the same as the communication header code and the data bit number included in the communication protocol, and if so, determine that the communication parameter matches the communication protocol.
Preferably, the first and second electrodes are formed of a metal,
the communication parameter acquisition unit is used for reading prestored communication parameters from a memory;
preferably, the first and second electrodes are formed of a metal,
the communication detection unit is further used for storing the communication parameters to a memory when the communication parameters are matched with the communication protocol;
preferably, the first and second electrodes are formed of a metal,
further comprising: a display unit; wherein,
and the display unit is used for displaying the working parameters of the peripheral load.
In a second aspect, an embodiment of the present invention provides a method for detecting a frequency conversion integrated board, including:
acquiring communication parameters;
detecting whether the communication parameters are matched with a communication protocol corresponding to the frequency conversion integrated board to be detected;
when the communication parameters are matched with the communication protocol of the frequency conversion integrated board to be detected, providing a control parameter input template so that a user can input control parameters according to the control parameter input template;
generating a control instruction according to a control parameter input by a user, and sending the control instruction to the to-be-detected frequency conversion integrated board;
receiving working parameters, wherein the working parameters are generated when the to-be-detected frequency conversion integrated board controls an external load to work according to the control instruction;
and determining whether the working state of the to-be-detected frequency conversion integrated plate is normal or not according to the working parameters.
Preferably, the first and second electrodes are formed of a metal,
after detecting whether the communication parameters are matched with the communication protocol corresponding to the frequency conversion integrated board to be detected, the method further includes:
when the communication parameters are not matched with the communication protocol, providing a communication parameter change template so that a user can change the communication parameters according to the communication parameter change template;
the acquiring of the communication parameters comprises: acquiring the modified communication parameters;
preferably, the first and second electrodes are formed of a metal,
the communication parameters include: a communication header and a number of data bits;
the detecting whether the communication parameters are matched with the communication protocol corresponding to the frequency conversion integrated board to be detected comprises the following steps: detecting whether the communication head code and the data bit number are respectively the same as the communication head code and the data bit number included in the communication protocol.
Preferably, the first and second electrodes are formed of a metal,
the acquiring of the communication parameters comprises: reading prestored communication parameters from a memory;
preferably, the first and second electrodes are formed of a metal,
when the communication parameter is matched with the communication protocol of the frequency conversion integrated board to be detected, the method further comprises the following steps: storing the communication parameters to a memory;
preferably, the first and second electrodes are formed of a metal,
after the receiving the working parameters generated when the to-be-detected frequency conversion integrated board controls the peripheral load to work according to the control command, the method further comprises the following steps: and displaying the working parameters.
In a third aspect, an embodiment of the present invention provides a detection system, including: a frequency conversion integrated board and the upper computer according to any one of the above embodiments of the present invention; wherein,
the frequency conversion integrated board is used for receiving a control instruction sent by the upper computer and controlling an external load to work according to the control instruction; sending working parameters generated when the peripheral load works according to the control instruction to the upper computer;
and the upper computer is used for determining whether the working state of the frequency conversion integrated plate is normal or not according to the working parameters.
Preferably, the first and second electrodes are formed of a metal,
the frequency conversion integrated board is used for analyzing a communication head code, at least one effective control data and first data verification information from the control instruction, and determining second data verification information according to the communication head code and the at least one effective control data; and determining whether the first check information and the second check information are the same, and executing the control command to control the peripheral load to work when the first check information and the second check information are the same.
Preferably, the first and second electrodes are formed of a metal,
the frequency conversion integrated board is used for calculating the second data verification information according to the following calculation formula;
wherein D isnCharacterizing said second data check information, D0Characterizing the header code, DiCharacterizing an ith one of the valid control data.
The embodiment of the invention provides an upper computer, a detection method of a frequency conversion integrated board and a detection system, wherein after a communication parameter matched with a communication protocol of the frequency conversion integrated board to be detected is received, a control parameter input template is provided, so that a user inputs a control parameter according to the control parameter input template, then a control instruction is generated according to the input control parameter, and the generated control instruction is sent to the frequency conversion integrated board to be detected, so that the frequency conversion integrated board to be detected controls a peripheral load to work according to the received control instruction, and the working parameter of the peripheral load is returned to the upper computer, so that the upper computer determines whether the working state of the frequency conversion integrated board is normal or not according to the received working parameter. From this, the host computer can communicate with the frequency conversion all-in-one board of different communication agreement according to the different communication parameters of receiving, and an host computer can communicate with a plurality of frequency conversion all-in-one boards promptly to avoided must at first develop with wait to detect after the host computer that frequency conversion all-in-one board corresponds, just can test frequency conversion all-in-one board, and then improved the efficiency of software testing of frequency conversion all-in-one board.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides an upper computer, including: a communication parameter acquisition unit 101, a communication detection unit 102, a control processing unit 103 and a working state detection unit 104; wherein,
the communication parameter acquiring unit 101 is configured to acquire a communication parameter;
the communication detection unit 102 is configured to detect whether the communication parameter matches a communication protocol corresponding to an external frequency conversion integrated board to be detected, and when the communication parameter matches the communication protocol of the frequency conversion integrated board to be detected, provide a control parameter input template so that a user inputs a control parameter according to the control parameter input template;
the control processing unit 103 is configured to generate a control instruction according to the control parameter input by the user, and send the control instruction to the frequency conversion integrated board to be detected;
the working state detection unit 104 is configured to receive a working parameter, and determine whether the working state of the to-be-detected frequency conversion integrated board is normal according to the working parameter, where the working parameter is generated when the to-be-detected frequency conversion integrated board controls an external load to work according to the control instruction.
In the above embodiment, after receiving the communication parameter matched with the communication protocol of the frequency conversion integrated board to be detected, a control parameter input template is provided, so that a user inputs the control parameter according to the control parameter input template, then a control instruction is generated according to the input control parameter, and the generated control instruction is sent to the frequency conversion integrated board to be detected, so that the frequency conversion integrated board to be detected controls the peripheral load to work according to the received control instruction, and the working parameter of the peripheral load is returned to the upper computer, so that the upper computer determines whether the working state of the frequency conversion integrated board is normal or not according to the received working parameter. From this, the host computer can communicate with the frequency conversion all-in-one board of different communication agreement according to the different communication parameters of receiving, and an host computer can communicate with a plurality of frequency conversion all-in-one boards promptly to avoided must at first develop with wait to detect after the host computer that frequency conversion all-in-one board corresponds, just can test frequency conversion all-in-one board, and then improved the efficiency of software testing of frequency conversion all-in-one board.
Specifically, in an embodiment of the present invention, the communication parameters include: a communication header and a number of data bits; the communication detecting unit 102 is configured to detect whether the number of the communication header and the number of the data bits are respectively the same as the number of the communication header and the number of the data bits included in the communication protocol, and if so, determine that the communication parameter matches the communication protocol.
For example, if the communication header code included in the communication parameter is 0 and the number of data bits is 10 bits, the communication parameter can be matched with the communication protocol only if the communication header code included in the communication protocol is also 0 and the number of data bits is also 10 bits, otherwise, the communication parameter is considered to be not matched with the number of data bits.
In order to further improve the testing efficiency of the frequency conversion integrated board, in an embodiment of the present invention, the communication detecting unit 102 is further configured to provide a communication parameter modification template when detecting that the communication parameter does not match the communication protocol, so that a user modifies the communication parameter according to the communication parameter modification template; triggering the communication parameter acquisition unit;
the communication parameter obtaining unit 101 is configured to receive the modified communication parameters.
For example, the upper computer is a display panel with a human-computer interaction interface, when the display panel is powered on, the upper computer enters a communication parameter setting interface and automatically reads the communication parameters stored in the last working, and if the communication parameters stored in the last working are not matched with the communication protocol of the frequency conversion integrated plate to be detected, a user can change the communication parameters through a communication parameter changing template (here, the communication parameter setting interface). Specifically, when the communication parameter has a plurality of data bits, such as communication header bits and valid data bits, the user can move the cursor on the communication parameter setting interface through the up, down, left, right keys of the display panel, so as to change the value of each data bit of the communication parameter. And after the whole communication parameter is changed, the confirming key is clicked again, so that the display panel can receive the changed communication parameter, and then whether the changed communication parameter is matched with the communication protocol of the frequency conversion integrated board to be detected or not is detected. From this, the user can change communication parameter according to the communication protocol of different frequency conversion intergral template to make the host computer communicate with the frequency conversion intergral template that has different communication protocol. When detecting the frequency conversion integrated board, the upper computer can be selected randomly without matching the frequency conversion integrated board and the upper computer one by one, so that the test efficiency of the frequency conversion integrated board is further improved.
In an embodiment of the present invention, the communication detecting unit 102 is further configured to store the communication parameter to a memory when detecting that the communication parameter matches the communication protocol;
the communication parameter acquiring unit 101 is configured to read a pre-stored communication parameter from a memory;
here, when it is detected that the communication parameter matches the communication protocol of the frequency conversion integrated board to be detected, the communication parameter is stored in the Memory, for example, in an Electrically Erasable Programmable Read Only Memory (EEPROM), when the upper computer operates next time, the last stored communication parameter may be directly Read from the EEPROM, and when the communication parameter matches the communication protocol of the frequency conversion integrated board to be detected, for example, when the upper computer communicates with a plurality of frequency conversion integrated boards having the same communication protocol, the user does not need to re-input the communication parameter, thereby further improving the detection efficiency of the frequency conversion integrated board.
As shown in fig. 2, in an embodiment of the present invention, the upper computer may further include: a display unit 201; the display unit 201 is configured to display the working parameters of the peripheral load.
Here, when the upper computer is a display panel with a human-computer interaction interface, the display unit is an inquiry interface, and the interface can display working parameters of each peripheral load (a temperature detection module, a door switch detection module and the like), so that a user can intuitively obtain the current working parameters of each peripheral load, and user experience is improved.
As shown in fig. 3, an embodiment of the present invention provides a method for detecting a frequency conversion integrated board, which may include the following steps:
step 301: acquiring communication parameters;
step 302: detecting whether the communication parameters are matched with a communication protocol corresponding to the frequency conversion integrated board to be detected;
step 303: when the communication parameters are matched with the communication protocol of the frequency conversion integrated board to be detected, providing a control parameter input template so that a user can input control parameters according to the control parameter input template;
step 304: generating a control instruction according to a control parameter input by a user, and sending the control instruction to the to-be-detected frequency conversion integrated board;
step 305: receiving working parameters, wherein the working parameters are generated when the to-be-detected frequency conversion integrated board controls an external load to work according to the control instruction;
step 306: and determining whether the working state of the to-be-detected frequency conversion integrated plate is normal or not according to the working parameters.
In the above embodiment, after receiving the communication parameter matched with the communication protocol of the frequency conversion integrated board to be detected, a control parameter input template is provided, so that a user inputs the control parameter according to the control parameter input template, then a control instruction is generated according to the input control parameter, and the generated control instruction is sent to the frequency conversion integrated board to be detected, so that the frequency conversion integrated board to be detected controls the peripheral load to work according to the received control instruction, and the working parameter of the peripheral load is returned to the upper computer, so that the upper computer determines whether the working state of the frequency conversion integrated board is normal or not according to the received working parameter. From this, the host computer can communicate with the frequency conversion all-in-one board of different communication agreement according to the different communication parameters of receiving, and an host computer can communicate with a plurality of frequency conversion all-in-one boards promptly to avoided must at first develop with wait to detect after the host computer that frequency conversion all-in-one board corresponds, just can test frequency conversion all-in-one board, and then improved the efficiency of software testing of frequency conversion all-in-one board.
Specifically, in an embodiment of the present invention, the communication parameters include: a communication header and a number of data bits; specific embodiments of step 302 may include: detecting whether the communication head code and the data bit number are respectively the same as the communication head code and the data bit number included in the communication protocol.
For example, if the communication header code included in the communication parameter is 0 and the number of data bits is 10 bits, the communication parameter can be matched with the communication protocol only if the communication header code included in the communication protocol is also 0 and the number of data bits is also 10 bits, otherwise, the communication parameter is considered to be not matched with the number of data bits.
In order to further improve the testing efficiency of the frequency conversion integrated board, in an embodiment of the present invention, after step 302, the method may further include: when the communication parameters are not matched with the communication protocol, providing a communication parameter change template so that a user can change the communication parameters according to the communication parameter change template;
the specific implementation of step 301 may include: and acquiring the modified communication parameters.
For example, the upper computer is a display panel with a human-computer interaction interface, when the display panel is powered on, the upper computer enters a communication parameter setting interface and automatically reads the communication parameters stored in the last working, and if the communication parameters stored in the last working are not matched with the communication protocol of the frequency conversion integrated plate to be detected, a user can change the communication parameters through a communication parameter changing template (here, the communication parameter setting interface). Specifically, when the communication parameter has a plurality of data bits, such as communication header bits and valid data bits, the user can move the cursor on the communication parameter setting interface through the up, down, left, right keys of the display panel, so as to change the value of each data bit of the communication parameter. And after the whole communication parameter is changed, the confirming key is clicked again, so that the display panel can receive the changed communication parameter, and then whether the changed communication parameter is matched with the communication protocol of the frequency conversion integrated board to be detected or not is detected. From this, the user can change communication parameter according to the communication protocol of different frequency conversion intergral template to make the host computer communicate with the frequency conversion intergral template that has different communication protocol. When detecting the frequency conversion integrated board, the upper computer can be selected randomly without matching the frequency conversion integrated board and the upper computer one by one, so that the test efficiency of the frequency conversion integrated board is further improved.
In an embodiment of the present invention, after step 303, the method may further include: storing the communication parameters to a memory; the specific implementation of step 101 may include: reading prestored communication parameters from a memory;
here, when detecting that the communication parameter matches with the communication protocol of the frequency conversion integrated board to be detected, store the communication parameter to the memory, for example, store to EEPROM, then when the host computer is run next time, can directly read the communication parameter that was stored last time from EEPROM, when this communication parameter matches with the communication protocol of the frequency conversion integrated board to be detected, for example, when the host computer communicates with a plurality of frequency conversion integrated boards that have the same communication protocol, the user then need not to carry out re-input to the communication parameter again to the detection efficiency of frequency conversion integrated board has further been improved.
In an embodiment of the present invention, after step 305, the method further includes: and displaying the working parameters.
Here, when the upper computer is a display panel with a human-computer interaction interface, the display unit is an inquiry interface, and the interface can display working parameters of each peripheral load (a temperature detection module, a door switch detection module and the like), so that a user can intuitively obtain the current working parameters of each peripheral load, and user experience is improved.
As shown in fig. 4, an embodiment of the present invention provides a detection system, including: a frequency conversion integrated board 401 and an upper computer 402 according to any of the above embodiments of the present invention; wherein,
the frequency conversion integrated board 401 is configured to receive a control instruction sent by the upper computer 402, and control an external load to work according to the control instruction; and sending working parameters generated when the peripheral load works according to the control instruction to the upper computer 402;
the upper computer 402 is configured to determine whether the working state of the frequency conversion integrated board 401 is normal according to the working parameters.
In the above embodiment, the frequency conversion integrated board controls the peripheral load to work according to the control instruction sent by the upper computer, and returns the working parameters of the peripheral load to the upper computer, so that the upper computer determines whether the working state of the frequency conversion integrated board is normal or not according to the received working parameters. From this, the host computer can communicate with the frequency conversion intergral template of different communication agreement, and a host computer can communicate with a plurality of frequency conversion intergral templates promptly to avoided at first developing and wait to detect after the host computer that frequency conversion intergral template corresponds, just can test frequency conversion intergral template, and then improved the efficiency of software testing of frequency conversion intergral template.
In an embodiment of the present invention, the frequency conversion integrated board 401 is configured to parse a communication header code, at least one valid control data, and first data check information from the control command, and determine second data check information according to the communication header code and the at least one valid control data; and determining whether the first check information and the second check information are the same, and executing the control command to control the peripheral load to work when the first check information and the second check information are the same.
For example, user inputThe control parameter of (1) has 5 data bits, wherein, the first bit is the communication header code bit, the last bit is the data check bit, middle three-digit is effective control data bit, then after the host computer generated control instruction according to the control parameter of user input, the concrete numerical value on every data bit can be analyzed out from control instruction to the frequency conversion intergral template that receives control instruction, is the communication header code that is located communication header code bit, the effective control data that is located three effective control data bit respectively to and be located the first data check information of data check bit. Then, the frequency conversion integrated board utilizes a formula according to the analyzed communication head code and effective control dataAnd calculating second data verification information, wherein the second data verification information is characterized, the data head code is characterized, the ith effective control data is characterized, and the data verification information is the sum of the data head code and the three effective control data.
And comparing the first data verification information carried in the control instruction of the upper computer with the second data verification information calculated by the frequency conversion all-in-one machine to obtain whether the control instruction is tampered in the process of being transmitted to the frequency conversion all-in-one machine by the upper computer. When the first data verification information and the second data verification information are the same, the data transmission process is safe and accurate, and the frequency conversion all-in-one machine controls the peripheral load to work according to the received control instruction. When the first data verification information and the second data verification information are different, the fact that a fault occurs in the data transmission process is shown, the data are tampered or attacked, the frequency conversion integrated board does not control the peripheral load according to the received control instruction, misoperation of the peripheral load is avoided, the peripheral load is prevented from being fed back to the wrong working parameters of the upper computer, and therefore the accuracy of detection of the frequency conversion integrated board is improved.
The following describes a method for using the detection system provided by the embodiment of the present invention in detail by taking the detection of the frequency conversion integrated board in the refrigerator as an example, as shown in fig. 5, the method may include the following steps:
step 501: and after the upper computer is electrified, reading the prestored communication parameters from the memory.
Here, the communication parameters include a communication header code and a data bit number, for example, the communication header code read from the EEPROM by the upper computer is 0, and the data bit number is 10 bits.
Step 502: and judging whether the communication parameters are matched with the communication protocol of the frequency conversion integrated board of the refrigerator, if so, executing step 505, otherwise, executing step 503.
The communication protocol of the frequency conversion integrated board of the refrigerator also carries a communication head code and a data bit number, and whether the communication head code and the data bit number read from the memory are respectively the same as the communication head code and the data bit number in the communication protocol or not is judged by comparing the communication head code and the data bit number, so that whether the communication head code and the data bit number are matched with the communication protocol or not is judged.
Step 503: and providing a communication parameter change template so that a user can change the communication parameters according to the communication parameter change template.
Step 504: the modified communication parameters are received and step 502 is performed.
For example, the upper computer is a display panel with a human-computer interaction interface, the communication parameter modification template is a parameter setting interface of the display panel, and a user can move a cursor on the communication parameter setting interface through upper, lower, left and right keys of the display panel on the parameter setting interface so as to modify the numerical value of each data bit of the communication parameter. When each data bit is in eight-bit binary data format, if the user inputs illegal parameters, for example, non-binary data, during the modification process, the system gives an error prompt.
Step 505: and storing the communication parameters into a memory, and providing a control parameter input template so that a user can input control parameters according to the control parameter input template.
The control parameter input template is a control interface of a display panel, the format of the control parameter is not eight-digit binary data, and a user can input the control parameter on the control interface sequentially through upper, lower, left and right keys of the display panel. For example, the control parameter has 10 data bits, the control interface performs page display on the 10 data bits, each page displays 4-bit data, and the cyclic display of each interface of the control interface can be realized by moving the cursor up and down, so as to perform complete input on the control parameter.
The communication parameters are stored in the storage, for example, the communication parameters are stored in the EEPROM, when the upper computer runs next time, the communication parameters stored last time can be directly read from the EEPROM, and when the communication parameters are matched with the communication protocol of the frequency conversion integrated board to be detected, for example, when the upper computer communicates with a plurality of frequency conversion integrated boards with the same communication protocol, a user does not need to input the communication parameters again.
Step 506: and generating a control instruction according to the control parameters input by the user, and sending the control instruction to a frequency conversion integrated board of the refrigerator.
In the 10 input data bits, the first bit is a communication head code, the last bit is first data check information, the other middle 8 data bits are effective control data, the upper computer calculates the first data check information according to the communication head code and the effective control data, and generates a control instruction according to the calculated first data check information, the communication head code and the effective control data.
Step 507: and the frequency conversion integrated board of the refrigerator analyzes the communication head code, at least one effective control data and first data verification information from the control command.
Step 508: second data check information is calculated based on the communication header and the at least one valid control data.
The frequency conversion integrated plate of the refrigerator can be according to the formulaWherein the second data check information is characterized, the data header code is characterized, and the ith data check information is characterizedAnd (4) the effective control data, and calculating second data verification information, namely the data verification information is the sum of the data head code and the 8 effective control data.
Step 509: and judging whether the first check information and the second check information are the same, if so, executing the step 510, otherwise, ending the current process.
Step 510: and controlling a peripheral load to work according to the control instruction, and sending working parameters generated when the peripheral load works according to the control instruction to the upper computer.
For example, the frequency conversion integrated board of the refrigerator controls the temperature detection module to detect the temperature of the refrigerating chamber of the refrigerator according to a control instruction of the upper computer, and sends the detected temperature to the upper computer.
Step 511: and the upper computer displays the working parameters and determines whether the working state of the frequency conversion integrated plate of the refrigerator is normal or not according to the working parameters.
The working parameters are displayed through the query interface of the display panel, and the query interface and the control interface can realize circular display through switching the operation keys, so that different control parameters can be received conveniently, different peripheral loads can be controlled, the working parameters of the peripheral loads can be displayed in real time, and a user can check the working parameters conveniently.
The invention also provides a readable medium comprising executable instructions which, when executed by a processor of a storage controller, cause the storage controller to perform a method as provided by any of the above-described embodiments of the invention.
In addition, the present invention also provides a memory controller comprising: a processor, a memory, and a bus; the memory is used for storing execution instructions, the processor is connected with the memory through the bus, and when the storage controller runs, the processor executes the execution instructions stored in the memory, so that the storage controller executes the method provided by any one of the above embodiments of the invention.
In summary, the embodiments of the present invention have at least the following advantages:
1. in the embodiment of the invention, after receiving the communication parameters matched with the communication protocol of the frequency conversion integrated board to be detected, a control parameter input template is provided, so that a user inputs the control parameters according to the control parameter input template, then a control instruction is generated according to the input control parameters, the generated control instruction is sent to the frequency conversion integrated board to be detected, the frequency conversion integrated board to be detected controls the peripheral load to work according to the received control instruction, and the working parameters of the peripheral load are returned to the upper computer, so that the upper computer determines whether the working state of the frequency conversion integrated board is normal or not according to the received working parameters. From this, the host computer can communicate with the frequency conversion all-in-one board of different communication agreement according to the different communication parameters of receiving, and an host computer can communicate with a plurality of frequency conversion all-in-one boards promptly to avoided must at first develop with wait to detect after the host computer that frequency conversion all-in-one board corresponds, just can test frequency conversion all-in-one board, and then improved the efficiency of software testing of frequency conversion all-in-one board.
2. In the embodiment of the invention, when the communication parameters are not matched with the communication protocol of the frequency conversion all-in-one machine, the communication parameter changing template is provided, so that a user can change the communication parameters according to the communication parameter template and verify the changed communication parameters again. From this, the user can change communication parameter according to the communication protocol of different frequency conversion intergral template to make the host computer communicate with the frequency conversion intergral template that has different communication protocol. When detecting the frequency conversion integrated board, the upper computer can be selected randomly without matching the frequency conversion integrated board and the upper computer one by one, so that the test efficiency of the frequency conversion integrated board is further improved.
3. In the embodiment of the invention, when the communication parameters are matched with the communication protocol of the frequency conversion integrated board to be detected, the communication parameters are stored in the memory, and when the upper computer runs, the pre-stored communication parameters can be directly read from the memory, so that a user does not need to input the communication parameters again every time, and the detection efficiency of the frequency conversion integrated board is further improved.
4. In the embodiment of the invention, the upper computer can display the working parameters of the external loads, so that a user can visually acquire the current working parameters of each external load, and the user experience is improved.
5. In the embodiment of the invention, the frequency conversion integrated board analyzes the communication head code, the at least one effective control data and the first data check information from the control instruction, calculates the second data check information according to the communication head code and the at least one effective control data, and controls the peripheral load to work according to the control instruction when the first check information is the same as the second check information. The misoperation of the external load is avoided, so that the wrong working parameters are fed back to the upper computer, and the accuracy of detecting the frequency conversion integrated board is improved.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.