Message sending method and device, electronic equipment and storage medium

By dynamically adjusting the wireless resource pool, modulation and encoding method and transmission power of the vehicle-mounted unit in V2X communication, the problem of low reliability of V2X message transmission is solved, and more efficient message transmission is achieved.

CN119653491APending Publication Date: 2025-03-18ROLLING WIRELESS SARL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411793116.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In V2X communication, when a vehicle sends a message through a statically configured wireless resource, it is susceptible to interference from the external environment and surrounding vehicles, resulting in low reliability of message transmission.

Method used

By obtaining the service busyness rate, packet error rate and number of surrounding vehicle units of each resource pool on the target vehicle unit, the wireless resources are dynamically adjusted, including adjusting the resource pool, modulation and coding method and transmission power to improve the reliability of message transmission.

Benefits of technology

By dynamically adjusting wireless resources, the reliability of message transmission is improved, effectively avoiding the problem of unstable message transmission caused by interference from the external environment and surrounding vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119653491A_ABST
    Figure CN119653491A_ABST
Patent Text Reader

Abstract

The invention relates to a message sending method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a business busy rate corresponding to each resource pool on a target vehicle-mounted unit, the target vehicle-mounted unit being any one vehicle-mounted unit, and the target vehicle-mounted unit comprising a plurality of resource pools; receiving messages sent by other on-board units around the target on-board unit, and determining the packet error rate of the target on-board unit and the number of the on-board units around the target on-board unit according to field information in the received messages; and according to the business busy rate, the packet error rate and the number of surrounding vehicle-mounted units, dynamically adjusting wireless resources of the target vehicle-mounted unit, and sending the to-be-sent message on the target vehicle-mounted unit according to the adjusted wireless resources. In this way, the reliability of message transmission can be improved, and the problem that the reliability of message transmission is low due to the influence of the external environment and the interference of surrounding vehicles is effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technologies, and in particular to a message sending method, device, electronic device and storage medium. Background Art

[0002] With the development of wireless communication technology, the application of Vehicle to Everything (V2X) in vehicles is becoming more and more common. It includes but is not limited to the communication between vehicle to vehicle (V2V), vehicle to infrastructure (V2I), vehicle to network (V2N) and vehicle to pedestrian (V2P). It can realize the integration and interaction of information of vehicles, pedestrians and road facilities to realize a more intelligent and autonomous transportation system.

[0003] In related technologies, when sending V2X messages, vehicles usually use statically configured wireless resources to send them. However, due to the influence of the external environment and interference from surrounding vehicles, it is easy for the receiver to be unable to reliably receive the V2X message, which in turn affects the reliability of message transmission and is not conducive to the effective implementation of V2X applications. Therefore, how to improve the reliability of message transmission has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The present application provides a message sending method, device, electronic device and storage medium to solve the problem in the related art that the reliability of message transmission is low due to the use of statically configured wireless resources for message sending.

[0005] In a first aspect, an embodiment of the present application provides a message sending method, the method comprising:

[0006] Obtaining a service busy rate corresponding to each resource pool on a target onboard unit, wherein the target onboard unit is any onboard unit, and the target onboard unit includes multiple resource pools;

[0007] Receiving messages sent by other on-board units located around the target on-board unit, and determining the packet error rate of the target on-board unit and the number of surrounding on-board units according to field information in the received messages;

[0008] The wireless resources of the target on-board unit are dynamically adjusted according to the service busy rate, the packet error rate and the number of the surrounding on-board units, and the to-be-sent message on the target on-board unit is sent according to the adjusted wireless resources.

[0009] Optionally, dynamically adjusting the wireless resources of the target on-board unit according to the service busy rate, the packet error rate and the number of surrounding on-board units includes:

[0010] According to the service busy rate and the packet error rate, dynamically adjust the resource pool and modulation coding mode currently used by the target onboard unit; and,

[0011] The transmission power of the target on-board unit is dynamically adjusted according to the number of the surrounding on-board units.

[0012] Optionally, dynamically adjusting the resource pool and modulation and coding mode currently used by the target onboard unit according to the service busy rate and the packet error rate includes:

[0013] Determining whether the packet error rate is greater than a first preset threshold;

[0014] In the case where it is determined that the packet error rate is greater than the first preset threshold, judging whether the resource pool currently used by the target onboard unit needs to be adjusted according to the service busy rate;

[0015] In the case where it is determined that the resource pool currently used by the target vehicle unit needs to be adjusted, adjusting the resource pool currently used by the target vehicle unit to the target resource pool, wherein the service busy rate corresponding to the target resource pool is lower than the service busy rate corresponding to the resource pool currently used by the target vehicle unit;

