Upper and lower computer communication method, system, storage medium and computer program product

By using the parameter receiving page and the target packaging template on the upper computer to encapsulate and pass the parameters to be transferred, the problem of low interaction efficiency between the upper computer and the lower computer is solved, and fast and efficient information transmission is achieved.

CN119782224APending Publication Date: 2025-04-08SHEN ZHEN WTD ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411712008.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In the prior art, when the upper computer passes instructions to the lower computer, it needs to be transmitted through the command line and on a specific software interface, resulting in a long transmission time of the instruction and reducing the interaction efficiency between the upper computer and the lower computer.

Method used

The parameters to be transferred are obtained through the parameter receiving page on the upper computer, and the target packaging template is determined based on the parameter name, the parameters are encapsulated to generate the data to be transferred, and passed to the lower computer; the lower computer analyzes the data and feedbacks the results.

Benefits of technology

It reduces the time to input commands, improves the interaction efficiency between the upper and lower computers, and realizes the automatic generation of information that needs to be transmitted between the upper and lower computers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119782224A_ABST
    Figure CN119782224A_ABST
Patent Text Reader

Abstract

The present application discloses a method, system, storage medium and computer program product for communication between upper and lower computers, and relates to the field of data communication technology. The disclosed method for communication between upper and lower computers includes: obtaining the parameters to be transmitted through the parameter receiving page on the upper computer, and determining the target encapsulation template corresponding to the parameters to be transmitted according to the parameter name of the parameters to be transmitted; encapsulating the parameters to be transmitted according to the target encapsulation template by the upper computer to obtain the data to be transmitted, and transmitting the data to be transmitted to the lower computer connected to the upper computer; parsing the data to be transmitted by the lower computer, and transmitting the feedback information generated based on the parsing result of the data to be transmitted to the upper computer. The technical solution of the present application aims to solve the technical problem of how to improve the interaction efficiency between the upper computer and the lower computer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data communication technology, and in particular to a method, system, storage medium and computer program product for communication between upper and lower computers. Background Art

[0002] The lower computer is a computer that directly controls the equipment and obtains the equipment status. It is used to receive instructions from the upper computer and interpret these instructions into corresponding timing signals to directly control the actions of the on-site equipment.

[0003] Nowadays, when passing instructions from a host computer to a slave computer, they need to be passed in the form of command lines and on a specific software interface, which results in a long transmission time of the instructions and thus low interaction efficiency between the host computer and the slave computer.

[0004] Therefore, how to improve the interaction efficiency between the upper computer and the lower computer is a technical problem that needs to be solved by those skilled in the art. Summary of the invention

[0005] The main purpose of this application is to provide a communication method, system, storage medium and computer program product between a host and a slave computer, aiming to solve the technical problem of how to improve the interaction efficiency between the host computer and the slave computer.

[0006] To achieve the above objectives, the present application proposes a communication method between a host and a server, the method comprising:

[0007] Obtain the parameters to be transmitted through the parameter receiving page on the host computer, and determine the target package template corresponding to the parameters to be transmitted according to the parameter names of the parameters to be transmitted;

[0008] The upper computer encapsulates the parameters to be transmitted according to the target encapsulation template to obtain data to be transmitted, and transmits the data to be transmitted to a lower computer connected to the upper computer;

[0009] The data to be transmitted is analyzed by the lower computer, and feedback information generated based on the analysis result of the data to be transmitted is transmitted to the upper computer.

[0010] In one embodiment, before the step of determining the target package template corresponding to the parameter to be transferred according to the parameter name of the parameter to be transferred, the method further includes:

[0011] Obtain the system version number of the slave computer connected to the host computer;

[0012] The step of determining the target encapsulation template corresponding to the parameter to be transferred according to the parameter name of the parameter to be transferred comprises:

[0013] According to the parameter name of the parameter to be transferred and the system version number, a target encapsulation template corresponding to the parameter to be transferred is determined.

[0014] In one embodiment, the step of determining the target package template corresponding to the parameter to be transferred according to the parameter name of the parameter to be transferred and the system version number includes:

