Communication method and device based on service quality, equipment and storage medium

By dynamically updating the service quality policy and adjusting the communication strategy of the publishing end and the receiving end according to the throughput and delay of autonomous driving data, the problem of inefficient configuration of communication strategies between nodes in the autonomous driving system is solved, and more efficient adaptability is achieved. and flexibility.

CN118677794APending Publication Date: 2024-09-20SINO TRUK JINAN POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410941812.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The data communication strategy configuration between nodes in the autonomous driving system is inefficient and difficult to adapt to different data transmission needs, making management and maintenance difficult.

Method used

Obtain the throughput and communication delay of autonomous driving data through the receiving end, dynamically update the service quality policy, and adjust the communication strategy between the publishing end and the receiving end to achieve adaptive data transmission.

Benefits of technology

It improves the timeliness and adaptability of the communication strategy between nodes in the autonomous driving system, simplifies the communication strategy settings, and improves the flexibility and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677794A
    Figure CN118677794A
Patent Text Reader

Abstract

The invention provides a communication method and device based on service quality, equipment and a storage medium, and particularly relates to the technical field of automatic driving. According to the method, automatic driving data are obtained through a receiving end, data throughput and communication delay corresponding to the automatic driving data are determined, and the receiving end is obtained based on service quality initial strategy configuration. And determining a service quality parameter according to the data throughput and the communication delay, and updating the service quality initial strategy by using the service quality parameter to obtain a target service quality strategy. And controlling the receiving end and the publishing end to communicate according to the target service quality strategy. According to the method, the timeliness and the adaptability of communication strategy setting among different nodes in the automatic driving system can be improved, so that the communication strategy setting is simple and effective.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and in particular to a communication method, apparatus, device and storage medium based on quality of service. Background Art

[0002] The autonomous driving system is composed of multiple modules. The orderly information interaction between the modules provides support and guarantee for the stable operation of the entire system. Therefore, the data communication between the modules in the autonomous driving system is very important. The Robot Operating System 2 (ROS2) uses the Data Distribution Service (DDS) based on the Real-time Publish-Subscribe Protocol (RTPS) as the middle layer, which can realize real-time communication between points and has been widely used in the field of autonomous driving.

[0003] As a communication middleware, ROS2 is widely used in the field of autonomous driving. Quality of Service (QoS) is a very important concept in the field of communication, which is used to control the communication strategy between publishers and subscribers. The main role of QoS in ROS2 is to manage and optimize the communication between nodes to meet the needs of different application scenarios. QoS can help control the reliability, latency, bandwidth and priority of data transmission. Specifically: QoS can be configured as "Reliable" mode, in which the RTPS specification is used for feedback retransmission so that messages can be transmitted reliably. QoS can be configured as "Best effort" mode, in which no additional reliable processing is required and messages can be transmitted quickly. QoS can be configured as "Volatile" mode, in which messages only exist when published, or "Transient Local" mode, in which messages are still available after the publisher goes offline. QoS can be configured as "Keep All" mode, in which all messages are retained, or "Keep Last" mode, in which only the last N messages are retained.

[0004] There are a large number of nodes in the autonomous driving system, and the nodes communicate with each other to ensure the realization of the autonomous driving function of the whole vehicle. A large amount of data needs to be transmitted between multiple nodes, but the data format and data volume of each node are significantly different. For different data, there are different transmission requirements between nodes, and QoS needs to be configured one by one, which is inefficient and not conducive to management and maintenance. Summary of the invention

[0005] The present application provides a communication method, apparatus, device and storage medium based on quality of service to address the limitation that the autonomous driving system cannot be adaptively corrected.

[0006] In a first aspect, the present application provides a communication method based on quality of service, comprising:

[0007] Acquire autonomous driving data through a receiving end, and determine a data throughput and a communication delay corresponding to the autonomous driving data, wherein the receiving end is configured based on an initial quality of service policy;

[0008] Determining a quality of service parameter according to the data throughput and the communication delay, and using the quality of service parameter to update the initial quality of service strategy to obtain a target quality of service strategy;

[0009] The receiving end and the publishing end are controlled to communicate according to the target service quality policy.

[0010] Optionally, before acquiring the autonomous driving data through the receiving end, the method further includes:

