patents.google.com

CN108648298B - Message processing method and device, storage medium and electronic equipment - Google Patents

  • ️Fri Feb 12 2021

CN108648298B - Message processing method and device, storage medium and electronic equipment - Google Patents

Message processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108648298B
CN108648298B CN201810403678.2A CN201810403678A CN108648298B CN 108648298 B CN108648298 B CN 108648298B CN 201810403678 A CN201810403678 A CN 201810403678A CN 108648298 B CN108648298 B CN 108648298B Authority
CN
China
Prior art keywords
message
error
software
packaging
interrupt
Prior art date
2018-04-28
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810403678.2A
Other languages
Chinese (zh)
Other versions
CN108648298A (en
Inventor
刘均
姜楚
詹伟
李晓雍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
2018-04-28
Filing date
2018-04-28
Publication date
2021-02-12
2018-04-28 Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
2018-04-28 Priority to CN201810403678.2A priority Critical patent/CN108648298B/en
2018-10-12 Publication of CN108648298A publication Critical patent/CN108648298A/en
2021-02-12 Application granted granted Critical
2021-02-12 Publication of CN108648298B publication Critical patent/CN108648298B/en
Status Active legal-status Critical Current
2038-04-28 Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0808Diagnosing performance data
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0816Indicating performance data, e.g. occurrence of a malfunction

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure relates to a message processing method and a device, belonging to the technical field of information processing, wherein the method comprises the following steps: starting an interrupt error detection program and a software error detection program; determining whether the interrupt error detection program and/or the software error detection program detects an interrupt error message and/or a software error message; if the interrupt error message and/or the software error message are detected, packaging the interrupt error message and/or the software error message to obtain an error packaging message; sending the error packaging message to an upper computer, and receiving a response message sent after the upper computer analyzes the error packaging message; and analyzing the response message, and processing the interrupt error message and/or the software error message according to the analyzed response message. The method improves the timeliness of message processing.

Description

Message processing method and device, storage medium and electronic equipment

Technical Field

The present disclosure relates to the field of information processing technologies, and in particular, to a message processing method, a message processing apparatus, a computer-readable storage medium, and an electronic device.

Background

With the development of the automobile industry and the continuous integration of modern electronic technology, communication technology, network technology and other technologies, the automobile structure becomes more and more complex, and the automation degree becomes higher and higher. Meanwhile, the requirements of users on the safety and comfort of automobiles are increasing day by day. One important requirement is to accurately grasp the running state of the automobile in time so as to find and eliminate hidden troubles as soon as possible.

In one conventional operating state monitoring method, the operating state of the vehicle may be monitored by a diagnostic device (lower computer). However, in many cases, when an abnormality occurs in the diagnostic device (lower computer), the upper computer (terminal device, for example, a PC or a mobile phone) cannot acquire the latest state in time, so that a correct response cannot be made to the latest state message in time, and further the diagnostic device (lower computer) cannot handle the hidden trouble of the automobile in time, thereby causing a potential safety hazard.

Therefore, it is desirable to provide a new message processing method and apparatus.

It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.

Disclosure of Invention

An object of the present disclosure is to provide a message processing method, a message processing apparatus, a computer-readable storage medium, and an electronic device, thereby overcoming, at least to some extent, the problem of untimely message processing due to the limitations and disadvantages of the related art.

According to an aspect of the present disclosure, there is provided a message processing method, including:

starting an interrupt error detection program and a software error detection program;

determining whether the interrupt error detection program and/or the software error detection program detects an interrupt error message and/or a software error message;

if the interrupt error message and/or the software error message are detected, packaging the interrupt error message and/or the software error message to obtain an error packaging message;

sending the error packaging message to an upper computer, and receiving a response message sent after the upper computer analyzes the error packaging message;

and analyzing the response message, and processing the interrupt error message and/or the software error message according to the analyzed response message.

In an exemplary embodiment of the present disclosure, processing the interrupt error message and/or the software error message according to the parsed response message includes:

judging whether the analysis of the error packaging message by the upper computer is abnormal or not;

and if the analysis of the error packaging message by the upper computer is not abnormal, processing the interrupt error message and/or the software error message according to the analyzed response message.

In an exemplary embodiment of the present disclosure, the message processing method further includes:

and if the upper computer analyzes the error packaging message abnormally, sending an analysis abnormal message to the upper computer so that the upper computer analyzes the error packaging message again.

According to an aspect of the present disclosure, there is provided a message processing method, including:

receiving an error encapsulation message which is sent by a lower computer and comprises an interrupt error message and/or a software error message;

analyzing the error packaging message, and generating a response message according to the analysis result of the error packaging message;

and sending the response message to the lower computer so that the lower computer processes the interrupt error message and/or the software error message according to the response message.

In an exemplary embodiment of the present disclosure, generating a response message according to a parsing result of the error encapsulation message includes:

judging whether the analysis result of the error packaging message is abnormal or not;

if the analysis result of the error packaging message is abnormal, generating the response message according to the abnormal analysis result;

if the analysis result of the error packaging message is not abnormal, updating the information state of the lower computer according to the analysis result;

judging whether the analysis result needs to be sent to a lower computer or not according to the updated information state;

and if the analysis result needs to be sent to the lower computer, generating the response message according to the analysis result.

In an exemplary embodiment of the present disclosure, generating the response message according to the parsing result includes:

and packaging the analysis result, and generating the response message according to the packaged analysis result.

According to an aspect of the present disclosure, there is provided a message processing apparatus including:

the starting module is used for starting an interrupt error detection program and a software error detection program;

a judging module, configured to judge whether the interrupt error detection program and/or the software error detection program detects an interrupt error message and/or a software error message;

the packaging module is used for packaging the interrupt error message and/or the software error message to obtain an error packaging message if the interrupt error message and/or the software error message are detected;

the first receiving module is used for sending the error packaging message to an upper computer and receiving a response message sent after the upper computer analyzes the error packaging message;

and the processing module is used for analyzing the response message and processing the interrupt error message and/or the software error message according to the analyzed response message.

In an exemplary embodiment of the present disclosure, processing the interrupt error message and/or the software error message according to the parsed response message includes:

judging whether the analysis of the error packaging message by the upper computer is abnormal or not;

and if the analysis of the error packaging message by the upper computer is not abnormal, processing the interrupt error message and/or the software error message according to the analyzed response message.

In an exemplary embodiment of the present disclosure, the message processing apparatus further includes:

and the lower sending module is used for sending the analysis abnormal message to the upper computer if the analysis of the error packaging message by the upper computer is abnormal, so that the upper computer can analyze the error packaging message again.

According to an aspect of the present disclosure, there is provided a message processing apparatus including:

the second receiving module is used for receiving error packaging information which comprises an interrupt error message and/or a software error message and is sent by the lower computer;

the analysis module is used for analyzing the error packaging message and generating a response message according to the analysis result of the error packaging message;

and the sending module is used for sending the response message to the lower computer so that the lower computer processes the interrupt error message and/or the software error message according to the response message.

In an exemplary embodiment of the present disclosure, generating a response message according to a parsing result of the error encapsulation message includes:

judging whether the analysis result of the error packaging message is abnormal or not;

if the analysis result of the error packaging message is abnormal, generating the response message according to the abnormal analysis result;

if the analysis result of the error packaging message is not abnormal, updating the information state of the lower computer according to the analysis result;

judging whether the analysis result needs to be sent to a lower computer or not according to the updated information state;

and if the analysis result needs to be sent to the lower computer, generating the response message according to the analysis result.

In an exemplary embodiment of the present disclosure, generating the response message according to the parsing result includes:

and packaging the analysis result, and generating the response message according to the packaged analysis result.

According to an aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a message processing method as recited in any one of the above.

According to an aspect of the present disclosure, there is provided an electronic device including:

a processor; and

a memory for storing executable instructions of the processor;

wherein the processor is configured to perform any of the message processing methods described above via execution of the executable instructions.

The invention discloses a message processing method and a device, wherein an error packaging message is obtained by packaging an interrupt error message and/or a software error message; then sending the error packaging message to an upper computer, and receiving a response message sent after the upper computer analyzes the error packaging message; finally, processing the interrupt error message and/or the software error message according to the analyzed response message; on one hand, the error packaging message is sent to the upper computer, then the response message sent by the upper computer is received, and then the interrupt error message and/or the software error message are processed according to the response message, so that the problem that the message is not processed in time in the prior art is solved, and the timeliness of message processing is improved; on the other hand, the accuracy of processing the interrupt error message and/or the software error message is improved by processing the interrupt error message and/or the software error message according to the response message.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.

FIG. 1 schematically illustrates a flow chart of a message processing method;

FIG. 2 is a diagram schematically illustrating an application scenario example of a message processing method;

FIG. 3 schematically illustrates a flow chart of a method of processing an interrupt error message and/or a software error message from a parsed response message;

FIG. 4 schematically illustrates a flow chart of another message processing method;

FIG. 5 schematically illustrates a flow chart of a method of generating a response message based on a result of parsing an error envelope message;

FIG. 6 schematically illustrates a flow chart of another message processing method;

fig. 7 schematically shows a block diagram of a message processing apparatus;

fig. 8 schematically shows a block diagram of another message processing apparatus;

fig. 9 schematically shows an exemplary diagram of an electronic device for implementing the above message processing method;

fig. 10 schematically illustrates a computer-readable storage medium for implementing the above-described message processing method.

Detailed Description

Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.

Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.

First, an overall system operating environment of the message processing method according to the exemplary embodiment of the present disclosure will be described. The message processing method in the example embodiment of the present disclosure may be executed in a system including an upper computer and a lower computer. The upper computer may include a terminal device (for example, a PC or a mobile terminal, etc.), or may also be a server or a server cluster, a cloud server, etc., which is not limited in this disclosure; further, the lower computer may include an automobile fault diagnosis device, and may also be other devices, which are not limited in this disclosure. Furthermore, when the lower computer detects an error, the error information can be sent to the upper computer, and when the upper computer receives the error information, the error information is processed, so that the lower computer judges whether the error related to the error information needs to be repaired according to the processing result.

In the present exemplary embodiment, first, a message processing method is provided, where the message processing method may be executed in a lower computer, and the lower computer may be, for example, an automobile fault diagnosis device, or may be another device, and the present disclosure is not limited thereto. Referring to fig. 1, the message processing method may include the steps of:

and S110, starting an interrupt error detection program and a software error detection program.

Step S120, judging whether the interrupt error detection program and/or the software error detection program detects an interrupt error message and/or a software error message.

Step S130, if the interrupt error message and/or the software error message are detected, the interrupt error message and/or the software error message are packaged to obtain an error packaging message.

And S140, sending the error packaging message to an upper computer, and receiving a response message sent after the upper computer analyzes the error packaging message.

And S150, analyzing the response message, and processing the interrupt error message and/or the software error message according to the analyzed response message.

In the message processing method, on one hand, the error packaging message is sent to the upper computer and then the response message sent by the upper computer is received, and then the interrupt error message and/or the software error message are processed according to the response message, so that the problem of untimely message processing in the prior art is avoided, and the timeliness of message processing is improved; on the other hand, the accuracy of processing the interrupt error message and/or the software error message is improved by processing the interrupt error message and/or the software error message according to the response message.

Hereinafter, each step in the above-described message processing method in the present exemplary embodiment will be explained and explained in detail with reference to the drawings.

In step S110, the interrupt error detection routine and the software error detection routine are started.

In the present exemplary embodiment, referring to fig. 2, first, the

lower computer

201 is powered on and a communication connection between the

lower computer

201 and the

upper computer

202 is established; the

lower computer

201 may be an automobile fault diagnosis device; the

upper computer

202 may be a terminal device such as a PC, a mobile phone, or the like, or may also be a server or a server cluster, and the like, which is not particularly limited in this example; then, after the communication connection between the

lower computer

201 and the

upper computer

202 is successfully established, starting an interrupt error detection program and a software error detection program of the

lower computer

201; the interrupt error detection program can be used for detecting hardware errors of the lower computer, for example, whether a physical channel of an automobile is normal or not and whether a bus is idle or not can be detected; the software error detection program can be used for detecting whether the software of the lower computer has errors. It should be further added that when a hardware error occurs in the lower computer, the hardware error is actively reported, and a flag is turned on to trigger an interrupt error detection program; further, the software error detection program can detect whether the software has errors in a round robin manner. By using the method, the interrupt error detection program and the software error detection program can find errors occurring in the lower computer in time and report the errors to the upper computer, so that the upper computer can judge the errors in time and control the lower computer to repair the errors.

In step S120, it is determined whether the interrupt error detection program and/or the software error detection program detects an interrupt error message and/or a software error message.

In the present exemplary embodiment, after the upper computer starts the terminal error detection program and the software error detection program, it is determined whether the terminal error detection program detects an interrupt error message, and then it is determined whether the software error detection program detects a software error message; the interrupt error message may be, for example, a lower computer physical path exception and/or a bus busy, etc.; the software error message may be, for example, an error in software for diagnosing a failure of a vehicle in a lower computer, or the like.

In step S130, if the interrupt error message and/or the software error message is detected, the interrupt error message and/or the software error message is encapsulated to obtain an error encapsulation message.

In this exemplary embodiment, when the interrupt error message and/or the software error message are detected, the interrupt error message and/or the software error message need to be encapsulated to obtain an error encapsulation message. For example:

when the lower computer physical channel abnormity and/or software error are detected, the lower computer physical channel abnormity and/or software error message can be encapsulated to obtain the error encapsulation message; the specific packaging process may include: and adding a frame head, a frame tail and a check message to the message of the lower computer physical channel abnormity and/or the software error, and then packaging the message of the lower computer physical channel abnormity and/or the software error and the added frame head, frame tail and check message to generate the error packaging message. By encapsulating the message, the safety in the message sending process can be increased, the complexity in the message resending process can be reduced, and the message sending speed can be increased; the upper computer can receive the information of the lower computer in time.

In step S140, the error encapsulation message is sent to an upper computer, and a response message sent after the upper computer analyzes the error encapsulation message is received.

In the present exemplary embodiment, after obtaining the error encapsulation message, the

lower computer

201 sends the error encapsulation message to the

upper computer

202; after the

upper computer

202 receives the error packaging message, analyzing the error packaging message; and after the analysis is completed, a response message corresponding to the analyzed error encapsulation message is sent to the

lower computer

201.

In step S150, the response message is analyzed, and the interrupt error message and/or the software error message are processed according to the analyzed response message.

In the present exemplary embodiment, after the

lower computer

201 receives the response message, the response message is analyzed, and then the interrupt error message and/or the software error message are processed according to the analyzed response message. As shown in fig. 3, processing the interrupt error message and/or the software error message according to the parsed response message may include step S310 and step S320. Wherein:

in step S310, it is determined whether the analysis of the error encapsulation message by the upper computer is abnormal.

In step S320, if there is no exception in the analysis of the error encapsulation message by the upper computer, the interrupt error message and/or the software error message are processed according to the analyzed response message.

Next, the above-described steps S310 and S320 will be explained and explained. Firstly, judging whether the analysis of the error packaging message by the upper computer is abnormal or not according to the analyzed response message; secondly, if the lower computer judges that the analysis of the error packaging message by the upper computer is not abnormal, the interrupt error message and/or the software error message can be processed according to the analyzed response message. For example:

for example, after the upper computer analyzes the error encapsulation message, the check message in the error encapsulation message is checked, and if the check fails, the upper computer can judge that the analysis of the error encapsulation message is abnormal; and after the upper computer analyzes the error packaging message, if the verification is passed, the upper computer can judge that the analysis of the error packaging message by the upper computer is not abnormal. Further, when the analysis of the error packaging message is not abnormal, the error message and/or the software error message are processed according to the analyzed response message; for example, the physical path of the lower computer may be checked, or the detection software of the lower computer may be repaired, etc., which is not particularly limited in this example,

further, if the analysis of the error packaging message by the upper computer is abnormal, the analysis abnormal message is sent to the upper computer, so that the upper computer can analyze the error packaging message again. For example:

when the upper computer analyzes the error packaging message abnormally, the lower computer can send the abnormal analysis message to the upper computer again; when the upper computer receives the abnormal analysis message, the error packaging message is analyzed again.

The present disclosure also provides another message processing method, where the message processing method may be executed in an upper computer, and the upper computer may be, for example, a terminal device, and the terminal device may be, for example, a PC, a mobile terminal device, or a server cluster, and the present disclosure does not make special limitation to this. As shown in fig. 4, the message processing method may further include steps S410 to S430. Wherein:

in step S410, an error encapsulation message including an interrupt error message and/or a software error message sent by the lower computer is received.

In the present example embodiment, with continued reference to fig. 2, the

upper computer

202 receives an error encapsulation message including an interrupt error message and/or a software error message sent by the

lower computer

201. The interrupt error message may be, for example, a lower computer physical path exception and/or a bus busy, etc.; the software error message may be, for example, an error in software for diagnosing a failure of a vehicle in a lower computer, or the like.

In step S420, the error encapsulation message is parsed, and a response message is generated according to a parsing result of the error encapsulation message.

In the present exemplary embodiment, first, the error encapsulation message is parsed; and then, generating a response message according to the analysis result of the error packaging message. As shown in fig. 5, generating the response message according to the parsing result of the error encapsulation message may include steps S510 to S550. Wherein:

in step S510, it is determined whether an analysis result of the error encapsulation message is abnormal.

In step S520, if the parsing result of the error encapsulation message is abnormal, the response message is generated according to the abnormal parsing result.

In step S530, if the analysis result of the error encapsulation message is not abnormal, the information state of the lower computer is updated according to the analysis result.

In step S540, it is determined whether the analysis result needs to be sent to the lower computer according to the updated information state.

In step S550, if the analysis result needs to be sent to the lower computer, the response message is generated according to the analysis result.

Next, steps S510 to S550 will be explained and explained. Firstly, judging whether the analysis result of the error packaging message is abnormal or not; checking the check message in the error packaging message, and if the check fails, judging that the analysis of the error packaging message by the upper computer is abnormal; and after the upper computer analyzes the error packaging message, if the verification is passed, the upper computer can judge that the analysis of the error packaging message by the upper computer is not abnormal. Secondly, if the analysis result of the error packaging message is abnormal, generating the response message from the abnormal analysis result and sending the response message to a lower computer; further, if the analysis result of the error encapsulation message is not abnormal, the information state corresponding to the lower computer in the upper computer can be updated according to the correct analysis result; then judging whether the analysis result needs to be sent to a lower computer according to the updated information state; for example, when it can be judged according to the information state that the error does not affect the normal work of the lower computer (the upper computer can read the diagnosis information about the automobile in the lower computer), the analysis result may not be sent; when it can be judged that the error affects the normal work of the lower computer according to the information state (when the upper computer cannot read the diagnosis information about the automobile in the lower computer), the analysis result needs to be sent. Furthermore, when the analysis result needs to be sent, the analysis result can be encapsulated, and a response message is generated according to the encapsulated analysis result.

In step S430, the response message is sent to the lower computer, so that the lower computer processes the interrupt error message and/or the software error message according to the response message.

In this exemplary embodiment, after the response message is obtained, the response message is sent to the lower computer, and after the lower computer receives the response message, the interrupt error message and/or the software error message are processed according to the response message.

In the following, a message processing method of the present disclosure will be further explained and explained with reference to fig. 6. Referring to fig. 6, the message processing method may include the steps of:

step S10, powering on the

lower computer

201 and establishing communication connection with the

upper computer

202;

in step S20, the

lower computer

201 starts the interrupt error detection program and the software error detection program;

in step S30, the

lower computer

201 determines whether the interrupt error information and/or the software error information is detected; if interrupt error information and/or software error information is detected, jumping to step 40;

step S40, the

lower computer

201 encapsulates the interrupt error information and/or the software error information to obtain an error encapsulation message; and sends the error encapsulation message to the

upper computer

202;

step S50, the

upper computer

202 receives the error encapsulation message sent by the lower computer, and analyzes the error encapsulation message;

step S60, the

upper computer

202 determines whether the error encapsulation message is analyzed abnormally; if so, jumping to step S80; if not, jumping to step S70;

step S70, the

upper computer

202 generates a response message from the abnormal analysis result and sends the response message to the

lower computer

201;

step S80, the

upper computer

202 updates the state information according to the normal analysis result and judges whether the analysis result needs to be sent to the

lower computer

201 according to the update result;

step S90, if the data needs to be sent, the normal analysis result is packaged, a response message is generated according to the packaged normal analysis result, and then the response message is sent to the

lower computer

201;

step S100, the

lower computer

201 receives the response message and analyzes the response message; and processing the interrupt error information and/or the software error information according to the analysis result.

The present disclosure also provides a message processing apparatus. Referring to fig. 7, the message processing apparatus may include an

activation module

710, a

determination module

720, an

encapsulation module

730, a

first receiving module

740, and a

processing module

750. Wherein:

the

start module

710 may be used to start an interrupt error detection procedure as well as a software error detection procedure.

The

determination module

720 may be used to determine whether the interrupt error detection program and/or the software error detection program detected an interrupt error message and/or a software error message.

The

encapsulating module

730 may be configured to encapsulate the interrupt error message and/or the software error message to obtain an error encapsulation message if the interrupt error message and/or the software error message is detected.

The

first receiving module

740 may be configured to send the error encapsulation message to an upper computer, and receive a response message sent after the upper computer analyzes the error encapsulation message.

The

processing module

750 may be configured to parse the response message and process the interrupt error message and/or the software error message according to the parsed response message.

The present disclosure also provides another message processing apparatus. Referring to fig. 8, the message processing apparatus may further include a

second receiving module

810, a

parsing module

820, and a

transmitting module

830. Wherein:

the

second receiving module

810 may be configured to receive an error encapsulation message including an interrupt error message and/or a software error message sent by the lower computer.

The

parsing module

820 may be configured to parse the error encapsulation message and generate a response message according to a parsing result of the error encapsulation message.

The sending

module

830 may be configured to send the response message to the lower computer, so that the lower computer processes the interrupt error message and/or the software error message according to the response message.

In an example embodiment of the present disclosure, the processing module may be further configured to: judging whether the analysis of the error packaging message by the upper computer is abnormal or not; and if the analysis of the error packaging message by the upper computer is not abnormal, processing the interrupt error message and/or the software error message according to the analyzed response message.

In an example embodiment of the present disclosure, the message processing apparatus may further include:

the lower sending module can be used for sending the analysis abnormal message to the upper computer if the analysis of the error packaging message by the upper computer is abnormal, so that the upper computer can analyze the error packaging message again.

In an example embodiment of the present disclosure, the parsing module may be further configured to: judging whether the analysis result of the error packaging message is abnormal or not; if the analysis result of the error packaging message is abnormal, generating the response message according to the abnormal analysis result; if the analysis result of the error packaging message is not abnormal, updating the information state of the lower computer according to the analysis result; judging whether the analysis result needs to be sent to a lower computer or not according to the updated information state; and if the analysis result needs to be sent to the lower computer, generating the response message according to the analysis result.

In an example embodiment of the present disclosure, the parsing module may be further configured to: and packaging the analysis result, and generating the response message according to the packaged analysis result.

It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.

Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.

Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.

An

electronic device

900 according to this embodiment of the invention is described below with reference to fig. 9. The

electronic device

900 shown in fig. 9 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.

As shown in fig. 9, the

electronic device

900 is embodied in the form of a general purpose computing device. Components of

electronic device

900 may include, but are not limited to: the at least one

processing unit

910, the at least one

memory unit

920, and a

bus

930 that couples various system components including the

memory unit

920 and the

processing unit

910.

Wherein the storage unit stores program code that is executable by the

processing unit

910 to cause the

processing unit

910 to perform steps according to various exemplary embodiments of the present invention described in the above section "exemplary methods" of the present specification. For example, the

processing unit

910 may execute step S110 as shown in fig. 1: starting an interrupt error detection program and a software error detection program; s120: determining whether the interrupt error detection program and/or the software error detection program detects an interrupt error message and/or a software error message; step S130: if the interrupt error message and/or the software error message are detected, packaging the interrupt error message and/or the software error message to obtain an error packaging message; step S140: sending the error packaging message to an upper computer, and receiving a response message sent after the upper computer analyzes the error packaging message; step S150: and analyzing the response message, and processing the interrupt error message and/or the software error message according to the analyzed response message.

The

storage unit

920 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM)9201 and/or a