[0016] When it is determined that the resource pool currently used by the target vehicle-mounted unit does not need to be adjusted, the modulation and coding mode currently used by the target vehicle-mounted unit is adjusted to the target modulation and coding mode, wherein the order of the target modulation and coding mode is lower than the order of the modulation and coding mode currently used by the target vehicle-mounted unit.

[0017] Optionally, judging whether a resource pool currently used by the target on-board unit needs to be adjusted according to the service busy rate includes:

[0018] Determine whether the service busy rate corresponding to the resource pool currently used by the target on-board unit is greater than a second preset threshold;

[0019] When it is determined that the service busy rate corresponding to the resource pool currently used by the target on-board unit is greater than the second preset threshold, determining that the resource pool currently used by the target on-board unit needs to be adjusted;

[0020] When it is determined that the service busy rate corresponding to the resource pool currently used by the target on-board unit is less than or equal to the second preset threshold, it is determined that the resource pool currently used by the target on-board unit does not need to be adjusted.

[0021] Optionally, judging whether a resource pool currently used by the target on-board unit needs to be adjusted according to the service busy rate includes:

[0022] Compare the service busy rate corresponding to the resource pool currently used by the target on-board unit with the service busy rates corresponding to other resource pools;

[0023] Determine whether there is a service busy rate in the target vehicle-mounted unit that is lower than the service busy rate corresponding to the resource pool currently used by the target vehicle-mounted unit;

[0024] In the case where it is determined that the service busy rate in the target vehicle unit is lower than the service busy rate corresponding to the resource pool currently used by the target vehicle unit, determining that the resource pool currently used by the target vehicle unit needs to be adjusted;

[0025] When it is determined that there is no service busy rate in the target onboard unit that is lower than the service busy rate corresponding to the resource pool currently used by the target onboard unit, it is determined that the resource pool currently used by the target onboard unit does not need to be adjusted.

[0026] Optionally, dynamically adjusting the transmission power of the target on-board unit according to the number of the surrounding on-board units includes:

[0027] Determining whether the number of the surrounding on-board units is greater than a third preset threshold;

[0028] When it is determined that the number of the surrounding on-board units is greater than the third preset threshold, reducing the transmission power of the target on-board unit;

[0029] When it is determined that the number of the surrounding on-board units is less than or equal to the third preset threshold, the transmission power of the target on-board unit is kept unchanged.

[0030] Optionally, determining the packet error rate of the target on-board unit and the number of surrounding on-board units according to field information in the received message includes:

[0031] Obtaining first field information and second field information in a message received within a preset time period, wherein the first field information is used to record the number of messages sent by the onboard unit, and the second field information is used to record identification information of the onboard unit;

[0032] Collecting statistics on the first field information in the messages received within a preset time period to obtain the packet error rate;

[0033] The second field information in the messages received within a preset time period is counted to obtain the number of the surrounding on-board units.

[0034] In a second aspect, an embodiment of the present application provides a message sending device, the device comprising:

[0035] An acquisition module, used for acquiring a service busy rate corresponding to each resource pool on a target vehicle-mounted unit, wherein the target vehicle-mounted unit is any vehicle-mounted unit, and the target vehicle-mounted unit includes a plurality of resource pools;

[0036] A determination module, used for receiving messages sent by other on-board units located around the target on-board unit, and determining the packet error rate of the target on-board unit and the number of surrounding on-board units according to field information in the received messages;

[0037] The adjustment module is used to dynamically adjust the wireless resources of the target vehicle-mounted unit according to the business busy rate, the packet error rate and the number of the surrounding vehicle-mounted units, and send the to-be-sent message on the target vehicle-mounted unit according to the adjusted wireless resources.

[0038] In a third aspect, an embodiment of the present application further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0039] Memory, used to store computer programs;

[0040] The processor is used to implement the message sending method described in the first aspect when executing the program stored in the memory.

[0041] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the message sending method described in the first aspect.

