Vehicle message processing method, device, medium and electronic equipment
By screening the vehicle news of the reference vehicle to ensure the real -time and non -repetitiveness of the news, the problem of accuracy of the vehicle information in the driving section of multiple vehicles is solved, and the safety of the vehicle driving is improved.
Patent Information
- Application Number
- CN202010490558.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-02
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2040-06-02
AI Technical Summary
In the scene of multi-vehicle driving on the road section, when the target vehicle obtains the vehicle information of the reference vehicle, how to ensure the accuracy of the message is an urgent problem to be solved.
By obtaining the vehicle message of the reference vehicle associated with the target vehicle, the message storage time is late than the tolerance time point, and the valid vehicle message is selected according to the uniqueness of the message label to ensure the real -time and non -repeatability of the message.
This method can ensure the accuracy of vehicle messages to a certain extent, improve the real -time and non -repeatability of the message, thereby improving the safety of the vehicle.
Smart Images

Figure CN111800465B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers and safety-assisted driving technology, and more specifically, to a vehicle message processing method, device, computer-readable medium, and electronic device. Background Art
[0002] In general traffic scenarios, such as scenarios where multiple vehicles are traveling on a road, the target vehicle may need to obtain the vehicle driving parameters of a reference vehicle other than itself. The vehicle driving parameters of the reference vehicle are generally stored in the server by actively uploading vehicle messages to the server. In this case, when the target vehicle needs to obtain the vehicle message of the reference vehicle, the server usually sends all the vehicle messages stored in it to the target vehicle. However, how to ensure the accuracy of vehicle messages is a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a method, device, computer-readable medium and electronic device for processing vehicle messages, thereby ensuring the accuracy of vehicle messages at least to a certain extent.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a method for processing vehicle messages is provided, including: acquiring vehicle messages of a reference vehicle associated with a target vehicle to obtain a first vehicle message set, the first vehicle message set including a first vehicle message, the first vehicle message including a message storage time and a message tag, the message tag being used to identify the reference vehicle corresponding to the vehicle message; according to the message storage time, selecting a first vehicle message whose message storage time is later than a tolerance time point from the first vehicle message set to obtain a second vehicle message set, the second vehicle message set including a second vehicle message, the tolerance time point being used to determine whether the vehicle message is valid; according to the message tag, selecting a second vehicle message with different message tags from the second vehicle message set to obtain a reference vehicle message corresponding to the target vehicle.
[0006] According to one aspect of an embodiment of the present application, a vehicle message processing device is provided, the device comprising: an acquisition unit, used to acquire vehicle messages of a reference vehicle associated with a target vehicle, to obtain a first vehicle message set, the first vehicle message set including a first vehicle message, the first vehicle message including a message storage time and a message tag, the message tag being used to identify the reference vehicle corresponding to the vehicle message; a first selection unit, used to select, from the first vehicle message set, a first vehicle message whose message storage time is later than a tolerance time point, according to the message storage time, to obtain a second vehicle message set, the second vehicle message set including a second vehicle message, the tolerance time point being used to determine whether the vehicle message is valid; a second selection unit, used to select, from the second vehicle message set, a second vehicle message with a different message tag, according to the message tag, to obtain a reference vehicle message corresponding to the target vehicle.
[0007] In some embodiments of the present application, based on the aforementioned scheme, the first selection unit is configured to: determine the request time when the target vehicle requests to obtain a reference vehicle message and the tolerance time length for maintaining the validity of the vehicle message; determine the tolerance time point based on the request time and the tolerance time length; determine the first vehicle message in the first vehicle message set whose message storage time is later than the tolerance time point as the second vehicle message, and obtain the second vehicle message set.
[0008] In some embodiments of the present application, based on the aforementioned scheme, the tolerance time length is determined in the following manner: obtaining the driving parameters of the target vehicle and the safe driving distance of the target vehicle's location; based on the driving parameters of the target vehicle and the safe driving distance of the target vehicle's location, calculating the tolerance time length through the basic motion equation.
[0009] In some embodiments of the present application, based on the aforementioned scheme, the second selection unit is configured to: group all second vehicle messages in the second vehicle message set to obtain at least one second vehicle message subset, wherein any second vehicle message subset includes at least one second vehicle message with the same message tag; and determine the second vehicle message with the latest message storage time in each second vehicle message subset as the reference vehicle message corresponding to the target vehicle.
[0010] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: a sending unit, which is used to select a second vehicle message with different message tags from the second vehicle message set, obtain a reference vehicle message corresponding to the target vehicle, and then send the reference vehicle message corresponding to the target vehicle to the target vehicle.
[0011] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: a sending unit, which is used to select second vehicle messages with different message tags from the second vehicle message set, and after obtaining the reference vehicle message corresponding to the target vehicle, calculate the invalidity ratio of vehicle messages in the first vehicle message set based on the number of vehicle messages in the first vehicle message set and the number of reference vehicle messages corresponding to the target vehicle; when the invalidity ratio of vehicle messages in the first vehicle message set is not higher than a predetermined threshold, send the reference vehicle message corresponding to the target vehicle to the target vehicle.
[0012] In some embodiments of the present application, based on the aforementioned scheme, the first vehicle message set includes N first vehicle messages, where N is a positive integer greater than 1, and the N first vehicle messages are respectively stored in N storage spaces. The acquisition unit is configured to: obtain the first vehicle messages from the N storage spaces respectively to obtain the first vehicle message set.
[0013] In some embodiments of the present application, based on the aforementioned scheme, the first vehicle message set includes N first vehicle messages, where N is a positive integer greater than 1, and the N first vehicle messages are respectively stored in S storage spaces, wherein at least one first vehicle message is stored in one storage space, and the acquisition unit is configured to: obtain the first vehicle messages from the S storage spaces respectively to obtain the first vehicle message set.
[0014] In some embodiments of the present application, based on the aforementioned solution, the storage space is set in the message queue telemetry transmission server.
[0015] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the vehicle message processing method as described in the above embodiment is implemented.
[0016] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle message processing method as described in the above embodiments.
[0017] In the technical solutions provided by some embodiments of the present application, a first vehicle message set including a first vehicle message is first obtained, and then a second vehicle message set including a second vehicle message is selected from the first vehicle message set according to the standard that the message storage time is later than the tolerance time point, and on this basis, based on the principle that the message tags are different from each other, a second vehicle message with different message tags is selected from the second vehicle message set to further determine the valid vehicle message. On the one hand, since the vehicle message is determined according to the standard that the message storage time is later than the tolerance time point, the real-time nature of the vehicle message can be guaranteed, and on the other hand, the vehicle message is determined based on the principle that the message tags are different from each other, the non-repetitiveness of the vehicle message can be guaranteed, so the technical solutions provided by some embodiments of the present application can ensure the accuracy of the vehicle message.
[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0020] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;
[0021] Figure 2 An application scenario diagram of a method for processing vehicle messages according to an embodiment of the present application is shown;
[0022] Figure 3 A flowchart of a method for processing vehicle messages according to an embodiment of the present application is shown;
[0023] Figure 4 A schematic diagram showing a vehicle message storage method according to an embodiment of the present application;
[0024] Figure 5 A detailed flow chart of obtaining a second vehicle message set according to an embodiment of the present application is shown;
[0025] Figure 6 A flow chart of a method for determining a tolerance time length according to an embodiment of the present application is shown;
[0026] Figure 7A detailed flow chart of obtaining a reference vehicle message corresponding to the target vehicle according to an embodiment of the present application is shown;
[0027] Figure 8 A flow chart of a method after obtaining a reference vehicle message corresponding to the target vehicle according to an embodiment of the present application is shown;
[0028] Fig. 9 A schematic diagram showing a method of determining a valid vehicle message based on a cloud according to an embodiment of the present application is shown;
[0029] Fig.10 A block diagram of a vehicle message processing device according to an embodiment of the present application is shown;
[0030] Fig.11 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0032] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0033] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0034] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the objects used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those shown or described.
[0036] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied is shown.
[0037] like Figure 1 As shown, the system architecture may include terminal devices (such as Figure 1 The embodiment of the present invention is a schematic diagram of a mobile phone 101, a tablet computer 102, a portable computer 103, a desktop computer, etc., a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal device and the server 105. The network 104 may include various connection types, such as a wired communication link, a wireless communication link, etc.
[0038] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.
[0039] In one embodiment of the present application, Figure 1 The terminal device 101 shown in the figure sends a request for obtaining a reference vehicle message to the server 105. After receiving the request, the server 105 first obtains a first vehicle message set including a first vehicle message, and then selects a second vehicle message set including a second vehicle message from the first vehicle message set according to the criterion that the message storage time is later than the tolerance time point. On this basis, based on the principle that the message tags are different, a second vehicle message with different message tags is selected from the second vehicle message set, thereby determining the valid vehicle message.
[0040] It should be noted that the vehicle message processing method provided in the embodiment of the present application is generally executed by the server 105, and accordingly, the vehicle message processing and determination device is generally set in the server 105. However, in other embodiments of the present application, the terminal device may also have similar functions as the server, so as to execute the vehicle message processing solution provided in the embodiment of the present application.
[0041] It should also be noted that the vehicle message processing method provided in the embodiment of the present application can be executed by a cloud server with cloud computing function in addition to being executed by the server 105 or terminal device mentioned above.
[0042] Specifically, cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". The resources in the "cloud" are infinitely expandable in the eyes of users, and can be obtained at any time, used on demand, and expanded at any time. By establishing a cloud computing resource pool (referred to as a cloud platform, generally referred to as an IaaS (Infrastructure as a Service) platform, various types of virtual resources are deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.
[0043] Figure 2 An application scenario diagram of a method for processing vehicle messages according to an embodiment of the present application is shown.
[0044] like Figure 2 As shown, in the road section area 200, vehicle A can be the target vehicle, vehicle B, vehicle C, vehicle D, vehicle E, vehicle F, and vehicle G can be reference vehicles, positions B, B1, and B2 are respectively the driving positions of vehicle B at different times in history, positions D and D1 are respectively the driving positions of vehicle D at different times in history, positions G and G1 are respectively the driving positions of vehicle G at different times in history, positions C, positions E, and positions F are respectively the driving positions of vehicle C, vehicle E, and vehicle F at different times in history. Furthermore, when vehicles B, vehicle C, vehicle D, vehicle E, vehicle F, and vehicle G travel to the above-mentioned positions, they can upload their own vehicle messages to the server.
[0045] When the server receives a request from the target vehicle A to obtain the vehicle message of the reference vehicle, the server first obtains a first vehicle message set including the first vehicle message, and then selects a second vehicle message set including the second vehicle message from the first vehicle message set according to the criterion that the message storage time is later than the tolerance time point, and on this basis, based on the principle that the message tags are different, selects a second vehicle message with different message tags from the second vehicle message set, and then determines the valid vehicle message.
[0046] In one embodiment of the present application, the server can send a determined valid vehicle message to a target vehicle, and the target vehicle can analyze the vehicle condition of the current road section (the vehicle condition may include the number of reference vehicles and the driving condition of each reference vehicle) based on the valid vehicle message, and then determine its own vehicle driving strategy to improve the safety of vehicle driving.
[0047] It should be noted that the vehicle message of the reference vehicle may include driving parameters, attribute parameters, and positioning parameters of the reference vehicle.
[0048] Furthermore, the driving parameters may include the speed, direction and acceleration of the vehicle, etc. The attribute parameters may include the type of vehicle (such as a truck or a car), the license plate number, the weight, the length, the width and the height, etc. The positioning parameters may include the positioning coordinates of the vehicle, etc.
[0049] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0050] Figure 3 The flowchart of the vehicle message processing method according to an embodiment of the present application is shown. The vehicle message processing method can be executed by a device having a computing and processing function, such as Figure 1 The server 105 shown in FIG. 1 may also be executed by Figure 1 The processing can be performed by the terminal device shown in , or by a cloud server with cloud computing function. Figure 3 As shown, the vehicle message processing method at least includes steps 310 to 350, which are described in detail as follows:
[0051] In step 310, vehicle messages of a reference vehicle associated with a target vehicle are obtained to obtain a first vehicle message set, wherein the first vehicle message set includes a first vehicle message, wherein the first vehicle message includes a message storage time and a message tag, and the message tag is used to identify a reference vehicle corresponding to the vehicle message.
[0052] In one embodiment of the present application, the first vehicle message set may include N first vehicle messages, and the N first vehicle messages may be stored in N storage spaces respectively. After receiving a request for obtaining a vehicle message of a reference vehicle sent by a target vehicle, the first vehicle messages are obtained from the N storage spaces respectively to obtain the first vehicle message set.
[0053] In this embodiment, each of the N storage spaces can store only one vehicle message. Therefore, when obtaining the first vehicle message, it is necessary to obtain the vehicle message from each storage space.
[0054] In a specific implementation of an embodiment of the present application, each storage space can be bound to a unique GPS positioning coordinate. When a reference vehicle travels to a GPS positioning coordinate, its own vehicle message at the GPS positioning coordinate can be uploaded to the storage space bound to the GPS positioning coordinate.
[0055] In order to enable those skilled in the art to better understand the specific implementation method, Figure 4 Provide explanation.
[0056] Figure 4 A schematic diagram of a vehicle message storage method according to an embodiment of the present application is shown.
[0057] like Figure 4 As shown, in the road section area 400, vehicle test vehicle B, vehicle test vehicle C, vehicle test vehicle D, vehicle test vehicle E, vehicle test vehicle F, and vehicle test vehicle G have uploaded vehicle messages in area 400 respectively.
[0058] The road segment area 400 includes nine GPS positions, including GPS1 to GPS9, wherein one GPS position defines a geographic grid area in the road segment area 400, wherein one grid area can accommodate one reference vehicle.
[0059] Furthermore, a GPS location is bound to a storage space, and storage space 1 to storage space 9 are correspondingly bound to GPS1 to GPS9. When a reference vehicle enters a grid area corresponding to a GPS location and uploads its own new vehicle message to the storage space corresponding to the GPS location, the old vehicle messages uploaded by other reference vehicles historically stored in the storage space can be overwritten. For example, in storage space 2 corresponding to GPS2 location, vehicle message E of reference vehicle E will overwrite vehicle message D1 corresponding to reference vehicle D. In storage space 7 corresponding to GPS7 location, vehicle message B of reference vehicle B will overwrite vehicle message B1 corresponding to reference vehicle B.
[0060] In the present application, the advantage of one storage space being able to store only one vehicle message is that the redundancy of the vehicle messages in the storage space can be reduced, thus saving storage resources.
[0061] In one embodiment of the present application, the first vehicle message set may include N first vehicle messages, and the N first vehicle messages may be stored in S storage spaces respectively, wherein at least one first vehicle message is stored in one storage space, and after receiving a request sent by the target vehicle to obtain a vehicle message of a reference vehicle, the first vehicle messages are obtained from the S storage spaces respectively to obtain the first vehicle message set.
[0062] In this embodiment, S is a positive integer less than N. Each of the S storage spaces can store one or more vehicle messages. It should be noted that the term "multiple" in this application refers to two or more. Therefore, when obtaining the first vehicle message, one or more vehicle messages need to be obtained from each storage space.
[0063] In a specific implementation of an embodiment of the present application, each storage space can be bound to a unique GPS positioning coordinate.
[0064] It should be noted that a GPS positioning coordinate can define a geographical range, and a geographical range can accommodate at least two vehicles.
[0065] When the reference vehicle travels to a GPS positioning coordinate, the vehicle message of the reference vehicle at the GPS positioning coordinate can be uploaded to the storage space bound to the GPS positioning coordinate. It should be noted that the number of vehicle messages stored in the storage space may be limited, that is, when the number of vehicle messages stored in the storage space reaches the upper limit, the newly stored vehicle message will overwrite the vehicle message first stored in the storage space.
[0066] Similarly, the advantage of a storage space being able to store only a limited number of vehicle messages is that it can also reduce the redundancy of vehicle messages in the storage space and save storage resources.
[0067] In the present application, in the two embodiments described above, the storage space may be set in a message queue telemetry transport server, namely, an MQTT (Message Queuing Telemetry Transport) server.
[0068] The Message Queue Telemetry Transport Server is an ISO standard messaging protocol server that can connect sensors over unreliable networks and can work on top of the TCP / IP Internet protocol.
[0069] The storage space is set in the message queue telemetry transmission server, and the vehicle message of the reference vehicle can be uploaded to the message queue telemetry transmission server. The advantages are that, firstly, the bandwidth required for uploading the vehicle message is small, and secondly, the message queue telemetry transmission server defines the importance of the message by declaring its service quality level. All important vehicle messages uploaded by the reference vehicle can be received, and the vehicle messages received through the message queue telemetry transmission server have strong confidentiality.
[0070] In one embodiment of the present application, the N first vehicle messages may also be stored in one storage space.
[0071] In the present application, the message storage time may refer to the time when the reference vehicle uploads the first vehicle message to the storage space.
[0072] In the present application, the message tag can be used to identify the reference vehicle corresponding to the vehicle message. Specifically, the message tag can refer to the license plate number of the reference vehicle corresponding to the first vehicle message, or can refer to other serial numbers of the reference vehicle corresponding to the first vehicle message.
[0073] Continue to refer to Figure 3 In step 330, according to the message storage time, a first vehicle message whose message storage time is later than the tolerance time point is selected from the first vehicle message set to obtain a second vehicle message set, wherein the second vehicle message set includes a second vehicle message, and the tolerance time point is used to determine whether the vehicle message is valid.
[0074] In one embodiment of the present application, according to the message storage time, a first vehicle message whose message storage time is later than the tolerance time point is selected from the first vehicle message set, and the second vehicle message set is obtained as follows: Figure 5 The steps shown are performed:
[0075] See also Figure 5 , shows a detailed flow chart of obtaining a second vehicle message set according to an embodiment of the present application. Specifically, steps 331 to 333 are included:
[0076] In step 331 , the request time when the target vehicle requests to obtain the reference vehicle message and the tolerance time length for maintaining the validity of the vehicle message are determined.
[0077] In the present application, specifically, for example, the target vehicle requests to obtain the vehicle information of the reference vehicle at 00:00:00 on May 20, 2020, then the request time is 00:00:00 on May 20, 2020.
[0078] In the present application, the tolerance time length refers to the upper limit of the storage delay for maintaining the validity of the vehicle message stored in the storage space. If the tolerance time length is 10 seconds, then when the storage time of the vehicle message exceeds 10 seconds from the time it is uploaded to the storage space, the vehicle message is considered to be invalid.
[0079] In a specific implementation of an embodiment of the present application, the length of the tolerance time can be determined by: Figure 6 The steps shown are confirmed.
[0080] join Figure 6 , shows a flow chart of a method for determining a tolerance time length according to an embodiment of the present application, specifically including steps 3311 to 3312:
[0081] Step 3311, obtaining the driving parameters of the target vehicle and the safe driving distance of the target vehicle.
[0082] In the present application, the target vehicle can send the driving parameters of the target vehicle and the safe driving distance of the target vehicle's location while sending a vehicle message request to obtain the reference vehicle, thereby obtaining the driving parameters of the target vehicle and the safe driving distance of the target vehicle's location.
[0083] Specifically, the driving parameters may include the driving speed and acceleration of the target vehicle when requesting to obtain the vehicle information of the reference vehicle.
[0084] Specifically, the driving safety distance may refer to the driving safety distance at which the target vehicle is located when requesting to obtain the vehicle information of the reference vehicle, which may be obtained from the traffic management department or the Internet.
[0085] Step 3312, based on the driving parameters of the target vehicle and the safe driving distance of the target vehicle, the tolerance time length is calculated by the basic motion equation.
[0086] Specifically, in this application, the tolerance time length can be calculated by the following basic motion equation:
[0087] L=vΔt+5aΔt 2
[0088] Wherein, L represents the safe driving distance of the target vehicle when requesting to obtain the vehicle message of the reference vehicle; v represents the driving speed of the target vehicle when requesting to obtain the vehicle message of the reference vehicle; Δt represents the length of the tolerance time; a represents the acceleration of the target vehicle when requesting to obtain the vehicle message of the reference vehicle.
[0089] In a specific implementation of an embodiment of the present application, the length of the tolerance time may also be determined based on historical experience.
[0090] Continue to refer to Figure 5 In step 332, the tolerance time point is determined based on the request time and the tolerance time length.
[0091] In a specific implementation of an embodiment of the present application, the tolerance time point can be determined by the following formula:
[0092] T=t-Δt
[0093] Wherein, T represents the tolerance time point; t represents the request time when the target vehicle requests to obtain the vehicle information of the reference vehicle; Δt represents the length of the tolerance time.
[0094] Continue to refer to Figure 5In step 333, the first vehicle message in the first vehicle message set whose message storage time is later than the tolerance time point is determined as the second vehicle message to obtain the second vehicle message set.
[0095] In the present application, if the message storage time of the first vehicle message in the first vehicle message set is earlier than or equal to the tolerance time point, it means that the storage time of the first vehicle message in the storage space exceeds the tolerance time length, that is, it exceeds the storage delay upper limit for maintaining the validity of the vehicle message stored in the storage space, further indicating that the first vehicle message is not valid.
[0096] Based on this, the first vehicle message in the first vehicle message set whose message storage time is later than the tolerance time point is determined as the second vehicle message, and the second vehicle message has the timeliness of maintaining the validity of the vehicle message.
[0097] Continue to refer to Figure 3 In step 350, according to the message tag, a second vehicle message with a different message tag is selected from the second vehicle message set to obtain a reference vehicle message corresponding to the target vehicle.
[0098] In one embodiment of the present application, according to the message tag, second vehicle messages with different message tags are selected from the second vehicle message set to obtain the reference vehicle message corresponding to the target vehicle. Figure 7 Follow the steps shown.
[0099] See also Figure 7 , shows a detailed flow chart of obtaining the reference vehicle message corresponding to the target vehicle according to an embodiment of the present application. Specifically, it includes steps 351 to 352:
[0100] Step 351: group all second vehicle messages in the second vehicle message set to obtain at least one second vehicle message subset, wherein any second vehicle message subset includes at least one second vehicle message with the same message tag.
[0101] Step 352: Determine the second vehicle message with the latest message storage time in each second vehicle message subset as the reference vehicle message corresponding to the target vehicle.
[0102] In the present application, it should be understood by those skilled in the art that a message tag can be used to identify a reference vehicle corresponding to the vehicle message.
[0103] In the present application, it should be understood by those skilled in the art that a reference vehicle message is an element of a second vehicle message set, and the second vehicle message set is a subset of the first vehicle message set. Therefore, any reference vehicle message is essentially a second vehicle message in the second vehicle message set, and is also a first vehicle message in the first vehicle message set.
[0104] In the present application, it should be understood by those skilled in the art that there may be at least two second vehicle messages with the same message tag in the second vehicle message set.
[0105] Based on this, all second vehicle messages in the second vehicle message set can be grouped according to the message tags corresponding to the second vehicle messages to obtain at least one second vehicle message subset, wherein any second vehicle message subset includes at least one second vehicle message with the same message tag, and then the second vehicle message with the latest message storage time in each second vehicle message subset is determined as the reference vehicle message to obtain a valid vehicle message.
[0106] For example, refer to Figure 4 Since the reference vehicles corresponding to vehicle message B and vehicle message B2 are both reference vehicle B, vehicle message B and vehicle message B2 are elements of the same second vehicle message subset. If the message storage times corresponding to vehicle message B2 and vehicle message B are 00:00:00 on May 20, 2020 and 00:00:05 on May 20, 2020 respectively, then vehicle message B can be determined as the reference vehicle message.
[0107] In this embodiment, since the target vehicle needs to refer to only one vehicle message corresponding to the vehicle with the highest timeliness, the second vehicle message with the latest storage time in each second vehicle message subset is determined as the reference vehicle message, which ensures both the timeliness and non-repetitiveness of the vehicle message.
[0108] It should be noted that, in the present application, in the above step 352, any second vehicle message in each second vehicle message subset may be determined as a reference vehicle message to obtain a valid vehicle message.
[0109] In one embodiment of the present application, after selecting second vehicle messages with different message tags from the second vehicle message set to obtain a reference vehicle message corresponding to the target vehicle, the reference vehicle message corresponding to the target vehicle can be sent to the target vehicle.
[0110] In one embodiment of the present application, after selecting second vehicle messages with different message tags from the second vehicle message set to obtain reference vehicle messages corresponding to the target vehicle, the following steps may be performed: Figure 8 Steps shown.
[0111] See also Figure 8 , shows a flow chart of a method after obtaining the reference vehicle information corresponding to the target vehicle according to an embodiment of the present application. Specifically comprising steps 370 to 390:
[0112] Step 370 : Calculate the invalidity ratio of the vehicle messages in the first vehicle message set based on the number of vehicle messages in the first vehicle message set and the number of reference vehicle messages corresponding to the target vehicle.
[0113] In the present application, the invalid ratio of vehicle messages in the first vehicle message set can be calculated by the following formula:
[0114]
[0115] Among them, P represents the invalid ratio of vehicle messages in the first vehicle message set; N represents the number of all vehicle messages in the storage space (ie, the first vehicle message number); X represents the number of valid vehicle messages in the storage space (ie, the reference vehicle message number).
[0116] Step 390: When the invalid ratio of vehicle messages in the first vehicle message set is not higher than a predetermined threshold, a reference vehicle message corresponding to the target vehicle is sent to the target vehicle.
[0117] In the present application, the predetermined threshold may be determined based on the historical traffic accident rate of the target vehicle's location. For example, the predetermined threshold may be equal to the historical traffic accident rate of the target vehicle's location. Specifically, the historical traffic accident rate may be obtained from the traffic management department.
[0118] In the present application, the predetermined threshold may also be set according to actual needs.
[0119] In the present application, after obtaining the reference vehicle message (i.e., valid vehicle message), the target vehicle can analyze the vehicle condition of the current road section based on the valid vehicle message (the vehicle condition may include the number of reference vehicles and the driving condition of each reference vehicle, and whether it will pose a safety risk to the target vehicle itself), and then determine its own vehicle driving strategy to improve the safety of vehicle driving.
[0120] In the present application, when the invalid ratio of vehicle messages in the first vehicle message set is higher than a predetermined threshold, the reference vehicle messages in the reference vehicle message set are not sent to the target vehicle.
[0121] For example, when the predetermined threshold is the historical traffic accident rate at the location of the target vehicle, the invalid ratio of vehicle messages in the first vehicle message set is not higher than the predetermined threshold, that is, the invalid ratio of vehicle messages in the first vehicle message set is not higher than the historical traffic accident rate.
[0122] On the one hand, the target vehicle requests to obtain the vehicle information of the reference vehicle in order to evaluate the driving risk of the location where it is driving, so as to guide itself to avoid traffic accident history. On the other hand, the driving risk estimation is essentially an estimation based on the vehicle information of the reference vehicle, and the accuracy of the estimation is related to the quality of the vehicle information of the reference vehicle obtained. In order to ensure that the estimated driving risk of the target vehicle is beneficial to reducing the traffic accident rate, the estimated error rate should be lower than the historical traffic accident rate, otherwise, this risk estimation will not have a positive impact on reducing the traffic accident rate. In the present application, by setting the historical traffic accident rate of the location of the target vehicle to a predetermined threshold, it can be ensured that the error rate of the estimated driving risk of the target vehicle is lower than the historical traffic accident rate, thereby making the determined vehicle driving strategy of the target vehicle conducive to reducing the historical traffic accident rate of the location of the target vehicle.
[0123] It is understandable that vehicle messages with too high an invalid ratio cannot assist the target vehicle in determining a better vehicle driving strategy.
[0124] Based on this, only when the invalid ratio of vehicle messages in the first vehicle message set is not higher than a predetermined threshold, the reference vehicle message in the reference vehicle message set is sent to the target vehicle, which can improve the acquisition rate of valid vehicle messages, thereby improving the integrity and reliability of vehicle messages, and further assisting the target vehicle in determining a better vehicle driving strategy. When the invalid ratio of vehicle messages in the first vehicle message set is higher than a predetermined threshold, the reference vehicle message in the reference vehicle message set is not sent to the target vehicle, which can reduce the transmission of useless messages and also reduce the consumption of network resources.
[0125] In the present application, in the scenario of multiple vehicle driving sections, in the embodiment of determining the valid vehicle message, it is also possible to build a fusion of automobile cloud, regional cloud and edge cloud to realize the determination of the valid vehicle message about the reference vehicle for the target vehicle in the Internet of Vehicles through the cloud-car system, such as Fig. 9 , shows a schematic diagram of determining valid vehicle messages based on the cloud according to an embodiment of the present application. The system consists of a cloud and a vehicle network. Among them, in this solution, the vehicle can upload its own vehicle message to the vehicle cloud in real time, and the vehicle cloud can execute various technical solutions in this application.
[0126] Specifically, on the one hand, the automobile cloud obtains the vehicle message uploaded by the reference vehicle in real time, and on the other hand, after receiving the request for obtaining the vehicle message of the reference vehicle sent by the target vehicle, the automobile cloud first obtains the first vehicle message set including the first vehicle message (it should be noted that the first vehicle message can be the vehicle message uploaded by the reference vehicle obtained by the automobile cloud in real time), and then selects the second vehicle message set including the second vehicle message from the first vehicle message set according to the standard that the message storage time is later than the tolerance time point. On this basis, based on the principle that the message tags are different from each other, the reference vehicle message set including the reference vehicle message is selected from the second vehicle message set to determine the valid vehicle message.
[0127] In addition, the inventors of the present application conducted experiments using the valid message determination scheme of the prior art and the valid message determination scheme proposed in the present application, and obtained experimental results as shown in Table 1.
[0128] Experimental level sequence The acquisition rate of effective messages in existing technologies The acquisition rate of effective messages for this application First experiment 74% 93% Second experiment 73% 92% The third experiment 76% 95% The fourth experiment 77% 96% The fifth experiment 71% 92% The sixth experiment 75% 94% The seventh experiment 79% 98% The eighth experiment 72% 92% The ninth experiment 72% 91% The tenth experiment 74% 93%
[0129] Table 1
[0130] As shown in Table 1, by applying the technical solution provided by the present application to the scenario of determining valid messages, compared with the prior art, the technical solution of the present application can improve the acquisition rate of valid messages, thereby ensuring the accuracy of vehicle messages.
[0131] In the technical solutions provided by some embodiments of the present application, a first vehicle message set including a first vehicle message is first obtained, and then a second vehicle message set including a second vehicle message is selected from the first vehicle message set according to the standard that the message storage time is later than the tolerance time point, and on this basis, based on the principle that the message tags are different from each other, a second vehicle message with different message tags is selected from the second vehicle message set to further determine the valid vehicle message. On the one hand, since the vehicle message is determined according to the standard that the message storage time is later than the tolerance time point, the real-time nature of the vehicle message can be guaranteed, and on the other hand, the vehicle message is determined based on the principle that the message tags are different from each other, the non-repetitiveness of the vehicle message can be guaranteed, so the technical solutions provided by some embodiments of the present application can ensure the accuracy of the vehicle message.
[0132] The following describes an apparatus embodiment of the present application, which can be used to execute the vehicle message processing method in the above embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above embodiment of the vehicle message processing method in the present application.
[0133] Fig.10 A block diagram of a vehicle message processing device according to an embodiment of the present application is shown.
[0134] Reference Fig.10As shown, a vehicle message processing device 1000 according to an embodiment of the present application includes: an acquisition unit 1001 , a first selection unit 1002 , and a second selection unit 1103 .
[0135] Among them, the acquisition unit 1001 is used to acquire the vehicle message of the reference vehicle associated with the target vehicle to obtain a first vehicle message set, wherein the first vehicle message set includes a first vehicle message, and the first vehicle message includes a message storage time and a message tag, and the message tag is used to identify the reference vehicle corresponding to the vehicle message; the first selection unit 1002 is used to select a first vehicle message whose message storage time is later than a tolerance time point from the first vehicle message set according to the message storage time to obtain a second vehicle message set, wherein the second vehicle message set includes a second vehicle message, and the tolerance time point is used to determine whether the vehicle message is valid; the second selection unit 1103 is used to select a second vehicle message with different message tags from the second vehicle message set according to the message tag to obtain a reference vehicle message corresponding to the target vehicle.
[0136] In some embodiments of the present application, based on the aforementioned scheme, the first selection unit 1002 is configured to: determine the request time when the target vehicle requests to obtain a reference vehicle message and the tolerance time length for maintaining the validity of the vehicle message; determine the tolerance time point based on the request time and the tolerance time length; determine the first vehicle message in the first vehicle message set whose message storage time is later than the tolerance time point as the second vehicle message, and obtain the second vehicle message set.
[0137] In some embodiments of the present application, based on the aforementioned scheme, the tolerance time length is determined in the following manner: obtaining the driving parameters of the target vehicle and the safe driving distance of the target vehicle's location; based on the driving parameters of the target vehicle and the safe driving distance of the target vehicle's location, calculating the tolerance time length through the basic motion equation.
[0138] In some embodiments of the present application, based on the aforementioned scheme, the second selection unit 1103 is configured to: group all second vehicle messages in the second vehicle message set to obtain at least one second vehicle message subset, wherein any second vehicle message subset includes at least one second vehicle message with the same message tag; and determine the second vehicle message with the latest message storage time in each second vehicle message subset as the reference vehicle message corresponding to the target vehicle.
[0139] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: a sending unit, which is used to select a second vehicle message with different message tags from the second vehicle message set, obtain a reference vehicle message corresponding to the target vehicle, and then send the reference vehicle message corresponding to the target vehicle to the target vehicle.
[0140] In some embodiments of the present application, based on the aforementioned scheme, the device also includes: a sending unit, which is used to select second vehicle messages with different message tags from the second vehicle message set, and after obtaining the reference vehicle message corresponding to the target vehicle, calculate the invalidity ratio of vehicle messages in the first vehicle message set based on the number of vehicle messages in the first vehicle message set and the number of reference vehicle messages corresponding to the target vehicle; when the invalidity ratio of vehicle messages in the first vehicle message set is not higher than a predetermined threshold, send the reference vehicle message corresponding to the target vehicle to the target vehicle.
[0141] In some embodiments of the present application, based on the aforementioned scheme, the first vehicle message set includes N first vehicle messages, where N is a positive integer greater than 1, and the N first vehicle messages are respectively stored in N storage spaces. The acquisition unit 1001 is configured to: obtain the first vehicle messages from the N storage spaces respectively to obtain the first vehicle message set.
[0142] In some embodiments of the present application, based on the aforementioned scheme, the first vehicle message set includes N first vehicle messages, where N is a positive integer greater than 1, and the N first vehicle messages are respectively stored in S storage spaces, wherein at least one first vehicle message is stored in one storage space, and the acquisition unit 1001 is configured to: obtain the first vehicle messages from the S storage spaces respectively to obtain the first vehicle message set.
[0143] In some embodiments of the present application, based on the aforementioned solution, the storage space is set in the message queue telemetry transmission server.
[0144] Fig.11 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0145] It should be noted that Fig.11 The computer system 1100 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0146] like Fig.11As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage part 1108 to the random access memory (RAM) 1103, such as executing the method described in the above embodiment. In the RAM 1103, various programs and data required for system operation are also stored. The CPU 1101, the ROM 1102 and the RAM 1103 are connected to each other through the bus 1104. The input / output (I / O) interface 1105 is also connected to the bus 1104.
[0147] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed so that a computer program read therefrom is installed into the storage section 1108 as needed.
[0148] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1109, and / or installed from a removable medium 1111. When the computer program is executed by a central processing unit (CPU) 1101, various functions defined in the system of the present application are executed.
[0149] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0150] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0151] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0152] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0153] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0154] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0155] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0156] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for processing vehicle messages, characterized in that: The method comprises: Acquire a vehicle message of a reference vehicle associated with the target vehicle to obtain a first vehicle message set, wherein the first vehicle message set includes a first vehicle message, the first vehicle message includes a message storage time and a message tag, and the message tag is used to identify the reference vehicle corresponding to the vehicle message; According to the message storage time, selecting a first vehicle message whose message storage time is later than the tolerance time point from the first vehicle message set to obtain a second vehicle message set, wherein the second vehicle message set includes the second vehicle message, and the tolerance time point is used to determine whether the vehicle message is valid; According to the message tags, second vehicle messages with different message tags are selected from the second vehicle message set to obtain reference vehicle messages corresponding to the target vehicle.
2. The method according to claim 1, characterized in that The selecting, according to the message storage time, a first vehicle message whose message storage time is later than the tolerance time point from the first vehicle message set to obtain a second vehicle message set comprises: Determine the request time when the target vehicle requests to obtain the reference vehicle message and the tolerance time length for maintaining the validity of the vehicle message; Determine the tolerance time point based on the request time and the tolerance time length; A first vehicle message in the first vehicle message set whose message storage time is later than the tolerance time point is determined as a second vehicle message to obtain the second vehicle message set.
3. The method according to claim 2, characterized in that The tolerance time length is determined as follows: Obtaining the driving parameters of the target vehicle and the driving safety distance of the target vehicle; The tolerance time length is calculated by using a basic motion equation based on the driving parameters of the target vehicle and the safe driving distance of the target vehicle.
4. The method according to claim 1, characterized in that: The selecting, according to the message tag, second vehicle messages having different message tags from the second vehicle message set to obtain a reference vehicle message corresponding to the target vehicle comprises: Grouping all second vehicle messages in the second vehicle message set to obtain at least one second vehicle message subset, wherein any second vehicle message subset includes at least one second vehicle message having the same message tag; The second vehicle message with the latest message storage time in each second vehicle message subset is determined as the reference vehicle message corresponding to the target vehicle.
5. The method according to claim 1, characterized in that After selecting second vehicle messages with different message tags from the second vehicle message set to obtain reference vehicle messages corresponding to the target vehicle, the method further includes: A reference vehicle message corresponding to the target vehicle is sent to the target vehicle.
6. The method according to claim 1, characterized in that After selecting second vehicle messages with different message tags from the second vehicle message set to obtain reference vehicle messages corresponding to the target vehicle, the method further includes: Calculating an invalid ratio of vehicle messages in the first vehicle message set based on the number of vehicle messages in the first vehicle message set and the number of reference vehicle messages corresponding to the target vehicle; When the invalid ratio of vehicle messages in the first vehicle message set is not higher than a predetermined threshold, a reference vehicle message corresponding to the target vehicle is sent to the target vehicle.
7. The method according to claim 1, characterized in that The first vehicle message set includes N first vehicle messages, where N is a positive integer greater than 1, and the N first vehicle messages are respectively stored in N storage spaces. The vehicle message of the reference vehicle associated with the target vehicle is obtained to obtain the first vehicle message set, including: The first vehicle messages are respectively obtained from the N storage spaces to obtain the first vehicle message set.
8. The method according to claim 1, characterized in that The first vehicle message set includes N first vehicle messages, where N is a positive integer greater than 1, and the N first vehicle messages are respectively stored in S storage spaces, wherein at least one first vehicle message is stored in one storage space, and the vehicle message of the reference vehicle associated with the target vehicle is obtained to obtain the first vehicle message set, including: The first vehicle messages are respectively obtained from the S storage spaces to obtain the first vehicle message set.
9. The method according to claim 7 or 8, characterized in that: The storage space is arranged in the message queue telemetry transmission server.
10. A vehicle message processing device, characterized in that: include: An acquisition unit is used to acquire a vehicle message of a reference vehicle associated with a target vehicle to obtain a first vehicle message set, wherein the first vehicle message set includes a first vehicle message, the first vehicle message includes a message storage time and a message tag, and the message tag is used to identify a reference vehicle corresponding to the vehicle message; a first selection unit, configured to select, from the first vehicle message set, a first vehicle message whose message storage time is later than a tolerance time point according to the message storage time, to obtain a second vehicle message set, wherein the second vehicle message set includes a second vehicle message, and the tolerance time point is used to determine whether the vehicle message is valid; The second selection unit is used to select second vehicle messages with different message tags from the second vehicle message set according to the message tags, so as to obtain reference vehicle messages corresponding to the target vehicle.
Citation Information
Patent Citations
Method and system for communicating based on car networking
CN103281191A
Automatic driving longitudinal planning method and related equipment
CN110488816A