CN115567600A - Message processing system and method based on vehicle-end computing resources - Google Patents

Message processing system and method based on vehicle-end computing resources Download PDF

Info

Publication number
CN115567600A
CN115567600A CN202211059185.4A CN202211059185A CN115567600A CN 115567600 A CN115567600 A CN 115567600A CN 202211059185 A CN202211059185 A CN 202211059185A CN 115567600 A CN115567600 A CN 115567600A
Authority
CN
China
Prior art keywords
message
distribution
vehicle
interval
computing resources
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
CN202211059185.4A
Other languages
Chinese (zh)
Other versions
CN115567600B (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.)
International Network Technology Shanghai Co Ltd
Original Assignee
International Network Technology Shanghai 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 International Network Technology Shanghai Co Ltd filed Critical International Network Technology Shanghai Co Ltd
Priority to CN202211059185.4A priority Critical patent/CN115567600B/en
Publication of CN115567600A publication Critical patent/CN115567600A/en
Application granted granted Critical
Publication of CN115567600B publication Critical patent/CN115567600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention provides a message processing system and a method based on vehicle-end computing resources, which comprises the following steps: the real-time message module is used for processing the vehicle data in real time to obtain a first message; and the controllable message module is used for determining the distribution interval of the first message according to the current vehicle-end computing resource and the number of the first messages, and distributing and processing the first message according to the distribution interval to obtain a second message. The method can control the running of the associated automatic driving algorithm according to the requirement, avoid the additional consumption of the vehicle end computing resource and reduce the influence of the shadow mode on the normal running of the automatic driving algorithm.

Description