[0042] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application, by obtaining the service busy rate corresponding to each resource pool on the target vehicle-mounted unit, wherein the target vehicle-mounted unit is any vehicle-mounted unit, and the target vehicle-mounted unit includes multiple resource pools; receiving messages sent by other vehicle-mounted units located around the target vehicle-mounted unit, and determining the packet error rate of the target vehicle-mounted unit and the number of vehicle-mounted units around it according to the field information in the received message; dynamically adjusting the wireless resources of the target vehicle-mounted unit according to the service busy rate, the packet error rate and the number of vehicle-mounted units around it, and sending the message to be sent on the target vehicle-mounted unit according to the adjusted wireless resources. In the above manner, the wireless resources of the target vehicle-mounted unit can be dynamically adjusted according to the service busy rate corresponding to each resource pool on the target vehicle-mounted unit, the packet error rate of the target vehicle-mounted unit and the number of vehicle-mounted units around it, thereby improving the reliability of message transmission and effectively avoiding the problem of low reliability of message transmission due to the influence of the external environment and the interference of surrounding vehicles. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0045] Figure 1 A flowchart of a message sending method provided in an embodiment of the present application;

[0046] Figure 2 A schematic diagram of the structure of a message sending device provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0049] See also Figure 1 , Figure 1 A flow chart of a message sending method provided in an embodiment of the present application. Figure 1 As shown, the message sending method may include the following steps:

[0050] Step S102: Obtain the service busy rate corresponding to each resource pool on the target onboard unit, wherein the target onboard unit is any onboard unit and the target onboard unit includes multiple resource pools.

[0051] Specifically, the above-mentioned target on-board unit (OBU) can be a hardware and software unit installed on the target vehicle that can realize V2X communication, and the target on-board unit can communicate wirelessly with on-board units on other vehicles. Each on-board unit includes multiple resource pools, and the business busy rates corresponding to different resource pools in the same on-board unit can be the same or different, which needs to be determined based on the business volume of each resource pool. Among them, the higher the business busy rate, the greater the probability that the wireless channel is occupied, and the lower the reliability of message transmission; the lower the business busy rate, the smaller the probability that the wireless channel is occupied, and the higher the reliability of message transmission.

[0052] When obtaining the service busy rates corresponding to the resource pools on the target vehicle-mounted unit, the data transmission conditions of the resource pools on the target vehicle-mounted unit may be monitored in real time to obtain the service busy rates corresponding to the resource pools.

[0053] Step S104: receiving messages sent by other on-board units located around the target on-board unit, and determining the packet error rate of the target on-board unit and the number of surrounding on-board units according to field information in the received messages.

[0054] Specifically, the above-mentioned message may be a Basic Safety Message (BSM) broadcast periodically by the on-board unit or other messages containing relevant fields. The above-mentioned packet error rate (PER) refers to the ratio of the number of erroneously received data packets to the total number of received data packets. The packet error rate is used to measure the accuracy of data transmission within a specified time. The higher the packet error rate, the lower the reliability of the target on-board unit message transmission; the lower the packet error rate, the higher the reliability of the target on-board unit message transmission. The above-mentioned number of surrounding on-board units refers to the total number of other on-board units located around the target on-board unit. The larger the number of surrounding on-board units, the greater the interference to the target on-board unit; the smaller the number of surrounding on-board units, the smaller the interference to the target on-board unit.

[0055] Step S106: dynamically adjust the wireless resources of the target onboard unit according to the service busy rate, the packet error rate and the number of surrounding onboard units, and send the to-be-sent message on the target onboard unit according to the adjusted wireless resources.

[0056] Specifically, the above-mentioned wireless resources may include but are not limited to the currently used resource pool, modulation and coding method, transmission power, etc.

[0057] In this step, after obtaining the service busy rate corresponding to each resource pool on the target vehicle unit, the packet error rate of the target vehicle unit and the number of surrounding vehicle units, the wireless resources of the target vehicle unit can be dynamically adjusted according to the service busy rate corresponding to each resource pool on the target vehicle unit, the packet error rate of the target vehicle unit and the number of surrounding vehicle units. Specifically, the resource pool and modulation coding method currently used by the target vehicle unit can be dynamically adjusted together according to the service busy rate and the packet error rate, and the transmission power of the target vehicle unit can be dynamically adjusted separately according to the number of surrounding vehicle units; the resource pool currently used by the target vehicle unit can also be dynamically adjusted separately according to the packet error rate, the modulation coding method currently used by the target vehicle unit can be dynamically adjusted separately according to the service busy rate, and the transmission power of the target vehicle unit can be dynamically adjusted separately according to the number of surrounding vehicle units, etc., and the embodiments of the present application do not make specific limitations.

[0058] Through the above method, the wireless resources of the target vehicle unit can be dynamically adjusted according to the business busy rate corresponding to each resource pool on the target vehicle unit, the packet error rate of the target vehicle unit and the number of surrounding vehicle units, thereby improving the reliability of message transmission and effectively avoiding the problem of low reliability of message transmission due to external environmental influences and interference from surrounding vehicles.