cache memory unit

9202, and may further include a read only memory unit (ROM) 9203.

Storage unit

920 may also include a program/

utility

9204 having a set (at least one) of

program modules

9205,

such program modules

9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.

Bus

930 can be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

The

electronic device

900 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the

electronic device

900, and/or with any devices (e.g., router, modem, etc.) that enable the

electronic device

900 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O)

interface

950. Also, the

electronic device

900 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the

network adapter

960. As shown, the

network adapter

960 communicates with the other modules of the

electronic device

900 via the

bus

930. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the

electronic device

900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.

Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In a specific application, when the message processing method of the upper computer and the message processing method of the lower computer are simultaneously stored on the computer-readable storage medium of the embodiment of the present invention, the computer-readable storage medium runs the corresponding message processing method according to the corresponding application scenario, for example, the computer-readable storage medium runs the message processing method of the upper computer in the upper computer; in some possible embodiments, the various embodiments of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention described in the above-mentioned "exemplary methods" section of the present description, when said program product is run on the terminal device.

Referring to fig. 10, a

program product

1000 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).

Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.

Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A message processing method, comprising:

starting an interrupt error detection program and a software error detection program;

determining whether the interrupt error detection program and/or the software error detection program detects an interrupt error message and/or a software error message; the interrupt error message is that the physical channel of the lower computer is abnormal, and the software error message is that software for diagnosing the automobile fault in the lower computer is in error;