Message processing system and method based on vehicle-end computing resources
Technical Field
The invention relates to the technical field of automatic driving, in particular to a message processing system and method based on vehicle-side computing resources.
Background
The automatic driving, also called unmanned driving, acquires environmental information through sensors such as radar and controls the vehicle to run according to the environmental information, thereby reducing the time for the driver to control the vehicle. However, unmanned driving also faces many challenges, such as bad weather, complex traffic environments, etc., and thus may not perform as well as human drivers in certain scenarios. To solve this problem, more tests and iterative updates need to be performed on the autopilot model to improve the model throughput in complex scenarios.
In the test updating of the automatic driving model, the automatic driving model needs to be mounted on a vehicle to acquire and collect automatic driving data. How to efficiently screen out the extreme working condition data from the massive automatic driving data and only transmit the part of data back to the background is a new problem. With the introduction of the "shadow mode", the above problem is effectively solved. Specifically, the "shadow mode" means that in a manned driving state, the automatic driving system including the sensor still runs but does not participate in vehicle control, only the decision algorithm is verified, namely the algorithm of the system is subjected to continuous decision simulation in the "shadow mode", and the simulated decision is compared with the behavior of the driver, and once the two are inconsistent, the scene is judged to be an "extreme working condition", and then data return is triggered.
Under the "shadow mode", an autonomous controllable shadow vehicle still exists in the automatic driving system, and at this moment, a whole set of associated automatic driving algorithm needs to be configured on a vehicle-end computing chip to support the computation of the behavior of the shadow vehicle. However, since vehicle-end computing resources are scarce resources, and the operation of the associated automatic driving algorithm cannot affect the operation of the normal automatic driving algorithm, how to ensure the operation of the normal automatic driving algorithm and provide support for the operation of the associated automatic driving algorithm under the condition of limited computing resources becomes an urgent problem to be solved.
Disclosure of Invention
The invention provides a message processing system and method based on vehicle-end computing resources, which are used for solving the problems.
The invention provides a message processing system based on vehicle-end computing resources, which comprises:
the real-time message module is used for processing the vehicle data in real time to obtain a first message;
and the controllable message module is used for determining the distribution interval of the first message according to the current vehicle-end computing resource and the number of the first messages, and distributing and processing the first message according to the distribution interval to obtain a second message.
According to the message processing system based on the vehicle-end computing resources, the controllable message module comprises a message driving unit and an algorithm running unit, and the algorithm running unit comprises a plurality of algorithm running subunits; wherein,
the message driving unit determines the distribution interval at the current moment by utilizing a predefined dynamic distribution interval adjustment rule according to the current vehicle-end computing resource and the number of the first messages, and distributes the first messages to corresponding algorithm operation subunits according to the distribution interval at the current moment based on the association relationship between the algorithm operation subunits and the first messages;
and the algorithm operation subunit acquires the corresponding first message, and processes the corresponding first message by using a pre-stored test algorithm to obtain the second message.
According to the message processing system based on the vehicle-end computing resources, the message driving unit is further used for determining the sequence of distributing the first messages to the corresponding algorithm operation sub-units according to the topological relation among the first messages.
According to the message processing system based on the vehicle-end computing resources, the controllable message module further comprises a message queue forming unit and a message distributing unit;
the message queue forming unit is used for acquiring a plurality of first messages and forming a message queue;
correspondingly, the message driving unit determines the order of distributing to the corresponding algorithm operation sub-units according to the topological relation among the first messages, and the method comprises the following steps:
the message driving unit determines the sequence distributed to the corresponding algorithm operation subunit according to the topological relation among the first messages in the message queue, and sends the first messages in the message queue to the corresponding algorithm operation subunit according to the sequence and the distribution interval of the current moment;
the message distribution unit places the second message in the message queue according to a predefined distribution rule to form a new message queue.
According to the message processing system based on the vehicle-end computing resources, the system further comprises a data caching module, and the controllable message module further comprises a data reading unit; wherein,
the data caching module is respectively connected with the controllable message module and the real-time message module and is used for caching the first message;
the data reading unit is used for reading a plurality of first messages from the data cache module according to the data reading interval time and pushing the plurality of first messages to the message queue forming unit; and the data reading interval time is determined according to the queue length information fed back by the message queue forming unit.
According to the message processing system based on the vehicle-end computing resource provided by the invention, the controllable message module comprises:
and the resource detection unit is used for detecting the hardware resources of the vehicle end so as to obtain the current vehicle end computing resources.
The invention also provides a message processing method based on the vehicle-end computing resource, which is realized based on the message processing system based on the vehicle-end computing resource and comprises the following steps:
processing vehicle data in real time to obtain a first message;
and determining the distribution interval of the first message according to the current vehicle-end computing resource and the number of the first messages, and distributing and processing the first message according to the distribution interval to obtain a second message.
According to the message processing method based on the vehicle-end computing resource provided by the invention, the step of determining the distribution interval of the first message according to the current vehicle-end computing resource and the number of the first messages, and distributing and processing the first message according to the distribution interval to obtain the second message comprises the following steps:
according to the current vehicle end computing resource and the number of the first messages, determining the distribution interval at the current moment by utilizing a predefined distribution interval dynamic adjustment rule;
distributing the first message according to the distribution interval of the current moment based on the incidence relation between a test algorithm and the first message;
and processing the distributed first message by using a test algorithm to obtain a second message.
According to the message processing method based on the vehicle-end computing resource, the method for determining the distribution interval at the current moment by utilizing the predefined dynamic distribution interval regulation rule comprises the following steps:
acquiring an initial time interval, current vehicle-end computing resources and a distribution interval calibration table, wherein the distribution interval calibration table is composed of message distribution time intervals and historical computing resources and is used for representing the corresponding relation between the message distribution time intervals and the historical computing resources;
inquiring whether historical computing resources matched with target computing resources exist in the distribution interval calibration table or not;
under the condition that historical computing resources matched with the target computing resources exist, determining the distribution interval of the current moment according to the message distribution time interval corresponding to the historical computing resources obtained through matching;
comparing the size relationship between the target computing resource and the current vehicle-end computing resource under the condition that no historical computing resource matched with the target computing resource exists;
under the condition that the target computing resource is larger than the current vehicle-end computing resource, the initial time interval is prolonged, and the prolonged initial time interval is used as the distribution interval of the current time;
and under the condition that the target computing resource is not larger than the current vehicle-end computing resource, shortening the initial time interval, and taking the shortened initial time interval as the distribution interval of the current time.
According to the message processing method based on the vehicle-end computing resource, provided by the invention, under the condition that the historical computing resource matched with the target computing resource exists, the distribution interval of the current moment is determined according to the message distribution time interval corresponding to the historical computing resource obtained by matching, and the method comprises the following steps:
under the condition that one historical computing resource is matched with the target computing resource, taking the time interval of message distribution corresponding to the matched historical computing resource as the distribution interval of the current moment;
and under the condition that the number of the historical computing resources matched with the target computing resource is two, carrying out average value calculation on the message distribution time intervals corresponding to the two matched historical computing resources, and taking the average value calculation result as the distribution interval of the current moment.
According to the message processing method based on the vehicle-end computing resources, the distribution interval calibration table is a distribution interval calibration table which is sorted according to the size of the message distribution time interval;
accordingly, after determining the distribution interval at the current time using the predefined distribution interval dynamic adjustment rule, the method further comprises:
calculating the difference between the distribution interval of the current moment and the distribution time interval of each message in the distribution interval calibration table;
judging whether the difference value exceeds a preset interval threshold value or not;
and correspondingly inserting the distribution interval of the current moment and the current vehicle-end computing resource into the distribution interval calibration table according to the size of the distribution interval of the current moment to form a new distribution interval calibration table under the condition that the difference exceeds a preset interval threshold.
According to the message processing method based on vehicle-end computing resources, before the distribution interval calibration table is obtained, the method further comprises the following steps:
judging whether the storage time of each message distribution time interval in the distribution interval calibration table and the corresponding historical computing resource in the distribution interval calibration table exceeds a preset storage time threshold value or not;
and deleting the corresponding message distribution time interval and the corresponding historical computing resource under the condition that the message distribution time interval exceeds a preset storage time threshold value to form a new distribution interval calibration table.
According to the message processing method based on the vehicle-end computing resource, provided by the invention, the current vehicle-end computing resource is obtained, and the method comprises the following steps:
under the condition of stable resource consumption, obtaining current vehicle-end computing resources; and the resource consumption is stable, namely the fluctuation of the vehicle-end computing resources is within a preset interval range.
According to the message processing method based on the vehicle-end computing resource provided by the invention, before the step of determining the distribution interval at the current moment by utilizing the predefined distribution interval dynamic adjustment rule according to the current vehicle-end computing resource and the number of the first messages, the method further comprises the following steps:
acquiring a plurality of first messages and forming a message queue;
correspondingly, before the first message is distributed according to the distribution interval of the current time based on the incidence relation between the test algorithm and the first message, the method further includes:
determining a distribution sequence according to a topological relation among the first messages in the message queue;
the distributing the first message according to the distribution interval of the current time based on the incidence relation between the test algorithm and the first message comprises the following steps:
distributing the first message in the message queue according to the sequence and the distribution interval of the current moment;
after the processing the distributed first message by using the test algorithm to obtain the second message, the method further includes:
and placing the second message in the message queue according to a predefined distribution rule to form a new message queue.
According to the message processing method based on the vehicle-end computing resource provided by the invention, the step of placing the second message in the message queue according to the predefined distribution rule comprises the following steps:
under the condition that the triggering mechanism of the first message is clock triggering, predicting an expected clock of the next first message according to a clock triggering rule, and correspondingly placing the second message in the message queue according to the expected clock;
and under the condition that the triggering mechanism of the first message is event triggering, acquiring the topological relation between the first message and the second message according to an event triggering rule, and correspondingly placing the second message in the message queue based on the topological relation between the first message and the second message.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the message processing method based on the vehicle-end computing resource is realized.
The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements any of the above-mentioned message processing methods based on vehicle-side computing resources.
The message processing system based on the vehicle-end computing resources determines the distribution interval of the first message through the controllable message module, distributes and processes the first message according to the distribution interval, and can control the operation of the associated automatic driving algorithm as required under the condition of ensuring the normal operation of the automatic driving algorithm in the message module, thereby avoiding the additional consumption of the vehicle-end computing resources and reducing the influence of the shadow mode on the normal operation of the automatic driving algorithm.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a message processing system based on vehicle-side computing resources according to an embodiment of the present invention;
FIG. 2 is a second schematic structural diagram of a message processing system based on vehicle-end computing resources according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a message processing method based on vehicle-side computing resources according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a process of determining a distribution interval at a current time according to an embodiment of the present invention;
fig. 5 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Currently, the operation of autopilot systems generally relies on a message middleware framework. Generally, there are two message triggering mechanisms of the message middleware: the method comprises the steps of clock triggering and event triggering, wherein message middleware drives continuous messages to flow in the whole automatic driving system based on two message pushing strategies of clock triggering and event triggering.
Since the autopilot system is targeted for optimization in "real time" and each frame trigger opportunity is deterministic and clock dependent. Under the condition of flexible and variable consumption of single frame resources, frequent jitter of the use state of the whole system resources is brought. Based on the background, the invention provides a message processing system and method based on vehicle-end computing resources, which can meet the real-time requirement of normal algorithm operation in an automatic driving system by controlling the consumption of system resources by an associated automatic driving algorithm according to the use state of the system resources. The following describes the message processing system and method based on vehicle-end computing resources provided by the present invention.
FIG. 1 is a schematic structural diagram of a message processing system based on vehicle-side computing resources according to an embodiment of the present invention; FIG. 2 is a second schematic structural diagram of a message processing system based on vehicle-side computing resources according to an embodiment of the present invention; as shown in fig. 1 and fig. 2, the message processing system based on vehicle-side computing resources includes a real-time message module 110, a data caching module 130, and a controllable message module 120. Among other things, the controllable message module 120 includes:
the real-time message module 110 is configured to process the vehicle data in real time to obtain a first message. Specifically, an autopilot system algorithm is run in the real-time message module 110, and the autopilot system algorithm calculates and processes vehicle data to form a first message. Wherein, the vehicle data are obtained through different sensor perceptions.
And the controllable message module 120 is configured to determine a distribution interval of the first message according to the current vehicle-end computing resource and the number of the first message, and distribute and process the first message according to the distribution interval to obtain a second message.
The current vehicle-end computing resource is obtained under the condition that the algorithm of the automatic driving system normally runs, and the current vehicle-end computing resource is a hardware resource of a vehicle end, such as a resource of a CPU, a memory (directly displayable through a memory display program MEM), an I/O and the like. The method comprises the steps that a distribution interval of a first message is preliminarily determined according to current vehicle-end computing resources, specifically, if the current vehicle-end computing resources are idle, the distribution time interval of the first message is shortened a bit, the distribution frequency is improved, the message processing speed is increased, and the utilization rate of the computing resources is improved; if the current vehicle-end computing resource is busy, the distribution time interval of the first message is prolonged, the distribution frequency is reduced, and the vehicle-end computing resource is stabilized.
The distribution interval of the first message needs to be adjusted according to the number of the first messages in addition to the current vehicle-end computing resource, for example, if the number of the first messages sent by the real-time message module 110 is too large, the distribution interval of the first messages is further shortened, the message processing rate is increased, and excessive accumulation is avoided. And if the first message does not form excessive accumulation, determining the distribution interval of the first message according to the current vehicle-end computing resource. After the distribution interval is determined, the first message is distributed according to the determined distribution interval, and the distributed first message is processed by using an automatic driving test algorithm to obtain a second message.
The data caching module 130 is connected to the controllable message module 120 and the real-time message module 110, respectively, and is configured to cache the first message.
In this embodiment, since the real-time message module 110 processes the vehicle data in real time, and the controllable message module 120 does not process the first message in real time, a data cache module 130 is needed between the two modules to cache the first message obtained by real-time processing, so that the controllable message module 120 can obtain the first message from the data cache module 130 according to the current vehicle-end computing resource and the operation requirement. The real-time message module 110 will continuously push the first message to the data caching module 130.
In the message processing system based on vehicle-side computing resources provided by the embodiment of the present invention, the controllable message module 120 determines the distribution interval of the first message, and distributes and processes the first message according to the distribution interval, so that the operation of the associated autopilot algorithm can be controlled as needed under the condition that the normal operation of the autopilot algorithm in the message module 110 is guaranteed, thereby avoiding additional consumption of vehicle-side computing resources and reducing the influence of the shadow mode on the normal operation of the autopilot algorithm.
Further, the controllable message module 120 includes a data reading unit 121, a message queue forming unit 122, a resource detecting unit 123, a message driving unit 124, an algorithm executing unit 125, and a message allocating unit 126. Wherein the algorithm execution unit 125 includes a plurality of algorithm execution sub-units.
The data reading unit 121 reads a plurality of first messages from the data caching module 130 according to the data reading interval time, and pushes the plurality of first messages to the message queue forming unit 122; the data reading interval time is determined according to the queue length information fed back by the message queue forming unit 122.
Specifically, the data reading unit 121 generally delays reading the first message in the data buffer module 130 in batches for several seconds or in stages, where the specific delay time (i.e. the data reading interval time) depends on the length information of the current processing queue fed back by the message queue forming unit 122, and if the current processing queue is longer, the delay time is longer; accordingly, if the current processing queue is short, the delay time is short. After the data reading unit 121 reads the plurality of first messages, the first messages are pushed to the message queue forming unit 122.
The message queue forming unit 122 is configured to obtain a plurality of first messages and form a message queue. Specifically, the message queue forming unit 122 forms the message queue after obtaining the first message pushed by the data reading unit 121.
Further, the message driving unit 124 determines a distribution interval at the current time by using a predefined dynamic distribution interval adjustment rule according to current vehicle-end computing resources and the number of the first messages, determines a sequence of distributing to a corresponding algorithm running subunit according to a topological relation between the first messages in the message queue, and finally sends the first messages in the message queue to the corresponding algorithm running subunit according to the sequence and the distribution interval at the current time.
And the algorithm operation subunit acquires the corresponding first message and processes the corresponding first message by utilizing a pre-stored test algorithm to obtain the second message.
Specifically, the message driving unit 124 obtains the first message from the formed message queue, and determines the order of sending to each algorithm operation subunit according to the topological relation between each first message in the message queue, for example, there are a first message a, a first message B, a first message C, and a first message D, where the first message a depends on the first message B, the first message B depends on the first message C, and the first message C depends on the first message D, then the first message D is taken as the message to be processed first, and so on, and then the first message C, the first message B, and the first message a are processed next. Through the processing, the first messages can be ensured to be aligned, and the topological relation among the messages cannot be damaged because the subsequent algorithm operation subunits process the first messages at first due to different processing time of the first messages.
In addition to the above-mentioned "alignment" processing of the first message, the "flow control" processing of the first message is also performed according to the current vehicle-end computing resource and the number of the first message. Specifically, the current end-of-vehicle computing resources and the number of the first messages determine the frequency of distribution of the first messages by the message driving unit 124. For example, when the current vehicle-end computing resource feedback "the hardware resource is relatively free", the sending frequency of the message driving unit 124 may be increased a little bit, that is, the message distribution time interval is shortened. If the data reading unit 121 feeds back "the current data buffer module accumulates too much data", the sending frequency of the message driving unit 124 is increased. The specific determination process of the distribution interval at the current time is described below.
In addition, the current vehicle-end computing resource is detected by the resource detecting unit 123.
After the distribution interval and the distribution sequence of the first message at the current moment are obtained, the first message is distributed to the corresponding algorithm operation sub-units according to the sequence and the distribution interval at the current moment according to the incidence relation between the first message and the algorithm operation sub-units.
In this context, the association relationship between the first message and the algorithm running subunit refers to a corresponding relationship between the test algorithm and the first message, for example, if the first message a is used for the sensing test, the message driving unit 124 sends the first message a to the algorithm running subunit in which the sensing algorithm is stored, so that the subsequent sensing algorithm can perform calculation processing based on the related first message, and resources are saved.
Further, the message distribution unit 126 places the second message in the message queue according to a predefined distribution rule, forming a new message queue.
And after each algorithm operation subunit utilizes different test algorithms to perform calculation processing on the corresponding first message, obtaining a second message. The message distributing unit 126 inserts the second message into the message queue according to different message triggering mechanisms, and forms a new message queue with the supplemented first message at the next time in the message queue, and the data driving unit determines the message distribution interval at the next time according to the new message queue, continuously calculates and processes the first message, and then generates a new second message to be inserted into the message queue, thereby forming a continuous closed loop of the consumption of the first message and the generation of the second message.
Wherein the predefined allocation rules are described below.
According to the message processing system based on the vehicle-end computing resources, the distribution interval of the current moment is determined by utilizing the predefined dynamic distribution interval adjustment rule, the frequency control of the first message distribution is realized, and the normal operation of an automatic driving system is not influenced by the operation of an automatic driving test algorithm (namely an associated automatic driving algorithm). And determining the distribution sequence of the first messages according to the topological relation among the first messages, ensuring the accuracy of the message processing on the sequence and ensuring that the processed messages still have the topological relation.
The message processing method based on the vehicle-side computing resource provided by the invention is described below, and the message processing method based on the vehicle-side computing resource described below is realized based on the message processing system based on the vehicle-side computing resource described above.
Fig. 3 is a schematic flow chart of a message processing method based on vehicle-side computing resources according to an embodiment of the present invention, and as shown in fig. 3, the message processing method based on vehicle-side computing resources includes the following steps:
s301, vehicle data are processed in real time to obtain a first message.
In this step, the vehicle data is calculated and processed by the autopilot system algorithm to form a first message. Wherein, the vehicle data are obtained through different sensor perceptions.
S302, determining a distribution interval of the first message according to the current vehicle-end computing resource and the number of the first messages, and distributing and processing the first messages according to the distribution interval to obtain a second message.
In this step, the current vehicle-end computing resource is obtained under the condition that the algorithm of the automatic driving system is normally running, and the current vehicle-end computing resource is a hardware resource of the vehicle end, such as a resource of a CPU, a memory (which can be directly displayed through a memory display program MEM), an I/O, and the like. The method comprises the steps that a distribution interval of a first message is preliminarily determined according to current vehicle-end computing resources, specifically, if the current vehicle-end computing resources are idle, the distribution time interval of the first message is shortened a little, distribution frequency is improved, the processing speed of the message is increased, and the utilization rate of the computing resources is improved; if the current vehicle-end computing resource is busy, the distribution time interval of the first message is prolonged, the distribution frequency is reduced, and the vehicle-end computing resource is stabilized.
The distribution interval of the first message is adjusted according to the number of the first messages except for considering the current vehicle-side computing resource, for example, if the number of the first messages sent by the real-time message module is too large, the distribution interval of the first messages is further shortened, the message processing rate is increased, and excessive accumulation is avoided. And if the first message does not form excessive accumulation, determining the distribution interval of the first message according to the current vehicle-end computing resource.
After the distribution interval is determined, the first message is distributed according to the determined distribution interval, and the distributed first message is processed by using an automatic driving test algorithm to obtain a second message.
According to the message processing method based on the vehicle-side computing resources, the distribution interval of the first message is determined according to the current vehicle-side computing resources and the number of the first messages, the first message is distributed and processed according to the distribution interval, the running of the associated automatic driving algorithm can be controlled according to needs under the condition that the normal running of the automatic driving algorithm is guaranteed, the extra consumption of the vehicle-side computing resources is avoided, and the influence of the shadow mode on the normal running of the automatic driving algorithm is reduced.
Further, the determining a distribution interval of the first message according to the current vehicle-end computing resource and the number of the first messages, and distributing and processing the first message according to the distribution interval to obtain a second message includes:
and determining the distribution interval at the current moment by utilizing a predefined distribution interval dynamic adjustment rule according to the current vehicle-end computing resource and the number of the first messages.
And distributing the first message according to the distribution interval of the current moment based on the incidence relation between the test algorithm and the first message.
And processing the distributed first message by using a test algorithm to obtain a second message.
The test algorithm is an algorithm applied to automatic driving in a shadow mode, and can be divided into a perception type test algorithm, a control type test algorithm and a planning type test algorithm. The association relationship between the test algorithm and the first message means that different first messages are applied to different types of test algorithms, for example, the first message a is used for perception test, and the first message a is used as the input of the perception test algorithm and is distributed to the corresponding perception test algorithm.
In this embodiment, after obtaining the current vehicle-end computing resource and the number of the first messages, the first messages are subjected to "flow control" processing. Specifically, if the current vehicle-end computing resource feeds back that "the hardware resource is relatively idle", the sending frequency of the message driving unit will be increased a little, that is, the distribution time interval of the message is shortened. If the data reading unit feeds back that "the current data buffer module accumulates too much data", the sending frequency of the message driving unit will be increased, that is, the distribution time interval of the message is prolonged. The specific determination process of the distribution interval at the current time is described below.
After the distribution interval of the current moment is determined, the first message is distributed to the corresponding test algorithm according to the distribution interval, and the test algorithm carries out calculation processing according to the distributed first message to obtain a second message.
According to the message processing method based on vehicle-side computing resources, the distribution interval of the current moment is determined by utilizing the predefined dynamic distribution interval adjustment rule, the frequency control of the first message distribution is realized, the normal operation of an automatic driving system is not influenced by the operation of an automatic driving test algorithm, and the resource influence caused by the operation of a shadow mode is reduced to the maximum extent.
Fig. 4 is a flowchart illustrating a process of determining a distribution interval at a current time according to an embodiment of the present invention; as shown in fig. 4, the determining the distribution interval at the current time by using the predefined distribution interval dynamic adjustment rule includes:
the method comprises the steps of obtaining an initial time interval, current vehicle-end computing resources and a distribution interval calibration table, wherein the distribution interval calibration table is composed of message distribution time intervals and historical computing resources and is used for representing the corresponding relation between the message distribution time intervals and the historical computing resources.
And inquiring whether historical computing resources matched with the target computing resources exist in the distribution interval calibration table or not.
And under the condition that the historical computing resources matched with the target computing resources exist, determining the distribution interval of the current moment according to the message distribution time interval corresponding to the historical computing resources obtained by matching.
And under the condition that no historical computing resource matched with the target computing resource exists, comparing the size relationship between the target computing resource and the current vehicle-side computing resource.
And under the condition that the target computing resource is larger than the current vehicle-end computing resource, prolonging the initial time interval, and taking the prolonged initial time interval as the distribution interval of the current time.
And under the condition that the target computing resource is not larger than the current vehicle-end computing resource, shortening the initial time interval, and taking the shortened initial time interval as the distribution interval of the current moment.
Wherein the initial time interval is obtained by initializing the message distribution time interval. The current vehicle-end computing resource is obtained by detecting hardware resources (such as a CPU, a memory, an I/O and the like) on the vehicle end. The target computing resource is a preset target value, so that the overall use condition of the hardware resource is expected to be stable at the target value, namely the vehicle-end computing resource at each moment is expected to fluctuate around the target computing resource.
It should be noted that, in addition to the target computing resource, a computing resource critical value is configured in advance, and the current vehicle-end computing resource may not exceed the computing resource critical value.
In addition, when the first message is too much accumulated, the distribution frequency can be further increased, so that the current vehicle-end computing resource is properly over the target computing resource, but cannot exceed the computing resource critical value.
The distribution interval calibration table stores the time intervals of historical message distribution and also stores historical computing resources corresponding to the time intervals of historical message distribution. Specifically, as shown in table 1, the time interval of message distribution and the historical computing resources are data pairs, and the data pairs in the distribution interval calibration table are sorted according to the size of the time interval of message distribution, that is, a > b >. N, or a < b >. N.
TABLE 1 Dispenser Interval calibration schematic
Time interval of message distribution Historical computing resources
a seconds Vehicle-end computing resource at time Ta
b second Vehicle end computing resource at time Tb
... ...
n seconds Tn time vehicle end computing resource
In this embodiment, an initial time interval, current vehicle-end computing resources, and a distribution interval calibration table are obtained first; then, the historical computing resources matched with the target computing resources are inquired in the distribution interval calibration table, and if the historical computing resources matched with the target computing resources can be inquired, the distribution interval of the current moment is determined according to the message distribution time interval corresponding to the inquired historical computing resources. If no matched historical computing resource is inquired in the distribution interval calibration table, determining the distribution interval at the current moment by the following method:
and comparing the magnitude relation of the two values of the target computing resource and the current vehicle-end computing resource.
If the target computing resource is larger than the current vehicle-end computing resource, it indicates that the current vehicle-end computing resource cannot meet the requirement of the target computing resource, and the distribution frequency of the first message needs to be reduced, the initial time interval is prolonged, and the pressure of the current hardware resource is relieved. The specific initial time interval extension is to multiply the initial time interval basis by a preset multiple, wherein the preset multiple can be 1.5, 2, 3 and the like, and the extended initial time interval is used as the distribution interval of the current time according to the setting of requirements or expert experience.
If the target computing resource is less than or equal to the current vehicle-end computing resource, it indicates that the current vehicle-end computing resource is still idle, so that the distribution frequency of the first message can be increased, the initial time interval can be shortened, and the pressure utilization rate of the current hardware resource can be increased. The specific initial time interval shortening is to divide the initial time interval by a preset multiple, the preset multiple may be 1.5, 2, 3, or the like, and may be different from or the same as the multiple mentioned in the above extension process, and the shortened initial time interval is set as the distribution interval at the current time according to the requirement or the expert experience.
According to the message processing method based on the vehicle-end computing resource, provided by the embodiment of the invention, whether the historical computing resource matched with the target computing resource exists in the distribution interval calibration table is inquired, and the distribution interval at the current moment is directly determined according to the historical computing resource under the condition of being obtained by inquiry, so that after the first message is distributed and processed according to the determined distribution interval at the current moment, the vehicle-end computing resource can approach the target computing resource, and the whole hardware resource can be in a stable state. Under the condition that historical computing resources are not inquired, how to determine the distribution interval at the current moment by adjusting the initial time interval is further considered, and whether to increase the distribution frequency or decrease the distribution frequency is determined according to the size relation between the target computing resource and the current vehicle-end computing resource, so that the operation of the shadow mode is not influenced on the operation of a normal algorithm, and the additional consumption of hardware resources is reduced.
Further, in the case that there is a historical computing resource matching the target computing resource, determining a distribution interval at the current time according to a message distribution time interval corresponding to the historical computing resource obtained by matching, including:
and under the condition that one historical computing resource is matched with the target computing resource, taking the time interval of message distribution corresponding to the matched historical computing resource as the distribution interval of the current moment.
And under the condition that the number of the historical computing resources matched with the target computing resource is two, carrying out average value calculation on the message distribution time intervals corresponding to the two historical computing resources obtained by matching, and taking the average value calculation result as the distribution interval at the current moment.
Specifically, if the value of exactly one historical computing resource in the distribution interval calibration table is the same as or very close to the value of the configured target computing resource, the time interval of message distribution corresponding to the historical computing resource is directly used as the distribution interval at the current time.
If the value of the target computing resource happens to fall between two historical computing resources and the difference between the two historical computing resources and the target computing resource does not exceed the predetermined threshold, then the two historical computing resources and the target computing resource are matched. For example, if the target computing resource is 80%, the two adjacent historical computing resources are 75% and 90%, respectively, and both of the two historical computing resources are closer to the target computing resource, indicating that the two historical computing resources match the target computing resource. If the target computing resource is 60%, the two adjacent historical computing resources are respectively 10% and 90%, and the two historical computing resources are more different from the target computing resource, which indicates that the two historical computing resources are not matched with the target computing resource.
And under the condition that the two historical computing resources are obtained through matching, taking the average value of the time intervals of message distribution corresponding to the two historical computing resources as the distribution interval at the current moment.
In addition, if the target computing resource is much larger or much smaller than any historical computing resource in the distribution interval calibration table, the unmatching success is also indicated.
According to the message processing method based on the vehicle-end computing resource, the distribution interval corresponding to the target computing resource is determined according to the distribution interval calibration table, so that the vehicle-end computing resource can reach the target state after the first message is distributed according to the determined distribution interval, and the stable operation of the automatic driving system is guaranteed.
Further, the distribution interval calibration table is a distribution interval calibration table sorted according to the size of the message distribution time interval.
Accordingly, after determining the distribution interval at the current time by using the predefined dynamic distribution interval adjustment rule, the method further comprises:
and calculating the difference between the distribution interval of the current moment and the distribution time interval of each message in the distribution interval calibration table.
And judging whether the difference value exceeds a preset interval threshold value.
And correspondingly inserting the distribution interval of the current moment and the current vehicle-side computing resource into the distribution interval calibration table according to the size of the distribution interval of the current moment to form a new distribution interval calibration table under the condition that the difference exceeds a preset interval threshold.
After the distribution interval at the current moment is determined according to the predefined dynamic distribution interval adjustment rule, the distribution interval at the current moment and the current vehicle-side computing resource are bound into a pair of data pairs, and the data pairs are inserted into a distribution interval calibration table according to the size of the distribution interval at the current moment.
It should be noted that, if the value of the distribution interval at the current time is very close to the existing distribution interval in the distribution interval calibration table, the distribution interval at the current time and the current vehicle-side computing resource do not contribute much to the distribution interval calibration table, so that no insertion is performed.
Further, before obtaining the distribution interval calibration table, the method further includes:
judging whether the storage time of each message distribution time interval in the distribution interval calibration table and the corresponding historical computing resource in the distribution interval calibration table exceeds a preset storage time threshold value or not;
and deleting the corresponding message distribution time interval and the corresponding historical computing resource under the condition that the preset storage time threshold is exceeded, and forming a new distribution interval calibration table.
In this embodiment, the data pairs in the distribution interval calibration table have a certain timeliness, each data pair cannot exceed a preset storage time (for example, 3 minutes, 5 minutes, and the like) in the distribution interval calibration table, and the exceeded data pair is eliminated, so that the distribution interval calibration table is guaranteed to have timeliness.
Further, obtaining current vehicle-end computing resources includes:
and under the condition of stable resource consumption, acquiring the current vehicle-end computing resource.
And the resource consumption is stable, namely the fluctuation of the vehicle-end computing resources is within a preset interval range.
In this embodiment, at the previous time, after the test algorithm processes the distributed first message, the resource consumption may fluctuate for several seconds to several tens of seconds, and when the fluctuation exceeds the preset interval range, the acquired vehicle-side calculation resource at the current time is inaccurate and needs to be acquired in a stable state of the resource consumption, that is, after waiting for several seconds or several tens of seconds, the vehicle-side calculation resource at the current time is acquired.
Further, before the determining, according to the current vehicle-end computing resource and the number of the first messages, the distribution interval at the current time by using a predefined dynamic distribution interval adjustment rule, the method further includes:
a plurality of first messages are obtained, and a message queue is formed.
Correspondingly, before the first message is distributed according to the distribution interval of the current time based on the incidence relation between the test algorithm and the first message, the method further includes:
determining a distribution sequence according to a topological relation among the first messages in the message queue;
the distributing the first message according to the distribution interval of the current time based on the incidence relation between the test algorithm and the first message comprises the following steps:
and distributing the first message in the message queue according to the sequence and the distribution interval of the current moment.
After the processing the distributed first message by using the test algorithm to obtain the second message, the method further comprises:
and placing the second message in the message queue according to a predefined distribution rule to form a new message queue.
In this embodiment, in addition to the "flow control" processing of the first message, the "alignment" processing is also performed. Specifically, a distribution sequence is determined according to a topological relation between first messages in the message queue, and the first messages are distributed to corresponding test algorithms according to the distribution sequence and the distribution interval of the current time.
And processing the first messages respectively distributed by using different test algorithms to obtain second messages.
The second message is placed in the correct position of the message queue according to predefined allocation rules, thereby forming a new message queue.
According to the message processing method based on the vehicle-end computing resources, the distribution sequence is determined according to the topological relation among the first messages, and the second messages are placed at the correct positions of the message queues according to the predefined distribution rule, so that the topological relation among the processed messages is not damaged.
Further, the placing the second message in the message queue according to the predefined allocation rule includes:
under the condition that the triggering mechanism of the first message is clock triggering, predicting to obtain an expected clock of the next first message according to a clock triggering rule, and correspondingly placing the second message in the message queue according to the expected clock;
and under the condition that the triggering mechanism of the first message is event triggering, acquiring the topological relation between the first message and the second message according to an event triggering rule, and correspondingly placing the second message in the message queue based on the topological relation between the first message and the second message.
Specifically, for a first message triggered based on a clock, an expected clock of the next first message triggered is inferred according to a clock rule, and a second message is placed on a correct clock position of a message queue.
And calculating the dependency topology relation of the first message and the second message based on the event triggering rule aiming at the first message triggered based on the event, thereby determining the correct position of the second message in the message queue.
According to the message processing method based on the vehicle-end computing resources, provided by the embodiment of the invention, different strategies are adopted to place the second message at the correct position in the message queue aiming at the first message triggered under different triggering mechanisms.
Fig. 5 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device may include: a processor (processor) 510, a communication Interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, wherein the processor 510, the communication Interface 520 and the memory 530 communicate with each other via the communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a vehicle-end computing resource based message processing method comprising: processing vehicle data in real time to obtain a first message; and determining the distribution interval of the first message according to the current vehicle-end computing resource and the number of the first messages, and distributing and processing the first message according to the distribution interval to obtain a second message.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the message processing method based on vehicle-end computing resources provided by the foregoing methods, and the message processing method based on vehicle-end computing resources includes: processing vehicle data in real time to obtain a first message; and determining the distribution interval of the first message according to the current vehicle-end computing resource and the number of the first messages, and distributing and processing the first message according to the distribution interval to obtain a second message.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method of various embodiments or some parts of embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (17)