[0015] Obtain each preset packaging template corresponding to the system version number, and extract the name of the parameter to be filled corresponding to each of the packaging templates;

[0016] The names of the parameters to be filled are compared with the parameter names of the parameters to be transferred, and the encapsulation template corresponding to the parameter names to be filled that are the same as the parameter names of the parameters to be transferred is used as the target encapsulation template corresponding to the parameters to be transferred.

[0017] In one embodiment, after the step of transmitting the feedback information generated based on the analysis result of the data to be transmitted to the host computer, the method further includes:

[0018] When it is detected that the feedback information indicates that the analysis is successful, determining the instruction type of the analysis result;

[0019] When it is determined that the instruction type is a control instruction, each device to be controlled is controlled by the lower computer based on the analysis result;

[0020] When it is determined that the instruction type is a parameter adjustment instruction, the lower computer adjusts the operating parameters according to the analysis result.

[0021] In one embodiment, after the step of controlling each device to be controlled based on the analysis result by the lower computer, the method further includes:

[0022] Receiving the control results transmitted by each of the devices to be controlled through the lower computer, and transmitting each of the control results to the upper computer through the lower computer;

[0023] Classifying each of the control results by the host computer, and constructing a histogram based on the classified data;

[0024] The histogram is outputted through the parameter receiving page.

[0025] In one embodiment, the method further comprises:

[0026] Obtaining a preset numerical range corresponding to a parameter name in the parameter to be transmitted, and detecting whether a parameter value in the parameter to be transmitted belongs to the numerical range;

[0027] When it is detected that the parameter value in the parameter to be transmitted belongs to the numerical range, executing the step of encapsulating the parameter to be transmitted according to the target encapsulation template by the host computer to obtain the data to be transmitted;

[0028] When it is detected that the parameter value in the parameter to be transmitted does not belong to the numerical range, a numerical abnormality prompt is output through the parameter receiving page.

[0029] In one embodiment, the step of encapsulating the parameters to be transferred according to the target encapsulation template by the host computer to obtain the data to be transferred includes:

[0030] Determining, by the host computer, an insertion position of the parameter value in the target encapsulation template based on the parameter name of the parameter to be transferred;

[0031] The parameter value is embedded into the insertion position, and after the embedding is successful, the target encapsulation template is used as the data to be transmitted.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a communication system between a host and a server, the communication system between a host and a server comprising: a host computer and a server connected to each other;

[0033] The host computer is used for:

[0034] Obtain the parameters to be transmitted through the parameter receiving page, and determine the target encapsulation template corresponding to the parameters to be transmitted according to the parameter names of the parameters to be transmitted; encapsulate the parameters to be transmitted according to the target encapsulation template to obtain the data to be transmitted, and transmit the data to be transmitted to the lower computer;

[0035] The lower computer is used for:

[0036] The data to be transmitted is analyzed, and feedback information generated based on the analysis result of the data to be transmitted is transmitted to the host computer.

[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the upper and lower computer communication method as described above are implemented.

[0038] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the upper and lower computer communication method as described above are implemented.

[0039] In an embodiment of the present application, the present application obtains the parameters to be transmitted through a parameter receiving page on the upper computer, and determines the target encapsulation template corresponding to the parameters to be transmitted according to the parameter names of the parameters to be transmitted, and can receive the parameters to be transmitted set by the user based on the preset parameter receiving page; then the upper computer encapsulates the parameters to be transmitted according to the target encapsulation template to obtain the data to be transmitted, and transmits the data to be transmitted to the lower computer connected to the upper computer, and can quickly obtain the parameters to be transmitted while encapsulating the parameters to be transmitted through the target encapsulation template corresponding to the parameters to be transmitted, thereby automatically generating information that needs to be transmitted between the upper computer and the lower computer; then the data to be transmitted is parsed by the lower computer, and feedback information generated based on the parsing result of the data to be transmitted is transmitted to the upper computer, and the lower computer can parse the information and transmit the feedback information to the upper computer, so that the upper computer can determine whether the lower computer can parse the instruction normally.

[0040] In this application, the parameters to be transmitted can be easily obtained based on the parameter receiving page, and the parameters to be transmitted can be automatically packaged based on the target packaging template to obtain the information to be transmitted between the upper computer and the lower computer. Therefore, compared with the traditional technology, the application reduces the input time of the instruction, thereby improving the interaction efficiency between the upper computer and the lower computer. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0043] Figure 1 A flow chart of the first embodiment of the communication method between the upper and lower computers of the present application;