if the interrupt error message and/or the software error message are detected, packaging the interrupt error message and/or the software error message to obtain an error packaging message;

sending the error packaging message to an upper computer, and receiving a response message sent after the upper computer analyzes the error packaging message;

analyzing the response message, and processing the interrupt error message and/or the software error message according to the analyzed response message;

wherein, encapsulating the interrupt error message and/or the software error message to obtain an error encapsulation message comprises:

adding a frame head, a frame tail and a check message to the message of the lower computer physical channel abnormity and/or the software error;

and packaging the message of the lower computer physical channel abnormity and/or the software error, the added frame head, the added frame tail and the added check message to obtain the error packaging message.

2. The message processing method according to claim 1, wherein processing the interrupt error message and/or the software error message according to the parsed response message comprises:

judging whether the analysis of the error packaging message by the upper computer is abnormal or not;

and if the analysis of the error packaging message by the upper computer is not abnormal, processing the interrupt error message and/or the software error message according to the analyzed response message.

3. The message processing method according to claim 2, wherein the message processing method further comprises:

and if the upper computer analyzes the error packaging message abnormally, sending an analysis abnormal message to the upper computer so that the upper computer analyzes the error packaging message again.

4. A message processing method, comprising:

receiving an error encapsulation message which is sent by a lower computer and comprises an interrupt error message and/or a software error message; the interrupt error message is that the physical channel of the lower computer is abnormal and/or the bus is busy, and the software error message is that the software for diagnosing the automobile fault in a certain pair of lower computers is wrong;

