CN116567115A - Message detection method and device, electronic equipment and medium - Google Patents

Message detection method and device, electronic equipment and medium Download PDF

Info

Publication number
CN116567115A
CN116567115A CN202310579741.9A CN202310579741A CN116567115A CN 116567115 A CN116567115 A CN 116567115A CN 202310579741 A CN202310579741 A CN 202310579741A CN 116567115 A CN116567115 A CN 116567115A
Authority
CN
China
Prior art keywords
message
detected
request message
data
detection
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
CN202310579741.9A
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.)
FAW Group Corp
Original Assignee
FAW Group Corp
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 FAW Group Corp filed Critical FAW Group Corp
Priority to CN202310579741.9A priority Critical patent/CN116567115A/en
Publication of CN116567115A publication Critical patent/CN116567115A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a message detection method, a message detection device, electronic equipment and a message detection medium, wherein the method comprises the following steps: receiving a request message to be detected; carrying out full-period detection on the request message to be detected to obtain a message detection result; under the condition that the message detection result is determined to have message abnormal data, priority configuration information of the message abnormal data is determined; and generating target negative response information of the request message to be detected according to the priority configuration information of the message abnormal data. The technical scheme of the embodiment of the invention can improve the accuracy of message detection, thereby improving the portability and development efficiency of message detection.

Description