[0044] Figure 2 This is a schematic diagram of the parameter receiving page of the upper and lower computer communication method of this application;

[0045] Figure 3 This is a brief flow chart of determining the target packaging template in the second embodiment of the upper and lower computer communication method of this application;

[0046] Figure 4 This is a schematic diagram of a brief process of controlling a device according to an instruction type in Embodiment 3 of the upper and lower computer communication method of this application;

[0047] Figure 5This is a schematic diagram of the module structure of the upper and lower computer communication system in the embodiment of the present application.

[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0050] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0051] The lower computer is a computer that directly controls the equipment and obtains the equipment status. It is used to receive instructions from the upper computer and interpret these instructions into corresponding timing signals to directly control the actions of the on-site equipment.

[0052] Nowadays, when passing instructions from a host computer to a slave computer, they need to be passed in the form of command lines and on a specific software interface, which results in a long transmission time of the instructions and thus low interaction efficiency between the host computer and the slave computer.

[0053] Therefore, how to improve the interaction efficiency between the upper computer and the lower computer is a technical problem that needs to be solved by those skilled in the art.

[0054] To solve the above problems, the present application obtains the parameters to be transmitted through a parameter receiving page on the upper computer, and determines the target encapsulation template corresponding to the parameters to be transmitted according to the parameter names of the parameters to be transmitted, and can receive the parameters to be transmitted set by the user based on the preset parameter receiving page; then the upper computer encapsulates the parameters to be transmitted according to the target encapsulation template to obtain the data to be transmitted, and transmits the data to be transmitted to the lower computer connected to the upper computer, and can quickly obtain the parameters to be transmitted while encapsulating the parameters to be transmitted through the target encapsulation template corresponding to the parameters to be transmitted, thereby automatically generating information that needs to be transmitted between the upper computer and the lower computer; then the data to be transmitted is parsed by the lower computer, and feedback information generated based on the parsing result of the data to be transmitted is transmitted to the upper computer, and the lower computer can parse the information and transmit the feedback information to the upper computer, so that the upper computer can determine whether the lower computer can parse the instruction normally.

[0055] In this application, the parameters to be transmitted can be easily obtained based on the parameter receiving page, and the parameters to be transmitted can be automatically packaged based on the target packaging template to obtain the information to be transmitted between the upper computer and the lower computer. Therefore, compared with the traditional technology, the application reduces the input time of the instruction, thereby improving the interaction efficiency between the upper computer and the lower computer.

[0056] It should be noted that the execution subject of the upper and lower computer communication method of the present application can be a system with data processing, network communication and program running functions. The following takes the system as an example to illustrate various embodiments of the upper and lower computer communication method of the present application.

[0057] Based on this, the present application embodiment provides a communication method between a host and a server, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the upper and lower computer communication method of the present application.

[0058] In this embodiment, the upper and lower computer communication method includes steps S10 to S30:

[0059] Step S10, obtaining the parameters to be transferred through the parameter receiving page on the host computer, and determining the target package template corresponding to the parameters to be transferred according to the parameter names of the parameters to be transferred;

[0060] It is understandable that nowadays, when transmitting instructions from a host computer to a slave computer, it is necessary to switch pages back and forth in the host computer to enter command lines on different pages. Therefore, there is a problem of low communication efficiency between the host computer and the slave computer.