[0059] In an optional embodiment, the above step S104, dynamically adjusting the wireless resources of the target on-board unit according to the service busy rate, the packet error rate and the number of surrounding on-board units, includes:

[0060] Dynamically adjust the resource pool and modulation coding mode currently used by the target vehicle-mounted unit according to the service busy rate and packet error rate; and

[0061] The transmission power of the target on-board unit is dynamically adjusted according to the number of surrounding on-board units.

[0062] Specifically, the wireless resources of the target on-board unit may include the resource pool, modulation and coding method, and transmission power currently used by the target on-board unit. When the wireless resources of the target on-board unit are dynamically adjusted according to the service busy rate, packet error rate, and the number of surrounding on-board units, the resource pool and modulation and coding method currently used by the target on-board unit can be dynamically adjusted according to the service busy rate and packet error rate. In this way, the service busy rate and packet error rate can be improved by adjusting the resource pool and modulation and coding method, thereby improving the reliability of message transmission. In addition, the transmission power of the target on-board unit can also be dynamically adjusted according to the number of surrounding on-board units. In this way, the interference caused by the surrounding on-board units can be improved by adjusting the transmission power, thereby improving the reliability of message transmission.

[0063] In an optional embodiment, the above steps, according to the service busy rate and the packet error rate, dynamically adjust the resource pool and the modulation and coding mode currently used by the target vehicle-mounted unit, including:

[0064] Determining whether the packet error rate is greater than a first preset threshold;

[0065] When it is determined that the packet error rate is greater than the first preset threshold, judging whether the resource pool currently used by the target on-board unit needs to be adjusted according to the service busy rate;

[0066] When it is determined that the resource pool currently used by the target vehicle unit needs to be adjusted, the resource pool currently used by the target vehicle unit is adjusted to the target resource pool, wherein the service busy rate corresponding to the target resource pool is lower than the service busy rate corresponding to the resource pool currently used by the target vehicle unit;

[0067] When it is determined that the resource pool currently used by the target vehicle-mounted unit does not need to be adjusted, the modulation and coding method currently used by the target vehicle-mounted unit is adjusted to the target modulation and coding method, wherein the order of the target modulation and coding method is lower than the order of the modulation and coding method currently used by the target vehicle-mounted unit.

[0068] Specifically, the first preset threshold can be set according to actual needs, such as 10%, 20%, etc., and is not specifically limited in the embodiment of the present application.

[0069] When dynamically adjusting the resource pool and modulation coding method currently used by the target vehicle unit according to the service busy rate and the packet error rate, it can be determined whether the packet error rate is greater than the first preset threshold value. If the packet error rate is greater than the first preset threshold value, it can be further determined whether the resource pool currently used by the target vehicle unit needs to be adjusted according to the service busy rate corresponding to each resource pool on the target vehicle unit. If it is determined that the resource pool currently used by the target vehicle unit needs to be adjusted, the resource pool currently used by the target vehicle unit can be adjusted to a target resource pool with a lower service busy rate. For example, assuming that the service busy rate of the resource pool currently used by the target vehicle unit is 80%, the resource pool currently used by the target vehicle unit can be adjusted to any other resource pool with a service busy rate lower than 80% to send and receive messages, thereby improving the reliability of message transmission. If it is determined that the resource pool currently used by the target vehicle unit does not need to be adjusted, the modulation coding method currently used by the target vehicle unit can be adjusted to a target modulation coding method with a lower order. For example, assuming that the modulation and coding mode currently used by the target vehicle-mounted unit is 64QAM, the modulation and coding mode currently used by the target vehicle-mounted unit can be adjusted to QPSK or 16QAM to perform modulation and coding of the message, thereby improving the reliability of message transmission.

[0070] In an optional embodiment, the above step of determining whether the resource pool currently used by the target on-board unit needs to be adjusted according to the service busy rate includes:

[0071] Determine whether the service busy rate corresponding to the resource pool currently used by the target on-board unit is greater than a second preset threshold;

[0072] When it is determined that the service busy rate corresponding to the resource pool currently used by the target on-board unit is greater than the second preset threshold, determining that the resource pool currently used by the target on-board unit needs to be adjusted;

[0073] When it is determined that the service busy rate corresponding to the resource pool currently used by the target on-board unit is less than or equal to the second preset threshold, it is determined that the resource pool currently used by the target on-board unit does not need to be adjusted.

[0074] Specifically, the second preset threshold can be set according to actual needs, such as 60%, 80%, etc., and is not specifically limited in the embodiment of the present application.