[0011] Receive environmental information of the vehicle during autonomous driving collected by multiple sensors;

[0012] The environmental information is modularly processed, and the environmental information is classified according to topics to obtain autonomous driving data of at least one topic.

[0013] Optionally, obtaining the autonomous driving data through the receiving end includes:

[0014] Based on the at least one topic, determining a corresponding publishing end and a receiving end;

[0015] The publishing end and the receiving end are configured using the service quality initial strategy to obtain the configured publishing end and the receiving end, and the configured publishing end is controlled to publish the autonomous driving data of the corresponding topic to the receiving end according to the service quality initial strategy;

[0016] The autonomous driving data corresponding to the topic is obtained through the receiving end.

[0017] Optionally, determining a quality of service parameter according to the data throughput and the communication delay includes:

[0018] Determining a candidate quality of service parameter according to the data throughput and the communication delay;

[0019] Determining whether the candidate quality of service parameters match the initial quality of service parameters corresponding to the initial quality of service policy;

[0020] In a case where the candidate quality of service parameter does not match the initial quality of service parameter, the candidate quality of service parameter is determined as the quality of service parameter.

[0021] Optionally, the updating the initial quality of service policy by using the quality of service parameter to obtain a target quality of service policy includes:

[0022] Determining whether a takeover response message is received, the takeover response message being used to indicate that the vehicle currently exits the automatic driving program;

[0023] When the takeover response information is received, the initial quality of service policy is updated according to the quality of service parameters to obtain a target quality of service policy.

[0024] Optionally, controlling the receiving end and the publishing end to communicate according to the target service quality policy includes:

[0025] Based on the target service quality strategy, the publisher and the receiver are reconfigured, and when the vehicle re-enters the autonomous driving program, communication is performed based on the reconfigured publisher and receiver.

[0026] In a second aspect, the present application provides a communication device based on quality of service, comprising:

[0027] an acquisition module, configured to acquire autonomous driving data through a receiving end and determine a data throughput and a communication delay corresponding to the autonomous driving data, wherein the receiving end is configured based on an initial quality of service policy;

[0028] A determination module, configured to determine a quality of service parameter according to the data throughput and the communication delay, and to update the initial quality of service policy using the quality of service parameter to obtain a target quality of service policy;

[0029] The control module is used to control the receiving end and the publishing end to communicate according to the target service quality policy.

[0030] Optionally, the device further includes: a receiving module and a processing module;

[0031] The receiving module is used to receive environmental information of the vehicle during the automatic driving process collected by multiple sensors;

[0032] The processing module is used to perform modular processing on the environmental information and classify the environmental information according to topics to obtain autonomous driving data of at least one topic.

[0033] Optionally, the determination module is further used to determine a corresponding publishing end and a receiving end based on the at least one topic;

[0034] The control module is further used to configure the publishing end and the receiving end using the service quality initial strategy to obtain the configured publishing end and the receiving end, and control the configured publishing end to publish the autonomous driving data of the corresponding topic to the receiving end according to the service quality initial strategy;

[0035] The acquisition module is also used to acquire the autonomous driving data corresponding to the topic through the receiving end.

[0036] Optionally, the device further includes: a judgment module;

[0037] The determination module is further configured to determine a candidate quality of service parameter according to the data throughput and the communication delay;

[0038] The judging module is used to judge whether the candidate quality of service parameters match the initial quality of service parameters corresponding to the initial quality of service policy;

[0039] The determining module is further configured to determine the candidate quality of service parameter as the quality of service parameter when the candidate quality of service parameter does not match the initial quality of service parameter.

[0040] Optionally, the judgment module is further used to judge whether a takeover response message is received, and the takeover response message is used to indicate that the vehicle currently exits the automatic driving program;

[0041] The processing module is further configured to update the initial quality of service policy according to the quality of service parameters to obtain a target quality of service policy when the takeover response information is received.

[0042] Optionally, the device further includes: a configuration module;

[0043] The configuration module is used to reconfigure the publisher and the receiver based on the target service quality strategy, and communicate based on the reconfigured publisher and receiver when the vehicle re-enters the autonomous driving program.