analyzing the error packaging message, and generating a response message according to the analysis result of the error packaging message;

sending the response message to the lower computer so that the lower computer processes the interrupt error message and/or the software error message according to the response message;

wherein the error encapsulation message is obtained by:

adding a frame head, a frame tail and a check message to the message of the lower computer physical channel abnormity and/or the software error;

and packaging the message of the lower computer physical channel abnormity and/or the software error, the added frame head, the added frame tail and the added check message to obtain the error packaging message.

5. The message processing method of claim 4, wherein generating the response message according to the parsing result of the error encapsulation message comprises:

judging whether the analysis result of the error packaging message is abnormal or not;

if the analysis result of the error packaging message is abnormal, generating the response message according to the abnormal analysis result;

if the analysis result of the error packaging message is not abnormal, updating the information state of the lower computer according to the analysis result;

judging whether the analysis result needs to be sent to a lower computer or not according to the updated information state;

and if the analysis result needs to be sent to the lower computer, generating the response message according to the analysis result.

6. The message processing method of claim 5, wherein generating the response message according to the parsing result comprises:

and packaging the analysis result, and generating the response message according to the packaged analysis result.

7. A message processing apparatus, comprising:

the starting module is used for starting an interrupt error detection program and a software error detection program;

a judging module, configured to judge whether the interrupt error detection program and/or the software error detection program detects an interrupt error message and/or a software error message; the interrupt error message is that the physical channel of the lower computer is abnormal, and the software error message is that software for diagnosing the automobile fault in the lower computer is in error;