[0075] When judging whether the resource pool currently used by the target vehicle unit needs to be adjusted based on the business busy rate, you can first judge whether the business busy rate corresponding to the resource pool currently used by the target vehicle unit is greater than the second preset threshold. If the business busy rate corresponding to the resource pool currently used by the target vehicle unit is greater than the second preset threshold, it means that the business busy rate corresponding to the resource pool currently used by the target vehicle unit is greater than the maximum allowed threshold value. At this time, it can be determined that the resource pool currently used by the target vehicle unit needs to be adjusted; if the business busy rate corresponding to the resource pool currently used by the target vehicle unit is less than or equal to the second preset threshold, it means that the business busy rate corresponding to the resource pool currently used by the target vehicle unit is within the range of the maximum allowed threshold value. At this time, it can be determined that the resource pool currently used by the target vehicle unit does not need to be adjusted.

[0076] Through the above method, it is possible to accurately judge whether the resource pool currently used by the target vehicle unit needs to be adjusted based on the relationship between the business busy rate corresponding to the resource pool currently used by the target vehicle unit and the second preset threshold, so as to facilitate the subsequent determination of whether to adjust the resource pool or the modulation and coding method based on the judgment result.

[0077] In an optional embodiment, the above step of determining whether the resource pool currently used by the target on-board unit needs to be adjusted according to the service busy rate includes:

[0078] Compare the service busy rate corresponding to the resource pool currently used by the target on-board unit with the service busy rates corresponding to other resource pools;

[0079] Determine whether there is a service busy rate in the target vehicle-mounted unit that is lower than the service busy rate corresponding to the resource pool currently used by the target vehicle-mounted unit;

[0080] In the case where it is determined that the service busy rate in the target on-board unit is lower than the service busy rate corresponding to the resource pool currently used by the target on-board unit, determining that the resource pool currently used by the target on-board unit needs to be adjusted;

[0081] When it is determined that there is no service busy rate in the target onboard unit that is lower than the service busy rate corresponding to the resource pool currently used by the target onboard unit, it is determined that the resource pool currently used by the target onboard unit does not need to be adjusted.

[0082] Specifically, when judging whether the resource pool currently used by the target vehicle unit needs to be adjusted based on the business busy rate, the business busy rate corresponding to the resource pool currently used by the target vehicle unit can also be compared with the business busy rates corresponding to other resource pools to judge whether there is a business busy rate in the target vehicle unit that is lower than the business busy rate corresponding to the resource pool currently used by the target vehicle unit. If there is a business busy rate in the target vehicle unit that is lower than the business busy rate corresponding to the resource pool currently used by the target vehicle unit, it means that there is currently a better resource pool for sending and receiving messages, so it can be determined that the resource pool currently used by the target vehicle unit needs to be adjusted. If there is no business busy rate in the target vehicle unit that is lower than the business busy rate corresponding to the resource pool currently used by the target vehicle unit, it means that there is currently no better resource pool for sending and receiving messages, so it can be determined that the resource pool currently used by the target vehicle unit does not need to be adjusted.

[0083] Through the above method, it is possible to accurately judge whether the resource pool currently used by the target vehicle unit needs to be adjusted based on the relationship between the business busy rate corresponding to the resource pool currently used by the target vehicle unit and the business busy rate corresponding to other resource pools, so as to facilitate the subsequent determination of whether to adjust the resource pool or the modulation and coding method based on the judgment result.

[0084] In an optional embodiment, the above step of dynamically adjusting the transmission power of the target on-board unit according to the number of surrounding on-board units includes:

[0085] Determining whether the number of surrounding on-board units is greater than a third preset threshold;

[0086] When it is determined that the number of surrounding on-board units is greater than a third preset threshold, reducing the transmission power of the target on-board unit;

[0087] When it is determined that the number of surrounding on-board units is less than or equal to the third preset threshold, the transmission power of the target on-board unit is kept unchanged.

[0088] Specifically, the third preset threshold can be set according to actual needs, such as 5, 10, etc., and is not specifically limited in the embodiment of the present application.

[0089] When dynamically adjusting the transmission power of the target on-board unit according to the number of on-board units in the surroundings, it is possible to first determine whether the number of on-board units in the surroundings is greater than a third preset threshold value. If the number of on-board units in the surroundings is greater than the third preset threshold value, it means that the number of on-board units in the surroundings is greater than the maximum allowable threshold value, and there is a large signal interference between vehicles. At this time, the transmission power of the target on-board unit can be reduced to reduce signal interference. The reason why signal interference can be reduced when the transmission power of the target on-board unit is reduced is that the transmission power of each on-board unit in the surroundings will also be reduced. If the number of on-board units in the surroundings is less than or equal to the third preset threshold value, it means that the number of on-board units in the surroundings is within the maximum allowable threshold range, and the signal interference is small. At this time, the transmission power of the target on-board unit can be kept unchanged.

