CN112486803A - Error processing method, device and equipment - Google Patents

Error processing method, device and equipment Download PDF

Info

Publication number
CN112486803A
CN112486803A CN202011262806.XA CN202011262806A CN112486803A CN 112486803 A CN112486803 A CN 112486803A CN 202011262806 A CN202011262806 A CN 202011262806A CN 112486803 A CN112486803 A CN 112486803A
Authority
CN
China
Prior art keywords
error
user
prompting
outputting
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011262806.XA
Other languages
Chinese (zh)
Inventor
李�杰
王灵军
李伟进
刘鑫
夏元仕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011262806.XA priority Critical patent/CN112486803A/en
Publication of CN112486803A publication Critical patent/CN112486803A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • G06F11/3656Software debugging using additional hardware using a specific debug interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an error processing method, device and equipment. Wherein, the method comprises the following steps: detecting whether an appointed error occurs or not in the running process of the HMI configuration software; if the specified error occurs, outputting corresponding prompt information according to the occurred specified error; wherein the specified error comprises at least one of: software running errors, input data being illegal, configuration operations being illegal, missing configuration and compilation errors. According to the method and the device, whether the designated error exists or not is detected in time in the running process of the HMI configuration software, if the designated error is detected, corresponding prompt information is output according to the detected error so as to correctly process the detected error, the correctness of construction of the engineering project is ensured, the correctness of running of a compiler generated by the engineering project in the HMI equipment is ensured, a user can complete project development smoothly and accurately, and the user experience is improved.

Description