the packaging module is used for packaging the interrupt error message and/or the software error message to obtain an error packaging message if the interrupt error message and/or the software error message are detected;

the first receiving module is used for sending the error packaging message to an upper computer and receiving a response message sent after the upper computer analyzes the error packaging message;

the processing module is used for analyzing the response message and processing the interrupt error message and/or the software error message according to the analyzed response message;

wherein, encapsulating the interrupt error message and/or the software error message to obtain an error encapsulation message comprises:

adding a frame head, a frame tail and a check message to the message of the lower computer physical channel abnormity and/or the software error;

and packaging the message of the lower computer physical channel abnormity and/or the software error, the added frame head, the added frame tail and the added check message to obtain the error packaging message.

8. A message processing apparatus, comprising:

the second receiving module is used for receiving error packaging information which comprises an interrupt error message and/or a software error message and is sent by the lower computer; the interrupt error message is that the physical channel of the lower computer is abnormal, and the software error message is that software for diagnosing the automobile fault in the lower computer is in error;

the analysis module is used for analyzing the error packaging message and generating a response message according to the analysis result of the error packaging message;

the sending module is used for sending the response message to the lower computer so that the lower computer processes the interrupt error message and/or the software error message according to the response message;

wherein the error encapsulation message is obtained by:

adding a frame head, a frame tail and a check message to the message of the lower computer physical channel abnormity and/or the software error;

