A message detection method and device, electronic equipment and medium
By performing full-cycle detection on request messages and configuring customized priorities, target negative response information is generated, which solves the problem of low message detection accuracy in existing technologies and improves development efficiency and portability.
Patent Information
- Application Number
- CN202310579741.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2043-05-22
AI Technical Summary
When detecting abnormal data in a request message, the existing technology stops the detection process after replying with a negative response information, resulting in the inability to detect subsequent abnormal data, low accuracy, and poor development portability and security.
Perform full-cycle detection on request messages, determine the priority configuration information of abnormal data, and generate target negative response information. Customize priority configuration to avoid unchangeable problems.
It improves the accuracy of message detection, enhances development efficiency and portability, shortens the development cycle, and enhances software quality.
Smart Images

Figure CN116567115B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of data processing, and in particular to a message detection method and device, electronic equipment and medium. BACKGROUND
[0002] The message detection technology is to detect whether the current message has abnormal data, and by detecting the current message request format and mode of the request message, the network troubleshooting and performance detection are realized by using the message without abnormal data.
[0003] At present, the prior art detects the request message according to a predetermined fixed order after receiving the request message, and once the abnormal message data of the request message is detected, a negative response information is immediately replied, and the current detection process is ended and no longer continues.
[0004] The inventor found that the prior art has the following problems in the process of implementing the present application: when the message is abnormal, the negative response information can only reflect one abnormal situation of the message, so that the subsequent abnormal message data cannot be detected when the current detection process is stopped after detecting the abnormal message data of the diagnostic request message, so that the accuracy of the negative response information is low, and the message detection module has poor portability, long re-development cycle and poor security. SUMMARY
[0005] Embodiments of the present application provide a message detection method, device, electronic equipment and medium, which can improve the accuracy of message detection, and further improve the portability and development efficiency of message detection.
[0006] According to an aspect of the present application, a message detection method is provided, comprising:
[0007] receiving a request message to be detected;
[0008] performing full-cycle detection on the request message to be detected to obtain a message detection result;
[0009] determining priority configuration information of the abnormal message data when it is determined that the message detection result has abnormal message data;
[0010] generating target negative response information of the request message to be detected according to the priority configuration information of the abnormal message data.
[0011] According to another aspect of the present application, a message detection device is provided, comprising:
[0012] a detection request message receiving module for receiving a request message to be detected;
[0013] The full-cycle detection module is configured to perform full-cycle detection on the to-be-detected request message to obtain a message detection result.
[0014] The priority configuration information determination module is configured to determine priority configuration information of the message abnormal data when it is determined that the message detection result contains the message abnormal data.
[0015] The target negative response information generation module is configured to generate target negative response information of the to-be-detected request message according to the priority configuration information of the message abnormal data.
[0016] According to another aspect of the present application, an electronic device is provided, which comprises:
[0017] at least one processor; and
[0018] a memory connected to the at least one processor in communication; wherein
[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the heat preservation detection method according to any one of the embodiments of the present application.
[0020] According to another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions for enabling a processor to perform the message detection method according to any one of the embodiments of the present application when executed.
[0021] The technical solution of the embodiments of the present application first receives a to-be-detected request message, and performs full-cycle detection on the to-be-detected request message to obtain a message detection result. When it is determined that the message detection result contains message abnormal data, priority configuration information of the message abnormal data is determined, and target negative response information of the to-be-detected request message is generated according to the priority configuration information of the message abnormal data, thereby solving the problem that the target negative response information is relatively fixed and cannot be changed, improving the accuracy of message detection, and further improving the portability and development efficiency of message detection.
[0022] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent through the following description. BRIEF DESCRIPTION OF DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 This is a flow chart of a message detection method provided in Example 1 of the present invention;
[0025] Figure 2 This is a flow chart of a message detection method provided by Embodiment 2 of the present invention;
[0026] Figure 3 This is a flow chart of a message detection method in the prior art provided by the second embodiment of the present invention;
[0027] Figure 4 This is a flow chart of a message detection method in a vehicle system provided by Embodiment 2 of the present invention;
[0028] Figure 5 This is a schematic diagram of a message detection device provided in Embodiment 3 of the present invention;
[0029] Figure 6 This is a structural diagram of an electronic device provided in Example 4 of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Embodiment one
[0033] Figure 1 is a flowchart of a message detection method provided by Embodiment one of the present application. The present application can be applied to the case of full-cycle detection of a to-be-detected request message. The method can be executed by a message detection device, which can be implemented in software and / or hardware and generally integrated in an electronic device, which can be a terminal device or a server device. The present application does not limit the specific type of the electronic device. Correspondingly, as shown in Figure 1 the method includes the following operations:
[0034] S110, receiving a to-be-detected request message.
[0035] The to-be-detected request message can be a message data that needs to be detected and diagnosed. Optionally, the to-be-detected request message can be a to-be-diagnosed request message in a vehicle system.
[0036] In the present application, the to-be-detected request message can be a to-be-detected request message in a vehicle system or a to-be-detected request message in a bank system, and the specific system to which the message belongs is not limited. For example, when the to-be-detected request message is a to-be-diagnosed request message in a vehicle system, the network communication infrastructure service can receive the message data, determine the message type of the received message data, and if the message data is diagnostic message data, the message data can be used as a to-be-diagnosed request message in the vehicle system. If the message data is non-diagnostic message data, the message data cannot be used as a to-be-diagnosed request message in the vehicle system.
[0037] S120, performing full-cycle detection on the to-be-detected request message to obtain a message detection result.
[0038] The full-cycle detection can be detection of all message contents of the to-be-detected request message. The message detection result can be a detection result obtained after full-cycle detection of the to-be-detected request message.
[0039] Correspondingly, after receiving the to-be-detected request message, full-cycle detection is performed on all message contents of the to-be-detected request message. After the detection is completed, a message detection result of the to-be-detected request message is obtained.
[0040] The advantage of this arrangement is that full-cycle detection is performed on all message contents of the to-be-detected request message to obtain a message detection result, and further target negative response information is obtained by analyzing the message detection result. This processing method can obtain all message abnormal data of the to-be-detected request message, so as to facilitate subsequent comparison with priority configuration information of the message abnormal data.
[0041] S130: When it is determined that the message detection result contains abnormal message data, determine priority configuration information of the abnormal message data.
[0042] The message abnormality data may include all abnormal data related to the request message to be detected. For example, when the request message to be detected is a request message to be diagnosed in a vehicle system, the message abnormality data may include message data indicating that the current message format of the request message to be detected does not match the stored file format configuration data. The priority configuration information may include configuration information for configuring the priority of negative response information for message abnormality data types.
[0043] Accordingly, after completing the above steps, a full-cycle detection is performed on all message contents of the request message to be detected, and after obtaining the message detection result of the request message to be detected, it is determined whether the message detection result contains message abnormality data. If it is determined that the message detection result contains message abnormality data, priority configuration information of the message abnormality data is determined.
[0044] For example, when the request message to be detected is a request message to be diagnosed in a vehicle system, the message abnormal data may be message data in which the current message format of the request message to be detected does not match the input file format configuration data, or it may be message data in which the current data length of the request message to be detected does not match the message data length configuration data.
[0045] S140: Generate target negative response information of the request message to be detected according to the priority configuration information of the message abnormality data.
[0046] The target negative response information may be feedback response information indicating that abnormal message data exists in the request message to be detected after a full-cycle detection. For example, when the request message to be detected is a request message to be diagnosed in a vehicle system, the target negative response information may be feedback response information indicating that abnormal message data exists in the request message to be diagnosed in the vehicle system after a full-cycle detection.
[0047] In an embodiment of the present invention, 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 abnormality data, and then a reply can be made according to the obtained target negative response information.
[0048] Since the target negative response information is generated based on the priority configuration information of the message abnormal data, it can intuitively reflect the different priority alarm conditions of the request message to be detected, and then 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, thereby improving the accuracy of message detection.
[0049] Secondly, since the target negative response information of the request message to be detected has different negative response information priority definitions between different platform projects, the pre-set 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 carry out a lot of repetitive development for different platform projects, thereby improving the portability and development efficiency of message detection development technology.
[0050] The technical solution of an embodiment of the present invention first receives a request message to be detected and performs a full-cycle detection on the request message to be detected to obtain a message detection result. If it is determined that the message detection result contains message anomaly data, priority configuration information of the message anomaly data is determined, and the priority configuration information of the message anomaly data is compared with the request message to be detected to generate target negative response information for the request message to be detected. This solves the problem that the target negative response information is relatively fixed and cannot be changed, can improve the accuracy of message detection, and further improve the portability and development efficiency of message detection.
[0051] Example 2
[0052] Figure 2 This is a flow chart of a message detection method provided by the second embodiment of the present invention. The embodiment of the present invention is specific based on the above embodiment. In this embodiment, multiple specific optional implementation methods are provided for performing full-cycle detection on the request message to be detected, obtaining the message detection results, and determining the priority configuration information of the abnormal message data. Figure 2 As shown, the method of this embodiment may include:
[0053] S210: Receive a request message to be detected.
[0054] S220: Perform a full-cycle detection on the request message to be detected to obtain a message detection result.
[0055] In an optional embodiment of the present invention, performing full-cycle detection on the request message to be detected to obtain a message detection result may include: determining the current message mode of the request message to be detected; detecting the matching degree between the current message mode of the request message to be detected and a predetermined message mode to obtain a first message detection result; wherein, the predetermined message mode includes a preset session mode and / or a security mode.
[0056] The current message mode may be the mode state currently in which the request message to be detected is in. 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 the current message mode of the request message to be detected with the predetermined message mode. The preset session mode may be a predetermined message session mode state. The security mode may be a predetermined message security mode state.
[0057] For example, when the request message to be detected is a request message to be diagnosed in a vehicle system, the current message mode may be the mode state of the request message to be detected in the vehicle system, the predetermined message mode may be a message mode state pre-set 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 pre-set in the vehicle system. The safety mode may be a message safety mode state pre-set in the vehicle system.
[0058] Accordingly, after receiving the request message to be detected, the current message mode of the request message to be detected is determined. Optionally, the current message mode of the request message to be detected can be compared with a predetermined session mode to obtain a match between the two. The current message mode of the request message to be detected can also be compared with a security mode to obtain a match between the two, thereby generating a first message detection result based on the match.
[0059] Optionally, when the current message mode of the request message to be detected does not match at least one of the preset session mode and the security mode, it is determined that the request message to be detected has message abnormality data in the current message mode.
[0060] In an optional embodiment of the present invention, a full-cycle detection is performed on the request message to be detected to obtain a message detection result, which may also include: determining the incoming file format configuration data that matches the request message to be detected; detecting the matching degree between the current message format of the request message to be detected and the incoming file format configuration data to obtain a second message detection result; wherein, the incoming file format configuration data includes request message format configuration data and / or message data length configuration data.
[0061] The current message format can be a current format state of the to-be-detected request message. The file storage request format configuration data can be pre-set file storage request format data. The second message detection result can be a message detection result generated by mutual comparison of the current message mode of the to-be-detected request message and the file storage request format configuration data. The request message format configuration data can be pre-set file storage request message format data. The message data length configuration data can be pre-set file storage request message length data.
[0062] For example, when the to-be-detected request message is a to-be-diagnosed request message in a vehicle system, the current message format can be a current format state of the to-be-detected request message in the vehicle system. The file storage request format configuration data can be pre-set file storage request format data in the vehicle system. The second message detection result can be a message detection result generated by mutual comparison of the current message mode of the to-be-detected request message in the vehicle system and the file storage request format configuration data. The request message format configuration data can be pre-set file storage request message format data in the vehicle system. The message data length configuration data can be pre-set file storage request message length data in the vehicle system.
[0063] Accordingly, after receiving the to-be-detected request message, file storage request format configuration data matched by the to-be-detected request message is determined. Optionally, the current message format of the to-be-detected request message can be compared with the request message format configuration data to obtain a matching degree therebetween. The data length of the to-be-detected request message can also be determined according to the current message format of the to-be-detected request message, and compared with the message data length configuration data to obtain a matching degree therebetween, so as to generate the second message detection result according to the matching degrees.
[0064] Optionally, when the current message mode of the to-be-detected request message matches the pre-set session mode and the security mode, it is determined that the to-be-detected request message has message abnormal data in terms of the current message mode, i.e., the current message mode of the to-be-detected request message does not match at least one of the pre-set session mode and the security mode.
[0065] S230, determining a message abnormal problem type according to the message abnormal data.
[0066] After the message detection result is obtained through the above steps, the message abnormal problem type can be determined according to the message abnormal data in the message detection result. In the embodiment of the present application, the message abnormal problem type can be that the current message format of the to-be-detected request message does not match the request message format configuration data, that the current message format of the to-be-detected request message does not match the message data length configuration data, or that the current message mode of the to-be-detected request message is not in a predetermined session mode, etc. The embodiment of the present application does not limit the message abnormal problem type.
[0067] S240. Determine whether there are multiple types of message abnormality problems. If so, execute S250; otherwise, execute S270.
[0068] S250: Obtain a priority configuration array matched by the request message to be detected.
[0069] S260: Match the message exception data with the priority configuration array to obtain priority configuration information of the message exception data.
[0070] The priority configuration array may be a pre-set configuration array representing the priority of each message anomaly problem type. The priority configuration information may be the configuration information with the highest priority obtained by matching the message anomaly data with the priority configuration array.
[0071] In an embodiment of the present invention, the number of message abnormality problem types is determined based on the message abnormality problem types obtained in the above steps. If there are multiple message abnormality problem types, a priority configuration array matching the request message to be detected is obtained, and the message abnormality problem type with the highest priority is obtained by matching the message abnormality data with the priority configuration array, thereby generating priority configuration information for the message abnormality data.
[0072] S270: Directly generate target negative response information of the request message to be detected according to the message abnormality problem type.
[0073] In an embodiment of the present invention, the number of message abnormality problem types obtained according to the above steps is determined. If the number of message abnormality 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 abnormality problem type.
[0074] In an example, the message detection method provided by the embodiment of the present invention is specifically described by taking the request message to be detected as a request message to be diagnosed in a vehicle system as an example.
[0075] Figure 3 This is a flow chart of a message detection method in the prior art provided by the second embodiment of the present invention. Figure 3As shown, in the prior art, when detecting the request message to be diagnosed in the vehicle system, the request message to be diagnosed in the vehicle system is first received, and it is determined whether the request message to be diagnosed is in a pre-set diagnostic session mode and a safety mode. If it is not in the pre-set diagnostic session mode and the safety mode, a negative response message is directly replied and the diagnosis is ended; if it is in the pre-set diagnostic session mode and the safety mode, it is determined whether the request message to be diagnosed meets the pre-set storage file format requirements. If it does not meet the pre-set storage file format requirements, a negative response message is directly replied and the diagnosis is ended; if it meets the pre-set storage file format requirements, the diagnostic request is processed, a positive response message is replied, and the diagnosis is ended.
[0076] It can be seen from this that when there is an abnormality in the message, the existing technology stops the current detection process when it detects that the diagnostic request message contains abnormal message data, because the negative response information of the reply can only reflect one abnormal situation of the message. As a result, the subsequent abnormal message data cannot be detected, resulting in a low accuracy rate of the negative response information of the reply, causing problems such as poor portability of the message detection module, a long redevelopment cycle of the new platform and poor security.
[0077] Figure 4 This is a flow chart of a message detection method in a vehicle system provided by the second embodiment of the present invention. In a specific example, Figure 4 As shown, the system first receives a diagnosis request message from the vehicle system, checks whether the diagnosis request message is in the pre-set diagnostic session mode and security mode, and generates a first message detection result. It then checks whether the diagnosis request message meets the pre-set storage file format requirements and generates a second message detection result. Furthermore, it determines whether a negative response message is required. If so, it compares the message detection result with a pre-set priority configuration array to obtain the priority configuration information of the diagnosis request message, responds with a negative response message, and ends the diagnosis. If not, it processes the diagnosis request, responds with a positive response message, and ends the diagnosis.
[0078] It can be seen that the technical solution of the embodiment of the present invention can circumvent the problem that the priority of negative response information cannot be changed through a customizable priority configuration array, thereby improving the accuracy of message detection, and greatly improving the portability of message diagnosis development code, thereby shortening the development cycle.
[0079] The technical scheme of the embodiment of the application first receives a to-be-detected request message, and performs full-cycle detection on the to-be-detected request message to obtain a message detection result. Then, the type of a message abnormal problem is determined according to the message abnormal data, and it is judged whether the number of the types of the message abnormal problem is multiple. If yes, a priority configuration array matched with the to-be-detected request message is obtained, the message abnormal data is matched with the priority configuration array to obtain priority configuration information of the message abnormal data. If no, target negative response information of the to-be-detected request message is directly generated according to the type of the message abnormal problem. The embodiment of the application avoids the problem that the priority of the negative response information cannot be changed by using the priority configuration array which can be self-defined, improves the accuracy of message detection, greatly improves the portability of message diagnosis development code, shortens the development cycle, avoids the software vulnerability problem of redeveloping the negative response information on a new platform, improves the development efficiency, and enhances the software quality.
[0080] Embodiment three
[0081] Figure 5 is a schematic diagram of a message detection device provided by the embodiment three of the application, as shown in Figure 5 The device comprises a detection request message receiving module 310, a full-cycle detection module 320, a priority configuration information determining module 330, and a target negative response information generating module 340, wherein:
[0082] The detection request message receiving module 310 is configured to receive a to-be-detected request message.
[0083] The full-cycle detection module 320 is configured to perform full-cycle detection on the to-be-detected request message to obtain a message detection result.
[0084] The priority configuration information determining module 330 is configured to, in a case where the message detection result contains message abnormal data, determine priority configuration information of the message abnormal data.
[0085] The target negative response information generating module 340 is configured to generate target negative response information of the to-be-detected request message according to the priority configuration information of the message abnormal data.
[0086] The technical scheme of the embodiment of the application first receives a to-be-detected request message, and performs full-cycle detection on the to-be-detected request message to obtain a message detection result. Then, the type of a message abnormal problem is determined according to the message abnormal data, and it is judged whether the number of the types of the message abnormal problem is multiple. If yes, a priority configuration array matched with the to-be-detected request message is obtained, the message abnormal data is matched with the priority configuration array to obtain priority configuration information of the message abnormal data. If no, target negative response information of the to-be-detected request message is directly generated according to the type of the message abnormal problem. The embodiment of the application avoids the problem that the priority of the negative response information cannot be changed by using the priority configuration array which can be self-defined, improves the accuracy of message detection, greatly improves the portability of message diagnosis development code, shortens the development cycle, avoids the software vulnerability problem of redeveloping the negative response information on a new platform, improves the development efficiency, and enhances the software quality.
[0087] Optionally, the full-cycle detection module 320 is specifically used to: determine the current message mode of the request message to be detected; detect the matching degree between the current message mode of the request message to be detected and the predetermined message mode, and obtain a first message detection result; wherein, the predetermined message mode includes a preset session mode and / or a security mode.
[0088] Optionally, the full-cycle detection module 320 is also used to: determine the incoming file format configuration data that matches the request message to be detected; detect the matching degree between the current message format of the request message to be detected and the incoming file format configuration data, and obtain a second message detection result; wherein, the incoming file format configuration data includes request message format configuration data and / or message data length configuration data.
[0089] Optionally, the priority configuration information determination module 330 is specifically used to: determine the message abnormality problem type according to the message abnormality data; when it is determined that there are multiple message abnormality problem types, determine the priority configuration information of the message abnormality data.
[0090] Optionally, the priority configuration information determination module 330 is further used to: obtain a priority configuration array matched by the request message to be detected; match the message abnormality data with the priority configuration array to obtain priority configuration information of the message abnormality data.
[0091] Optionally, the target negative response information generating module 340 is further configured to: when it is determined that the number of the message abnormality problem types is 1, directly generate target negative response information for the request message to be detected according to the message abnormality problem type.
[0092] Optionally, the request message to be detected is a request message to be diagnosed in a vehicle system.
[0093] The above-mentioned message detection device can execute the message detection method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in this embodiment, please refer to the message detection method provided by any embodiment of the present invention.
[0094] Example 4
[0095] Figure 6A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0096] like Figure 6 As shown, 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., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can 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. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0097] Multiple 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, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a 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.
[0098] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the 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, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the message detection method.
[0099] In some embodiments, the message detection method can be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the message detection method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the message detection method in any other appropriate manner (e.g., by means of firmware).
[0100] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0101] Computer programs for implementing the 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, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0102] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0103] To provide interaction with a user, the systems and techniques described herein 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 the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and the input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0104] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, 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: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0105] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
Claims
1. A message detection method, characterized in that: include: Receive a request message to be detected; Performing a full-cycle detection on the request message to be detected to obtain a message detection result; In the case where it is determined that the message detection result contains message abnormality data, determining priority configuration information of the message abnormality data; generating target negative response information of the request message to be detected according to the priority configuration information of the message abnormal data; The step of determining the priority configuration information of the abnormal message data includes: Determining the type of message abnormality problem according to the message abnormality data; When it is determined that there are multiple types of message anomaly problems, obtaining a priority configuration array for matching the request message to be detected; The message exception data is matched with the priority configuration array to obtain the message exception problem type with the highest priority, and priority configuration information of the message exception data is generated according to the message exception problem type with the highest priority.
2. The method according to claim 1, characterized in that The performing full-cycle 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 a matching degree between a current message pattern of the request message to be detected and a predetermined message pattern to obtain a first message detection result; The predetermined message mode includes a preset session mode and / or a security mode.
3. The method according to claim 1, characterized in that The performing full-cycle detection on the request message to be detected to obtain a message detection result includes: Determine the storage file format configuration data that matches the request message to be detected; Detecting a matching degree between a current message format of the request message to be detected and the storage file format configuration data, and obtaining a second message detection result; The storage file format configuration data includes request message format configuration data and / or message data length configuration data.
4. The method according to claim 1, wherein Also includes: When it is determined that the number of the message abnormality problem type is 1, target negative response information of the request message to be detected is directly generated according to the message abnormality problem type.
5. The method according to any one of claims 1 to 4, characterized in that: The request message to be detected is a request message to be diagnosed in the vehicle system.
6. A message detection device, characterized in that: include: A detection request message receiving module, used for receiving a request message to be detected; A full-cycle detection module is used to perform a full-cycle detection on the request message to be detected to obtain a message detection result; A priority configuration information determining module, configured to determine the priority configuration information of the abnormal message data when it is determined that the message detection result contains abnormal message data; a target negative response information generating module, 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; Among them, the priority configuration information determination module is specifically used to: determine the message abnormality problem type based on the message abnormality data; when it is determined that the number of the message abnormality problem types is multiple, obtain the priority configuration array that matches the request message to be detected; match the message abnormality data with the priority configuration array to obtain the message abnormality problem type with the highest priority, and generate the priority configuration information of the message abnormality data based on the message abnormality problem type with the highest priority.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the message detection method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the message detection method according to any one of claims 1 to 5 when executed.
Citation Information
Patent Citations
Vehicle diagnosis display method and device, electronic equipment and storage medium
CN115729221A
Method and system for improving vehicle security
WO2022047617A1