Error processing method, device and equipment
Technical Field
The invention relates to the technical field of software control, in particular to an error processing method, device and equipment.
Background
In recent years, with rapid development of automation control and Human-computer interaction technology, people have more and more demands on system-level automation interaction networks, and HMI (Human Machine Interface) configuration software is important Human-computer interaction software. Through the HMI configuration software, a user can quickly and conveniently build pictures and configuration functions according to own control requirements, and compile and download built items into HMI equipment to realize functions such as interactive control and the like.
However, errors may occur in the process of using the HMI configuration software by a user, problems of illegal input, incomplete configuration, wrong compilation and the like may also occur in the process of setting up and configuring by the user, the correctness of setting up an engineering project cannot be ensured, the correctness of running a compiler generated by the engineering project in the HMI device cannot be ensured, and user experience is influenced.
Disclosure of Invention
The embodiment of the invention provides an error processing method, device and equipment, which are used for at least solving the problem that the correctness of construction and compilation of an engineering project cannot be ensured by using HMI configuration software in the prior art.
To solve the foregoing technical problem, an embodiment of the present invention provides an error processing method, including: detecting whether an appointed error occurs or not in the running process of the HMI configuration software; if the specified error occurs, outputting corresponding prompt information according to the occurred specified error; wherein the specified error comprises at least one of: software running errors, input data being illegal, configuration operations being illegal, missing configuration and compilation errors.
Optionally, if the specified error is a software running error, outputting corresponding prompt information according to the specified error, including: determining an error type of the software operation error; if the error type is an error that the software can continuously run, outputting error prompt information; if the error type is the error that the software cannot normally run, prompting a user to close or restart the software, and after the software is restarted, prompting the user whether to reopen the item with the error and recover the item change record.
Optionally, if the specified error is that the input data is illegal, outputting corresponding prompt information according to the specified error, including: outputting first prompt information, wherein the first prompt information is used for prompting the content of at least one of the following: prompting a user to input data errors, prompting the requirement of legal data and prompting the position of illegal data; the user is prohibited from completing the entry of illegal data.
Optionally, if the specified error is that the configuration operation is illegal, outputting corresponding prompt information according to the specified error, including: outputting second prompt information, wherein the second prompt information is used for prompting correct configuration operation; illegal configurations are cancelled.
Optionally, if the specified error is a missing configuration, outputting corresponding prompt information according to the specified error, including: and outputting third prompt information, wherein the third prompt information is used for prompting a user of missing configuration.
Optionally, if the specified error is a missing configuration, outputting corresponding prompt information according to the specified error, further comprising: displaying a positioning interface with missing configuration; and if receiving the operation of triggering the positioning interface with the missing configuration, jumping to the position with the missing configuration.
Optionally, if the specified error occurs, outputting corresponding prompt information according to the specified error, including: determining an error type of the compilation error; if the compiling error is a repairable error, outputting fourth prompt information, wherein the fourth prompt information is used for prompting the error reason and/or the modifying method; and if the compiling error is an error which cannot be positioned, outputting fifth prompt information, wherein the fifth prompt information is used for prompting the user that the error cannot be positioned and/or prompting the suspected error reason of the user.
Optionally, if the compiling error is a repairable error, outputting corresponding prompt information according to the occurred specified error, further including: displaying a positioning interface of the compiling error; and if receiving the operation of triggering the positioning interface with the compiling error, jumping to the position with the compiling error.
Optionally, after the occurrence of the specified error, the method further includes: recording error information; triggering an error feedback mechanism to prompt a user whether to feed back error information; and if the user confirms the feedback, sending the error information to a background server.
Optionally, after outputting the corresponding prompt information according to the occurring specified error, the method further includes: determining the grade of the corresponding prompt message; and if the grade is the highest grade, stopping the current operation.
An embodiment of the present invention further provides an error processing apparatus, including: the detection module is used for detecting whether an appointed error occurs or not in the running process of the HMI configuration software; the prompting module is used for outputting corresponding prompting information according to the specified error if the specified error occurs; wherein the specified error comprises at least one of: software running errors, input data being illegal, configuration operations being illegal, missing configuration and compilation errors.
Optionally, the apparatus further comprises: the recording module is used for recording error information; the triggering module is used for triggering an error feedback mechanism and prompting a user whether to feed back error information; and the feedback module is used for sending the error information to the background server if the user confirms the feedback.
An embodiment of the present invention further provides an error processing apparatus, including: the error processing device of the embodiment of the invention.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the error handling method according to the embodiments of the present invention.
An embodiment of the present invention further provides an electronic device, including: one or more processors; a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement an error handling method according to an embodiment of the present invention.
By applying the technical scheme of the invention, whether the specified errors exist or not is detected in time in the running process of the HMI configuration software, wherein the specified errors comprise at least one of the following errors: the method comprises the steps of detecting a specified error, outputting corresponding prompt information according to the detected error so as to correctly process the detected error, ensuring the correctness of construction of the engineering project, ensuring the correctness of operation of a compiler generated by the engineering project in the HMI equipment, facilitating a user to smoothly and accurately complete project development and being beneficial to improving the experience of the user.
Drawings
FIG. 1 is a flow chart of an error handling method provided by an embodiment of the invention;
FIG. 2 is a diagram illustrating an error handling method according to an embodiment of the present invention;
fig. 3 is a block diagram of an error processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
The embodiment provides an error processing method which is applied to HMI configuration software and can be used for checking errors of the HMI configuration software in the operation process and prompting to correctly process the errors so as to ensure the correctness of construction and compiling of engineering projects.
Fig. 1 is a flowchart of an error handling method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
s101, detecting whether an appointed error occurs or not in the running process of the HMI configuration software.
S102, if the specified error occurs, outputting corresponding prompt information according to the occurred specified error; wherein the specified error comprises at least one of: software running errors, input data being illegal, configuration operations being illegal, missing configuration and compilation errors.
The HMI configuration software running process comprises the following steps: the process of using the HMI configuration software by a user and the process of building an engineering project or compiling the engineering project by the user through the HMI configuration software. The input data refers to data input by a user when the engineering project is built through the HMI configuration software, and the input data is illegal, namely the data input by the user does not accord with the regulation of the software and/or the regulation of the engineering project. The configuration operation refers to the operation of configuring functions when a user builds an engineering project through HMI configuration software, and the configuration operation is illegal, namely the configuration operation does not accord with the self regulation of the software and/or the regulation of the engineering project. The missing configuration means that the function configuration of the engineering project is incomplete when a user builds the engineering project through HMI configuration software, and the missing part of functions are not configured. The compiling error refers to an error which occurs when a user compiles the engineering project through the HMI configuration software. Software operation errors can occur in the whole operation process of the HMI configuration software at any time, input data is illegal, configuration operation is illegal and missing configuration can occur in the process that a user builds an engineering project through the HMI configuration software, and compiling errors can occur in the process that the user compiles the engineering project through the HMI configuration software. The prompt message is mainly used for prompting the user that a corresponding error exists, and can also prompt the user of a specific error solution and the like.
In the error handling method of the embodiment, in the running process of the HMI configuration software, whether an assigned error exists is detected in time, wherein the assigned error includes at least one of the following errors: the method comprises the steps of detecting a specified error, outputting corresponding prompt information according to the detected error so as to correctly process the detected error, ensuring the correctness of construction of the engineering project, ensuring the correctness of operation of a compiler generated by the engineering project in the HMI equipment, facilitating a user to smoothly and accurately complete project development and being beneficial to improving the experience of the user.
In one embodiment, if the specified error is a software running error, outputting a corresponding prompt message according to the specified error, including: determining an error type of the software operation error; if the error type is an error that the software can continuously run, outputting error prompt information; if the error type is the error that the software cannot normally run, prompting a user to close or restart the software, and after the software is restarted, prompting the user whether to reopen the item with the error and recover the item change record.
In the running process of the HMI configuration software, whether a software running error occurs can be detected in real time. The error type of the software operation error indicates the influence degree of the error. If the error type of the software operation error is an error that the software can continue to operate, error prompt information is output, and a user can close or ignore the prompt. If the error type of the software operation error is the error that the software cannot normally operate, prompting a user to close or restart the software, and prompting the user whether to reopen the item with the error and recover the item change record after restarting the software. The related prompt of the software running error can be output in a pop-up window mode, and the related prompt can also be displayed in a fixed display area, so that a user can conveniently check the prompt in time.
According to the method and the device, corresponding prompts are output according to the error types aiming at the software running errors, an error processing mechanism during the running of the HMI configuration software is provided for a user, and the normal running of the HMI configuration software is guaranteed.
In one embodiment, if the occurred designated error is that the input data is illegal, outputting corresponding prompt information according to the occurred designated error, including: outputting first prompt information, wherein the first prompt information is used for prompting the content of at least one of the following: prompting a user to input data errors, prompting the requirement of legal data and prompting the position of illegal data; the user is prohibited from completing the entry of illegal data.
In the process that a user builds a project through HMI configuration software, the user can input data, and whether the input data is illegal or not can be detected in real time. The first prompt information can be output in a pop-up window mode, and can also be displayed in a fixed display area, so that a user can conveniently and timely check the first prompt information. Preferably, the position of the illegal data can be marked by color to remind the user easily and prominently, so that the user can determine the position and the content of the illegal data quickly. Prohibiting the user from completing the input of the illegal data means that the project building cannot be continued unless the prompted illegal data is eliminated, that is, only the input of the legal data can be completed.
According to the embodiment, the corresponding prompt is output aiming at the condition that the input data is illegal in the project building process, so that the real-time legality checking function during data input is realized, and the correctness of the data input by a user is ensured.
In one embodiment, if the occurred designated error is that the configuration operation is illegal, outputting corresponding prompt information according to the occurred designated error, including: outputting second prompt information, wherein the second prompt information is used for prompting correct configuration operation; illegal configurations are cancelled.
In the process that a user builds a project through HMI configuration software, the user can carry out function configuration and can detect whether configuration operation is illegal or not in real time. The second prompt information can be output in a pop-up window mode, and can also be displayed in a fixed display area, so that a user can conveniently and timely check the second prompt information. Illegal configuration is automatically cancelled, and operation of a user is saved.
According to the embodiment, the corresponding prompt is output aiming at the condition that the configuration operation is illegal in the project building process, so that the real-time legality checking function during the configuration function is realized, and the correctness of the configuration function of the user is ensured.
In one embodiment, if the specified error is a missing configuration, outputting corresponding prompt information according to the specified error, including: and outputting third prompt information, wherein the third prompt information is used for prompting a user of missing configuration.
In the process that a user builds a project through HMI configuration software, the user can carry out function configuration and can detect whether missing configuration exists. The third prompt information can be output in a pop-up window mode, and can also be displayed in a fixed display area, so that a user can conveniently view the third prompt information in time.
According to the embodiment, corresponding prompts are output aiming at the condition of missing configuration in the project building process, and a missing configuration checking function and a prompting function are provided for a user so that the user can complete the configuration in time.
Preferably, if the specified error is a missing configuration, outputting corresponding prompt information according to the specified error, further comprising: displaying a positioning interface with missing configuration; and if receiving the operation of triggering the positioning interface with the missing configuration, jumping to the position with the missing configuration. The positioning interface refers to an operable link or a button and the like, is associated with a relevant position, and is triggered to jump to a position with missing configuration when a user clicks the positioning interface.
The embodiment displays the positioning interface aiming at the condition of missing configuration, a user can jump to the position of the missing configuration by triggering corresponding errors through the positioning interface and then changes the position according to prompts.
In one embodiment, if the specified error is a compilation error, outputting a corresponding prompt message according to the specified error, including: determining an error type of the compilation error; if the compiling error is a repairable error, outputting fourth prompt information, wherein the fourth prompt information is used for prompting the error reason and/or the modifying method; and if the compiling error is an error which cannot be positioned, outputting fifth prompt information, wherein the fifth prompt information is used for prompting the user that the error cannot be positioned and/or prompting the suspected error reason of the user.
In the process that a user compiles the engineering project through the HMI configuration software, whether compiling errors occur or not can be detected in real time. The error that can be repaired may be an error that the user forgets to configure, etc. If the compiling error is an error which cannot be positioned, the suspected error reason of the user is prompted, and the user can conveniently check. The fourth prompt message and the fifth prompt message can be specifically output in a pop-up window mode, and can also be displayed in a fixed display area, so that a user can conveniently view the prompt messages in time.
According to the method and the device, corresponding prompts are output according to the error types of the compiling errors, and a detecting function and a prompting function of the compiling errors are provided for a user, so that the user can timely process the compiling errors, the compiling can be normally carried out, and the running correctness of a compiling program generated by an engineering project in the HMI equipment can be further ensured.
Preferably, if the compiling error is a repairable error, outputting corresponding prompt information according to the specified error, further comprising: displaying a positioning interface of the compiling error; and if receiving the operation of triggering the positioning interface with the compiling error, jumping to the position with the compiling error. The positioning interface refers to an operable link or a button and the like, the positioning interface is associated with a relevant position, and when a user clicks the positioning interface, the positioning interface is triggered to jump to a compiling error position.
The embodiment displays the positioning interface aiming at the repairable compiling error, the user triggers and jumps to the position of the compiling error through the positioning interface, and then changes the compiling error according to the prompt.
In one embodiment, after the occurrence of the specified error, the method further comprises: recording error information; triggering an error feedback mechanism to prompt a user whether to feed back error information; and if the user confirms the feedback, sending the error information to a background server.
Wherein the error information may include: the time of the error, the specific error content, the project file and the error grade. Specifically, the error information may be written in the log file in real time. The error feedback mechanism means that a user can feed back an error to a background server so that a developer can process the fed-back error.
In practical application, an error feedback mechanism may also be set for different errors, for example, input data is illegal, configuration operation is illegal, and configuration is omitted, which belong to the problem of user's own operation, and may not prompt to feed back corresponding error information. Software running errors and compiling errors (particularly the compiling errors which cannot be located) can relate to problems of the software, so that corresponding error information needs to be prompted and fed back. In particular, the error feedback mechanism may be triggered in case of detecting a software running error or a compilation error that cannot be located.
The embodiment records error information, sets an error feedback mechanism to prompt a user whether to feed back the error information or not, and determines whether to feed back the error information to the background server according to user selection, and the background server can automatically appoint developers to process errors and feed back processing conditions to the user within a certain time.
In addition, the HMI configuration software can also provide a user problem feedback interface, a user can feed back problems through the interface, and when the problems are fed back, the user can select to add recorded project files, error information and the like, so that a channel is provided for the user to actively feed back the problems, and the user requirements are met.
In one embodiment, after outputting the corresponding prompt message according to the occurred specified error, the method further comprises: determining the grade of the corresponding prompt message; and if the grade is the highest grade, stopping the current operation.
Wherein, the level of the prompt message corresponds to the error level, which may include: prompts, warnings, blocks, etc. For errors of a non-highest level, the current operation may continue to be performed, e.g., for missing configurations, allowing the user to continue with the functional configuration. For the error with the highest level, the current operation is prevented in time to avoid generating more serious errors, for example, if a compiling error which cannot be located occurs, the error level is set to be the highest level, and at this time, the compiling process is prevented, namely, the user cannot continue compiling.
The embodiment grades the errors and the prompt messages thereof, takes different measures aiming at different grades, and prevents the current operation in time for the error with the highest grade so as to avoid generating more serious errors.
The error handling method is described below with reference to a specific embodiment, but it should be noted that the specific embodiment is only for better describing the present application and is not to be construed as limiting the present application. The same or corresponding terms as those of the above-described embodiments are explained, and thus, detailed description thereof is omitted.
Referring to fig. 2, when a user uses HMI configuration software, if a software operation error occurs, a software operation error detection module provided in the software detects an operation error type, identifies an error influence degree, and detects whether the error influences software use. If the detection result is an error that the software can still run, only a prompt is popped up, and the user can close or ignore the prompt; if the error which causes that the software cannot normally run occurs, prompting the user whether to restart the software or close the software, and after the software is restarted, the user can select whether to restart the project which has problems and recover the project change record according to the prompt. When the HMI configuration software has an operation error, an error feedback mechanism is triggered, the error information recording module records the operation error, and the user is prompted whether to send the error record in the error information recording module to the Internet server background of the configuration software or not through the operation error feedback module, if the user selects to send, the Internet server background automatically appoints a developer to deal with the problem encountered by the user, and feeds back the handling condition for the user within a certain time. And outputting a corresponding prompt according to the error type aiming at the software running error, providing an error processing mechanism for the running of the HMI configuration software for a user, and providing guarantee for the normal running of the HMI configuration software.
The error processing of the engineering project comprises the processing during project building and project compiling, and specifically comprises the following steps:
when a user builds a project, real-time data input can be carried out, and whether the input data is legal or not is checked through the real-time error checking module. If the input data is illegal, errors are prompted through a popup window and legal data requirements are explained, meanwhile, the error positions can be marked through colors, users are prohibited from completing the error input, and only the legal input can be completed. And outputting a corresponding prompt aiming at the condition that the input data is illegal in the project building process, thereby realizing the real-time legality checking function when the data is input and ensuring the correctness of the data input by the user.
When a user builds a project, the user also carries out function configuration, and whether the function configuration operation is legal or not is checked through the real-time error checking module. If the configuration selection is illegal, a popup window is prompted to correctly configure the method, and the wrong configuration is cancelled. And outputting a corresponding prompt aiming at the condition that the configuration operation is illegal in the project building process, thereby realizing the real-time legality checking function in the function configuration process and ensuring the correctness of the user configuration function.
When a user builds a project, a missing configuration checking function can be further performed, if a configuration missing error of the user is detected, the error information is displayed through the error information display area to prompt the user, in addition, the error information display area provides a positioning interface, the user can jump to the position of the missing configuration by triggering a corresponding error through the positioning interface, and the user can change according to the prompt. And outputting a corresponding prompt aiming at the condition of missing configuration in the project building process, providing a missing configuration checking function, a prompting function and a positioning function for a user, and ensuring that the user is quickly positioned to the missing configuration position so as to complete the configuration in time.
When compiling the HMI project, a user can detect a compiling error through a compiling error detection module, and if the compiling error is found, the user can judge the specific error type. If the user forgets about the configuration and other repairable errors are detected, prompting the user about the error reason and/or the method modification, and providing a positioning interface to jump to the corresponding compiling error position. If the error which cannot be positioned is detected, the popup prompts the user that the error cannot be positioned, and possible error reasons can be displayed through the error information display area, so that the user can conveniently check. For errors which cannot be positioned, the engineering project file and the error information can be recorded through the information and project recording module, the error grade mark is high priority, the error feedback mechanism is compiled and the error feedback module is triggered to prompt a user whether to send the error record to the internet server background of the configuration software, if the user selects to send, the internet server background automatically appoints a developer to deal with the problems encountered by the user, and the processing condition is fed back to the user within a certain time. And outputting a corresponding prompt according to the type of the compiling error, providing a detecting function, a prompting function and a positioning function of the compiling error for the user, and ensuring that the user is quickly positioned at the position of the compiling error so as to enable the user to timely process the compiling error, ensure that the compiling is normally carried out and further ensure the running correctness of a compiling program generated by the engineering project in the HMI equipment.
Further, the error information displayed by the error information display area may include a prompt, a warning, a blocking, and the like. The HMI configuration software can also provide a user problem feedback interface, a user can feed back problems through the interface, and when feeding back the problems, the user can select to add recorded project files, error information and the like, so that a channel is provided for the user to actively feed back the problems, and the user requirements are met.
The present embodiment provides a set of error detection and processing mechanism to correctly prompt and process errors occurring in the running process of the HMI configuration software, ensure normal running of the HMI configuration software, ensure correctness of construction of the engineering project, ensure correctness of running of a compiler generated by the engineering project in the HMI device, and provide a feedback mechanism, thereby providing a perfect error processing method for a user, facilitating the user to smoothly and accurately complete project development, and improving user experience.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Based on the same inventive concept, the embodiment of the present invention further provides an error processing apparatus, which can be used to implement the error processing method described in the above embodiment. The device may be implemented in software and/or hardware, and may generally be integrated into an error handling apparatus, such as a terminal or server running HMI configuration software.
Fig. 3 is a block diagram of an error processing apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes:
the detection module 31 is used for detecting whether an appointed error occurs in the running process of the HMI configuration software;
the prompt module 32 is configured to, if the specified error occurs, output corresponding prompt information according to the specified error; wherein the specified error comprises at least one of: software running errors, input data being illegal, configuration operations being illegal, missing configuration and compilation errors.
Optionally, if the specified error is a software operation error, the prompt module 32 includes:
the first determining unit is used for determining the error type of the software operation error;
the first prompting unit is used for outputting error prompting information if the error type is an error which can be continuously operated by the software; and if the error type is an error that the software cannot normally run, prompting a user to close or restart the software, and after the software is restarted, prompting the user whether to reopen the item with the error and recover the item change record.
Optionally, if the specified error is that the input data is illegal, the prompt module 32 includes:
the second prompting unit is used for outputting first prompting information, wherein the first prompting information is used for prompting the content of at least one of the following: prompting a user to input data errors, prompting the requirement of legal data and prompting the position of illegal data;
and the first processing unit is used for forbidding the user to complete the input of illegal data.
Optionally, if the designated error is that the configuration operation is illegal, the prompt module 32 includes:
the third prompting unit is used for outputting second prompting information, wherein the second prompting information is used for prompting correct configuration operation;
and a second processing unit for canceling the illegal configuration.
Optionally, if the specified error is a missing configuration, the prompt module 32 includes:
and the fourth prompting unit is used for outputting third prompting information, wherein the third prompting information is used for prompting a user that missing configuration occurs.
Optionally, if the specified error is a missing configuration, the prompt module 32 further includes:
the first display unit is used for displaying the positioning interfaces with missing configuration;
and the first jumping unit is used for jumping to the position of the missing configuration if receiving the operation of triggering the positioning interface of the missing configuration.
Optionally, if the specified error is a compilation error, the prompt module 32 includes:
a second determination unit for determining an error type of the compilation error;
a fifth prompting unit, configured to output fourth prompting information if the compilation error is a recoverable error, where the fourth prompting information is used to prompt a cause of the error and/or a modification method; and outputting fifth prompt information if the compiling error is an error which cannot be positioned, wherein the fifth prompt information is used for prompting a user that the error cannot be positioned and/or prompting a suspected error reason of the user.
Optionally, if the compiling error is a repairable error, the prompt module 32 further includes:
the second display unit is used for displaying a positioning interface of the compiling error;
and the second jumping unit is used for jumping to the position of the compiling error if receiving the operation of triggering the positioning interface of the compiling error.
Optionally, the apparatus may further include:
the recording module is used for recording error information;
the triggering module is used for triggering an error feedback mechanism and prompting a user whether to feed back error information;
and the feedback module is used for sending the error information to the background server if the user confirms the feedback.
Optionally, the apparatus may further include:
the determining module is used for determining the grade of the corresponding prompt message after the corresponding prompt message is output according to the specified error;
and the processing module is used for preventing the current operation if the grade is the highest grade.
The device can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In another embodiment, there is also provided an error processing apparatus including: the error processing apparatus according to the above embodiment. The error handling device may be a terminal or a server.
In another embodiment, there is also provided an electronic device including: one or more processors; a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the error handling method as described in the above embodiments.
In another embodiment, a computer-readable storage medium is also provided, on which a computer program is stored, which when executed by a processor implements the error handling method described in the above embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (15)