and packaging the message of the lower computer physical channel abnormity and/or the software error, the added frame head, the added frame tail and the added check message to obtain the error packaging message.

9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the message processing method of any one of claims 1 to 6.

10. An electronic device, comprising:

a processor; and

a memory for storing executable instructions of the processor;

wherein the processor is configured to perform the message processing method of any of claims 1-6 via execution of the executable instructions.

CN201810403678.2A 2018-04-28 2018-04-28 Message processing method and device, storage medium and electronic equipment Active CN108648298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810403678.2A CN108648298B (en) 2018-04-28 2018-04-28 Message processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810403678.2A CN108648298B (en) 2018-04-28 2018-04-28 Message processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108648298A CN108648298A (en) 2018-10-12
CN108648298B true CN108648298B (en) 2021-02-12

Family

ID=63748272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810403678.2A Active CN108648298B (en) 2018-04-28 2018-04-28 Message processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108648298B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347014B (en) * 2020-11-30 2022-04-26 安徽信息工程学院 Optimal time sequence control method and system for centralized data communication

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063747A (en) * 2010-12-18 2011-05-18 重庆长安汽车股份有限公司 CAN data logger
CN102486750A (en) * 2010-12-06 2012-06-06 现代自动车株式会社 Device for dynamic analysis of vehicle embedded software
DE202017005320U1 (en) * 2017-10-17 2017-11-21 Markus Ferdinand Hoppe Data module for electric vehicles
CN107430812A (en) * 2015-05-22 2017-12-01 奥迪股份公司 Source of trouble geo-location for motor vehicle
CN107526677A (en) * 2016-06-22 2017-12-29 上海中兴软件有限责任公司 A kind of method and device of in-situ software error positioning and processing

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6141608A (en) * 1997-10-28 2000-10-31 Snap-On Tools Company System for dynamic diagnosis of apparatus operating conditions
CN101662387B (en) * 2009-10-14 2013-01-23 中国电信股份有限公司 System for detecting computer accessing situation in network and method thereof
CN103778044B (en) * 2012-10-23 2017-05-17 伊姆西公司 Method and device for diagnosing system faults
CN103645678B (en) * 2013-03-13 2016-08-10 沈阳峰点科技有限公司 A kind of real-time response network control system
CN103631622A (en) * 2013-11-29 2014-03-12 中达电通股份有限公司 Software online upgrade repairing method
CN105933948B (en) * 2016-06-24 2019-06-11 成都之达科技有限公司 State of motor vehicle real-time data transmission method
CN107577175A (en) * 2017-08-09 2018-01-12 深圳市爱培科技术股份有限公司 MCU method for upgrading software, system and the storage device of vehicle-mounted multimedia equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102486750A (en) * 2010-12-06 2012-06-06 现代自动车株式会社 Device for dynamic analysis of vehicle embedded software
CN102063747A (en) * 2010-12-18 2011-05-18 重庆长安汽车股份有限公司 CAN data logger
CN107430812A (en) * 2015-05-22 2017-12-01 奥迪股份公司 Source of trouble geo-location for motor vehicle
CN107526677A (en) * 2016-06-22 2017-12-29 上海中兴软件有限责任公司 A kind of method and device of in-situ software error positioning and processing
DE202017005320U1 (en) * 2017-10-17 2017-11-21 Markus Ferdinand Hoppe Data module for electric vehicles