[0061] To solve this problem, the present application sets a parameter receiving page on the host computer. In a feasible implementation, the schematic diagram of the parameter receiving page is as follows: Figure 2 As shown. Figure 2 In the parameter receiving page, the parameter receiving page may include input boxes for multiple parameters. For example, the parameter receiving page may include: AC voltage test module, DC voltage test module, IR insulation resistance test module, OS open and short circuit detection module. Among them, the AC voltage test module may include: input boxes for test voltage, test time, current lower limit, current upper limit, arc limit, rise time, fall time, REAL limit, test frequency, NG judgment and other parameters; the DC voltage test module may include: input boxes for test voltage, current upper limit, current lower limit, test time, arc limit, rise time, fall time, WAIT time and a button for whether to enable charging current detection; the IR insulation resistance test module may include: input boxes for test voltage, test time, resistance upper limit, resistance lower limit, rise time, fall time; the OS open and short circuit detection module may include input boxes for open circuit judgment, short circuit judgment and sampling standard. In addition, the parameter receiving page may also include other buttons or input boxes to reduce the time for setting parameters.

[0062] In this embodiment, after detecting that a specific button in the parameter receiving page of the host computer is triggered, the parameter with data in the input box on the parameter receiving page can be used as the parameter to be transmitted. After obtaining the parameter to be transmitted, the parameter name of the parameter to be transmitted can be extracted, and then the target encapsulation template corresponding to the current parameter name (one or more) can be determined in each preset template to encapsulate the parameter value.

[0063] Step S20, encapsulating the parameters to be transmitted according to the target encapsulation template by the host computer to obtain data to be transmitted, and transmitting the data to be transmitted to the slave computer connected to the host computer;

[0064] In this embodiment, after determining the target package template and the parameter to be transferred, the parameter value of the parameter to be transferred can be embedded in the target package template, so that the data to be transferred for controlling the lower computer can be automatically generated based on the parameter value. Then, the data to be transferred can be transferred to the lower computer through the connection between the upper computer and the lower computer.

[0065] Step S30: parsing the data to be transmitted by the lower computer, and transmitting feedback information generated based on the parsing result of the data to be transmitted to the upper computer.

[0066] It should be noted that the analysis result refers to the information obtained through analysis, and the feedback information includes: analysis success and analysis failure.

[0067] In this embodiment, after receiving the data to be transmitted, the lower computer can parse the data to be transmitted to obtain the parsing result. In order to facilitate the upper computer to understand the parsing status of the lower computer, feedback information can also be transmitted to the upper computer so that the upper computer can confirm whether the data to be transmitted needs to be re-transmitted.

[0068] In a feasible implementation manner, the method further includes:

[0069] Step S100, obtaining a preset numerical range corresponding to a parameter name in the parameter to be transmitted, and detecting whether a parameter value in the parameter to be transmitted belongs to the numerical range;

[0070] It is understandable that different parameter names may correspond to different numerical ranges. Therefore, after obtaining the parameter value of the parameter to be transmitted, it is possible to detect whether the parameter value belongs to the numerical range corresponding to the parameter name.

[0071] Step S200, when it is detected that the parameter value in the parameter to be transmitted belongs to the numerical range, executing the step of encapsulating the parameter to be transmitted according to the target encapsulation template by the host computer to obtain the data to be transmitted;

[0072] Step S300: When it is detected that the parameter value in the parameter to be transmitted does not belong to the numerical range, a numerical abnormality prompt is output through the parameter receiving page.

[0073] In this embodiment, the present application avoids the problem of lower computer operation errors caused by non-compliant parameter values ​​by verifying the parameter values ​​obtained in the parameter receiving page.

[0074] Furthermore, in a feasible implementation manner, the above step S20 includes:

[0075] Step S201, determining, by the host computer, an insertion position of the parameter value in the target encapsulation template based on the parameter name of the parameter to be transferred;

[0076] Step S202, embedding the parameter value into the insertion position, and after successful embedding, using the target encapsulation template as data to be transferred.

[0077] It can be understood that the target package template records the parameter name and the corresponding relationship between the parameter name and the parameter value position, so the insertion position of the parameter value can be determined based on the parameter name of the parameter to be transferred, and then the parameter value can be embedded in the insertion position to obtain the target package template filled with the parameter value. Then, the target package template filled with the parameter value can be used as the data to be transferred.