Message detection method and device, electronic equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a message detection method, a message detection device, electronic equipment and a medium.
Background
The message detection technology detects whether the current message has abnormal data or not, and network fault elimination and performance detection are realized by utilizing the message without abnormal data by detecting the contents such as the request format, the mode and the like of the current message of the request message.
At present, in the prior art, after receiving a request message, the request message is detected according to a preset fixed sequence, and once abnormal data of the request message are detected, negative response information is immediately replied, and meanwhile, the current detection flow is ended, and the detection is not continued.
The inventors have found that the following problems exist in the prior art in the process of implementing the present invention: when the message is abnormal, the replied negative response information can only reflect one abnormal condition of the message, so that the subsequent message abnormal data cannot be detected under the condition that the current detection flow is stopped when the message abnormal data of the diagnosis request message is detected, the replied negative response information has lower accuracy, and the problems of poor portability of the message detection module, long redevelopment period of a new platform, poor safety and the like are caused.
Disclosure of Invention
The embodiment of the invention provides a message detection method, a device, electronic equipment and a medium, which can improve the accuracy of message detection and further improve the portability and development efficiency of message detection.
According to an aspect of the present invention, there is provided a message detection method, including:
receiving a request message to be detected;
carrying out full-period detection on the request message to be detected to obtain a message detection result;
under the condition that the message detection result is determined to have message abnormal data, priority configuration information of the message abnormal data is determined;
and generating target negative response information of the request message to be detected according to the priority configuration information of the message abnormal data.
According to another aspect of the present invention, there is provided a message detection apparatus, including:
the detection request message receiving module is used for receiving a request message to be detected;
the full period detection module is used for carrying out full period detection on the request message to be detected to obtain a message detection result;
the priority configuration information determining module is used for determining the priority configuration information of the message abnormal data under the condition that the message abnormal data exist in the message detection result;
and the target negative response information generation module is used for generating target negative response information of the request message to be detected according to the priority configuration information of the message abnormal data.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the insulation detection method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a method for detecting a message according to any one of the embodiments of the present invention.
According to the technical scheme, the method and the device for detecting the message detection request message, firstly, the message to be detected is received, and full-period detection is carried out on the message to be detected, so that the message detection result is obtained. Under the condition that the message detection result is determined to have message abnormal data, priority configuration information of the message abnormal data is determined, target negative response information of the request message to be detected is generated according to the priority configuration information of the message abnormal data, the problem that the target negative response information is relatively fixed and can not be changed is solved, the accuracy rate of message detection can be improved, and portability and development efficiency of message detection are improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a message detection method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a message detection method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for detecting a message in the prior art according to a second embodiment of the present invention;
fig. 4 is a flowchart of a message detection method in a vehicle system according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of a message detection apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a message detection method provided in a first embodiment of the present invention, where the embodiment of the present invention is applicable to a case of performing full-period detection on a request message to be detected, and the method may be performed by a message detection apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device, where the electronic device may be a terminal device or a server device, and the embodiment of the present invention does not limit a specific device type of the electronic device. Accordingly, as shown in fig. 1, the method includes the following operations:
s110, receiving a request message to be detected.
The request message to be detected may be message data needed to be detected and diagnosed. Alternatively, the request message to be detected may be a request message to be diagnosed in the vehicle system.
In the embodiment of the invention, the request message to be detected can be a request message to be detected in a vehicle system, or can be a request message to be detected in a bank system, and the system to which the specific message belongs is not limited. When the request message to be detected is a request message to be diagnosed in the vehicle system, the network communication infrastructure service can receive message data, judge the message type of the received message data, and if the message data is diagnostic message data, the message data can be used as the request message to be diagnosed in the vehicle system; if the message data is non-diagnostic message data, the message data cannot be used as a request message to be diagnosed in the vehicle system.
And S120, carrying out full-period detection on the request message to be detected to obtain a message detection result.
The full period detection may be to detect all message contents of the request message to be detected. The message detection result may be a detection result obtained after full-period detection is performed on the request message to be detected.
Correspondingly, after receiving the request message to be detected, carrying out full-period detection on all message contents of the request message to be detected, and after the detection is finished, obtaining a message detection result of the request message to be detected.
The advantages of this arrangement are that: the method comprises the steps of carrying out full-period detection on all message contents of a request message to be detected to obtain a message detection result, further obtaining subsequent target negative response information by analyzing the message detection result, and obtaining all message abnormal data of the request message to be detected by the processing method so as to facilitate the subsequent comparison of priority configuration information of the message abnormal data.
S130, under the condition that the message detection result is determined to have message abnormal data, priority configuration information of the message abnormal data is determined.
The message abnormal data may be all relevant abnormal data of the request message to be detected. For example, when the request message to be detected is a request message to be diagnosed in the vehicle system, the message abnormal data may be message data in which the current message format of the request message to be detected is not matched with the configuration data of the warehouse file format. The priority configuration information may be configuration information for performing negative response information priority configuration on the abnormal data type of the message.
Correspondingly, after the steps are completed and all message contents of the request message to be detected are detected in a full period, a message detection result of the request message to be detected is obtained, and whether the message detection result has message abnormal data or not is judged. And under the condition that the message detection result is determined to have message abnormal data, determining priority configuration information of the message abnormal data.
When the request message to be detected is a request message to be diagnosed in the vehicle system, the message abnormal data may be message data in which the current message format of the request message to be detected is not matched with the configuration data of the warehouse file format, or may be message data in which the current data length of the request message to be detected is not matched with the configuration data of the message data length.
And S140, generating target negative response information of the request message to be detected according to the priority configuration information of the message abnormal data.
The target negative response information may be feedback response information used to indicate that the message to be detected has abnormal data when the message to be detected is detected to have a full period. For example, when the request message to be detected is a request message to be diagnosed in the vehicle system, the target negative response information may be feedback response information for indicating that the request message to be diagnosed in the vehicle system has abnormal data of the message detected through a full period.
In the embodiment of the invention, the target negative response information of the request message to be detected can be generated by comparing the message detection result of the request message to be detected with the priority configuration information of the message abnormal data, and then the reply is carried out according to the obtained target negative response information.
The target negative response information is generated based on the priority configuration information of the message abnormal data, so that alarm conditions of different priorities of the request message to be detected can be intuitively reflected, and further the target negative response information of the request message to be detected can be generated according to the abnormal data with the highest priority, so that the target negative response information of the request message to be detected can reflect the most important and most concerned abnormal problems in the request message to be detected, and the accuracy of message detection is improved.
Secondly, as the target negative response information of the request message to be detected has the problem that the negative response information priority definitions are different among different platform projects, the preset message abnormal data priority configuration information avoids the problem that the negative response code priority cannot be changed, so that developers do not need to conduct a large number of repeated development aiming at different platform projects, and portability and development efficiency of the message detection development technology are improved.
According to the technical scheme, the method and the device for detecting the message detection request message, firstly, the message to be detected is received, and full-period detection is carried out on the message to be detected, so that the message detection result is obtained. Under the condition that the message abnormal data exists in the message detection result, priority configuration information of the message abnormal data is determined, and the target negative response information of the request message to be detected is generated by comparing the priority configuration information of the message abnormal data with the request message to be detected, so that the problem that the target negative response information is relatively fixed and can not be changed is solved, the accuracy rate of message detection can be improved, and the portability and development efficiency of message detection are further improved.
Example two
Fig. 2 is a flowchart of a message detection method provided by a second embodiment of the present invention, where the embodiment of the present invention is implemented based on the foregoing embodiment, and in this embodiment, multiple specific alternative implementations of performing full-period detection on a request message to be detected to obtain a message detection result and determine priority configuration information of abnormal data of the message are provided. Accordingly, as shown in fig. 2, the method of this embodiment may include:
s210, receiving a request message to be detected.
S220, carrying out full-period detection on the request message to be detected to obtain a message detection result.
In an optional embodiment of the present invention, performing full-period detection on the request message to be detected to obtain a message detection result may include: determining a current message mode of the request message to be detected; detecting the matching degree of the current message mode and the preset message mode of the request message to be detected to obtain a first message detection result; the predetermined message mode comprises a preset session mode and/or a safety mode.
The current message mode may be a mode state in which the request message to be detected is currently located. The predetermined message mode may be a predetermined message mode state. The first message detection result may be a message detection result generated by comparing a current message mode of the request message to be detected with a predetermined message mode. The preset session mode may be a preset message session mode state. The security mode may be a predetermined message security mode state.
When the request message to be detected is a request message to be diagnosed in the vehicle system, the current message mode may be a mode state of the request message to be detected in the vehicle system, the predetermined message mode may be a preset message mode state in the vehicle system, and the first message detection result may be a message detection result generated by comparing the current message mode of the request message to be detected in the vehicle system with the predetermined message mode. The preset session mode may be a message session mode state preset in the vehicle system. The secure mode may be a message secure mode state preset in the vehicle system.
Correspondingly, after receiving the request message to be detected, determining the current message mode of the request message to be detected. Optionally, the matching degree between the current message mode of the request message to be detected and the predetermined session mode can be obtained by comparing the current message mode of the request message to be detected and the security mode, and the matching degree between the current message mode of the request message to be detected and the security mode can be obtained by comparing the current message mode of the request message to be detected and the security mode, so that a first message detection result is generated according to the matching degree.
Optionally, when the current message mode of the request message to be detected is not matched with at least one of the preset session mode and the safety mode, determining that the message abnormal data exists in the aspect of the current message mode of the request message to be detected.
In an optional embodiment of the present invention, performing full-period detection on the request message to be detected to obtain a message detection result, and may further include: determining configuration data of a warehouse-in file format matched with the request message to be detected; detecting the matching degree of the current message format of the request message to be detected and the configuration data of the warehouse-in file format to obtain a second message detection result; the configuration data of the warehouse-in file format comprises configuration data of a request message format and/or configuration data of a message data length.
The current message format may be a current format state of the request message to be detected. The binning file format configuration data may be pre-set binning file request format data. The second message detection result may be a message detection result generated by comparing the current message mode of the request message to be detected with the configuration data of the warehouse file format. The request message format configuration data may be preset warehouse file request message format data. The message data length configuration data may be preset message length data of a warehouse-in file request.
For example, when the request message to be detected is a request message to be diagnosed in the vehicle system, the current message format may be a current format state of the request message to be detected in the vehicle system. The library file format configuration data may be library file request format data preset in the vehicle system. The second message detection result may be a message detection result generated by comparing the current message mode of the request message to be detected in the vehicle system with the configuration data of the warehouse file format. The request message format configuration data may be a library file request message format data preset in the vehicle system. The message data length configuration data may be a request message length data of a warehouse file preset in a vehicle system.
Correspondingly, after receiving the request message to be detected, determining the configuration data of the warehouse-in file format matched with the request message to be detected. Optionally, the matching degree between the current message format of the request message to be detected and the configuration data of the request message format can be obtained by comparing the current message format of the request message to be detected and the configuration data of the request message format, the data length of the request message to be detected can be determined according to the current message format of the request message to be detected, and the data length of the request message to be detected and the configuration data of the message data length can be compared to obtain the matching degree between the two, so that a second message detection result is generated according to the matching degree.
Optionally, when the current message mode of the request message to be detected is matched with the preset session mode and the safety mode, and when the current message mode of the request message to be detected is not matched with at least one of the preset session mode and the safety mode, determining that the message abnormal data exists in the aspect of the current message mode.
S230, determining the type of the message abnormal problem according to the message abnormal data.
After the message detection result is obtained through the steps, the type of the message abnormality problem can be determined according to the message abnormality data in the message detection result. In the embodiment of the invention, the message anomaly problem type may be that the current message format of the request message to be detected is not matched with the request message format configuration data, that the current message format of the request message to be detected is not matched with the message data length configuration data, that the current message mode of the request message to be detected is not in a preset session mode, and the like.
S240, judging whether the number of the message abnormal problem types is a plurality of, if so, executing S250; otherwise, S270 is performed.
S250, acquiring a priority configuration array matched with the request message to be detected.
And S260, matching the message abnormal data with the priority configuration array to obtain the priority configuration information of the message abnormal data.
The priority configuration array may be preset, which represents the priority of each message exception problem type. The priority configuration information may be that the message abnormal data is matched with the priority configuration array to obtain configuration information with highest priority.
In the embodiment of the invention, the number of the message abnormal problem types is judged according to the message abnormal problem types obtained in the steps, if a plurality of message abnormal problem types exist, a priority configuration array matched with the request message to be detected is obtained, the message abnormal problem type with the highest priority is obtained by matching the message abnormal data with the priority configuration array, and then the priority configuration information of the message abnormal data is generated.
S270, directly generating target negative response information of the request message to be detected according to the message abnormal problem type.
In the embodiment of the invention, the number of the message abnormal problem types is judged according to the message abnormal problem types obtained in the steps, and if the number of the message abnormal problem types is only 1, the target negative response information of the request message to be detected can be directly generated according to the message abnormal problem types.
In an example, taking a request message to be detected as a request message to be diagnosed in a vehicle system as an example, the message detection method provided by the embodiment of the invention is specifically described.
FIG. 3 is a flowchart of a message detection method in the prior art, as shown in FIG. 3, in the prior art, when detecting a request message to be diagnosed in a vehicle system, firstly, receiving the request message to be diagnosed in the vehicle system, judging whether the request message to be diagnosed is in a preset diagnosis session mode and a preset safety mode, if not, directly replying negative response information, and ending diagnosis; if the request message to be diagnosed meets the preset requirement of the warehouse-in file format, the negative response information is directly replied, and diagnosis is finished; if the requirement of the preset warehouse-in file format is met, diagnosis request processing is carried out, positive response information is replied, and diagnosis is ended.
Therefore, when the message is abnormal, the replied negative response information only can reflect one abnormal condition of the message in the prior art, so that the subsequent message abnormal data cannot be detected under the condition that the current detection flow is stopped when the message abnormal data of the diagnosis request message is detected, the replied negative response information has lower accuracy, and the problems of poor portability of the message detection module, long redevelopment period of a new platform, poor safety and the like are caused.
Fig. 4 is a flowchart of a message detection method in a vehicle system according to a second embodiment of the present invention, in a specific example, as shown in fig. 4, a request message to be diagnosed in the vehicle system is received first, and whether the request message to be diagnosed is in a preset diagnosis session mode and a preset security mode is detected, and a first message detection result is generated at the same time; and detecting whether the request message to be diagnosed meets the preset requirement of the warehouse-in file format, and generating a second message detection result. Further, judging whether negative response information needs to be replied, if so, comparing the message detection result with a preset priority configuration array to obtain the priority configuration information of the request message to be diagnosed, replying the negative response information and ending diagnosis; if not, the diagnosis request processing is carried out, the positive response information is replied, and the diagnosis is ended.
Therefore, the technical scheme of the embodiment of the invention can avoid the problem that the priority of the negative response information cannot be changed through the priority configuration array capable of being configured in a self-defining way, improves the accuracy of message detection, greatly improves the portability of the message diagnosis development code and shortens the development period.
According to the technical scheme, the method and the device for detecting the message detection result comprise the steps of firstly receiving a request message to be detected, and carrying out full-period detection on the request message to be detected to obtain the message detection result. Determining the abnormal message problem types according to the abnormal message data, judging whether the number of the abnormal message problem types is a plurality of, if so, acquiring a priority configuration array matched with the request message to be detected, and matching the abnormal message data with the priority configuration array to acquire priority configuration information of the abnormal message data; if not, directly generating target negative response information of the request message to be detected according to the message abnormal problem type. The embodiment of the invention avoids the problem that the priority of the negative response information cannot be changed through the priority configuration array capable of being configured in a self-defined way, improves the accuracy of message detection, greatly improves the portability of the message diagnosis development code, shortens the development period, simultaneously avoids the problem of software loopholes existing in the new platform for redevelopment of the negative response information, improves the development efficiency and enhances the software quality.
Example III
Fig. 5 is a schematic diagram of a message detection apparatus according to a third embodiment of the present invention, as shown in fig. 5, where the apparatus includes: the system comprises a detection request message receiving module 310, a full period detection module 320, a priority configuration information determining module 330 and a target negative response information generating module 340, wherein:
a detection request message receiving module 310, configured to receive a request message to be detected;
the full period detection module 320 is configured to perform full period detection on the request message to be detected, so as to obtain a message detection result;
a priority configuration information determining module 330, configured to determine priority configuration information of the message abnormal data when determining that the message detection result includes the message abnormal data;
the target negative response information generating module 340 is configured to generate target negative response information of the request message to be detected according to the priority configuration information of the message abnormal data.
According to the technical scheme, the method and the device for detecting the message detection request message, firstly, the message to be detected is received, and full-period detection is carried out on the message to be detected, so that the message detection result is obtained. Under the condition that the message abnormal data exists in the message detection result, priority configuration information of the message abnormal data is determined, and the target negative response information of the request message to be detected is generated by comparing the priority configuration information of the message abnormal data with the request message to be detected, so that the problem that the target negative response information is relatively fixed and can not be changed is solved, the message detection development period can be shortened, and the portability and development efficiency of the message detection development technology are improved.
Optionally, the full-period detection module 320 is specifically configured to: determining a current message mode of the request message to be detected; detecting the matching degree of the current message mode and the preset message mode of the request message to be detected to obtain a first message detection result; the predetermined message mode comprises a preset session mode and/or a safety mode.
Optionally, the full period detection module 320 is further configured to: determining configuration data of a warehouse-in file format matched with the request message to be detected; detecting the matching degree of the current message format of the request message to be detected and the configuration data of the warehouse-in file format to obtain a second message detection result; the configuration data of the warehouse-in file format comprises configuration data of a request message format and/or configuration data of a message data length.
Optionally, the priority configuration information determining module 330 is specifically configured to: determining the type of the message abnormal problem according to the message abnormal data; and under the condition that the number of the message abnormal problem types is determined to be a plurality of, determining priority configuration information of the message abnormal data.
Optionally, the priority configuration information determining module 330 is further configured to: acquiring a priority configuration array matched with the request message to be detected; and matching the message abnormal data with the priority configuration array to obtain the priority configuration information of the message abnormal data.
Optionally, the target negative response information generating module 340 is further configured to: and under the condition that the number of the message abnormal problem types is 1, directly generating target negative response information of the request message to be detected according to the message abnormal problem types.
Optionally, the request message to be detected is a request message to be diagnosed in a vehicle system.
The message detection device can execute the message detection method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details which are not described in detail in this embodiment can be referred to the message detection method provided in any embodiment of the present invention.
Example IV
Fig. 6 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the message detection method.
In some embodiments, the message detection method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the message detection method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the message detection method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.