1.一种基于车端计算资源的消息处理系统,其特征在于,包括:1. A message processing system based on vehicle end computing resources, characterized in that, comprising: 实时消息模块,用于对车辆数据进行实时处理,以获得第一消息;The real-time message module is used to process the vehicle data in real time to obtain the first message; 可控消息模块,用于根据当前车端计算资源以及所述第一消息的数量确定第一消息的分发间隔,并按照所述分发间隔对所述第一消息进行分发与处理,以获得第二消息。The controllable message module is used to determine the distribution interval of the first message according to the current computing resources of the vehicle and the quantity of the first message, and distribute and process the first message according to the distribution interval to obtain the second message. information. 2.根据权利要求1所述的基于车端计算资源的消息处理系统,其特征在于,所述可控消息模块包括消息驱动单元以及算法运行单元,所述算法运行单元包括多个算法运行子单元;其中,2. The message processing system based on vehicle computing resources according to claim 1, wherein the controllable message module includes a message driving unit and an algorithm running unit, and the algorithm running unit includes a plurality of algorithm running subunits ;in, 所述消息驱动单元根据当前车端计算资源以及所述第一消息的数量,利用预定义的分发间隔动态调整规则确定当前时刻的分发间隔,并基于算法运行子单元与第一消息之间的关联关系将所述第一消息按照所述当前时刻的分发间隔分发至对应的算法运行子单元;The message driving unit determines the distribution interval at the current moment by using a predefined distribution interval dynamic adjustment rule according to the current vehicle-end computing resources and the quantity of the first message, and runs the association between the subunit and the first message based on an algorithm The relationship distributes the first message to the corresponding algorithm running subunit according to the distribution interval at the current moment; 所述算法运行子单元获取对应的第一消息,并利用预先存储的测试算法对所述对应的第一消息进行处理得到所述第二消息。The algorithm running subunit acquires the corresponding first message, and uses a pre-stored test algorithm to process the corresponding first message to obtain the second message. 3.根据权利要求2所述的基于车端计算资源的消息处理系统,其特征在于,所述消息驱动单元还用于根据各个第一消息之间的拓扑关系确定分发至对应的算法运行子单元的顺序。3. The message processing system based on vehicle-side computing resources according to claim 2, wherein the message driving unit is further configured to determine and distribute to corresponding algorithm running subunits according to the topological relationship between each first message order of. 4.根据权利要求3所述的基于车端计算资源的消息处理系统,其特征在于,所述可控消息模块还包括消息队列形成单元、消息分配单元;4. The message processing system based on vehicle-side computing resources according to claim 3, wherein the controllable message module further comprises a message queue formation unit and a message distribution unit; 其中,所述消息队列形成单元用于获取多个第一消息,并形成消息队列;Wherein, the message queue forming unit is configured to obtain a plurality of first messages and form a message queue; 相应地,所述消息驱动单元还用于根据各个第一消息之间的拓扑关系确定分发至对应的算法运行子单元的顺序,包括:Correspondingly, the message driving unit is further configured to determine the order of distribution to corresponding algorithm running subunits according to the topological relationship among the first messages, including: 所述消息驱动单元根据所述消息队列中各个第一消息之间的拓扑关系确定分发至对应的算法运行子单元的顺序,并根据所述顺序以及所述当前时刻的分发间隔将所述消息队列中的第一消息发送至对应的算法运行子单元;The message driving unit determines the order of distribution to the corresponding algorithm running subunit according to the topological relationship among the first messages in the message queue, and sends the message queue to The first message in is sent to the corresponding algorithm running subunit; 所述消息分配单元根据预定义的分配规则将所述第二消息放置在所述消息队列中,形成新的消息队列。The message distribution unit places the second message in the message queue according to a predefined distribution rule to form a new message queue. 5.根据权利要求4所述的基于车端计算资源的消息处理系统,其特征在于,所述系统还包括数据缓存模块,所述可控消息模块还包括数据读取单元;其中,5. The message processing system based on vehicle-side computing resources according to claim 4, wherein the system also includes a data cache module, and the controllable message module also includes a data reading unit; wherein, 所述数据缓存模块分别与所述可控消息模块、所述实时消息模块相连接,用于缓存所述第一消息;The data cache module is connected to the controllable message module and the real-time message module respectively, and is used to cache the first message; 所述数据读取单元用于按照数据读取间隔时间从所述数据缓存模块中读取多个第一消息,并将多个第一消息推送至所述消息队列形成单元;所述数据读取间隔时间根据所述消息队列形成单元反馈的队列长度信息确定。The data reading unit is used to read a plurality of first messages from the data cache module according to the data reading interval, and push a plurality of first messages to the message queue forming unit; the data reading The interval time is determined according to the queue length information fed back by the message queue forming unit. 6.根据权利要求1所述的基于车端计算资源的消息处理系统,其特征在于,所述可控消息模块包括:6. The message processing system based on vehicle end computing resources according to claim 1, wherein the controllable message module comprises: 资源检测单元,用于检测车端的硬件资源,以获得当前车端计算资源。The resource detection unit is used to detect the hardware resources of the vehicle to obtain the current computing resources of the vehicle. 7.一种基于车端计算资源的消息处理方法,其特征在于,该方法基于权利要求1至6任一所述的基于车端计算资源的消息处理系统实现,该方法包括:7. A message processing method based on vehicle-side computing resources, characterized in that the method is implemented based on the message processing system based on vehicle-side computing resources according to any one of claims 1 to 6, the method comprising: 对车辆数据进行实时处理,以获得第一消息;Real-time processing of vehicle data to get the first news; 根据当前车端计算资源以及所述第一消息的数量确定第一消息的分发间隔,并按照所述分发间隔对所述第一消息进行分发与处理,以获得第二消息。The distribution interval of the first message is determined according to the current vehicle-end computing resource and the quantity of the first message, and the first message is distributed and processed according to the distribution interval to obtain the second message. 8.根据权利要求7所述的基于车端计算资源的消息处理方法,其特征在于,所述根据当前车端计算资源以及所述第一消息的数量确定第一消息的分发间隔,并按照所述分发间隔对所述第一消息进行分发与处理,以获得第二消息,包括:8. The message processing method based on vehicle-side computing resources according to claim 7, wherein the distribution interval of the first message is determined according to the current vehicle-side computing resources and the number of the first messages, and according to the Distributing and processing the first message at the distribution interval to obtain a second message, including: 根据当前车端计算资源以及所述第一消息的数量,利用预定义的分发间隔动态调整规则确定当前时刻的分发间隔;According to the current vehicle-side computing resources and the quantity of the first message, the distribution interval at the current moment is determined by using a predefined distribution interval dynamic adjustment rule; 基于测试算法与第一消息之间的关联关系,将所述第一消息按照所述当前时刻的分发间隔进行分发;Distributing the first message according to the distribution interval at the current moment based on the association relationship between the test algorithm and the first message; 利用测试算法对分发得到的第一消息进行处理得到第二消息。The test algorithm is used to process the distributed first message to obtain the second message. 9.根据权利要求8所述的基于车端计算资源的消息处理方法,其特征在于,所述利用预定义的分发间隔动态调整规则确定当前时刻的分发间隔,包括:9. The message processing method based on vehicle-side computing resources according to claim 8, wherein said determining the distribution interval at the current moment by using a predefined distribution interval dynamic adjustment rule includes: 获取初始时间间隔、当前车端计算资源以及分发间隔标定表,所述分发间隔标定表由消息分发的时间间隔与历史计算资源构成,用于表征所述消息分发的时间间隔与所述历史计算资源之间的对应关系;Obtain the initial time interval, the current vehicle-end computing resources, and the distribution interval calibration table, the distribution interval calibration table is composed of the time interval of message distribution and historical computing resources, and is used to characterize the time interval of message distribution and the historical computing resources Correspondence between; 查询所述分发间隔标定表中是否存在与目标计算资源相匹配的历史计算资源;Query whether there is a historical computing resource matching the target computing resource in the distribution interval calibration table; 在存在与目标计算资源相匹配的历史计算资源的情况下,根据匹配得到的历史计算资源所对应的消息分发的时间间隔确定当前时刻的分发间隔;In the case that there is a historical computing resource matching the target computing resource, the distribution interval at the current moment is determined according to the time interval of message distribution corresponding to the matched historical computing resource; 在不存在与目标计算资源相匹配的历史计算资源的情况下,比较所述目标计算资源与所述当前车端计算资源之间的大小关系;In the case that there is no historical computing resource matching the target computing resource, comparing the size relationship between the target computing resource and the current vehicle-side computing resource; 在所述目标计算资源大于所述当前车端计算资源的情况下,延长所述初始时间间隔,将延长后的初始时间间隔作为当前时刻的分发间隔;When the target computing resource is greater than the current vehicle-end computing resource, extend the initial time interval, and use the extended initial time interval as the distribution interval at the current moment; 在所述目标计算资源不大于所述当前车端计算资源的情况下,缩短所述初始时间间隔,将缩短后的初始时间间隔作为当前时刻的分发间隔。In the case that the target computing resource is not greater than the current vehicle-end computing resource, the initial time interval is shortened, and the shortened initial time interval is used as the distribution interval at the current moment. 10.根据权利要求9所述的基于车端计算资源的消息处理方法,其特征在于,所述在存在与目标计算资源相匹配的历史计算资源的情况下,根据匹配得到的历史计算资源所对应的消息分发的时间间隔确定当前时刻的分发间隔,包括:10. The message processing method based on vehicle computing resources according to claim 9, characterized in that, if there is a historical computing resource that matches the target computing resource, the corresponding historical computing resource obtained according to the matching The time interval of message distribution determines the distribution interval at the current moment, including: 在与目标计算资源相匹配的历史计算资源为一个的情况下,将匹配得到的历史计算资源所对应的消息分发的时间间隔作为当前时刻的分发间隔;In the case that there is only one historical computing resource matching the target computing resource, the time interval for message distribution corresponding to the matched historical computing resource is taken as the distribution interval at the current moment; 在与目标计算资源相匹配的历史计算资源为两个的情况下,对匹配得到的两个历史计算资源所对应的消息分发的时间间隔进行均值计算,将均值计算结果作为当前时刻的分发间隔。When there are two historical computing resources that match the target computing resource, the mean value is calculated for the time intervals of message distribution corresponding to the two matched historical computing resources, and the mean value calculation result is used as the distribution interval at the current moment. 11.根据权利要求9所述的基于车端计算资源的消息处理方法,其特征在于,所述分发间隔标定表为按照消息分发的时间间隔大小进行排序后的分发间隔标定表;11. The message processing method based on vehicle-side computing resources according to claim 9, wherein the distribution interval calibration table is a distribution interval calibration table sorted according to the time interval of message distribution; 相应地,在所述利用预定义的分发间隔动态调整规则确定当前时刻的分发间隔之后,该方法还包括:Correspondingly, after the distribution interval at the current moment is determined by using the predefined distribution interval dynamic adjustment rule, the method further includes: 计算所述当前时刻的分发间隔与所述分发间隔标定表中各个消息分发的时间间隔之间的差值;calculating the difference between the distribution interval at the current moment and the time interval of each message distribution in the distribution interval calibration table; 判断所述差值是否超过预设的间隔阈值;judging whether the difference exceeds a preset interval threshold; 在所述差值超过预设的间隔阈值的情况下,将所述当前时刻的分发间隔与所述当前车端计算资源按照当前时刻的分发间隔的大小对应插入至所述分发间隔标定表中,形成新的分发间隔标定表。When the difference exceeds the preset interval threshold, inserting the distribution interval at the current moment and the computing resource at the current vehicle end into the distribution interval calibration table according to the size of the distribution interval at the current moment, A new distribution interval calibration table is formed. 12.根据权利要求9所述的基于车端计算资源的消息处理方法,其特征在于,在获取分发间隔标定表之前,方法还包括:12. The message processing method based on vehicle computing resources according to claim 9, characterized in that, before obtaining the distribution interval calibration table, the method further comprises: 判断所述分发间隔标定表中每一消息分发的时间间隔与其对应的历史计算资源在所述分发间隔标定表中的存储时间是否超过预设的存储时间阈值;Judging whether the time interval for each message distribution in the distribution interval calibration table and the storage time of the corresponding historical computing resources in the distribution interval calibration table exceed a preset storage time threshold; 在超过预设的存储时间阈值的情况下,将对应的消息分发的时间间隔与其对应的历史计算资源进行删除,形成新的分发间隔标定表。When the preset storage time threshold is exceeded, the corresponding message distribution time interval and its corresponding historical computing resources are deleted to form a new distribution interval calibration table. 13.根据权利要求9所述的基于车端计算资源的消息处理方法,其特征在于,获取当前车端计算资源,包括:13. The message processing method based on vehicle-side computing resources according to claim 9, wherein obtaining the current vehicle-side computing resources comprises: 在资源消耗稳定的情况下,获取当前车端计算资源;其中,所述资源消耗稳定为车端计算资源的波动在预设的区间范围内。In the case of stable resource consumption, the current vehicle-end computing resources are obtained; wherein, the resource consumption is stable when the fluctuation of the vehicle-side computing resources is within a preset range. 14.根据权利要求8所述的基于车端计算资源的消息处理方法,其特征在于,在所述根据当前车端计算资源以及所述第一消息的数量,利用预定义的分发间隔动态调整规则确定当前时刻的分发间隔之前,该方法还包括:14. The message processing method based on vehicle-side computing resources according to claim 8, characterized in that, according to the current vehicle-side computing resources and the quantity of the first message, a predefined distribution interval is used to dynamically adjust the rules Before determining the distribution interval at the current moment, the method further includes: 获取多个第一消息,并形成消息队列;Obtain multiple first messages and form a message queue; 相应地,在所述基于测试算法与第一消息之间的关联关系,将所述第一消息按照所述当前时刻的分发间隔进行分发之前,该方法还包括:Correspondingly, before distributing the first message according to the distribution interval at the current moment based on the association relationship between the test algorithm and the first message, the method further includes: 根据所述消息队列中各个第一消息之间的拓扑关系确定分发的顺序;determining the order of distribution according to the topological relationship among the first messages in the message queue; 所述基于测试算法与第一消息之间的关联关系,将所述第一消息按照所述当前时刻的分发间隔进行分发,包括:The distributing the first message according to the distribution interval at the current moment based on the association between the test algorithm and the first message includes: 根据所述顺序以及所述当前时刻的分发间隔将所述消息队列中的第一消息进行分发;Distributing the first message in the message queue according to the order and the distribution interval at the current moment; 在所述利用测试算法对分发得到的第一消息进行处理得到第二消息之后,该方法还包括:After said using the test algorithm to process the distributed first message to obtain the second message, the method further includes: 根据预定义的分配规则将所述第二消息放置在所述消息队列中,形成新的消息队列。Putting the second message in the message queue according to a predefined allocation rule to form a new message queue. 15.根据权利要求14所述的基于车端计算资源的消息处理方法,其特征在于,所述根据预定义的分配规则将所述第二消息放置在所述消息队列中,包括:15. The message processing method based on vehicle-side computing resources according to claim 14, wherein the placing the second message in the message queue according to a predefined allocation rule comprises: 在第一消息的触发机制为时钟触发的情况下,根据时钟触发规则预测得到下一个第一消息的预期时钟,根据所述预期时钟将所述第二消息对应放置在所述消息队列;In the case where the trigger mechanism of the first message is clock triggering, the expected clock of the next first message is predicted according to the clock trigger rule, and the second message is correspondingly placed in the message queue according to the expected clock; 在第一消息的触发机制为事件触发的情况下,根据事件触发规则获取第一消息与第二消息之间的拓扑关系,并基于第一消息与第二消息之间的拓扑关系将所述第二消息对应放置在所述消息队列。In the case that the trigger mechanism of the first message is event triggering, the topological relationship between the first message and the second message is obtained according to the event triggering rule, and the first message and the second message are converted based on the topological relationship between the first message and the second message. Two messages are correspondingly placed in the message queue. 16.一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求7至15任一项所述的基于车端计算资源的消息处理方法。16. An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor according to claim 7 is implemented when executing the program. The message processing method based on the computing resources of the vehicle end described in any one of 15 to 15. 17.一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求7至15任一项所述的基于车端计算资源的消息处理方法。17. A non-transitory computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the vehicle-based computing according to any one of claims 7 to 15 is realized The resource's message handling method.
CN202211059185.4A 2022-08-31 2022-08-31 Message processing system and method based on vehicle-side computing resources Active CN115567600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211059185.4A CN115567600B (en) 2022-08-31 2022-08-31 Message processing system and method based on vehicle-side computing resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211059185.4A CN115567600B (en) 2022-08-31 2022-08-31 Message processing system and method based on vehicle-side computing resources