1. An error handling method, comprising:
detecting whether an appointed error occurs or not in the running process of the HMI configuration software;
if the specified error occurs, outputting corresponding prompt information according to the occurred specified error;
wherein the specified error comprises at least one of: software running errors, input data being illegal, configuration operations being illegal, missing configuration and compilation errors.
2. The method of claim 1, wherein if the specified error is a software running error, outputting a corresponding prompt message according to the specified error, comprising:
determining an error type of the software operation error;
if the error type is an error that the software can continuously run, outputting error prompt information;
if the error type is the error that the software cannot normally run, prompting a user to close or restart the software, and after the software is restarted, prompting the user whether to reopen the item with the error and recover the item change record.
3. The method of claim 1, wherein if the designated error is illegal, outputting a corresponding prompt message according to the designated error, comprising:
outputting first prompt information, wherein the first prompt information is used for prompting the content of at least one of the following: prompting a user to input data errors, prompting the requirement of legal data and prompting the position of illegal data;
the user is prohibited from completing the entry of illegal data.
4. The method of claim 1, wherein if the designated error is illegal, outputting a corresponding prompt message according to the designated error, comprising:
outputting second prompt information, wherein the second prompt information is used for prompting correct configuration operation;
illegal configurations are cancelled.
5. The method of claim 1, wherein if the specified error is a missing configuration, outputting a corresponding prompt message according to the specified error, comprising:
and outputting third prompt information, wherein the third prompt information is used for prompting a user of missing configuration.
6. The method of claim 5, wherein if the specified error is a missing configuration, outputting a corresponding prompt message according to the specified error, further comprising:
displaying a positioning interface with missing configuration;
and if receiving the operation of triggering the positioning interface with the missing configuration, jumping to the position with the missing configuration.
7. The method of claim 1, wherein if the specified error is a compilation error, outputting a corresponding prompt message according to the specified error, comprising:
determining an error type of the compilation error;
if the compiling error is a repairable error, outputting fourth prompt information, wherein the fourth prompt information is used for prompting the error reason and/or the modifying method;
and if the compiling error is an error which cannot be positioned, outputting fifth prompt information, wherein the fifth prompt information is used for prompting the user that the error cannot be positioned and/or prompting the suspected error reason of the user.
8. The method of claim 7, wherein if the compilation error is a recoverable error, outputting a corresponding hint according to the specified error, further comprising:
displaying a positioning interface of the compiling error;
and if receiving the operation of triggering the positioning interface with the compiling error, jumping to the position with the compiling error.
9. The method of claim 1, further comprising, after the designated error occurs:
recording error information;
triggering an error feedback mechanism to prompt a user whether to feed back error information;
and if the user confirms the feedback, sending the error information to a background server.
10. The method according to any one of claims 1 to 9, further comprising, after outputting the corresponding prompt message according to the occurrence of the specified error:
determining the grade of the corresponding prompt message;
and if the grade is the highest grade, stopping the current operation.
11. An error processing apparatus, comprising:
the detection module is used for detecting whether an appointed error occurs or not in the running process of the HMI configuration software;
the prompting module is used for outputting corresponding prompting information according to the specified error if the specified error occurs;
wherein the specified error comprises at least one of: software running errors, input data being illegal, configuration operations being illegal, missing configuration and compilation errors.
12. The apparatus of claim 11, further comprising:
the recording module is used for recording error information;
the triggering module is used for triggering an error feedback mechanism and prompting a user whether to feed back error information;
and the feedback module is used for sending the error information to the background server if the user confirms the feedback.
13. An error handling device, comprising: the error handling apparatus of claim 11 or 12.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the error handling method according to any one of claims 1 to 10.
15. An electronic device, comprising: one or more processors; memory for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the error handling method of any of claims 1 to 10.
CN202011262806.XA 2020-11-12 2020-11-12 Error processing method, device and equipment Pending CN112486803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011262806.XA CN112486803A (en) 2020-11-12 2020-11-12 Error processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011262806.XA CN112486803A (en) 2020-11-12 2020-11-12 Error processing method, device and equipment