[0090] Through the above manner, the transmission power of the target on-board unit can be dynamically adjusted according to the number of surrounding on-board units, so as to reduce the interference of the surrounding on-board units to the target on-board unit.

[0091] In an optional embodiment, the above step 102, determining the packet error rate of the target on-board unit and the number of surrounding on-board units according to the field information in the received message, includes:

[0092] Obtaining first field information and second field information in the message received within a preset time period, wherein the first field information is used to record the number of messages sent by the onboard unit, and the second field information is used to record identification information of the onboard unit;

[0093] Counting the first field information in the messages received within a preset time period to obtain a packet error rate;

[0094] The second field information in the messages received within a preset time period is counted to obtain the number of surrounding on-board units.

[0095] Specifically, the above-mentioned preset duration can be set according to actual needs, such as 2 seconds, 5 seconds, etc., and the embodiment of the present application does not make specific limitations.

[0096] When determining the packet error rate of the target on-board unit and the number of on-board units around it according to the field information in the received message, the first field information and the second field information in the message received within the preset time length can be first obtained, and then the first field information in the message received within the preset time length is counted to obtain the packet error rate, and the second field information in the message received within the preset time length is counted to obtain the number of on-board units around it. For example, assuming that the message is a BSM message, the MsgCount field information in the BSM message can be used as the first field information. When the on-board unit continuously sends BSM messages, the value of the MsgCount field will be continuously accumulated. Therefore, the packet error rate can be determined by monitoring and counting the value in the MsgCount field; at the same time, the vehicle ID field information in the BSM message can also be used as the second field information. Since the vehicle ID field records the identification information of the on-board unit that sends the BSM message, the number of on-board units around the target on-board unit can be determined by monitoring and counting the value in the vehicle ID field. Of course, the first field information and the second field information can also be customized based on the existing communication protocol by using the free fields in the message.

[0097] Through the above method, the packet error rate of the target on-board unit and the number of surrounding on-board units can be accurately determined according to the field information in the received message, so that the target on-board unit can timely understand the message sending and receiving situation and road congestion situation and adjust the wireless resources in time.

[0098] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of a message sending device provided in an embodiment of the present application. Figure 2 As shown, the message sending device 200 includes:

[0099] An acquisition module 202 is used to acquire a service busy rate corresponding to each resource pool on a target vehicle-mounted unit, wherein the target vehicle-mounted unit is any vehicle-mounted unit, and the target vehicle-mounted unit includes multiple resource pools;

[0100] The determination module 204 is used to receive messages sent by other on-board units located around the target on-board unit, and determine the packet error rate of the target on-board unit and the number of surrounding on-board units based on field information in the received messages;

[0101] The adjustment module 206 is used to dynamically adjust the wireless resources of the target onboard unit according to the service busy rate, the packet error rate and the number of surrounding onboard units, and send the to-be-sent message on the target onboard unit according to the adjusted wireless resources.

[0102] Furthermore, the adjustment module 206 includes:

[0103] A first adjustment submodule is used to dynamically adjust the resource pool and modulation coding mode currently used by the target vehicle-mounted unit according to the service busy rate and the packet error rate; and

[0104] The second adjustment submodule is used to dynamically adjust the transmission power of the target on-board unit according to the number of surrounding on-board units.

[0105] Furthermore, the first adjustment submodule includes:

[0106] A first judging unit, used to judge whether the packet error rate is greater than a first preset threshold;

[0107] A second judgment unit is used to judge whether the resource pool currently used by the target vehicle-mounted unit needs to be adjusted according to the service busy rate when it is determined that the packet error rate is greater than the first preset threshold;

[0108] A first adjustment unit is used to adjust the resource pool currently used by the target vehicle-mounted unit to the target resource pool when it is determined that the resource pool currently used by the target vehicle-mounted unit needs to be adjusted, wherein the service busy rate corresponding to the target resource pool is lower than the service busy rate corresponding to the resource pool currently used by the target vehicle-mounted unit;

[0109] The second adjustment unit is used to adjust the modulation and coding method currently used by the target vehicle-mounted unit to the target modulation and coding method when it is determined that the resource pool currently used by the target vehicle-mounted unit does not need to be adjusted, wherein the order of the target modulation and coding method is lower than the order of the modulation and coding method currently used by the target vehicle-mounted unit.