[0044] In a third aspect, the present application provides a communication device based on quality of service, the device comprising:

[0045] Memory;

[0046] processor;

[0047] Wherein, the memory stores computer-executable instructions;

[0048] The processor executes the computer-executable instructions stored in the memory to implement the quality of service-based communication method as described in the above-mentioned first aspect and various possible implementations of the first aspect.

[0049] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the quality of service-based communication method as described in the first aspect and various possible implementations of the first aspect.

[0050] The communication method, device, equipment and storage medium based on quality of service provided in the present application obtain autonomous driving data through the receiving end, and determine the data throughput and communication delay corresponding to the autonomous driving data. The receiving end is configured based on the initial quality of service strategy. According to the data throughput and communication delay, the quality of service parameters are determined, and the initial quality of service strategy is updated using the quality of service parameters to obtain the target quality of service strategy. The receiving end and the publishing end are controlled to communicate according to the target quality of service strategy. This method can improve the timeliness and adaptability of the communication strategy setting between different nodes in the autonomous driving system, making the communication strategy setting simple and effective. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0052] Figure 1 A schematic diagram of a communication method based on quality of service provided in this application;

[0053] Figure 2 A process diagram of a communication method based on quality of service provided in this application Figure 1 ;

[0054] Figure 3 A process diagram of a communication method based on quality of service provided in this application Figure 2 ;

[0055] Figure 4 A process diagram of a communication method based on quality of service provided in this application Figure 3 ;

[0056] Figure 5 A schematic diagram of the structure of a communication device based on quality of service provided by the present application;

[0057] Figure 6 A schematic diagram of the structure of a communication device based on quality of service provided in this application.

[0058] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims, rather than all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0060] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, products or devices.

[0061] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0062] First, the terms involved in this application are explained:

[0063] ROS2 (Robot Operating System 2) is an open source framework for robotic systems that provides a set of tools and libraries to help developers create complex robotic applications. One of the core concepts of ROS2 is "Topic", which is a mechanism for communication between different nodes.

[0064] Topic: In ROS2, a topic is a publish / subscribe communication mechanism. A topic is a named data stream through which different nodes can exchange data. Each topic has a unique name and a specific data type, a unique name that identifies the topic. Publishers and subscribers use this name to publish and receive messages.

[0065] Publisher: A publisher is a node responsible for sending data to a topic. A topic can have one or more publishers. The publisher encapsulates the data into a message and publishes it to the specified topic.

[0066] Receiver (Subscriber): A receiver is a node responsible for receiving data from a topic. A topic can have one or more receivers. A receiver subscribes to a topic and receives new messages when they are published to the topic.

[0067] The autonomous driving system is composed of multiple modules. The orderly information interaction between the modules provides support and guarantee for the stable operation of the entire system. Therefore, data communication between the modules in the autonomous driving system is very important. ROS2 uses the data distribution service based on the RTPS protocol as the middle layer, which can realize real-time communication between points and has a wide range of applications in the field of autonomous driving.

[0068] As a communication middleware, ROS2 is widely used in the field of autonomous driving. QoS is a very important concept in the field of communication, which is used to control the communication strategy between publishers and subscribers. The main role of QoS in ROS2 is to manage and optimize the communication between nodes to meet the needs of different application scenarios. QoS can help control the reliability, latency, bandwidth and priority of data transmission. Specifically: QoS can be configured as "Reliable" mode, in which the RTPS specification is used for feedback retransmission so that messages can be transmitted reliably; QoS can be configured as "Besteffort" mode, in which no additional reliable processing is required and messages can be transmitted quickly. QoS can be configured as "Volatile" mode, in which messages only exist when published, or "Transient Local" mode, in which messages are still available after the publisher goes offline. QoS can be configured as "Keep All" mode, in which all messages are retained, or "Keep Last" mode, in which only the last N messages are retained.

[0069] There are a large number of nodes in the autonomous driving system, and the nodes communicate with each other to ensure the realization of the autonomous driving function of the whole vehicle. A large amount of data needs to be transmitted between multiple nodes, but the data format and data volume of each node are significantly different. For different data, there are different transmission requirements between nodes, and QoS needs to be configured one by one, which is inefficient and not conducive to management and maintenance.