Publications (1)

Publication Number Publication Date
CN112486803A true CN112486803A (en) 2021-03-12

Family

ID=74930244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011262806.XA Pending CN112486803A (en) 2020-11-12 2020-11-12 Error processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN112486803A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063501A (en) * 2021-11-10 2022-02-18 珠海格力电器股份有限公司 Automatic connection method and device for configuration elements and configuration equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080270855A1 (en) * 2007-04-30 2008-10-30 Suresoft Technologies Inc. Method For Detecting Memory Error
CN102521125A (en) * 2011-11-30 2012-06-27 福州福大自动化科技有限公司 Method for automatically detecting syntax error in control policy configuration
CN105868037A (en) * 2016-03-23 2016-08-17 乐视云计算有限公司 Processing method and system of error information in program operation process
CN109358564A (en) * 2018-09-19 2019-02-19 珠海格力电器股份有限公司 It is a kind of to detect the method and device of configuration software, computer readable storage medium
CN109460235A (en) * 2018-10-09 2019-03-12 珠海格力电器股份有限公司 Configuration software Compilation Method
CN110188044A (en) * 2019-05-30 2019-08-30 腾讯科技(深圳)有限公司 Processing method, device, storage medium and the equipment of software error

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080270855A1 (en) * 2007-04-30 2008-10-30 Suresoft Technologies Inc. Method For Detecting Memory Error
CN102521125A (en) * 2011-11-30 2012-06-27 福州福大自动化科技有限公司 Method for automatically detecting syntax error in control policy configuration
CN105868037A (en) * 2016-03-23 2016-08-17 乐视云计算有限公司 Processing method and system of error information in program operation process
CN109358564A (en) * 2018-09-19 2019-02-19 珠海格力电器股份有限公司 It is a kind of to detect the method and device of configuration software, computer readable storage medium
CN109460235A (en) * 2018-10-09 2019-03-12 珠海格力电器股份有限公司 Configuration software Compilation Method
CN110188044A (en) * 2019-05-30 2019-08-30 腾讯科技(深圳)有限公司 Processing method, device, storage medium and the equipment of software error

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱茂华: "17.5错误、警告及提示信息", 《成都:成都科技大学出版社》 *
苏刚: "《Visual Basic程序设计》", 31 December 2012 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063501A (en) * 2021-11-10 2022-02-18 珠海格力电器股份有限公司 Automatic connection method and device for configuration elements and configuration equipment
CN114063501B (en) * 2021-11-10 2024-03-08 珠海格力电器股份有限公司 Automatic connection method and device for configuration elements and configuration equipment