[0110] Furthermore, the second judgment unit is specifically used for:

[0111] Determine whether the service busy rate corresponding to the resource pool currently used by the target on-board unit is greater than a second preset threshold;

[0112] When it is determined that the service busy rate corresponding to the resource pool currently used by the target on-board unit is greater than the second preset threshold, determining that the resource pool currently used by the target on-board unit needs to be adjusted;

[0113] When it is determined that the service busy rate corresponding to the resource pool currently used by the target on-board unit is less than or equal to the second preset threshold, it is determined that the resource pool currently used by the target on-board unit does not need to be adjusted.

[0114] Furthermore, the second judgment unit is further specifically configured to:

[0115] Compare the service busy rate corresponding to the resource pool currently used by the target on-board unit with the service busy rates corresponding to other resource pools;

[0116] Determine whether there is a service busy rate in the target vehicle-mounted unit that is lower than the service busy rate corresponding to the resource pool currently used by the target vehicle-mounted unit;

[0117] In the case where it is determined that the service busy rate in the target on-board unit is lower than the service busy rate corresponding to the resource pool currently used by the target on-board unit, determining that the resource pool currently used by the target on-board unit needs to be adjusted;

[0118] When it is determined that there is no service busy rate in the target onboard unit that is lower than the service busy rate corresponding to the resource pool currently used by the target onboard unit, it is determined that the resource pool currently used by the target onboard unit does not need to be adjusted.

[0119] Furthermore, the second adjustment submodule includes:

[0120] A third judgment unit, used to judge whether the number of surrounding on-board units is greater than a third preset threshold;

[0121] A third adjustment unit is used to reduce the transmission power of the target vehicle-mounted unit when it is determined that the number of surrounding vehicle-mounted units is greater than a third preset threshold;

[0122] The maintaining unit is used to maintain the transmission power of the target vehicle-mounted unit unchanged when it is determined that the number of surrounding vehicle-mounted units is less than or equal to a third preset threshold.

[0123] Further, the determination module 204 includes:

[0124] An acquisition submodule, used to acquire first field information and second field information in the message received within a preset time period, wherein the first field information is used to record the number of messages sent by the on-board unit, and the second field information is used to record the identification information of the on-board unit;

[0125] A first statistical submodule, used to collect statistics on the first field information in the messages received within a preset time period to obtain a packet error rate;

[0126] The second statistical submodule is used to count the second field information in the messages received within a preset time period to obtain the number of surrounding on-board units.

[0127] It should be noted that the message sending device 200 can implement the above Figure 1 The steps of the message sending method provided in the method embodiment shown can achieve the same technical effect, and will not be described one by one here.

[0128] like Figure 3As shown, the embodiment of the present application further provides an electronic device, including a processor 311, a communication interface 312, a memory 313 and a communication bus 314, wherein the processor 311, the communication interface 312, and the memory 313 communicate with each other through the communication bus 314.

[0129] Memory 313, used for storing computer programs;

[0130] In one embodiment of the present application, the processor 311 is used to implement the steps of the message sending method provided by any of the aforementioned method embodiments when executing the program stored in the memory 313.

[0131] The electronic device provided in the embodiment of the present application may specifically be a module capable of realizing a communication function or a terminal device including the module, etc. The terminal device may be a mobile terminal or a smart terminal. The mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a laptop computer, etc.; the smart terminal may specifically be a terminal including a wireless communication module such as a smart car, a smart watch, a shared bicycle, a smart cabinet, etc.; the module may specifically be a wireless communication module, such as any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, and a NB-IOT communication module.

[0132] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the message sending method provided in any of the aforementioned method embodiments are implemented.

[0133] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0134] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A message sending method, characterized in that: The method comprises: Obtaining a service busy rate corresponding to each resource pool on a target onboard unit, wherein the target onboard unit is any onboard unit, and the target onboard unit includes multiple resource pools; Receiving messages sent by other on-board units located around the target on-board unit, and determining the packet error rate of the target on-board unit and the number of surrounding on-board units according to field information in the received messages; The wireless resources of the target on-board unit are dynamically adjusted according to the service busy rate, the packet error rate and the number of the surrounding on-board units, and the to-be-sent message on the target on-board unit is sent according to the adjusted wireless resources.