[0078] In an embodiment of the present application, the present application obtains the parameters to be transmitted through a parameter receiving page on the upper computer, and determines the target encapsulation template corresponding to the parameters to be transmitted according to the parameter names of the parameters to be transmitted, and can receive the parameters to be transmitted set by the user based on the preset parameter receiving page; then the upper computer encapsulates the parameters to be transmitted according to the target encapsulation template to obtain the data to be transmitted, and transmits the data to be transmitted to the lower computer connected to the upper computer, and can quickly obtain the parameters to be transmitted while encapsulating the parameters to be transmitted through the target encapsulation template corresponding to the parameters to be transmitted, thereby automatically generating information that needs to be transmitted between the upper computer and the lower computer; then the data to be transmitted is parsed by the lower computer, and feedback information generated based on the parsing result of the data to be transmitted is transmitted to the upper computer, and the lower computer can parse the information and transmit the feedback information to the upper computer, so that the upper computer can determine whether the lower computer can parse the instruction normally.

[0079] In this application, the parameters to be transmitted can be easily obtained based on the parameter receiving page, and the parameters to be transmitted can be automatically packaged based on the target packaging template to obtain the information to be transmitted between the upper computer and the lower computer. Therefore, compared with the traditional technology, the application reduces the input time of the instruction, thereby improving the interaction efficiency between the upper computer and the lower computer.

[0080] Furthermore, based on the above-mentioned first embodiment of the upper and lower computer communication method of the present application, a second embodiment of the upper and lower computer communication method of the present application is proposed.

[0081] In this embodiment, before the above step of determining the target encapsulation template corresponding to the parameter to be transferred according to the parameter name of the parameter to be transferred, the method further includes:

[0082] Step S40, obtaining the system version number of the slave computer connected to the upper computer;

[0083] It is understandable that the command line formats required to control different versions of the lower computer are different. Therefore, it is necessary to consider the impact of the lower computer version number on determining the target packaging template.

[0084] Based on this, the above step S10 further includes:

[0085] Step S101, determining a target encapsulation template corresponding to the parameter to be transferred according to the parameter name of the parameter to be transferred and the system version number.

[0086] It can be understood that the present application adopts the method of determining the target encapsulation template according to the parameter name and the system version number of the lower computer, which can effectively reduce the probability of failure of the lower computer to parse the data packet, thereby improving the efficiency of communication between the upper computer and the lower computer.

[0087] Please refer to Figure 3 In a feasible implementation manner, the above step S101 includes:

[0088] Step S1011, obtaining each preset packaging template corresponding to the system version number, and extracting the name of the parameter to be filled corresponding to each packaging template;

[0089] It should be noted that the encapsulation template refers to the command line statement used to fill in parameter values.

[0090] It is understandable that, for the case where there are one or more parameters to be passed, for different system version numbers, statements that comply with the command line rules in the system version number can be set. Then, after obtaining the system version number of the lower computer, the system version number can be used as a search keyword to determine each package template that complies with the current system version number. Furthermore, the parameter name that needs to be filled with the parameter value in the package template can be extracted.

[0091] Step S1012, comparing the names of the parameters to be filled with the parameter name to be transferred, and taking the encapsulation template corresponding to the parameter name to be filled that is the same as the parameter name of the parameter to be transferred as the target encapsulation template corresponding to the parameter to be transferred.

[0092] It can be understood that after obtaining the parameter names to be filled in corresponding to each encapsulation template and the parameter names corresponding to the parameters to be passed, the encapsulation template with the parameter names to be filled and the parameter names to be passed that are completely consistent can be used as the target encapsulation template, so that the parameters to be passed can be encapsulated based on the target encapsulation template.

[0093] Exemplarily, when the parameter name of the parameter to be passed is "parameter 1", and there are 20 package templates corresponding to the current system version number (template 1 to template 20), if the name of the parameter to be filled in template 2 is only "parameter 1", then template 2 can be used as the target package template; when the parameter names of the parameters to be passed are "parameter 1" and "parameter 7", if the name of the parameter to be filled in template 2 is only "parameter 1", the name of the parameter to be filled in template 4 is only "parameter 7", and the name of the parameter to be filled in template 10 is only "parameter 1" and "parameter 7", then template 10 can be used as the target package template.

[0094] In this embodiment, the present application adopts a method of comparing parameter names, which can improve the efficiency of determining a target package template among multiple package templates.

