CN116016265A - Message all-link monitoring method, device, system, equipment and storage medium - Google Patents

Message all-link monitoring method, device, system, equipment and storage medium Download PDF

Info

Publication number
CN116016265A
CN116016265A CN202211597003.9A CN202211597003A CN116016265A CN 116016265 A CN116016265 A CN 116016265A CN 202211597003 A CN202211597003 A CN 202211597003A CN 116016265 A CN116016265 A CN 116016265A
Authority
CN
China
Prior art keywords
message
identification information
vehicle
database
time stamp
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.)
Granted
Application number
CN202211597003.9A
Other languages
Chinese (zh)
Other versions
CN116016265B (en
Inventor
李斌
吴荣华
霍达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Weride Technology Co Ltd
Original Assignee
Guangzhou Weride Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Weride Technology Co Ltd filed Critical Guangzhou Weride Technology Co Ltd
Priority to CN202211597003.9A priority Critical patent/CN116016265B/en
Publication of CN116016265A publication Critical patent/CN116016265A/en
Application granted granted Critical
Publication of CN116016265B publication Critical patent/CN116016265B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Traffic Control Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a message all-link monitoring method, a device, a system, equipment and a storage medium. The method is applied to a server and comprises the following steps: receiving a meta message sent by a vehicle, wherein the meta message comprises first message identification information corresponding to a first message generated on the vehicle; determining a first message generation timestamp based on the meta message, and storing the first message identification information and the corresponding first message generation timestamp in a message database; if a second message sent by the vehicle is received, storing second message identification information and a corresponding second message receiving time stamp into a message database, wherein the first message comprises the second message; processing the second message, and storing the second message identification information and the corresponding second message processing ending time stamp into a message database; and monitoring the message full link based on the message database, and determining an abnormal link in the message full link, so that the monitoring of the message full link is realized, and the abnormal link is discovered in time.

Description

Message all-link monitoring method, device, system, equipment and storage medium
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method, an apparatus, a system, a device, and a storage medium for message full link monitoring.
Background
With the rapid development of computer technology, an internet of things module in a vehicle, such as various information sensors, laser scanners, etc., may collect vehicle data and generate a message based on the collected vehicle data, and send the generated message to a server where the message is processed. An abnormal link may exist in the whole full link from the generation of a message to the processing of the message, resulting in a message processing failure. As can be seen, there is a great need for a way to monitor a message full link in order to discover an abnormal link in time.
Disclosure of Invention
The invention provides a method, a device, a system, equipment and a storage medium for monitoring a message full link, so as to realize the monitoring of the message full link, discover an abnormal link in time and ensure the normal processing of the message.
According to a first aspect of the present invention, there is provided a message full link monitoring method, applied to a server, including:
receiving a meta message sent by a vehicle, wherein the meta message comprises first message identification information corresponding to a first message generated on the vehicle, and the first message identification information comprises vehicle identification information and a first message generation time stamp;
Determining a first message generation time stamp corresponding to the first message identification information based on the meta message, and storing the first message identification information and the corresponding first message generation time stamp into a message database;
if a second message sent by the vehicle is received, storing second message identification information and a corresponding second message receiving time stamp into a message database, wherein the first message comprises the second message;
processing the second message, and storing second message identification information and a corresponding second message processing ending time stamp into a message database;
and monitoring the message full link based on the message database, and determining an abnormal link in the message full link.
According to a second aspect of the present invention, there is provided a message all-link monitoring method, applied to a vehicle, comprising:
determining a meta message based on first message identification information corresponding to a first message generated by a vehicle, wherein the first message identification information comprises the vehicle identification information and a first message generation time stamp;
sending the meta-message to a server, so that the server stores first message identification information and corresponding first message generation time stamps into a message database based on the meta-message;
If the current network state is detected to be the connected state, a second message generated currently on the vehicle is sent to the server, so that the server stores second message identification information and a corresponding second message receiving time stamp into a message database; processing the second message, and storing second message identification information and a corresponding second message processing ending time stamp into a message database; monitoring the message all links based on the message database, and determining abnormal links in the message all links;
wherein the first message comprises the second message.
According to a third aspect of the present invention, there is provided a message all-link monitoring apparatus integrated with a server, comprising:
the meta-message receiving module is used for receiving meta-messages sent by a vehicle, wherein the meta-messages comprise first message identification information corresponding to first messages generated on the vehicle, and the first message identification information comprises vehicle identification information and a first message generation time stamp;
the message generation time stamp storage module is used for determining a first message generation time stamp corresponding to the first message identification information based on the meta message and storing the first message identification information and the corresponding first message generation time stamp into the message database;
The message receiving timestamp storage module is used for storing second message identification information and corresponding second message receiving timestamps into the message database if receiving second messages sent by the vehicle, wherein the first messages comprise the second messages;
the message processing ending time stamp storage module is used for processing the second message and storing the second message identification information and the corresponding second message processing ending time stamp into a message database;
and the message all-link monitoring module is used for monitoring the message all-link based on the message database and determining an abnormal link in the message all-link.
According to a fourth aspect of the present invention, there is provided a message all-link monitoring apparatus integrated in a vehicle, comprising:
the meta-message determining module is used for determining a meta-message based on first message identification information corresponding to a first message generated by a vehicle, wherein the first message identification information comprises vehicle identification information and a first message generation time stamp;
a meta-message sending module, configured to send the meta-message to a server, so that the server stores, based on the meta-message, first message identification information and a corresponding first message generation timestamp into a message database;
The message sending module is used for sending a second message currently generated on the vehicle to the server if the current network state is detected to be the connected state, so that the server stores the second message identification information and the corresponding second message receiving time stamp into a message database; processing the second message, and storing second message identification information and a corresponding second message processing ending time stamp into a message database; monitoring the message all links based on the message database, and determining abnormal links in the message all links; wherein the first message comprises the second message.
According to a fifth aspect of the present invention, there is provided a message processing system, the system comprising a server and a vehicle; wherein,,
the server is used for realizing the message all-link monitoring method provided by the first aspect;
the vehicle is configured to implement the message full link monitoring method as provided in the second aspect.
According to a sixth aspect of the present invention, there is provided an 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 full link monitoring method of any one of the embodiments of the present invention.
According to a seventh aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a message full link monitoring method according to any one of the embodiments of the present invention when executed.
According to the technical scheme, the meta-message sent by the vehicle is received through the server, the meta-message comprises first message identification information corresponding to first messages generated on the vehicle, and the first message identification information comprises vehicle identification information and a first message generation time stamp. The server determines a first message generation timestamp corresponding to the first message identification information based on the meta message, and stores the first message identification information and the corresponding first message generation timestamp into a message database. If the server receives the second message sent by the vehicle, the second message identification information and the corresponding second message receiving time stamp are stored in a message database, wherein the first message comprises the second message. The server processes the second message and stores the second message identification information and the corresponding second message processing end timestamp into a message database. The server monitors the message full link based on the message database and determines an abnormal link in the message full link. By utilizing each message generated on the vehicle, each message receiving time stamp received by the server and each message processing ending time stamp processed, which are stored in the message database, the monitoring of the message full link is realized, so that an abnormal link can be found in time, the abnormality can be solved in time, and the normal processing of the message is ensured.
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 all-link monitoring method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a message all-link monitoring method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a message all-link monitoring method according to a third embodiment of the present invention;
fig. 4 is a flowchart of a message all-link monitoring method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a message all-link monitoring device according to a fifth embodiment of the present invention;
Fig. 6 is a schematic structural diagram of a message all-link monitoring device according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a message all-link monitoring device according to a seventh embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device implementing a message full link monitoring method according to an 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 full link monitoring method according to an embodiment of the present invention, where the embodiment is applicable to a situation of monitoring a full link of each message generated by a vehicle. The method may be performed by a message full link monitoring device, which may be implemented in hardware and/or software, and which may be integrated with a server, such as a background server or cloud server. As shown in fig. 1, the method includes:
s110, receiving a meta message sent by a vehicle, wherein the meta message comprises first message identification information corresponding to a first message generated on the vehicle, and the first message identification information comprises vehicle identification information and a first message generation time stamp.
The vehicle may refer to any vehicle that needs to send an internet of things message. The first message may refer to each message generated on the vehicle. The meta message may be basic information for describing the first message. The first message identification information may be information for uniquely identifying the first message so as to distinguish different first messages. The vehicle identification information may be information for uniquely identifying the vehicle so as to distinguish between different vehicles. The first message generation time stamp refers to the generation time of the first message.
Specifically, the vehicle collects vehicle data at preset time intervals or in real time, and generates a corresponding first message based on the vehicle data collected each time. The vehicle may generate the first message identification information based on the vehicle identification information and the first message generation timestamp. For example, if the vehicle identification information is: GZU _spy, the first message generation timestamp is: 1608000201210, the first message identification information generated is GZU _spy-1608000201210. The vehicle can also generate the first message identification information based on the vehicle identification information, the first message type information and the first message generation time stamp, so that a plurality of first messages generated at the same moment can be distinguished by using the first message type information, and the personalized requirement is further met.
The present embodiment may send each first message identification information as a single meta message to the server, that is, each first message generated on the vehicle, the first message identification information is sent as a meta message to the server. In this embodiment, a plurality of first message identification information may be combined, and the first message identification information array may be sent as one meta-message to the server, that is, a plurality of first messages may be continuously generated on the vehicle, and each first message identification information may be combined into one meta-message and sent to the server, so that the number of meta-messages may be reduced, and the transmission pressure may be reduced.
Illustratively, the meta-message is more compact than the first message content, so that successful transmission of the meta-message may be ensured. For example, when the vehicle sends the meta-message, the highest QoS (Quality of Service ) may be used to send the meta-message, so as to ensure successful sending of the meta-message, so that the server may successfully receive the meta-message, and further the server may obtain, through the meta-message, first message identification information corresponding to each first message generated on the vehicle.
S120, determining a first message generation time stamp corresponding to the first message identification information based on the meta message, and storing the first message identification information and the corresponding first message generation time stamp into a message database.
Wherein the message database may be a database for storing full life cycle information of the first message generated on the vehicle. The message full lifecycle may include: a message generation phase, a message reception phase and a message processing phase. For example, the message database may be a database for storing generation information, reception information, and processing information of the first message generated on the vehicle. The message database may be, but is not limited to, an elastesearch index database. The index database may include a message identification information field, a message generation timestamp field, a message receipt timestamp field, and a message processing end timestamp field.
Specifically, the server may parse the received meta-message to obtain parsed first message identification information, and parse the first message identification information to obtain a first message generation timestamp in the first message identification information. For each first message identification information, the first message identification information and the corresponding first message generation timestamp may be stored in a message database. For example, when the message database is an elastic search index database, the first message identification information and the corresponding first message generation time stamp may be indexed to the corresponding field to be stored, so that the first message generation time stamp of each first message generated on the vehicle may be rapidly stored.
For example, if the meta-message includes only one first message identification information, the meta-message may be parsed, a first message generation timestamp corresponding to the first message identification information may be determined, and the first message identification information and the corresponding first message generation timestamp may be stored in a message database. If the meta message is a first message identification information array composed of a plurality of first message identification information, determining a first message generation time stamp corresponding to each first message identification information based on the first message identification information array, and storing each first message identification information and the corresponding first message generation time stamp in a message database in batches, so that the message storage efficiency can be improved.
And S130, if a second message sent by the vehicle is received, storing second message identification information and a corresponding second message receiving time stamp into a message database, wherein the first message comprises the second message.
The second message may refer to the first message that the vehicle successfully transmits, so that the server successfully receives. Some of the first messages generated on the vehicle may not be received by the server due to an abnormal transmission link.
Specifically, each first message may be sent to the server when the first message is generated on the vehicle. The server takes the successfully received message as a second message and acquires a second message receiving time stamp. The second message identification information can be obtained by parsing the second message. For each second message identification information, the second message identification information and the corresponding second message receiving timestamp may be stored in a message database, for example, the second message identification information and the corresponding second message receiving timestamp are indexed to corresponding fields for storage, so that the second message generation timestamp of each second message successfully received on the server may be quickly stored.
S140, processing the second message, and storing the second message identification information and the corresponding second message processing ending time stamp into a message database.
Specifically, when the message processing link is normal, the second message may be processed normally, so as to obtain a processing result. The message processing mode may be to store and process the message content in the second message. After the message processing is finished, a second message processing ending time stamp can be obtained, and the second message identification information and the second message processing ending time stamp are stored in the message database, for example, the second message identification information and the corresponding second message processing ending time stamp are indexed to corresponding fields to be stored, so that the second message processing ending time stamp of each second message successfully processed on the server can be quickly stored.
If the message processing link is abnormal, the second message cannot be processed normally, and thus the second message processing end timestamp cannot be stored in the message database.
S150, monitoring the message full link based on the message database, and determining an abnormal link in the message full link.
Wherein the message full link may be used to characterize the message full lifecycle. For example, the message full link may include: a message sending link, a message receiving link and a message processing link. An abnormal link may be a message link indicating that an abnormal situation is occurring.
Specifically, statistical analysis can be performed on the message identification information field, the message generation timestamp field, the message receiving timestamp field and the message processing ending timestamp field in the message database to detect whether an abnormal link appears in the message all links, so that the message all links are comprehensively monitored, and the abnormal links are timely found. When an abnormal link is detected, the abnormal link can be correspondingly processed in time, and the abnormal condition is solved, so that the normal processing of the message is ensured.
Illustratively, S150 may include: determining the number of message generation, the number of message reception and the number of message processing within the target time period based on the message database and the target time period; an abnormal link in the message full link is determined based on the message generation number, the message reception number, and the message processing number.
The target time period may be a time period for monitoring a message processing condition. For example, the target time period may refer to the last day. The target time period may be a time period input by the user based on the service requirement, or may be a time period set in a timing manner. The message generation number may refer to the total number of first messages generated on the vehicle during the target time period. The number of message receptions may refer to the number of second messages successfully received by the server within the target time period. The number of message processes may refer to the number of second messages successfully processed by the server within the target time period.
Specifically, based on the target time period, all message identification information with the message generation time stamp within the target time period can be searched out in the message database, and the message generation quantity is counted. The message receiving time stamp can be searched out of each message identification information in the target time period, and the message receiving quantity is counted. The message processing end time stamp can be searched out of each message identification information in the target time period, and the message processing quantity is counted. By comparing the number of message generation, the number of message reception, and the number of message processing, it can be determined whether an abnormal link occurs in the message full link. The message generation ratio, the message reception ratio, and the message processing ratio may also be determined based on the message generation number, the message reception number, and the message processing number, and the abnormal link may be identified by comparing the respective ratios.
Illustratively, determining an abnormal link in the message full link based on the message generation number, the message reception number, and the message processing number may include: if the difference value between the message generation quantity and the message receiving quantity is larger than or equal to a preset threshold value, determining a message sending link and a message receiving link in the message full link as abnormal links; and if the difference value between the message receiving quantity and the message processing quantity is larger than or equal to a preset threshold value, determining the message processing link in the message full link as an abnormal link.
The preset threshold may be preset, and the minimum difference value when the link abnormality occurs. Specifically, if the difference between the number of generated messages and the number of received messages is greater than or equal to a preset threshold, it is indicated that most of the messages generated on the vehicle do not enter a state of being received by the server, and abnormality may occur in both the message transmission stage and the message reception stage, so that the message transmission link and the message reception link are determined to be abnormal links. If the difference between the number of received messages and the number of processed messages is greater than or equal to a preset threshold, the message generated by the vehicle is received by the server but is not processed by the server, and the message processing stage is abnormal, so that the message processing link is determined to be an abnormal link.
According to the technical scheme of the embodiment, the meta-message sent by the vehicle is received through the server, the meta-message comprises first message identification information corresponding to first messages generated on the vehicle, and the first message identification information comprises vehicle identification information and a first message generation time stamp. The server determines a first message generation timestamp corresponding to the first message identification information based on the meta message, and stores the first message identification information and the corresponding first message generation timestamp into a message database. If the server receives the second message sent by the vehicle, the second message identification information and the corresponding second message receiving time stamp are stored in a message database, wherein the first message comprises the second message. The server processes the second message and stores the second message identification information and the corresponding second message processing end timestamp into a message database. The server monitors the message full link based on the message database and determines an abnormal link in the message full link. By utilizing each message generated on the vehicle, each message receiving time stamp received by the server and each message processing ending time stamp processed, which are stored in the message database, the monitoring of the message full link is realized, so that an abnormal link can be found in time, the abnormality can be solved in time, and the normal processing of the message is ensured.
Example two
Fig. 2 is a flowchart of a message full link monitoring method according to a second embodiment of the present invention, where a process of receiving and processing a third message including online repair identification information is described in detail on the basis of the foregoing embodiment. Wherein the explanation of the same or corresponding terms as those of the above embodiments is not repeated herein.
Referring to fig. 2, the method for monitoring a message full link provided in this embodiment specifically includes the following steps:
s210, receiving a meta message sent by a vehicle, wherein the meta message comprises first message identification information corresponding to a first message generated on the vehicle, and the first message identification information comprises vehicle identification information and a first message generation time stamp.
S220, determining a first message generation time stamp corresponding to the first message identification information based on the meta message, and storing the first message identification information and the corresponding first message generation time stamp into a message database.
And S230, if a second message sent by the vehicle is received, storing second message identification information and a corresponding second message receiving time stamp into a message database, wherein the first message comprises the second message.
S240, processing the second message, and storing the second message identification information and the corresponding second message processing ending time stamp into a message database.
S250, if the third message sent by the vehicle is received, third message identification information and a third message online repair time stamp in the third message are stored in a message database.
The third message may refer to a message sent by the vehicle in an online repair manner. The third message is used to complement a message that was not previously successfully sent. The third message online repair timestamp may refer to a timestamp at which the vehicle sent the third message.
Specifically, the message full lifecycle may further include: and (5) an online repair stage. An online repair timestamp field may also be included in the message database. After receiving the third message sent by the vehicle, the server analyzes the third message to obtain third message identification information and a third message online repair time stamp, and can store the third message identification information and the corresponding third message online repair time stamp in a message database, for example, index the third message identification information and the corresponding third message online repair time stamp to corresponding fields for storage, so that the third message online repair time stamp of each third message which is successfully repaired online can be quickly stored.
And S260, storing the third message identification information and the corresponding third message receiving time stamp into a message database.
Specifically, when the server receives the third message, the server may obtain a third message receiving timestamp, and index the third message identification information and the corresponding third message receiving timestamp to the corresponding field to store, so as to perform a normal message monitoring operation on the third message successfully repaired online.
S270, processing the third message, and storing the third message identification information and the corresponding third message processing ending time stamp into a message database.
Specifically, when the message processing link is normal, the third message may be processed normally, so as to obtain a processing result. After the message processing is finished, a third message processing ending time stamp can be obtained, and the third message identification information and the third message processing ending time stamp are stored in the message database, for example, the third message identification information and the corresponding third message processing ending time stamp are indexed to corresponding fields to be stored, so that the third message processing ending time stamp of the third message successfully processed on the server can be quickly stored.
S280, monitoring the message full link based on the message database, and determining an abnormal link in the message full link.
Illustratively, the full lifecycle of a normal message may go through the message generation phase, the message reception phase, and the message processing phase in sequence. The full life cycle of the online repair success message goes through the message generation phase, the online repair phase, the message receiving phase and the message processing phase in sequence.
In particular, by storing timestamp information of a third message of an online successful repair in a message database, the condition of the online repair of the message can be monitored. For example, the number of online repair messages whose online repair time stamps are within a target time period may be determined based on the message database so that the number of messages completed by online repair is known.
According to the technical scheme of the embodiment, the server stores the third message identification information and the third message online repair time stamp in the third message sent by the vehicle, and performs normal processing operation on the third message, so that the condition of online message repair can be monitored by using the message database, and user experience is further improved.
Example III
Fig. 3 is a flowchart of a message all-link monitoring method according to a third embodiment of the present invention, where the processing procedure of a message log sent by a vehicle is described in detail on the basis of the foregoing embodiment. Wherein the explanation of the same or corresponding terms as those of the above embodiments is not repeated herein.
Referring to fig. 3, the method for monitoring a message full link provided in this embodiment specifically includes the following steps:
s310, receiving a meta message sent by a vehicle, wherein the meta message comprises first message identification information corresponding to a first message generated on the vehicle, and the first message identification information comprises vehicle identification information and a first message generation time stamp.
S320, determining a first message generation time stamp corresponding to the first message identification information based on the meta message, and storing the first message identification information and the corresponding first message generation time stamp into a message database.
S330, if a second message sent by the vehicle is received, storing second message identification information and a corresponding second message receiving time stamp into a message database, wherein the first message comprises the second message.
S340, processing the second message, and storing the second message identification information and the corresponding second message processing ending time stamp into a message database.
S350, if the message log sent by the vehicle is received, screening the received message log based on the processed message log to determine an unprocessed target message log.
Wherein the received message log may be a list of message log files currently stored in the vehicle. The processed message log may refer to a list of message log files that the server has currently processed.
Specifically, the vehicle may perform a transmission operation of the message log at a timing to transmit the message log generated on the vehicle to the server, for example, the vehicle may transmit the message log generated in the last 7 days to the server. Because the vehicle may send the processed message log file, the server may screen the received message log based on the processed message log to determine a target message log that has not been processed, so as to avoid repeated processing of the message log.
S360, traversing the messages in the target message log to determine target messages meeting preset message subjects.
Specifically, the server may traverse each line in the target message log, and screen out a target message of a preset theme, such as a target message of an internet of things theme. The number of targeted messages is one or more.
S370, storing the target message identification information in the target message and the corresponding target message offline repair time stamp into a message database.
The target message may refer to a message obtained by the vehicle through a message log, that is, an offline repair mode. The target message is also used to complement messages that were not previously successfully sent. The target message offline repair timestamp may refer to a timestamp of the vehicle sending a message log.
Specifically, the message full lifecycle may further include: and (5) an offline repairing stage. An offline repair timestamp field may also be included in the message database. After obtaining the offline repaired target message, the server analyzes the target message to obtain target message identification information and a target message offline repair time stamp, and can store the target message identification information and the corresponding target message offline repair time stamp in a message database, for example, index the target message identification information and the corresponding target message offline repair time stamp to corresponding fields for storage, so that the target message offline repair time stamp of each target message which is successfully repaired offline can be stored rapidly.
And S380, storing the target message identification information and the corresponding target message receiving time stamp into a message database.
Specifically, when determining the target message, the server may determine the current timestamp as the target message receiving timestamp, and index the target message identification information and the corresponding target message receiving timestamp into the corresponding field for storage, so as to perform normal message monitoring operation on the target message successfully repaired offline.
S390, processing the target message, and storing the target message identification information and the corresponding target message processing ending time stamp into a message database.
Specifically, when the message processing link is normal, the target message can be processed normally, and a processing result is obtained. After the message processing is finished, the target message processing ending time stamp can be obtained, and the target message identification information and the target message processing ending time stamp are stored in the message database, for example, the target message identification information and the corresponding target message processing ending time stamp are indexed to corresponding fields to be stored, so that the target message processing ending time stamp of the target message successfully processed on the server can be quickly stored.
It should be noted that, if the server has processed the target message stored in the message log before, processing the target message may be omitted; the target message may also be repeatedly processed, for example, the message content in the target message is again stored and updated, the message content before and after the update is the same, and the message processing result and the monitoring process are not affected. The repeated processing mode can avoid judging whether the message is processed or not, so that the resource cost is reduced as much as possible.
S391, monitoring the message full link based on the message database, and determining an abnormal link in the message full link.
Illustratively, the full lifecycle of the offline repair success message may pass through the message generation phase, the offline repair phase, the message reception phase, and the message processing phase in that order.
Specifically, by storing timestamp information of a target message successfully repaired offline in a message database, the condition of the message offline repair can be monitored. For example, the number of offline repair messages whose offline repair timestamps are within a target time period may be determined based on the message database, thereby knowing the number of messages completed by offline repair.
According to the technical scheme of the embodiment, the server stores the target message offline repair time stamp corresponding to the target message in the message log into the message database and performs normal processing operation on the target message, so that the condition of offline message repair can be monitored by using the message database, and the user experience is further improved.
Example IV
Fig. 4 is a flowchart of a message full link monitoring method according to a fourth embodiment of the present invention, where the present embodiment is applicable to a situation where full links of each message generated by a vehicle are monitored. The method may be performed by a message full link monitoring device, which may be implemented in hardware and/or software, which may be integrated in a vehicle. As shown in fig. 4, the method includes:
S410, determining a meta message based on first message identification information corresponding to a first message generated by the vehicle, wherein the first message identification information comprises the vehicle identification information and a first message generation time stamp.
The vehicle may refer to any vehicle that needs to send an internet of things message. The first message may refer to each message generated on the vehicle. The meta message may be basic information for describing the first message. The first message identification information may be information for uniquely identifying the first message so as to distinguish different first messages. The vehicle identification information may be information for uniquely identifying the vehicle so as to distinguish between different vehicles. The first message generation time stamp refers to the generation time of the first message.
Specifically, the vehicle collects vehicle data at preset time intervals or in real time, and generates a corresponding first message based on the vehicle data collected each time. The vehicle may generate the first message identification information based on the vehicle identification information and the first message generation timestamp. The vehicle can also generate the first message identification information based on the vehicle identification information, the first message type information and the first message generation time stamp, so that a plurality of first messages generated at the same moment can be distinguished by using the first message type information, and the personalized requirement is further met. When the vehicle sends the meta-message, the highest QoS can be utilized to send the meta-message, so that successful sending of the meta-message is ensured, the server can successfully receive the meta-message, and the server can obtain first message identification information corresponding to each first message generated on the vehicle through the meta-message.
For example, the vehicle may send each first message identification information as a separate one of the meta messages to the server, that is, each time a first message is generated on the vehicle, the first message identification information is sent as one of the meta messages to the server.
Illustratively, S410 may include: combining first message identification information corresponding to a preset number of first messages generated by the vehicle to determine a first message identification information array; the first message identification information array is determined as a meta-message to be sent.
The preset number may refer to the number of the first message identification information included in the meta message sent each time. For example, the preset number is 500. Specifically, the vehicle may combine a preset number of first message identification information, and send the first message identification information array as one meta message to the server, that is, combine first message identification information corresponding to a preset number of first messages continuously generated on the vehicle into one meta message and send the meta message to the server. By means of the mode of sending the first message identification information in batches, the number of meta-messages can be reduced, and transmission pressure is reduced.
S420, the meta-message is sent to the server, so that the server stores the first message identification information and the corresponding first message generation time stamp into a message database based on the meta-message.
Wherein the message database may be a database for storing full life cycle information of the first message generated on the vehicle. The message full lifecycle may include: a message generation phase, a message reception phase and a message processing phase. For example, the message database may be a database for storing generation information, reception information, and processing information of the first message generated on the vehicle. The message database may be, but is not limited to, an elastesearch index database. The index database may include a message identification information field, a message generation timestamp field, a message receipt timestamp field, and a message processing end timestamp field.
Specifically, the vehicle may send the meta-message to the server, and the server parses the received meta-message to obtain parsed first message identification information, and parses the first message identification information to obtain a first message generation timestamp in the first message identification information. For each first message identification information, the first message identification information and the corresponding first message generation timestamp may be stored in a message database. For example, when the message database is an elastic search index database, the first message identification information and the corresponding first message generation time stamp may be indexed to the corresponding field to be stored, so that the first message generation time stamp of each first message generated on the vehicle may be rapidly stored.
S430, if the current network state is detected to be the connected state, the second message currently generated on the vehicle is sent to the server, so that the server stores the second message identification information and the corresponding second message receiving time stamp into a message database; processing the second message, and storing the second message identification information and the corresponding second message processing ending time stamp into a message database; and monitoring the message full link based on the message database, and determining an abnormal link in the message full link.
Wherein the first message comprises a second message. The second message may refer to the first message transmitted by the network using the connected state. That is, the second message is the first message that the vehicle successfully sent so that the server successfully received. Some of the first messages generated on the vehicle may not be received by the server due to an abnormal transmission link.
Wherein the message full link may be used to characterize the message full lifecycle. For example, the message full link may include: a message sending link, a message receiving link and a message processing link. An abnormal link may be a message link indicating that an abnormal situation is occurring.
Specifically, the main thread in the vehicle may detect whether the current network state is a connected state, and if so, may send the first message currently generated by the vehicle as the second message to the server, so that the vehicle may successfully send the second message. The server may parse the received second message to obtain second message identification information. For each second message identification information, the second message identification information and the corresponding second message receipt timestamp may be stored in a message database. And when the message processing link is normal, storing the second message identification information and the second message processing ending time stamp into a message database. The server detects whether an abnormal link occurs in the message all links by carrying out statistical analysis on a message identification information field, a message generation time stamp field, a message receiving time stamp field and a message processing ending time stamp field in a message database, so that the full-link monitoring of the message is realized, and the abnormal link is discovered in time. When an abnormal link is detected, the abnormal link can be correspondingly processed in time, and the abnormal condition is solved, so that the normal processing of the message is ensured.
According to the technical scheme of the embodiment, the vehicle determines the meta-message based on the first message identification information corresponding to the first message generated by the vehicle, wherein the first message identification information comprises the vehicle identification information and the first message generation time. The vehicle sends the meta-message to a server, the server determines a first message generation time stamp corresponding to the first message identification information based on the meta-message, and stores the first message identification information and the corresponding first message generation time stamp in a message database. When the vehicle detects that the current network state is the connected state, a second message generated currently on the vehicle is sent to the server. The server stores the second message identification information and the corresponding second message receipt timestamp in a message database, wherein the first message comprises the second message. The server processes the second message and stores the second message identification information and the corresponding second message processing end timestamp into a message database. The server monitors the message full link based on the message database and determines an abnormal link in the message full link. By utilizing each message generated on the vehicle, each message receiving time stamp received by the server and each message processing ending time stamp processed, which are stored in the message database, the monitoring of the message full link is realized, so that an abnormal link can be found in time, the abnormality can be solved in time, and the normal processing of the message is ensured.
Based on the technical scheme, the method further comprises the following steps: if the current network state is detected to be the disconnection state, caching a second message generated currently on the vehicle; if the current network state is detected to be restored to the connected state, a new thread is created, a third message containing a third message online repair time stamp is generated based on the locally cached second message through the new thread, and the third message is sent to the server. And sending the locally cached third message containing the third message online repair time stamp to the server, wherein the third message comprises the second message.
The third message may refer to a message sent when the vehicle is repaired online. The third message is used to complement a message that was not previously successfully sent. The third message online repair time stamp in the third message may refer to a time stamp at which the vehicle sent the third message.
Specifically, when the current network state is detected to be the disconnection state, the main thread in the vehicle can locally cache the second message to be sent. When the main thread detects that the current network state is restored to the connected state, a new thread can be created, and the created new thread is utilized to carry out online reissue of the message, so that the online repair of the message can be realized. For example, in the new thread, a second message may be fetched from the locally cached second message queue as a third message, and the current timestamp may be used as a third message online repair timestamp to generate a third message including the third message online repair timestamp. And the third message is asynchronously sent through the created new thread, so that the situation that the main thread is blocked due to a large number of repeated sending messages is avoided, and the online repairing efficiency is improved.
Illustratively, sending the third message to the server may include: before each third message is sent by the new thread, detecting whether the current network state is a connected state; if yes, sending the third message to the server, and deleting the third message from the local cache; if not, destroying the new thread.
Specifically, in the online repairing process, before each third message is sent, it needs to detect whether the current network state is a connected state, if so, it indicates that the third message can be sent successfully, and at this time, the third message can be sent and deleted from the local cache, thereby saving storage resources. If the state is disconnected, the created new thread can be destroyed, so that when the network state is restored to the connected state, the thread is created again for asynchronous transmission. By detecting the current network state before sending the third message each time, the situation that the cached message is not sent successfully and is deleted from the cache due to disconnection after short network recovery can be avoided, and the message online repairing effect is further ensured.
For example, the message full lifecycle may further include: and (5) an online repair stage. The full life cycle of the online repair success message goes through the message generation phase, the online repair phase, the message receiving phase and the message processing phase in sequence.
Based on the technical scheme, the method further comprises the following steps: and writing the second message into the message log, and sending the message log and the message offline repair time stamp to the server at regular time.
The message offline repair timestamp may refer to a timestamp of a message log sent by the vehicle. The offline message repair time stamp for each message in the message log is the same.
Specifically, the vehicle may perform a transmission operation of the message log at a timing to transmit the message log generated on the vehicle to the server, for example, the vehicle may transmit the message log generated in the last 7 days to the server. When the vehicle sends the message log, the current timestamp can be used as the offline message repair timestamp to be sent to the server together with the message log, so that the server performs offline repair of the message based on the received message log, and the offline message repair can be realized. For example, the message full lifecycle may further include: and (5) an offline repairing stage. The full life cycle of the online repair success message goes through the message generation stage, the offline repair stage, the message receiving stage and the message processing stage in sequence.
The following is an embodiment of a message all-link monitoring device provided by the embodiment of the present invention, which belongs to the same inventive concept as the message all-link monitoring method of the above embodiments, and details of the embodiment of the message all-link monitoring device, which are not described in detail, may refer to the embodiment of the message all-link monitoring method.
Example five
Fig. 5 is a schematic structural diagram of a message all-link monitoring device according to a fifth embodiment of the present invention. As shown in fig. 5, the device is integrated in a server, and specifically includes: a meta message receiving module 510, a message generation timestamp storage module 520, a message receipt timestamp storage module 530, a message processing end timestamp storage module 540, and a message full link monitoring module 550.
The meta-message receiving module 510 is configured to receive a meta-message sent by a vehicle, where the meta-message includes first message identification information corresponding to a first message generated on the vehicle, and the first message identification information includes vehicle identification information and a first message generation timestamp; a message generation timestamp storage module 520, configured to determine a first message generation timestamp corresponding to the first message identification information based on the meta message, and store the first message identification information and the corresponding first message generation timestamp in the message database; a message receiving timestamp storage module 530, configured to store, if a second message sent by the vehicle is received, second message identification information and a corresponding second message receiving timestamp into a message database, where the first message includes the second message; a message processing end timestamp storage module 540, configured to process the second message, and store the second message identification information and the corresponding second message processing end timestamp in the message database; the message all-link monitoring module 550 is configured to monitor the message all-link based on the message database, and determine an abnormal link in the message all-link.
Optionally, the message all-link monitoring module 550 includes:
a message processing determining unit for determining the number of message generation, the number of message reception and the number of message processing within the target time period based on the message database and the target time period;
an abnormal link determining unit for determining an abnormal link in the message full link based on the message generation number, the message reception number and the message processing number.
Optionally, the abnormal link determining unit is specifically configured to:
if the difference value between the message generation quantity and the message receiving quantity is larger than or equal to a preset threshold value, determining a message sending link and a message receiving link in the message full link as abnormal links; and if the difference value between the message receiving quantity and the message processing quantity is larger than or equal to a preset threshold value, determining the message processing link in the message full link as an abnormal link.
Optionally, the apparatus further comprises:
the online repair time stamp storage module is used for storing the third message identification information and the online repair time stamp of the third message in the third message into the message database if the third message sent by the vehicle is received;
the message receipt timestamp storage module 530 is further configured to: storing the third message identification information and the corresponding third message receiving timestamp into a message database;
The message processing end timestamp storage module 540 is further configured to: and processing the third message, and storing the third message identification information and the corresponding third message processing ending time stamp into a message database.
Optionally, the apparatus further comprises:
the message log processing module is used for screening the received message log based on the processed message log if the message log sent by the vehicle is received, and determining an unprocessed target message log;
the target message determining module is used for traversing the messages in the target message log and determining target messages meeting preset message subjects;
the offline repair time stamp storage module is used for storing the target message identification information and the corresponding offline repair time stamp of the target message into the message database;
the message receipt timestamp storage module 530 is further configured to: storing the target message identification information and the corresponding target message receiving time stamp into a message database;
the message processing end timestamp storage module 540 is further configured to: and processing the target message, and storing the target message identification information and the corresponding target message processing ending time stamp into a message database.
The message all-link monitoring device provided by the embodiment of the invention can execute the message all-link monitoring method applied to the server provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the message all-link monitoring method.
It should be noted that, in the embodiment of the message all-link monitoring device, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example six
Fig. 6 is a schematic structural diagram of a message all-link monitoring device according to a sixth embodiment of the present invention. As shown in fig. 6, the device is integrated in a vehicle, and specifically includes: a meta-message determination module 610, a meta-message transmission module 620, and a message transmission module 630.
Wherein, the meta message determining module 610 is configured to determine a meta message based on first message identification information corresponding to a first message generated by a vehicle, where the first message identification information includes vehicle identification information and a first message generation timestamp; a meta message sending module 620, configured to send a meta message to the server, so that the server stores the first message identification information and the corresponding first message generation timestamp into the message database based on the meta message; the message sending module 630 is configured to send a second message currently generated on the vehicle to the server if the current network state is detected to be a connected state, so that the server stores the second message identification information and the corresponding second message receiving timestamp into the message database; processing the second message, and storing the second message identification information and the corresponding second message processing ending time stamp into a message database; monitoring the message full link based on the message database, and determining an abnormal link in the message full link; wherein the first message comprises a second message.
Optionally, the meta-message determining module 610 is specifically configured to:
combining first message identification information corresponding to a preset number of first messages generated by the vehicle to determine a first message identification information array; the first message identification information array is determined as a meta-message to be sent.
Optionally, the apparatus further comprises:
the second message caching module is used for caching a second message currently generated on the vehicle if the current network state is detected to be the disconnection state;
and the third message sending module is used for creating a new thread if the current network state is detected to be restored to the connected state, generating a third message containing a third message online repair time stamp based on the locally cached second message through the new thread, and sending the third message to the server.
Optionally, the third message sending module is specifically configured to:
before each third message is sent by the new thread, detecting whether the current network state is a connected state; if yes, sending the third message to the server, and deleting the third message from the local cache; if not, destroying the new thread.
Optionally, the apparatus further comprises:
and the message log sending module is used for writing the second message into the message log before sending the second message currently generated on the vehicle to the server, and sending the message log and the message offline repair time stamp to the server at fixed time.
The message all-link monitoring device provided by the embodiment of the invention can execute the message all-link monitoring method applied to the vehicle provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the message all-link monitoring method.
It should be noted that, in the embodiment of the message all-link monitoring device, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example seven
Fig. 7 is a schematic structural diagram of a message all-link monitoring system according to a seventh embodiment of the present disclosure, where the present embodiment may be applicable to a situation in which all links of each message generated by a vehicle are monitored. As shown in fig. 7, the system specifically includes: server 710 and vehicle 720.
The server 710 is configured to implement the message full link monitoring method provided in the first embodiment, the second embodiment, or the third embodiment; the vehicle 720 is configured to implement the message full link monitoring method as provided in the fourth embodiment.
In the message all-link monitoring system in the embodiment of the disclosure, a vehicle determines a meta message based on first message identification information corresponding to a first message generated by the vehicle, wherein the first message identification information comprises the vehicle identification information and first message generation time. The vehicle sends the meta-message to a server, the server determines a first message generation time stamp corresponding to the first message identification information based on the meta-message, and stores the first message identification information and the corresponding first message generation time stamp in a message database. And when the vehicle detects that the current network state is the connected state, sending a second message currently generated on the vehicle to the server. The server stores the second message identification information and the corresponding second message receipt timestamp in a message database, wherein the first message comprises the second message. The server processes the second message and stores the second message identification information and the corresponding second message processing end timestamp into a message database. The server monitors the message full link based on the message database and determines an abnormal link in the message full link. By utilizing each message generated on the vehicle, each message receiving time stamp received by the server and each message processing ending time stamp processed, which are stored in the message database, the monitoring of the message full link is realized, so that an abnormal link can be found in time, the abnormality can be solved in time, and the normal processing of the message is ensured.
Example eight
Fig. 8 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. 8, 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 respective message full link monitoring methods and processes described above.
In some embodiments, the message full link monitoring 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 of the steps of the message full link monitoring method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the message full link monitoring 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.
The computer program for implementing the message full link monitoring method 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.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (15)

1. A message full link monitoring method, applied to a server, comprising:
receiving a meta message sent by a vehicle, wherein the meta message comprises first message identification information corresponding to a first message generated on the vehicle, and the first message identification information comprises vehicle identification information and a first message generation time stamp;
determining a first message generation time stamp corresponding to the first message identification information based on the meta message, and storing the first message identification information and the corresponding first message generation time stamp into a message database;
If a second message sent by the vehicle is received, storing second message identification information and a corresponding second message receiving time stamp into a message database, wherein the first message comprises the second message;
processing the second message, and storing second message identification information and a corresponding second message processing ending time stamp into a message database;
and monitoring the message full link based on the message database, and determining an abnormal link in the message full link.
2. The method of claim 1, wherein monitoring the message full link based on the message database, determining an abnormal link in the message full link comprises:
determining a message generation number, a message reception number and a message processing number within a target time period based on the message database and the target time period;
and determining abnormal links in the message full link based on the message generation quantity, the message receiving quantity and the message processing quantity.
3. The method of claim 2, wherein determining an abnormal link in a message full link based on the message generation number, the message reception number, and the message processing number comprises:
If the difference value between the message generation quantity and the message receiving quantity is larger than or equal to a preset threshold value, determining a message sending link and a message receiving link in a message full link as abnormal links;
and if the difference value between the message receiving quantity and the message processing quantity is larger than or equal to a preset threshold value, determining the message processing link in the message full link as an abnormal link.
4. The method of claim 1, wherein prior to monitoring the message full link based on the message database to determine an anomalous link in the message full link, further comprising:
if a third message sent by the vehicle is received, storing third message identification information and a third message online repair time stamp in the third message into a message database;
storing the third message identification information and the corresponding third message receiving timestamp into a message database;
and processing the third message, and storing the third message identification information and the corresponding third message processing ending time stamp into a message database.
5. The method of claim 1, wherein prior to monitoring the message full link based on the message database and determining an anomalous link in the message full link, the method further comprises:
If the message log sent by the vehicle is received, screening the received message log based on the processed message log to determine an unprocessed target message log;
traversing the messages in the target message log to determine target messages meeting preset message subjects;
storing the target message identification information and the corresponding target message offline repair time stamp into a message database;
storing the target message identification information and the corresponding target message receiving time stamp into a message database;
and processing the target message, and storing the target message identification information and the corresponding target message processing ending time stamp into a message database.
6. A message full link monitoring method, applied to a vehicle, comprising:
determining a meta message based on first message identification information corresponding to a first message generated by a vehicle, wherein the first message identification information comprises the vehicle identification information and a first message generation time stamp;
sending the meta-message to a server, so that the server stores first message identification information and corresponding first message generation time stamps into a message database based on the meta-message;
If the current network state is detected to be the connected state, a second message generated currently on the vehicle is sent to the server, so that the server stores second message identification information and a corresponding second message receiving time stamp into a message database; processing the second message, and storing second message identification information and a corresponding second message processing ending time stamp into a message database; monitoring the message all links based on the message database, and determining abnormal links in the message all links;
wherein the first message comprises the second message.
7. The method of claim 6, wherein determining the meta-message based on first message identification information corresponding to the first message generated by the vehicle comprises:
combining first message identification information corresponding to a preset number of first messages generated by the vehicle to determine a first message identification information array;
and determining the first message identification information array as a meta-message to be sent.
8. The method of claim 6, wherein the method further comprises:
if the current network state is detected to be the disconnection state, caching a second message generated currently on the vehicle;
If the current network state is detected to be restored to the connected state, a new thread is created, a third message containing a third message online repairing time stamp is generated based on the locally cached second message through the new thread, and the third message is sent to the server.
9. The method of claim 8, wherein sending the third message to the server comprises:
before each third message is sent by the new thread, detecting whether the current network state is a connected state;
if yes, sending a third message to the server, and deleting the third message from the local cache; if not, destroying the new thread.
10. The method of claim 6, further comprising, prior to sending the second message currently generated on the vehicle to the server:
writing the second message into a message log, and sending the message log and the message offline repair time stamp to the server at fixed time.
11. A message full link monitoring apparatus integrated with a server, comprising:
the meta-message receiving module is used for receiving meta-messages sent by a vehicle, wherein the meta-messages comprise first message identification information corresponding to first messages generated on the vehicle, and the first message identification information comprises vehicle identification information and a first message generation time stamp;
The message generation time stamp storage module is used for determining a first message generation time stamp corresponding to the first message identification information based on the meta message and storing the first message identification information and the corresponding first message generation time stamp into the message database;
the message receiving timestamp storage module is used for storing second message identification information and corresponding second message receiving timestamps into the message database if receiving second messages sent by the vehicle, wherein the first messages comprise the second messages;
the message processing ending time stamp storage module is used for processing the second message and storing the second message identification information and the corresponding second message processing ending time stamp into a message database;
and the message all-link monitoring module is used for monitoring the message all-link based on the message database and determining an abnormal link in the message all-link.
12. A message all-link monitoring device integrated in a vehicle, comprising:
the meta-message determining module is used for determining a meta-message based on first message identification information corresponding to a first message generated by a vehicle, wherein the first message identification information comprises vehicle identification information and a first message generation time stamp;
A meta-message sending module, configured to send the meta-message to a server, so that the server stores, based on the meta-message, first message identification information and a corresponding first message generation timestamp into a message database;
the message sending module is used for sending a second message currently generated on the vehicle to the server if the current network state is detected to be the connected state, so that the server stores the second message identification information and the corresponding second message receiving time stamp into a message database; processing the second message, and storing second message identification information and a corresponding second message processing ending time stamp into a message database; monitoring the message all links based on the message database, and determining abnormal links in the message all links; wherein the first message comprises the second message.
13. A message processing system, the system comprising a server and a vehicle; wherein,,
the server is configured to implement the message all-link monitoring method according to any one of claims 1 to 5;
the vehicle is configured to implement the message full link monitoring method of any one of claims 6-10.
14. 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 full link monitoring method of any one of claims 1-10.
15. A computer readable storage medium storing computer instructions for causing a processor to perform the message full link monitoring method of any one of claims 1-10.
CN202211597003.9A 2022-12-12 2022-12-12 Message all-link monitoring method, device, system, equipment and storage medium Active CN116016265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211597003.9A CN116016265B (en) 2022-12-12 2022-12-12 Message all-link monitoring method, device, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211597003.9A CN116016265B (en) 2022-12-12 2022-12-12 Message all-link monitoring method, device, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116016265A true CN116016265A (en) 2023-04-25
CN116016265B CN116016265B (en) 2024-03-29

Family

ID=86020087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211597003.9A Active CN116016265B (en) 2022-12-12 2022-12-12 Message all-link monitoring method, device, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116016265B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017114181A1 (en) * 2015-12-30 2017-07-06 阿里巴巴集团控股有限公司 Link detection method and device, and network equipment and controller
CN110392120A (en) * 2019-08-15 2019-10-29 锐捷网络股份有限公司 The restoration methods and device of failure during a kind of push of message
CN114116401A (en) * 2021-11-30 2022-03-01 平安养老保险股份有限公司 Method, device, equipment and medium for tracking and monitoring all links of cluster message
CN114896082A (en) * 2022-04-15 2022-08-12 北京奇艺世纪科技有限公司 Message processing method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017114181A1 (en) * 2015-12-30 2017-07-06 阿里巴巴集团控股有限公司 Link detection method and device, and network equipment and controller
CN110392120A (en) * 2019-08-15 2019-10-29 锐捷网络股份有限公司 The restoration methods and device of failure during a kind of push of message
CN114116401A (en) * 2021-11-30 2022-03-01 平安养老保险股份有限公司 Method, device, equipment and medium for tracking and monitoring all links of cluster message
CN114896082A (en) * 2022-04-15 2022-08-12 北京奇艺世纪科技有限公司 Message processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116016265B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN114357495A (en) Prediction machine under-chain aggregation method, device, equipment and medium based on block chain
CN114978883B (en) Network wakeup management method and device, electronic equipment and storage medium
CN116010220A (en) Alarm diagnosis method, device, equipment and storage medium
CN116016265B (en) Message all-link monitoring method, device, system, equipment and storage medium
CN114885014A (en) Method, device, equipment and medium for monitoring external field equipment state
CN114691781A (en) Data synchronization method, system, device, equipment and medium
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN113961641A (en) Database synchronization method, device, equipment and storage medium
CN115174447B (en) Network communication method, device, system, equipment and storage medium
CN116185765B (en) Alarm processing method and device, electronic equipment and storage medium
CN114924806B (en) Dynamic synchronization method, device, equipment and medium for configuration information
CN117395263B (en) Data synchronization method, device, equipment and storage medium
CN116015665A (en) Method, device, equipment and medium for repeatedly detecting virtual article
CN115391227A (en) Fault testing method, device, equipment and medium based on distributed system
CN117539719A (en) Application operation monitoring method, device, equipment and medium
CN116303279A (en) Concurrent file acquisition method, concurrent file acquisition device, concurrent file acquisition equipment and storage medium
CN117935398A (en) Fault information processing method and device, electronic equipment and storage medium
CN114885373A (en) Node data uploading method, device, equipment and storage medium
CN116909921A (en) Data quality detection method, device, apparatus and storage medium
CN117421184A (en) Node state monitoring method and device, electronic equipment and storage medium
CN117009111A (en) Data processing method, device, equipment and medium
CN117608932A (en) Processing method, device, equipment and medium for delay task
CN115567624A (en) Message processing method and device, electronic equipment and medium
CN116567115A (en) Message detection method and device, electronic equipment and medium
CN113783769A (en) Method and device for transmitting message in automatic driving and relay equipment

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
GR01 Patent grant
GR01 Patent grant