2. The method according to claim 1, characterized in that The dynamically adjusting the wireless resources of the target on-board unit according to the service busy rate, the packet error rate and the number of the surrounding on-board units includes: According to the service busy rate and the packet error rate, dynamically adjust the resource pool and modulation coding mode currently used by the target onboard unit; and, The transmission power of the target on-board unit is dynamically adjusted according to the number of the surrounding on-board units.

3. The method according to claim 2, characterized in that The dynamically adjusting the resource pool and modulation coding mode currently used by the target onboard unit according to the service busy rate and the packet error rate includes: Determining whether the packet error rate is greater than a first preset threshold; In the case where it is determined that the packet error rate is greater than the first preset threshold, judging whether the resource pool currently used by the target onboard unit needs to be adjusted according to the service busy rate; In the case where it is determined that the resource pool currently used by the target vehicle unit needs to be adjusted, adjusting the resource pool currently used by the target vehicle unit to the target resource pool, wherein the service busy rate corresponding to the target resource pool is lower than the service busy rate corresponding to the resource pool currently used by the target vehicle unit; When it is determined that the resource pool currently used by the target vehicle-mounted unit does not need to be adjusted, the modulation and coding mode currently used by the target vehicle-mounted unit is adjusted to the target modulation and coding mode, wherein the order of the target modulation and coding mode is lower than the order of the modulation and coding mode currently used by the target vehicle-mounted unit.

4. The method according to claim 3, characterized in that The determining, according to the service busy rate, whether a resource pool currently used by the target on-board unit needs to be adjusted includes: Determine whether the service busy rate corresponding to the resource pool currently used by the target on-board unit is greater than a second preset threshold; When it is determined that the service busy rate corresponding to the resource pool currently used by the target on-board unit is greater than the second preset threshold, determining that the resource pool currently used by the target on-board unit needs to be adjusted; When it is determined that the service busy rate corresponding to the resource pool currently used by the target on-board unit is less than or equal to the second preset threshold, it is determined that the resource pool currently used by the target on-board unit does not need to be adjusted.

5. The method according to claim 3, characterized in that: The determining, according to the service busy rate, whether a resource pool currently used by the target on-board unit needs to be adjusted includes: Compare the service busy rate corresponding to the resource pool currently used by the target on-board unit with the service busy rates corresponding to other resource pools; Determine whether there is a service busy rate in the target vehicle-mounted unit that is lower than the service busy rate corresponding to the resource pool currently used by the target vehicle-mounted unit; In the case where it is determined that the service busy rate in the target vehicle unit is lower than the service busy rate corresponding to the resource pool currently used by the target vehicle unit, determining that the resource pool currently used by the target vehicle unit needs to be adjusted; When it is determined that there is no service busy rate in the target onboard unit that is lower than the service busy rate corresponding to the resource pool currently used by the target onboard unit, it is determined that the resource pool currently used by the target onboard unit does not need to be adjusted.

6. The method according to claim 2, characterized in that The dynamically adjusting the transmission power of the target on-board unit according to the number of the surrounding on-board units includes: Determining whether the number of the surrounding on-board units is greater than a third preset threshold; When it is determined that the number of the surrounding on-board units is greater than the third preset threshold, reducing the transmission power of the target on-board unit; When it is determined that the number of the surrounding on-board units is less than or equal to the third preset threshold, the transmission power of the target on-board unit is kept unchanged.

7. The method according to claim 1, characterized in that The step of determining the packet error rate of the target on-board unit and the number of surrounding on-board units according to the field information in the received message includes: Obtaining first field information and second field information in a message received within a preset time period, wherein the first field information is used to record the number of messages sent by the onboard unit, and the second field information is used to record identification information of the onboard unit; Collecting statistics on the first field information in the messages received within a preset time period to obtain the packet error rate; The second field information in the messages received within a preset time period is counted to obtain the number of the surrounding on-board units.

8. A message sending device, characterized in that: The device comprises: An acquisition module, used for acquiring a service busy rate corresponding to each resource pool on a target vehicle-mounted unit, wherein the target vehicle-mounted unit is any vehicle-mounted unit, and the target vehicle-mounted unit includes a plurality of resource pools; A determination module, used for receiving messages sent by other on-board units located around the target on-board unit, and determining the packet error rate of the target on-board unit and the number of surrounding on-board units according to field information in the received messages; The adjustment module is used to dynamically adjust the wireless resources of the target vehicle-mounted unit according to the business busy rate, the packet error rate and the number of the surrounding vehicle-mounted units, and send the to-be-sent message on the target vehicle-mounted unit according to the adjusted wireless resources.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the message sending method described in any one of claims 1-7 when executing the program stored in the memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the message sending method according to any one of claims 1 to 7 is implemented.