[0070] In response to the above problems, this application proposes a communication method based on quality of service. This method obtains environmental information through external sensors, publishes data using ROS2 after modular processing by computers, and loads QoS policies from YAML files. Each module receives topic data on demand, and the system monitors the throughput and latency of the communication interface in real time, and dynamically adjusts the QoS policy in the YAML file. After detecting the change, the computer sends a takeover request, and after the takeover is completed, the new QoS policy is applied to achieve adaptive ROS2 data communication.

[0071] Figure 1 A schematic diagram of a communication method based on quality of service provided by this application. Figure 1 As shown in the figure, the autonomous driving system includes: perception sensors, computing management units and wire-controlled chassis. The perception sensors are used to collect environmental information collected by the vehicle during the autonomous driving process. The computing management unit is the vehicle's processor, which is used to convert and communicate the collected data to obtain predicted environmental information, generate various decision information required in the vehicle's autonomous driving process, and output the decision information to the wire-controlled chassis, which controls the vehicle to perform autonomous driving based on the information.

[0072] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0073] Figure 2 A flow chart of a communication method based on quality of service provided in an embodiment of the present application Figure 1 , applied to computing management units, such as Figure 2 As shown, the method includes:

[0074] S101: Obtain autonomous driving data through a receiving end, and determine a data throughput and a communication delay corresponding to the autonomous driving data, wherein the receiving end is configured based on an initial quality of service strategy.

[0075] Among them, autonomous driving data consists of two aspects of data. On the one hand, it is detected by sensors deployed on the vehicle, and on the other hand, it is data transmitted between different modules in the autonomous driving system through ROS2. Data throughput refers to the amount of data transmitted through the interface within a certain period of time, usually expressed in units such as bits per second (bps) and bytes per second (Bps). Communication delay refers to the one-way transmission delay from the topic sender to the topic receiver. The delay set includes the average delay, maximum delay, and minimum delay of a certain number of frames.

[0076] It can be understood that the receiving end can adopt its own configured service quality initial strategy to receive data that matches the topic it has set, and calculate and determine the data throughput and communication delay of the port based on the time and efficiency of receiving the data, so that the service quality strategy can be modified according to the determined data throughput and communication delay to meet the requirements of data communication.

[0077] S102: Determine a quality of service parameter according to the data throughput and the communication delay, and use the quality of service parameter to update the initial quality of service policy to obtain a target quality of service policy.

[0078] The service quality parameters are parameters corresponding to the service quality policy. The service quality policy can be introduced by reading a YAML file, for example.

[0079] It is understandable that in different receiving ports, the service quality strategy for receiving data may be different, so the service quality parameters for changing the service quality strategy can be determined according to the throughput and communication delay, and the initial service quality strategy can be modified according to the service quality parameters to obtain the target service quality strategy that meets the requirements of data exchange communication. Please refer to the following for the update requirements of the target service quality strategy, which will not be repeated here.

[0080] S103: Control the receiving end and the publishing end to communicate according to the target service quality policy.

[0081] It can be understood that after obtaining the target service quality policy, the service quality policy is reconfigured for the receiving end and the publisher corresponding to the receiving end according to the target service quality policy. It is ensured that when the publisher is used again to transmit and communicate data with the receiving end, the new service quality policy can be used to receive data so that the data transmission meets the service quality policy. For example, the service quality policy can indicate to increase or decrease the data transmission rate during the data transmission process.

[0082] This embodiment provides a communication method based on quality of service, which obtains autonomous driving data through a receiving end, and determines the data throughput and communication delay corresponding to the autonomous driving data. The receiving end is configured based on the initial quality of service strategy. According to the data throughput and communication delay, the quality of service parameters are determined, and the initial quality of service strategy is updated using the quality of service parameters to obtain the target quality of service strategy. The receiving end and the publishing end are controlled to communicate according to the target quality of service strategy. This method can improve the timeliness and adaptability of the communication strategy setting between different nodes in the autonomous driving system, making the communication strategy setting simple and effective.

[0083] Figure 3 A flow chart of a communication method based on quality of service provided in an embodiment of the present application Figure 2 This embodiment is in Figure 2 Based on the embodiment, a possible implementation method for configuring the initial strategy of the publishing end and the receiving end is described in detail. Figure 3 As shown, the method includes:

[0084] S201: Receive environmental information of the vehicle during the autonomous driving process collected by multiple sensors.

[0085] It is understandable that before the computing management unit, i.e., the processor, processes the data, it is first necessary to obtain the environmental information of the autonomous driving vehicle through multiple external sensors. For example, multiple external sensors may include: cameras, lidar, millimeter wave radar, and integrated navigation. Environmental information refers to all information that may affect the autonomous driving vehicle, and the environmental information may include: road type, lane information, road signs, weather conditions, geographic location, surrounding vehicles, and surrounding obstacles.

[0086] S202: Modularize the environmental information and classify the environmental information by topic to obtain autonomous driving data of at least one topic.

[0087] Among them, modular processing refers to converting the format of environmental information and converting the data in the environmental information into a data format suitable for the processor interface, so that the environmental information can be transmitted interactively among multiple node modules of the processor.

[0088] It is understandable that the processor publishes data through ROS2 topics during data processing, classifies environmental information according to the established topic names, and determines the autonomous driving data corresponding to each topic name. When introducing ROS2 topics, multiple publishers, multiple receivers and multiple topics have been set, and topics are used to connect publishers and receivers. There are many forms of ROS2 topic communication, one publisher can correspond to one receiver, one publisher can correspond to multiple receivers, or multiple publishers can correspond to one receiver, and multiple publishers can correspond to multiple receivers.

[0089] The publisher explicitly specifies the topic name to which the data is to be published when it is created. This is usually specified through parameters or configuration. The receiver (i.e., subscriber) explicitly specifies the topic name to subscribe to when it is created. This is also specified through parameters or configuration. Topic names must be unique in the ROS2 system to ensure that receivers can accurately identify and subscribe to the topics they are interested in.

[0090] S203: Determine a corresponding publishing end and receiving end based on the at least one topic.

[0091] It can be understood that after the environmental data is classified according to the topic name, it can be determined which topic names the environmental data includes at this time, and the corresponding publisher and receiver can be found according to the topic name, and the publisher and receiver found will transmit data. Before data transmission, the service quality policy needs to be configured for the publisher and receiver.

[0092] S204: Use the service quality initial strategy to configure the publishing end and the receiving end to obtain the configured publishing end and receiving end, and control the configured publishing end to publish the autonomous driving data of the corresponding topic to the receiving end according to the service quality initial strategy.

[0093] Among them, the initial policy of quality of service is also called QoS initial policy. QoS policy is a network technology used to control and manage the transmission of data streams in the network to ensure that the network can provide appropriate performance guarantees for different applications and services. The implementation of QoS policy aims to improve the reliability, stability and efficiency of the network and meet the different needs of users for network quality.

[0094] It is understandable that the QoS policy can be changed according to the data transmission, so when the publisher and the receiver are used for data transmission for the first time, a unified QoS initial policy is used to configure the publisher and the receiver. The QoS initial policy is introduced by reading the YAML file. The QoS initial policy is a policy that satisfies the data communication of all ports in the autonomous driving system. After the publisher is configured, it will publish the autonomous driving data to the corresponding topic according to the QoS initial policy, so that the receiver subscribed to the corresponding topic can receive the autonomous driving data in time.

[0095] Among them, the QoS initial policy is set from the aspects of History, Reliability, History (Depth), Durability, Lifespan, Deadline, Liveliness, etc.

[0096] S205: Obtaining the autonomous driving data corresponding to the topic through the receiving end.

[0097] It can be understood that the receiving end can receive the autonomous driving data of the subscribed topic according to the QoS initial policy, and can determine whether the QoS policy needs to be changed based on the time and efficiency of receiving the autonomous driving data.

[0098] For example, QoS policies can include priority policies and bandwidth management policies. Priority policies: High-priority traffic always takes precedence over low-priority traffic. Different weights can also be assigned to traffic of different priorities to ensure that high-priority traffic gets more bandwidth. Bandwidth management policies: A certain amount of bandwidth can be reserved for key applications to ensure that they can operate normally under high traffic conditions. Bandwidth usage of certain applications or users can also be restricted to prevent them from occupying too many network resources.