[0095] Furthermore, based on the first and second embodiments of the upper and lower computer communication method of the present application, a third embodiment of the upper and lower computer communication method of the present application is proposed.

[0096] Please refer to Figure 4 Furthermore, in a feasible implementation manner, after the above step S30, the method further includes:

[0097] Step S50, when it is detected that the feedback information indicates that the analysis is successful, determining the instruction type of the analysis result;

[0098] It is understandable that the information transmitted from the upper computer to the lower computer may be used to adjust the working parameters of the lower computer, or may be used to instruct the lower computer to control a specific device. Therefore, when it is detected that the feedback information indicates that the data to be transmitted is parsed successfully, it is also necessary to determine the instruction type corresponding to the parsing result. Among them, the instruction type includes control instructions (controlling a collective device) and parameter adjustment instructions (adjusting the working parameters of the lower computer).

[0099] Step S60, when it is determined that the instruction type is a control instruction, each device to be controlled is controlled by the lower computer based on the analysis result;

[0100] It should be noted that the device to be controlled refers to the device controlled by the lower computer.

[0101] Step S70: When it is determined that the instruction type is a parameter adjustment instruction, the lower computer adjusts the operating parameters according to the analysis result.

[0102] In this embodiment, if the instruction type is a control instruction, each device to be controlled can be controlled by the lower computer according to the analysis result. For example, if the analysis result is to obtain data collected by a certain sensor, the data collected by the sensor can be obtained by the lower computer based on the analysis result, and the obtained data can be transmitted to the upper computer by the lower computer. If the instruction type is a parameter adjustment instruction, the operating parameters of the lower computer can be adjusted according to the parameter value in the analysis result.

[0103] In this embodiment, the present application can improve the operating efficiency of the lower computer by classifying the analysis results.

[0104] In a feasible implementation manner, after the above step S60, the method further includes:

[0105] Step S80, receiving the control results transmitted by each of the devices to be controlled through the lower computer, and transmitting each of the control results to the upper computer through the lower computer;

[0106] It should be noted that the control result is related to the specific control instruction. In a feasible implementation, the control result may be control success or control failure. In the scenario of testing a circuit board, the control result may also be that the circuit board is normal, or the circuit board is short-circuited, or the circuit board is open-circuited, or the circuit board is open-circuited or short-circuited. This application does not limit the specific content of the control result.

[0107] Step S90, classifying each of the control results by the host computer, and constructing a histogram based on the classified data;

[0108] Specifically, control results with the same content can be classified into one category, so that the corresponding numbers of different categories can be counted, and then a histogram can be constructed based on the corresponding numbers of different categories, so as to intuitively output the control effect at the overall level.

[0109] Step S100: outputting the histogram via the parameter receiving page.

[0110] In this embodiment, the present application facilitates intuitive display of the results of the interaction between the upper computer and the lower computer by classifying the control results and constructing a histogram based on the classification results, thereby improving the user experience.

[0111] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the upper and lower computer communication method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0112] This application also provides a communication system between upper and lower computers. Please refer to Figure 5 , the upper and lower computer communication system comprises: an upper computer 10 and a lower computer 20 connected to each other;

[0113] The host computer 10 is used for:

[0114] Obtain the parameters to be transmitted through the parameter receiving page, and determine the target encapsulation template corresponding to the parameters to be transmitted according to the parameter names of the parameters to be transmitted; encapsulate the parameters to be transmitted according to the target encapsulation template to obtain the data to be transmitted, and transmit the data to be transmitted to the lower computer;

[0115] The lower computer 20 is used for:

[0116] The data to be transmitted is analyzed, and feedback information generated based on the analysis result of the data to be transmitted is transmitted to the host computer.

[0117] In one embodiment, the host computer 10 is further used for:

[0118] Obtain the system version number of the slave computer connected to the host computer;

[0119] Based on this, the host computer 10 is also used for:

[0120] According to the parameter name of the parameter to be transferred and the system version number, a target encapsulation template corresponding to the parameter to be transferred is determined.

[0121] In one embodiment, the host computer 10 is further used for:

[0122] Obtain each preset packaging template corresponding to the system version number, and extract the name of the parameter to be filled corresponding to each of the packaging templates;

[0123] The names of the parameters to be filled are compared with the parameter names of the parameters to be transferred, and the encapsulation template corresponding to the parameter names to be filled that are the same as the parameter names of the parameters to be transferred is used as the target encapsulation template corresponding to the parameters to be transferred.

[0124] In one embodiment, the lower computer 20 is further used for:

[0125] When it is detected that the feedback information indicates that the analysis is successful, determining the instruction type of the analysis result;

[0126] When it is determined that the instruction type is a control instruction, controlling each device to be controlled based on the analysis result;

[0127] When it is determined that the instruction type is a parameter adjustment instruction, the operating parameters are adjusted according to the analysis result.

[0128] In one embodiment, the lower computer 20 is further used for:

[0129] Receiving control results transmitted by each of the devices to be controlled, and transmitting each of the control results to the host computer;

[0130] The host computer 10 is also used for:

[0131] Classifying each of the control results, and constructing a histogram based on the classified data;

[0132] The histogram is outputted through the parameter receiving page.

[0133] In one embodiment, the host computer 10 is further used for:

[0134] Obtaining a preset numerical range corresponding to a parameter name in the parameter to be transmitted, and detecting whether a parameter value in the parameter to be transmitted belongs to the numerical range;

[0135] When it is detected that the parameter value in the parameter to be transmitted belongs to the numerical range, executing the step of encapsulating the parameter to be transmitted according to the target encapsulation template to obtain the data to be transmitted;

[0136] When it is detected that the parameter value in the parameter to be transmitted does not belong to the numerical range, a numerical abnormality prompt is output through the parameter receiving page.

[0137] In one embodiment, the host computer 10 is further used for:

[0138] Based on the parameter name of the parameter to be transferred, determining the insertion position of the parameter value in the target encapsulation template;

[0139] The parameter value is embedded into the insertion position, and after the embedding is successful, the target encapsulation template is used as the data to be transmitted.

[0140] The upper and lower computer communication system provided by the present application adopts the upper and lower computer communication method in the above embodiment, which can solve the technical problem of how to improve the interaction efficiency between the upper and lower computers. Compared with the prior art, the beneficial effects of the upper and lower computer communication system provided by the present application are the same as the beneficial effects of the upper and lower computer communication method provided by the above embodiment, and other technical features of the upper and lower computer communication system are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0141] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the upper and lower computer communication method in the above-mentioned embodiment.

[0142] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read On ly Memory), an erasable programmable read-only memory (EPROM: Erasable Programmab le Read On ly Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read On ly Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0143] The computer-readable storage medium may be included in the upper computer or the lower computer; or may exist independently without being installed in the upper computer or the lower computer.

[0144] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the system, the system: obtains the parameters to be transmitted through the parameter receiving page on the upper computer, and determines the target encapsulation template corresponding to the parameters to be transmitted according to the parameter name of the parameters to be transmitted; encapsulates the parameters to be transmitted according to the target encapsulation template through the upper computer to obtain the data to be transmitted, and transmits the data to be transmitted to the lower computer connected to the upper computer; parses the data to be transmitted through the lower computer, and transmits feedback information generated based on the parsing result of the data to be transmitted to the upper computer.

[0145] The computer program code for performing the operation of the present application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0146] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0147] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0148] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned upper and lower computer communication method, and can solve the technical problem of how to improve the interaction efficiency between the upper computer and the lower computer. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the upper and lower computer communication method provided by the above-mentioned embodiment, and will not be repeated here.

[0149] The present application also provides a computer program product, including a computer program, which implements the steps of the upper and lower computer communication method as described above when the computer program is executed by a processor.

[0150] The computer program product provided by the present application can solve the technical problem of how to improve the interaction efficiency between the host computer and the slave computer. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the upper and lower computer communication method provided by the above embodiment, which will not be repeated here.