Publications (2)

Publication Number Publication Date
CN115567600A true CN115567600A (en) 2023-01-03
CN115567600B CN115567600B (en) 2025-10-14

Family

ID=84739399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211059185.4A Active CN115567600B (en) 2022-08-31 2022-08-31 Message processing system and method based on vehicle-side computing resources

Country Status (1)

Country Link
CN (1) CN115567600B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470012A (en) * 2007-12-29 2009-07-01 厦门雅迅网络股份有限公司 Method for real-time vehicle driving mileage statistics based on wireless network and GPS position information
CN110460534A (en) * 2019-07-26 2019-11-15 腾讯云计算(北京)有限责任公司 A request message reporting method, device, equipment and storage medium
DE102019210559A1 (en) * 2019-04-15 2020-10-15 Technische Universität Dresden Method for controlling a convoy by means of vehicle-to-vehicle communication
CN112003949A (en) * 2020-09-01 2020-11-27 中国银行股份有限公司 JMS message process distribution control system and method under WAS cluster
CN112506808A (en) * 2021-02-08 2021-03-16 南京吉拉福网络科技有限公司 Test task execution method, computing device, computing system and storage medium
CN113411371A (en) * 2020-11-12 2021-09-17 腾讯科技(深圳)有限公司 Communication method and device applied to vehicle, electronic equipment and vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470012A (en) * 2007-12-29 2009-07-01 厦门雅迅网络股份有限公司 Method for real-time vehicle driving mileage statistics based on wireless network and GPS position information
DE102019210559A1 (en) * 2019-04-15 2020-10-15 Technische Universität Dresden Method for controlling a convoy by means of vehicle-to-vehicle communication
CN110460534A (en) * 2019-07-26 2019-11-15 腾讯云计算(北京)有限责任公司 A request message reporting method, device, equipment and storage medium
CN112003949A (en) * 2020-09-01 2020-11-27 中国银行股份有限公司 JMS message process distribution control system and method under WAS cluster
CN113411371A (en) * 2020-11-12 2021-09-17 腾讯科技(深圳)有限公司 Communication method and device applied to vehicle, electronic equipment and vehicle
CN112506808A (en) * 2021-02-08 2021-03-16 南京吉拉福网络科技有限公司 Test task execution method, computing device, computing system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵海涛;朱银阳;丁仪;朱洪波;: "车联网中基于移动边缘计算的内容感知分类卸载算法研究", 电子与信息学报, no. 01, 15 January 2020 (2020-01-15) *