Similar Documents

Publication Publication Date Title
US8839201B2 (en) Capturing test data associated with error conditions in software item testing
US10067858B2 (en) Cloud-based software testing
US9684587B2 (en) Test creation with execution
US8839202B2 (en) Test environment managed within tests
US9632754B2 (en) Auto generation and linkage of source code to test cases
US9069902B2 (en) Software test automation
US20140109057A1 (en) Software development kit testing
US20080276223A1 (en) Dynamic Source Code Analyzer
US8949794B2 (en) Binding a software item to a plain english control name
US20080178046A1 (en) Fault-tolerant dynamic editing of gui display and source code
CN108170465B (en) Version information management method, electronic equipment and readable storage medium
EP4088212A1 (en) Method and apparatus for authority control, computer device and storage medium
US20030226131A1 (en) Method for semantic verification of supporting programming artefacts
US20190205239A1 (en) Code update based on detection of change in runtime code during debugging
CN112486803A (en) Error processing method, device and equipment
US20140109050A1 (en) Altering a test
US9292422B2 (en) Scheduled software item testing
CN113918465A (en) Compatibility testing method and device, electronic equipment and readable storage medium
CN110688173B (en) Positioning method and device of components in cross-platform interface framework and electronic equipment
KR101563494B1 (en) Real-time source code security weaknesses detection apparatus and method according to the file changes
CN110688320A (en) Global variable detection method and device and terminal equipment
CN115599645A (en) Method and device for testing stability of linux drive module
KR20120111618A (en) Apparatus and method for testing plc command
KR101548364B1 (en) Method for automatic verification of correctness of api sequences, recording medium and device for performing the method
CN113568834A (en) SDK code compatibility detection method, device, computer equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210312

RJ01 Rejection of invention patent application after publication