[0151] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A communication method between a host and a server, characterized in that: The upper and lower computer communication method comprises: Obtain the parameters to be transmitted through the parameter receiving page on the host computer, and determine the target package template corresponding to the parameters to be transmitted according to the parameter names of the parameters to be transmitted; The upper computer encapsulates the parameters to be transmitted according to the target encapsulation template to obtain data to be transmitted, and transmits the data to be transmitted to a lower computer connected to the upper computer; The data to be transmitted is analyzed by the lower computer, and feedback information generated based on the analysis result of the data to be transmitted is transmitted to the upper computer.

2. The upper and lower computer communication method according to claim 1, characterized in that: Before the step of determining the target encapsulation template corresponding to the parameter to be transferred according to the parameter name of the parameter to be transferred, the method further includes: Obtain the system version number of the slave computer connected to the host computer; The step of determining the target encapsulation template corresponding to the parameter to be transferred according to the parameter name of the parameter to be transferred comprises: According to the parameter name of the parameter to be transferred and the system version number, a target encapsulation template corresponding to the parameter to be transferred is determined.

3. The upper and lower computer communication method according to claim 2, characterized in that: The step of determining the target encapsulation template corresponding to the parameter to be transferred according to the parameter name of the parameter to be transferred and the system version number includes: Obtain each preset packaging template corresponding to the system version number, and extract the name of the parameter to be filled corresponding to each of the packaging templates; The names of the parameters to be filled are compared with the parameter names of the parameters to be transferred, and the encapsulation template corresponding to the parameter names to be filled that are the same as the parameter names of the parameters to be transferred is used as the target encapsulation template corresponding to the parameters to be transferred.

4. The upper and lower computer communication method according to claim 1, characterized in that: After the step of transmitting the feedback information generated based on the analysis result of the data to be transmitted to the host computer, the method further includes: When it is detected that the feedback information indicates that the analysis is successful, determining the instruction type of the analysis result; When it is determined that the instruction type is a control instruction, each device to be controlled is controlled by the lower computer based on the analysis result; When it is determined that the instruction type is a parameter adjustment instruction, the lower computer adjusts the operating parameters according to the analysis result.

5. The upper and lower computer communication method according to claim 4, characterized in that: After the step of controlling each device to be controlled based on the analysis result by the lower computer, the method further includes: Receiving the control results transmitted by each of the devices to be controlled through the lower computer, and transmitting each of the control results to the upper computer through the lower computer; Classifying each of the control results by the host computer, and constructing a histogram based on the classified data; The histogram is outputted through the parameter receiving page.

6. The upper and lower computer communication method according to claim 1, characterized in that: The method further comprises: Obtaining a preset numerical range corresponding to a parameter name in the parameter to be transmitted, and detecting whether a parameter value in the parameter to be transmitted belongs to the numerical range; When it is detected that the parameter value in the parameter to be transmitted belongs to the numerical range, executing the step of encapsulating the parameter to be transmitted according to the target encapsulation template by the host computer to obtain the data to be transmitted; When it is detected that the parameter value in the parameter to be transmitted does not belong to the numerical range, a numerical abnormality prompt is output through the parameter receiving page.

7. The upper and lower computer communication method according to claim 6, characterized in that: The step of encapsulating the parameters to be transferred according to the target encapsulation template by the host computer to obtain the data to be transferred includes: Determining, by the host computer, an insertion position of the parameter value in the target encapsulation template based on the parameter name of the parameter to be transferred; The parameter value is embedded into the insertion position, and after the embedding is successful, the target encapsulation template is used as the data to be transmitted.

8. A communication system between a host and a server, characterized in that: The upper and lower computer communication system comprises: an upper computer and a lower computer connected to each other; The host computer is used for: Obtain the parameters to be transmitted through the parameter receiving page, and determine the target encapsulation template corresponding to the parameters to be transmitted according to the parameter names of the parameters to be transmitted; encapsulate the parameters to be transmitted according to the target encapsulation template to obtain the data to be transmitted, and transmit the data to be transmitted to the lower computer; The lower computer is used for: The data to be transmitted is analyzed, and feedback information generated based on the analysis result of the data to be transmitted is transmitted to the host computer.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the upper and lower computer communication method according to any one of claims 1 to 7 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the upper and lower computer communication method according to any one of claims 1 to 7 are implemented.