Also Published As

Publication number Publication date
CN115567600B (en) 2025-10-14

Similar Documents

Publication Publication Date Title
US7869354B2 (en) Analyzing and generating network traffic using an improved Markov Modulated Poisson Process model with one bursty state and a plurality of idle states
US11140089B2 (en) Data writing method, system, device and computer-readable storage medium
KR100577659B1 (en) Sender to receiver request retry method and apparatus
CN114844843A (en) Method and device for adjusting number of application instances
CN115671716B (en) Processing method, device, storage medium and electronic equipment for preloading instance application
CN115361705B (en) A NOMA network task processing method and system with information timeliness guarantee
CN111183436A (en) Information processing device, control method, and program
CN115567600A (en) Message processing system and method based on vehicle-end computing resources
US20250023806A1 (en) Communication device, round-trip time estimation method, and round-trip time estimation program
EP3879794A1 (en) Execution control method, information processing apparatus, and execution control program
TWI736975B (en) Method for adjusting packet length, mobile device and computer readable storage medium
US20250023827A1 (en) Communication device, line delay time estimation method, and line delay time estimation program
CN111177194B (en) A streaming data caching method and device
CN112540836A (en) Service scheduling management method and system
CN113612624B (en) Method and device for processing heartbeat between nodes
CN112866130B (en) Message packet interval adjusting method and device
CN117956429A (en) A communication method, device and electronic device for autonomous driving vehicle
WO2024109602A1 (en) Link determination method, apparatus, electronic device, and storage medium
CN118095431A (en) Model reasoning method, device, electronic device and storage medium
JP2001352345A (en) Data transmission device and data transmission control method
CN113204411A (en) Data processing method, intermediate processing equipment and storage medium
CN112887219A (en) Message packet interval adjusting method and device
KR102884987B1 (en) Apparatus, method and system for auto-scaling dynamic pods in a serverless computing environment
CN118802542B (en) Information distribution adjustment methods, devices, equipment, storage media and program products
CN119728718B (en) Data transmission methods, apparatus, equipment, storage media and software products

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