Claims (10)

1. A method for detecting a message, comprising:
receiving a request message to be detected;
carrying out full-period detection on the request message to be detected to obtain a message detection result;
under the condition that the message detection result is determined to have message abnormal data, priority configuration information of the message abnormal data is determined;
and generating target negative response information of the request message to be detected according to the priority configuration information of the message abnormal data.
2. The method of claim 1, wherein the performing full-period detection on the request message to be detected to obtain a message detection result includes:
determining a current message mode of the request message to be detected;
detecting the matching degree of the current message mode and the preset message mode of the request message to be detected to obtain a first message detection result;
the predetermined message mode comprises a preset session mode and/or a safety mode.
3. The method of claim 1, wherein the performing full-period detection on the request message to be detected to obtain a message detection result includes:
determining configuration data of a warehouse-in file format matched with the request message to be detected;
detecting the matching degree of the current message format of the request message to be detected and the configuration data of the warehouse-in file format to obtain a second message detection result;
the configuration data of the warehouse-in file format comprises configuration data of a request message format and/or configuration data of a message data length.
4. The method according to claim 1, wherein determining the priority configuration information of the message exception data comprises:
determining the type of the message abnormal problem according to the message abnormal data;
and under the condition that the number of the message abnormal problem types is determined to be a plurality of, determining priority configuration information of the message abnormal data.
5. The method of claim 4, wherein determining the priority configuration information of the message exception data comprises:
acquiring a priority configuration array matched with the request message to be detected;
and matching the message abnormal data with the priority configuration array to obtain the priority configuration information of the message abnormal data.
6. The method as recited in claim 4, further comprising:
and under the condition that the number of the message abnormal problem types is 1, directly generating target negative response information of the request message to be detected according to the message abnormal problem types.
7. The method according to any one of claims 1-6, wherein the request message to be detected is a request message to be diagnosed in a vehicle system.
8. A message detection apparatus, comprising:
the detection request message receiving module is used for receiving a request message to be detected;
the full period detection module is used for carrying out full period detection on the request message to be detected to obtain a message detection result;
the priority configuration information determining module is used for determining the priority configuration information of the message abnormal data under the condition that the message abnormal data exist in the message detection result;
and the target negative response information generation module is used for generating target negative response information of the request message to be detected according to the priority configuration information of the message abnormal data.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the message detection method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the method of message detection of any one of claims 1-7.
CN202310579741.9A 2023-05-22 2023-05-22 Message detection method and device, electronic equipment and medium Pending CN116567115A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310579741.9A CN116567115A (en) 2023-05-22 2023-05-22 Message detection method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310579741.9A CN116567115A (en) 2023-05-22 2023-05-22 Message detection method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN116567115A true CN116567115A (en) 2023-08-08