Also Published As

Publication number Publication date
CN108648298A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN115437338A (en) 2022-12-06 Remote diagnosis method and device, electronic equipment and storage medium
CN110674009B (en) 2022-10-28 Application server performance monitoring method and device, storage medium and electronic equipment
US9588878B2 (en) 2017-03-07 Computer having self-monitoring function and monitoring program
CN110673936B (en) 2022-05-17 Breakpoint continuous operation method and device for arrangement service, storage medium and electronic equipment
CN113225232B (en) 2022-06-10 Hardware testing method and device, computer equipment and storage medium
CN115469629A (en) 2022-12-13 Remote diagnosis method, device, system, electronic equipment and storage medium
CN111866083A (en) 2020-10-30 Equipment debugging system and method, equipment to be debugged, remote debugging equipment and transfer server
CN109299124B (en) 2021-01-08 Method and apparatus for updating a model
CN116643929A (en) 2023-08-25 Single-node application fault processing method based on ZooKeeper
CN108648298B (en) 2021-02-12 Message processing method and device, storage medium and electronic equipment
KR20120126873A (en) 2012-11-21 System for Dynamic Analysis of Embedded Software of Vehicle using UDS
US20220043728A1 (en) 2022-02-10 Method, apparatus, device and system for capturing trace of nvme hard disc
CN110333964A (en) 2019-10-15 Exception log processing method and device, electronic device, and storage medium
CN117707112B (en) 2024-10-11 Fault diagnosis method, system, equipment and storage medium
CN111918236B (en) 2021-08-31 Internet of things security sensor network searching method, device, equipment and storage medium
CN112631929A (en) 2021-04-09 Test case generation method and device, storage medium and electronic equipment
CN111741046A (en) 2020-10-02 Data reporting method, data acquisition method, device, equipment and medium
CN111190761A (en) 2020-05-22 Log output method and device, storage medium and electronic equipment
CN116521496A (en) 2023-08-01 Method, system, computer device and storage medium for verifying server performance
CN110096281B (en) 2023-06-30 Code analysis method, analysis server, storage medium and device
CN114980021A (en) 2022-08-30 Vehicle state feedback method and device, electronic equipment and storage medium
CN114257610B (en) 2024-07-23 Monitoring system and method for Internet of vehicles terminal
CN115426607B (en) 2024-06-21 Audio diagnosis method, device, electronic equipment and storage medium
US11392444B1 (en) 2022-07-19 Method and apparatus for analysis of runtime behavior
CN117931538A (en) 2024-04-26 Controller detection method, device, equipment, storage medium and vehicle

Legal Events

Date Code Title Description
2018-10-12 PB01 Publication
2018-10-12 PB01 Publication
2018-11-06 SE01 Entry into force of request for substantive examination
2018-11-06 SE01 Entry into force of request for substantive examination
2021-02-12 GR01 Patent grant
2021-02-12 GR01 Patent grant