[0099] This embodiment provides a communication method based on quality of service, which receives environmental information of a vehicle during an autonomous driving process collected by multiple sensors. The environmental information is processed modularly, and the environmental information is classified and processed according to topics to obtain autonomous driving data of at least one topic. Based on at least one topic, the corresponding publisher and receiver are determined. The publisher and receiver are configured using the quality of service initial strategy to obtain the configured publisher and receiver, and the configured publisher is controlled to publish the autonomous driving data of the corresponding topic to the receiver according to the quality of service initial strategy. The autonomous driving data corresponding to the topic is obtained through the receiver. This method can ensure that the initial configuration of the publisher and the receiver meets the communication requirements of the autonomous driving system.

[0100] Figure 4 A flow chart of a communication method based on quality of service provided in an embodiment of the present application Figure 3 This embodiment is in Figure 2 Based on the embodiment, a possible implementation of the communication method based on quality of service is described in detail. Figure 4 As shown, the method includes:

[0101] S301: Obtain autonomous driving data through a receiving end, and determine the data throughput and communication delay corresponding to the autonomous driving data.

[0102] Among them, step S301 is similar to step S101 and will not be repeated here.

[0103] S302: Determine candidate quality of service parameters according to the data throughput and the communication delay.

[0104] It can be understood that the service quality policy is introduced through the YAML file, so the purpose of modifying the service quality policy can be achieved by modifying the YAML file.

[0105] S303: Determine whether the candidate QoS parameters match the initial QoS parameters corresponding to the initial QoS policy. If so, execute step S302; if not, execute step S304.

[0106] It can be understood that the initial service quality parameters are the constituent parameters of the YAML file of the service quality initial strategy, and the candidate service quality parameters can change the known throughput and communication delay of the communication port, and are the constituent parameters of the YAML file generated based on the known throughput and communication delay.

[0107] If the candidate service quality parameters match the initial service quality parameters, it means that there is no need to change the data receiving policy of the communication port. At this time, the QoS initial policy is the preferred policy that satisfies the data communication of the communication port.

[0108] S304: Determine the candidate quality of service parameter as the quality of service parameter.

[0109] It can be understood that if the candidate service quality parameters do not match the initial service quality parameters, it means that the port communication strategy of the existing receiving end does not meet the data communication process, and the YAML file corresponding to the service quality strategy needs to be modified. Therefore, the candidate service quality parameters are determined as the service quality parameters so that the YAML file can be modified subsequently according to the determined service quality parameters.

[0110] S305: Determine whether a takeover response message is received, if so, execute step S306, if not, execute step S301.

[0111] Among them, the takeover response information is used to indicate that the vehicle is currently exiting the automatic driving program.

[0112] It can be understood that the QoS policy is used in the data communication process when the processor in the autonomous driving system processes data information, so the QoS policy cannot be updated during the use of the autonomous driving function. Therefore, after determining the service quality parameters, the system will send a takeover signal to the driver. The takeover signal can be, for example, flashing instruments, voice prompts, and steering wheel vibrations. And monitor in real time whether the takeover response information is received. If the takeover response information is received, it means that the autonomous driving program has been exited at this time, and the vehicle has a driver to take over the operation. If the takeover response information is not received, it means that the driver has not taken over the vehicle at this time, and the vehicle is still controlled by the autonomous driving program. The QoS policy cannot be updated. Data communication can be re-performed and the service quality parameters can be determined again to remind the driver to take over the vehicle.

[0113] S306: When the takeover response information is received, the initial quality of service policy is updated according to the quality of service parameters to obtain a target quality of service policy.

[0114] It can be understood that after receiving the takeover response information, the autonomous driving program has been exited. The autonomous driving system can update the YAML file of the node port according to the determined service quality parameters to form a new target service quality strategy.

[0115] Among them, if the driver has not taken over the vehicle during the operation of the automatic driving program, when the automatic driving system is restarted, the service quality policies of the publisher and the receiver are updated according to the service quality parameters determined last time, the target service quality policy is obtained, and the publisher and the receiver are reconfigured according to the target service quality policy.