Family

ID=87494426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310579741.9A Pending CN116567115A (en) 2023-05-22 2023-05-22 Message detection method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN116567115A (en)

Similar Documents

Publication Publication Date Title
CN116010220A (en) Alarm diagnosis method, device, equipment and storage medium
CN116645082A (en) System inspection method, device, equipment and storage medium
CN115687406B (en) Sampling method, device, equipment and storage medium for call chain data
CN116226644A (en) Method and device for determining equipment fault type, electronic equipment and storage medium
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN116405408A (en) Automatic equipment inspection method, device, equipment and storage medium
CN116567115A (en) Message detection method and device, electronic equipment and medium
CN115437961A (en) Data processing method and device, electronic equipment and storage medium
CN114398200A (en) System error reporting processing method and device, electronic equipment and storage medium
CN117292843B (en) Electrical signal data processing method, apparatus, device and storage medium
CN116001705B (en) Vehicle data monitoring method, device, equipment and storage medium
CN118074625A (en) Equipment fault detection method, device, equipment and storage medium
CN116016265B (en) Message all-link monitoring method, device, system, equipment and storage medium
CN117251769B (en) Abnormal data identification method, device, equipment and medium based on monitoring component
CN116628077A (en) Data detection method and device, electronic equipment and storage medium
CN116340097A (en) Method, device, equipment and storage medium for processing abnormal information
CN116302944A (en) Service system testing method and device, electronic equipment and storage medium
CN117609801A (en) Data comparison method, device, equipment and medium
CN116781572A (en) Service availability detection method, device, equipment and storage medium
CN117596047A (en) Request processing method, request processing device, electronic equipment and storage medium
CN117729005A (en) Network asset mapping method
CN116302370A (en) Method, device, equipment and medium for generating return code abnormality alarm
CN117741574A (en) Radar message processing method and device, electronic equipment and storage medium
CN117009111A (en) Data processing method, device, equipment and medium
CN117608904A (en) Fault positioning method and device, electronic equipment and storage 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