[0116] S307: Based on the target service quality strategy, reconfigure the publishing end and the receiving end, and when the vehicle re-enters the automatic driving program, communicate based on the reconfigured publishing end and receiving end.

[0117] It is understandable that different publishers and receivers can have different target service quality policies, which are determined based on the throughput and communication delay of the port communication and the data communication requirements of the port. During reconfiguration, only the port whose service quality policy has changed needs to be reconfigured according to the target service quality policy corresponding to the port. After the configuration is completed, a reminder signal can be sent again to remind the driver that the automatic driving system update is complete. When the driver stops taking over the vehicle and re-enters the automatic driving program, the publisher and the receiver can communicate data according to the updated service quality policy.

[0118] This embodiment provides a communication method based on quality of service, which obtains autonomous driving data through a receiving end, and determines the data throughput and communication delay corresponding to the autonomous driving data. According to the data throughput and communication delay, the candidate quality of service parameters are determined. If the candidate quality of service parameters do not match the initial quality of service parameters corresponding to the initial quality of service policy, the candidate quality of service parameters are determined as the quality of service parameters. When the takeover response information is received, the initial quality of service policy is updated according to the quality of service parameters to obtain the target quality of service policy. Based on the target quality of service policy, the publisher and the receiver are reconfigured, and when the vehicle re-enters the autonomous driving program, communication is performed based on the reconfigured publisher and the receiver. This method effectively simplifies the process of setting communication strategies between different nodes in the autonomous driving system and realizes real-time updating of communication strategies.

[0119] Figure 5 This is a schematic diagram of the structure of a communication device based on quality of service provided by this application. Figure 5 As shown, the communication device 400 based on quality of service provided by the present application includes:

[0120] An acquisition module 401 is used to acquire autonomous driving data through a receiving end, and determine a data throughput and a communication delay corresponding to the autonomous driving data, wherein the receiving end is obtained based on a quality of service initial policy configuration;

[0121] A determination module 402 is used to determine a quality of service parameter according to the data throughput and the communication delay, and to update the initial quality of service policy using the quality of service parameter to obtain a target quality of service policy;

[0122] The control module 403 is used to control the receiving end and the publishing end to communicate according to the target service quality policy.

[0123] Optionally, the device further includes: a receiving module 404 and a processing module 405;

[0124] The receiving module 404 is used to receive environmental information of the vehicle during the automatic driving process collected by multiple sensors;

[0125] The processing module 405 is used to perform modular processing on the environmental information and classify the environmental information according to topics to obtain autonomous driving data of at least one topic.

[0126] Optionally, the determination module 402 is further configured to determine a corresponding publishing end and a receiving end based on the at least one topic;

[0127] The control module 403 is further used to configure the publishing end and the receiving end using the service quality initial strategy to obtain the configured publishing end and the receiving end, and control the configured publishing end to publish the autonomous driving data of the corresponding topic to the receiving end according to the service quality initial strategy;

[0128] The acquisition module 401 is further used to acquire the autonomous driving data corresponding to the topic through the receiving end.

[0129] Optionally, the device further includes: a judgment module 406;

[0130] The determination module 402 is further configured to determine a candidate quality of service parameter according to the data throughput and the communication delay;

[0131] The judging module 406 is used to judge whether the candidate quality of service parameters match the initial quality of service parameters corresponding to the initial quality of service policy;

[0132] The determining module 402 is further configured to determine the candidate quality of service parameter as the quality of service parameter when the candidate quality of service parameter does not match the initial quality of service parameter.

[0133] Optionally, the judgment module 406 is further used to judge whether a takeover response message is received, and the takeover response message is used to indicate that the vehicle currently exits the automatic driving program;

[0134] The processing module 405 is further configured to update the initial quality of service policy according to the quality of service parameters to obtain a target quality of service policy when the takeover response information is received.

[0135] Optionally, the device further includes: a configuration module 407;

[0136] The configuration module 407 is used to reconfigure the publisher and the receiver based on the target service quality strategy, and communicate based on the reconfigured publisher and receiver when the vehicle re-enters the autonomous driving program.

[0137] Figure 6 This is a schematic diagram of the structure of a communication device based on quality of service provided by this application. Figure 6 As shown, the present application provides a communication device based on quality of service. The communication device 500 based on quality of service includes: a receiver 501, a transmitter 502, a processor 503 and a memory 504.

[0138] Receiver 501, used for receiving instructions and data;

[0139] A transmitter 502, used for sending instructions and data;

[0140] Memory 504, used to store computer-executable instructions;

[0141] The processor 503 is used to execute the computer-executable instructions stored in the memory 504 to implement the various steps performed by the communication method based on quality of service in the above embodiment. For details, please refer to the relevant description in the above embodiment of the communication method based on quality of service.

[0142] Optionally, the memory 504 may be independent or integrated with the processor 503 .

[0143] When the memory 504 is independently provided, the electronic device further includes a bus for connecting the memory 504 and the processor 503 .

[0144] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a quality of service-based communication method as performed by the quality of service-based communication device described above is implemented.

[0145] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0146] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0147] 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 communication method based on quality of service, characterized in that: The method comprises: Acquire autonomous driving data through a receiving end, and determine a data throughput and a communication delay corresponding to the autonomous driving data, wherein the receiving end is configured based on an initial quality of service policy; Determine a quality of service parameter according to the data throughput and the communication delay, and use the quality of service parameter to update the initial quality of service strategy to obtain a target quality of service strategy; The receiving end and the publishing end are controlled to communicate according to the target service quality policy.

2. The method according to claim 1, characterized in that Before obtaining the autonomous driving data through the receiving end, the method further includes: Receive environmental information of the vehicle during autonomous driving collected by multiple sensors; The environmental information is modularly processed, and the environmental information is classified according to topics to obtain autonomous driving data of at least one topic.

3. The method according to claim 2, characterized in that The obtaining of the autonomous driving data through the receiving end includes: Based on the at least one topic, determining a corresponding publishing end and a receiving end; The publishing end and the receiving end are configured using the service quality initial strategy to obtain the configured publishing end and the receiving end, and the configured publishing end is controlled to publish the autonomous driving data of the corresponding topic to the receiving end according to the service quality initial strategy; The autonomous driving data corresponding to the topic is obtained through the receiving end.

4. The method according to claim 1, characterized in that The determining of a quality of service parameter according to the data throughput and the communication delay comprises: Determining a candidate quality of service parameter according to the data throughput and the communication delay; Determining whether the candidate quality of service parameters match the initial quality of service parameters corresponding to the initial quality of service policy; In a case where the candidate quality of service parameter does not match the initial quality of service parameter, the candidate quality of service parameter is determined as the quality of service parameter.

5. The method according to claim 3, characterized in that: The updating process of the initial quality of service policy by using the quality of service parameter to obtain a target quality of service policy includes: Determining whether a takeover response message is received, the takeover response message being used to indicate that the vehicle is currently exiting the automatic driving program; When the takeover response information is received, the initial quality of service policy is updated according to the quality of service parameters to obtain a target quality of service policy.

6. The method according to claim 5, characterized in that The controlling the receiving end and the publishing end to communicate according to the target service quality policy includes: Based on the target service quality strategy, the publisher and the receiver are reconfigured, and when the vehicle re-enters the autonomous driving program, the publisher and the receiver communicate based on the reconfigured publisher and the receiver.

7. A communication device based on quality of service, characterized in that: The device comprises: an acquisition module, configured to acquire autonomous driving data through a receiving end and determine a data throughput and a communication delay corresponding to the autonomous driving data, wherein the receiving end is configured based on an initial quality of service policy; A determination module, configured to determine a quality of service parameter according to the data throughput and the communication delay, and to update the initial quality of service policy using the quality of service parameter to obtain a target quality of service policy; The control module is used to control the receiving end and the publishing end to communicate according to the target service quality policy.

8. The device according to claim 7, characterized in that The device also includes: a receiving module and a processing module; The receiving module is used to receive environmental information of the vehicle during the automatic driving process collected by multiple sensors; The processing module is used to perform modular processing on the environmental information and classify the environmental information according to topics to obtain autonomous driving data of at least one topic.

9. A communication device based on quality of service, characterized in that: include: Memory; processor; Wherein, the memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the quality of service-based communication method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the quality of service-based communication method according to any one of claims 1 to 6.