CN115103331B - A method for determining the working efficiency of a roadside unit and a related device - Google Patents

A method for determining the working efficiency of a roadside unit and a related device Download PDF

Info

Publication number
CN115103331B
CN115103331B CN202210565601.1A CN202210565601A CN115103331B CN 115103331 B CN115103331 B CN 115103331B CN 202210565601 A CN202210565601 A CN 202210565601A CN 115103331 B CN115103331 B CN 115103331B
Authority
CN
China
Prior art keywords
communication
road side
flow
traffic
side unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210565601.1A
Other languages
Chinese (zh)
Other versions
CN115103331A (en
Inventor
彭磊
舒洪峰
周睿
刘琪
崔允端
徐婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Smart City Technology Development Group Co ltd
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Smart City Technology Development Group Co ltd
Shenzhen Institute of Advanced Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Smart City Technology Development Group Co ltd, Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Smart City Technology Development Group Co ltd
Priority to CN202210565601.1A priority Critical patent/CN115103331B/en
Publication of CN115103331A publication Critical patent/CN115103331A/en
Application granted granted Critical
Publication of CN115103331B publication Critical patent/CN115103331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/44Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0215Traffic management, e.g. flow control or congestion control based on user or device properties, e.g. MTC-capable devices
    • H04W28/0221Traffic management, e.g. flow control or congestion control based on user or device properties, e.g. MTC-capable devices power availability or consumption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0203Power saving arrangements in the radio access network or backbone network of wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application provides a method and a related device for determining the working efficiency of a road side unit, wherein the method comprises the following steps: acquiring the working state of a first road side unit; when the working state of the first road side unit is an on state, distributing all or part of communication demand flow in the target communication demand flow to the first road side unit, wherein the communication flow distributed to the first road side unit is smaller than or equal to a first threshold value; determining a first combination according to the working state of the first road side unit, wherein the first combination is used for representing a value arrangement of the working state of each road side unit in the N road side units in a first time period; and determining a first numerical value corresponding to the first combination according to the product of the distribution completion degree of the total communication demand flow and the communication flow transmitted by each unit energy consumption of the N road side units, wherein the first numerical value is in direct proportion to the working efficiency of the N road side units. And the working efficiency of the road side unit is represented by the first numerical value.

Description

一种确定路侧单元工作效率的方法及相关装置A method for determining the working efficiency of a roadside unit and a related device

技术领域Technical Field

本申请涉及计算机领域,尤其涉及一种确定路侧单元工作效率的方法及相关产品。The present application relates to the field of computers, and in particular to a method for determining the working efficiency of a roadside unit and related products.

背景技术Background technique

车载单元与路侧单元通信(Vehicle-To-Infrastructure,V2I)作为未来智能交通系统的核心,通过车辆与道路基础设施之间的信息交换实现协作,显著地提高了交通安全与效率。As the core of the future intelligent transportation system, vehicle-to-infrastructure (V2I) communication achieves collaboration through information exchange between vehicles and road infrastructure, significantly improving traffic safety and efficiency.

由于V2I通信业务时空分布的不均匀性,大量路侧单元可能会长期处于低负荷或空载状态,但仍需消耗基本能耗以维持其正常运行,又路侧单元的基本功率占总功率的60%以上,从而造成了巨大的能源浪费。而当路侧单元处于睡眠状态时,平均功耗可降低75%以上。Due to the uneven temporal and spatial distribution of V2I communication services, a large number of roadside units may be in a low-load or no-load state for a long time, but they still need to consume basic energy to maintain their normal operation. The basic power of the roadside unit accounts for more than 60% of the total power, resulting in huge energy waste. When the roadside unit is in a sleep state, the average power consumption can be reduced by more than 75%.

在一种实现方法中,深夜或者郊区等稀疏交通流的场景下关闭部分空闲路侧单元,只留部分路侧单元值班通信。例如每隔一个路侧单元开启一个路侧单元。然而众多路侧单元调度方案中,没有一个评判标准来判断哪种调度方案可以使得路侧单元的工作效率更佳,导致大多数路侧单元值班调度方案过于简单且固定,无法考虑交通流的具体特征做出相应的变化。In one implementation method, some idle RSUs are turned off in scenarios with sparse traffic flow, such as late at night or in suburbs, and only some RSUs are left on duty for communication. For example, one RSU is turned on for every other RSU. However, among the many RSU scheduling schemes, there is no criterion to judge which scheduling scheme can make the RSU work more efficiently, resulting in most RSU on-duty scheduling schemes being too simple and fixed, and unable to make corresponding changes considering the specific characteristics of traffic flow.

因此,如何确定路侧单元调度方案下路侧单元的工作效率成为了技术领域内的重要研究课题。Therefore, how to determine the working efficiency of the roadside unit under the roadside unit scheduling scheme has become an important research topic in the technical field.

发明内容Summary of the invention

第一方面,本申请提供一种确定路侧单元工作效率的方法,所述方法包括:获取第一路侧单元的工作状态,所述第一路侧单元为在第一行驶方向顺序分布的N个路侧单元中的任一路侧单元,所述第一行驶方向为第一车道的通行方向,所述第一路侧单元的工作状态为开启状态或关闭状态;在所述第一路侧单元的工作状态为所述开启状态的情况下,将目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元,且分配给所述第一路侧单元的通信流量小于或等于第一阈值,所述目标通信需求流量为第一累积未分配流量和第一时间段内交通流在所述第一路侧单元通信覆盖范围内的第一通信需求流量的总和,所述第一累积未分配流量为在所述第一行驶方向的相反方向中在所述第一路侧单元的之前的一个或多个路侧单元的通信范围内交通流的通信需求流量中未分配完成的通信需求流量,所述第一阈值为交通流在所述第一路侧单元通信覆盖范围内最大能够完成的通信流量;在所述第一路侧单元的工作状态为所述关闭状态的情况下,不为所述第一路侧单元分配通信需求流量;根据所述第一路侧单元的工作状态确定第一组合,所述第一组合用于表示所述第一时间段内所述N个路侧单元中每个路侧单元的工作状态的一种取值排列;根据总通信需求流量的分配完成程度和所述N个路侧单元每单位能耗所传输的通信流量的乘积确定与所述第一组合对应的第一数值,所述第一数值与所述N个路侧单元的工作效率成正比,所述总通信需求流量为交通流在所述N个路侧单元中的每一个路侧单元通信覆盖范围内的通信需求流量的总和。In the first aspect, the present application provides a method for determining the working efficiency of a roadside unit, the method comprising: obtaining the working state of a first roadside unit, the first roadside unit being any one of N roadside units sequentially distributed in a first driving direction, the first driving direction being the direction of passage of a first lane, and the working state of the first roadside unit being an open state or a closed state; when the working state of the first roadside unit is the open state, all or part of the target communication demand flow is allocated to the first roadside unit, and the communication flow allocated to the first roadside unit is less than or equal to a first threshold, the target communication demand flow is the sum of a first cumulative unallocated flow and a first communication demand flow of traffic flow within a first time period within the communication coverage range of the first roadside unit, and the first cumulative unallocated flow is one or more communication demand flows before the first roadside unit in the opposite direction of the first driving direction. The communication demand flow that has not been allocated and completed is determined in the communication demand flow of the traffic flow within the communication range of the first roadside unit, and the first threshold is the maximum communication flow that can be completed by the traffic flow within the communication coverage range of the first roadside unit; when the working state of the first roadside unit is the closed state, the communication demand flow is not allocated to the first roadside unit; a first combination is determined according to the working state of the first roadside unit, and the first combination is used to represent a value arrangement of the working state of each of the N roadside units in the first time period; a first value corresponding to the first combination is determined according to the degree of completion of the allocation of the total communication demand flow and the product of the communication flow transmitted by the N roadside units per unit energy consumption, and the first value is proportional to the working efficiency of the N roadside units, and the total communication demand flow is the sum of the communication demand flows of the traffic flow within the communication coverage range of each of the N roadside units.

可理解的,采用本申请提供的预设分配方式(也即在所述第一路侧单元的工作状态为所述开启状态的情况下,将目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元,且分配给所述第一路侧单元的通信流量小于或等于第一阈值),一方面,确定分配给第一路侧单元的通信需求流量小于或等于交通流在第一路侧单元最大可完成的通信需求流量;一方面,由于车辆在行进过程中,总是先经过第一路侧单元,再经过在第一路侧单元的第一行驶方向前面的路侧单元,从而车辆在第一路侧单元产生的通信流量需要分配给该第一路侧单元或该第一路侧单元前面的路侧单元去完成;也即采用本申请的分配方式,可以确保将第一路侧单元的通信需求流量分配给该第一路侧单元或在该第一路侧单元第一行驶方向前面的路侧单元,符合交通流的行进规则。It can be understood that by adopting the preset allocation method provided in the present application (that is, when the working state of the first roadside unit is the open state, all or part of the target communication demand flow is allocated to the first roadside unit, and the communication flow allocated to the first roadside unit is less than or equal to the first threshold), on the one hand, it is determined that the communication demand flow allocated to the first roadside unit is less than or equal to the maximum communication demand flow that can be completed by the traffic flow at the first roadside unit; on the other hand, since the vehicle always passes through the first roadside unit first and then passes through the roadside unit in front of the first driving direction of the first roadside unit during the movement, the communication flow generated by the vehicle at the first roadside unit needs to be allocated to the first roadside unit or the roadside unit in front of the first roadside unit to complete; that is, by adopting the allocation method of the present application, it can be ensured that the communication demand flow of the first roadside unit is allocated to the first roadside unit or the roadside unit in front of the first driving direction of the first roadside unit, which complies with the travel rules of the traffic flow.

可理解的,采用上述总通信需求流量的分配完成程度和N个路侧单元每单位能耗所传输的通信流量的乘积作为衡量工作效率的指标,一方面考虑到交通流在路侧单元通信覆盖范围内产生的通信需求流量应尽可能地完成,另外一方面,在满足通信需求的同时节省能耗,由此,该第一数值指标,是在保证V2I通信质量的前提下实现能耗最优,实现在V2I通信质量和路侧单元能耗两者间取得平衡,从而采用第一数值作为工作效率的指标具备客观性和准确性。It can be understood that the product of the degree of completion of the distribution of the above-mentioned total communication demand flow and the communication flow transmitted by N roadside units per unit energy consumption is used as an indicator to measure work efficiency. On the one hand, it is considered that the communication demand flow generated by the traffic flow within the communication coverage of the roadside unit should be completed as much as possible. On the other hand, energy consumption is saved while meeting the communication needs. Therefore, the first numerical indicator is to achieve optimal energy consumption while ensuring the quality of V2I communication, and to achieve a balance between V2I communication quality and roadside unit energy consumption. Therefore, the use of the first numerical value as an indicator of work efficiency is objective and accurate.

由此,采用本申请实施例提供的方法可以通过上述第一数值(也即总通信需求流量的分配完成程度和N个路侧单元每单位能耗所传输的通信流量的乘积)表征路侧单元的工作效率,即使现有的调度方案简单且固定,也可以通过本申请提供的确定路侧单元工作效率的方法从简单且固定的多种调度方案中选择一个工作效率较佳的调度方案进行作业。Therefore, the method provided in the embodiment of the present application can characterize the working efficiency of the roadside unit by the above-mentioned first numerical value (that is, the product of the degree of completion of the allocation of the total communication demand flow and the communication flow transmitted by N roadside units per unit energy consumption). Even if the existing scheduling scheme is simple and fixed, the method for determining the working efficiency of the roadside unit provided in the present application can be used to select a scheduling scheme with better working efficiency from a plurality of simple and fixed scheduling schemes to perform operations.

在一种可能的实现方式中,所述根据总通信需求流量的分配完成程度和所述N个路侧单元每单位能耗所传输的通信流量的乘积确定与所述第一组合对应的第一数值,包括:确定与目标时刻对应的所述第一数值,所述目标时刻为将目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元以确定所述第一组合的过程中的任一预设时刻;确定与所述目标时刻对应的第一损失值,其中,在所述目标时刻下所述第一累积未分配流量为0的情况下所述第一损失值为0,在所述目标时刻下所述第一累积未分配流量大于0的情况下所述第一损失值取值为预设损失值;以及,根据第三数值与第四数值的差值确定所述目标时刻下对应的奖励值,所述第三数值为第一权重与所述第一数值的乘积,所述第四数值为第二权重与所述第一损失值的乘积;根据预设折扣因子、以及与所述第一组合对应的至少两个所述目标时刻中每个所述目标时刻对应的所述奖励值,计算所述第一组合对应的第一长期奖励值;所述第一长期奖励值与所述N个路侧单元的工作效率成正比。In a possible implementation, the determining of the first value corresponding to the first combination according to the product of the degree of completion of the allocation of the total communication demand flow and the communication flow transmitted by the N roadside units per unit energy consumption includes: determining the first value corresponding to the target moment, the target moment being any preset moment in the process of allocating all or part of the communication demand flow in the target communication demand flow to the first roadside unit to determine the first combination; determining a first loss value corresponding to the target moment, wherein the first loss value is 0 when the first cumulative unallocated flow is 0 at the target moment, and the first loss value is a preset loss value when the first cumulative unallocated flow is greater than 0 at the target moment; and determining the reward value corresponding to the target moment according to the difference between a third value and a fourth value, the third value being the product of a first weight and the first value, and the fourth value being the product of a second weight and the first loss value; calculating a first long-term reward value corresponding to the first combination according to a preset discount factor and the reward value corresponding to each of the at least two target moments corresponding to the first combination; the first long-term reward value is proportional to the working efficiency of the N roadside units.

由此,通过上述第一长期奖励值表征路侧单元的工作效率,可以使得评估路侧单元调度方案下路侧单元工作效率的指标更具准确性。Therefore, by characterizing the working efficiency of the roadside unit through the above-mentioned first long-term reward value, the indicator for evaluating the working efficiency of the roadside unit under the roadside unit scheduling scheme can be made more accurate.

在一种可能的实现方式中,所述获取所述第一路侧单元的工作状态包括:根据所述第一通信需求流量和/或所述第一累积未分配流量确定将所述第一路侧单元的工作状态置为所述开启状态和所述关闭状态中的其中一种工作状态。In a possible implementation, obtaining the working state of the first roadside unit includes: determining to set the working state of the first roadside unit to one of the on state and the off state according to the first communication demand flow and/or the first accumulated unallocated flow.

示例性的,可以根据第一通信需求流量和/或第一累积未分配流量的大小是否大于一个预设的用于表示交通流在该第一路侧单元通信覆盖范围内的通信需求流量较大的阈值,若是,则开启该第一路侧单元。若否则不开启,或者若否则尝试开启和不开启两种情况。示例性的,还可以根据第一路侧单元的通信覆盖范围内是否安装有交通灯,若是,则开启该第一路侧单元。Exemplarily, it can be based on whether the size of the first communication demand flow and/or the first accumulated unallocated flow is greater than a preset threshold value used to indicate that the communication demand flow of the traffic flow within the communication coverage of the first roadside unit is large. If so, the first roadside unit is turned on. Otherwise, it is not turned on, or if otherwise, there are two situations: trying to turn it on and not turning it on. Exemplarily, it can also be based on whether a traffic light is installed within the communication coverage of the first roadside unit. If so, the first roadside unit is turned on.

一般地,常用的能源优化策略是在深夜或者郊区等稀疏交通流的场景下关闭部分空闲路侧单元,只留部分路侧单元值班通信。明显的,这种路侧单元调度方案过于简单呆板而没有考虑交通流的具体特征,不能适应交通流的实时变化。Generally, the commonly used energy optimization strategy is to shut down some idle RSUs in scenarios with sparse traffic flow such as late at night or in suburbs, leaving only some RSUs on duty for communication. Obviously, this RSU scheduling scheme is too simple and rigid without considering the specific characteristics of traffic flow, and cannot adapt to real-time changes in traffic flow.

而采用本申请实施例提供的方法,根据交通流对于第一路侧单元的具体通信需求,确定是否开启该第一路侧单元,并对于N个路侧单元中的每一个路侧单元都执行与第一路侧单元相同的确定是否开启的操作后,可以完整地确定上述第一组合中的每一个取值,并根据本申请提供的确定路侧单元工作效率的方法确定该第一组合对应的工作效率。从而可以根据对应的工作效率,再确定是否需要使用与该第一组合对应的调度方案,以适应于交通流的实时变化实施工作效率较优的调度方案。By adopting the method provided in the embodiment of the present application, it is determined whether to turn on the first roadside unit according to the specific communication requirements of the traffic flow for the first roadside unit, and after each of the N roadside units performs the same operation of determining whether to turn on as the first roadside unit, each value in the above-mentioned first combination can be completely determined, and the working efficiency corresponding to the first combination can be determined according to the method for determining the working efficiency of the roadside unit provided in the present application. Therefore, it can be determined whether the scheduling scheme corresponding to the first combination needs to be used according to the corresponding working efficiency, so as to implement a scheduling scheme with better working efficiency to adapt to the real-time changes in traffic flow.

在一种可能的实现方式中,所述根据所述第一通信需求流量和/或所述第一累积未分配流量确定将所述第一路侧单元的工作状态置为所述开启状态和所述关闭状态中的其中一种工作状态,包括:确定所述目标通信需求流量是否大于第二阈值,所述第二阈值根据所述第一阈值的二分之一确定;在确定所述目标通信需求流量大于第二阈值的情况下,将所述第一路侧单元的工作状态置为所述开启状态;在确定所述目标通信需求流量大于第二阈值的情况下,分别尝试将所述第一路侧单元的工作状态置为所述开启状态或所述关闭状态的取值组合,分别得到对应的两个或两个以上第一组合;所述根据预设折扣因子、以及与所述第一组合对应的至少两个所述目标时刻中每个所述目标时刻对应的所述奖励值,计算所述第一组合对应的第一长期奖励值,包括:确定所述两个或两个以上第一组合中的每一个所述第一组合对应的所述第一长期奖励值;确定所述两个或两个以上第一组合中的每一个所述第一组合对应的所述第一长期奖励值中的最大值为目标长期奖励值;基于与所述长期奖励值对应的所述第一组合确定所述第一时间段内所述N个路侧单元的工作状态。In a possible implementation, the determining, according to the first communication demand flow and/or the first accumulated unallocated flow, to set the working state of the first roadside unit to one of the open state and the closed state comprises: determining whether the target communication demand flow is greater than a second threshold, the second threshold being determined according to one half of the first threshold; if it is determined that the target communication demand flow is greater than the second threshold, setting the working state of the first roadside unit to the open state; if it is determined that the target communication demand flow is greater than the second threshold, respectively trying to set the working state of the first roadside unit to a value combination of the open state or the closed state, and respectively obtaining corresponding two or more first combinations; the calculating, according to a preset discount factor and the reward value corresponding to each of the at least two target moments corresponding to the first combination, the first long-term reward value corresponding to the first combination comprises: determining the first long-term reward value corresponding to each of the two or more first combinations; determining the maximum value of the first long-term reward values corresponding to each of the two or more first combinations as the target long-term reward value; and determining the working states of the N roadside units in the first time period based on the first combination corresponding to the long-term reward value.

可选的,上述第二阈值的取值可以是上述第一阈值的二分之一,也可以是其他合适的取值,示例性的,上述第二阈值的取值还可以为上述第一阈值的五分之四,本文对此不做限定。Optionally, the value of the second threshold may be half of the first threshold, or other suitable values. Exemplarily, the value of the second threshold may also be four-fifths of the first threshold, which is not limited in this document.

由此,通过本申请实施例提供的确定路侧单元工作效率的方法,一方面,通过预设开启方式(在确定所述目标通信需求流量大于第二阈值的情况下,将所述第一路侧单元的工作状态置为所述开启状态;在确定所述目标通信需求流量大于第二阈值的情况下,分别尝试将所述第一路侧单元的工作状态置为所述开启状态或所述关闭状态的取值组合),根据交通流对于第一路侧单元的具体通信需求,确定是否开启该第一路侧单元,避免路侧单元调度方案过于简单呆板,不能适应交通流的实时变化的问题。另外一方面,由对应的预设开启方式、预设分配方式、以及评估调度方案下路侧单元的工作效率的指标(也即第一数值),确定多种调度方案(也即两个或两个以上第一组合)对应的工作效率中的最优的工作效率,由最优的工作效率确定路侧单元的调度方案,从而进一步解决路侧单元调度方案工作效率不佳的问题。Therefore, through the method for determining the working efficiency of the roadside unit provided by the embodiment of the present application, on the one hand, through the preset opening mode (when it is determined that the target communication demand flow is greater than the second threshold, the working state of the first roadside unit is set to the opening state; when it is determined that the target communication demand flow is greater than the second threshold, the working state of the first roadside unit is respectively tried to be set to the combination of the values of the opening state or the closing state), according to the specific communication demand of the traffic flow for the first roadside unit, it is determined whether to turn on the first roadside unit, so as to avoid the problem that the roadside unit scheduling scheme is too simple and rigid and cannot adapt to the real-time changes of the traffic flow. On the other hand, the optimal working efficiency among the working efficiencies corresponding to multiple scheduling schemes (that is, two or more first combinations) is determined by the corresponding preset opening mode, preset allocation mode, and the index (that is, the first value) for evaluating the working efficiency of the roadside unit under the scheduling scheme, and the scheduling scheme of the roadside unit is determined by the optimal working efficiency, so as to further solve the problem of poor working efficiency of the roadside unit scheduling scheme.

在一种可能的实现方式中,所述第一通信需求流量为与所述第一时间段对应的至少两个历史时间段内交通流在所述第一路侧单元通信覆盖范围内的通信需求流量数据中的平均通信需求流量,所述方法还包括:确定与所述第一时间段对应的至少两个历史时间段内的交通流在所述第一路侧单元通信覆盖范围内的停留时长满足正态分布的第一期望停留时长,确定与所述第一时间段对应的至少两个历史时间段内的交通流在所述第一路侧单元通信覆盖范围内每分钟的通信请求次数满足泊松分布的第一期望请求次数,以及,确定与所述第一时间段对应的至少两个历史时间段内的交通流在所述第一路侧单元通信覆盖范围内每分钟的通信需求流量满足正态分布的第一期望通信需求流量;基于所述第一期望停留时长、所述第一期望请求次数以及所述第一期望通信需求流量的乘积,确定所述第一通信需求流量。In one possible implementation, the first communication demand flow is the average communication demand flow in the communication demand flow data of the traffic flow within the communication coverage of the first roadside unit in at least two historical time periods corresponding to the first time period. The method also includes: determining that the stay time of the traffic flow within the communication coverage of the first roadside unit in at least two historical time periods corresponding to the first time period satisfies the first expected stay time of the normal distribution, determining that the number of communication requests per minute of the traffic flow within the communication coverage of the first roadside unit in at least two historical time periods corresponding to the first time period satisfies the first expected number of requests of the Poisson distribution, and determining that the communication demand flow per minute of the traffic flow within the communication coverage of the first roadside unit in at least two historical time periods corresponding to the first time period satisfies the first expected communication demand flow of the normal distribution; determining the first communication demand flow based on the product of the first expected stay time, the first expected number of requests and the first expected communication demand flow.

由此,通过本申请实施例提供的确定路侧单元工作效率的方法,一方面,可以通过交通流在与第一时间段对应的两个或两个以上历史时间段内体现的交通流特征表征第一时间段内交通流的交通流特征,综合考虑交通流的变化特征,确定出与第一时间段的交通流状况对应的一个使得路侧单元的工作效率最大化的调度方案,进一步解决路侧单元调度方案过于简单呆板,无法适应交通流的实时变化的问题。另外一方面,采用数据统计的方式,基于与第一时间段存在吻合关系的历史时间段的交通流特征和数学函数统计得到第一时间段内交通流的交通流特征更具代表性,可以使得计算得到的路侧单元调度方案的工作效率更准确。Therefore, through the method for determining the working efficiency of the roadside unit provided by the embodiment of the present application, on the one hand, the traffic flow characteristics of the traffic flow in the first time period can be characterized by the traffic flow characteristics reflected in two or more historical time periods corresponding to the first time period, and the changing characteristics of the traffic flow can be comprehensively considered to determine a scheduling plan that maximizes the working efficiency of the roadside unit corresponding to the traffic flow conditions in the first time period, further solving the problem that the roadside unit scheduling plan is too simple and rigid and cannot adapt to the real-time changes in traffic flow. On the other hand, by using data statistics, the traffic flow characteristics of the traffic flow in the first time period obtained based on the traffic flow characteristics of the historical time periods that have a consistent relationship with the first time period and the mathematical function statistics are more representative, which can make the calculated working efficiency of the roadside unit scheduling plan more accurate.

在一种可能的实现方式中,在所述获取所述第一路侧单元的工作状态之前,所述方法还包括:获取组合集中的任一个元素作为所述第一组合,所述组合集中包括至少一个用于指示所述N个路侧单元中每个路侧单元的工作状态的元素;所述获取所述第一路侧单元的工作状态包括:根据所述第一组合确定所述第一路侧单元的工作状态;所述根据预设折扣因子、以及与所述第一组合对应的至少两个所述目标时刻中每个所述目标时刻对应的所述奖励值,计算所述第一组合对应的第一长期奖励值,包括:确定所述组合集中的每一个所述第一组合对应的所述第一长期奖励值;确定所述组合集中的每一个所述第一组合对应的所述第一长期奖励值中的最大值为目标长期奖励值;基于与所述目标长期奖励值对应的所述第一组合确定所述N个路侧单元的工作状态。In a possible implementation, before obtaining the working status of the first roadside unit, the method also includes: obtaining any one element in a combination set as the first combination, the combination set including at least one element for indicating the working status of each of the N roadside units; obtaining the working status of the first roadside unit includes: determining the working status of the first roadside unit according to the first combination; calculating the first long-term reward value corresponding to the first combination according to a preset discount factor and the reward value corresponding to each of the at least two target moments corresponding to the first combination, including: determining the first long-term reward value corresponding to each of the first combinations in the combination set; determining the maximum value of the first long-term reward values corresponding to each of the first combinations in the combination set as the target long-term reward value; and determining the working status of the N roadside units based on the first combination corresponding to the target long-term reward value.

在一种可能的实现方式中,所述总通信需求的分配完成程度为已分配给所述N个路侧单元中的每一个路侧单元的通信需求流的总和与所述总通信需求流量的比值;所述N个路侧单元每单位能耗所传输的通信流量为所述总通信需求流量与所述N个路侧单元中每一个路侧单元的能耗的总和的比值。In one possible implementation, the degree of completion of the allocation of the total communication demand is the ratio of the sum of the communication demand flows allocated to each of the N roadside units to the total communication demand flow; the communication flow transmitted by the N roadside units per unit energy consumption is the ratio of the total communication demand flow to the sum of the energy consumption of each of the N roadside units.

在一种可能的实现方式中,所述将目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元,且分配给所述第一路侧单元的通信流量小于或等于第一阈值,包括:确定所述目标通信需求流量是否小于或等于所述第一阈值;在确定所述目标通信需求流量小于或等于所述第一阈值的情况下,将所述目标通信需求流量均分配给所述第一路侧单元;在确定所述目标通信需求流量大于所述第一阈值的情况下,则根据所述第一累积未分配流量被分配的优先级高于所述第一通信需求流量被分配的优先级的策略,将所述目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元,且分配给所述第一路侧单元的通信流量等于所述第一阈值。In one possible implementation, allocating all or part of the target communication demand traffic to the first roadside unit, and the communication traffic allocated to the first roadside unit is less than or equal to a first threshold, includes: determining whether the target communication demand traffic is less than or equal to the first threshold; if it is determined that the target communication demand traffic is less than or equal to the first threshold, allocating all of the target communication demand traffic to the first roadside unit; if it is determined that the target communication demand traffic is greater than the first threshold, allocating all or part of the target communication demand traffic to the first roadside unit according to a strategy in which the priority assigned to the first accumulated unallocated traffic is higher than the priority assigned to the first communication demand traffic, and the communication traffic allocated to the first roadside unit is equal to the first threshold.

在一种可能的实现方式中,所述方法还包括:确定所述第一阈值;所述确定所述第一阈值包括:在第一停留时长与所述第一路侧单元的通信速率的乘积小于或等于所述第一路侧单元的最大带宽的情况下,所述第一阈值取值为所述第一停留时长与所述第一路侧单元的通信速率的乘积;所述第一停留时长为交通流在所述第一路侧单元通信覆盖范围内的停留时长;在所述第一停留时长与所述第一路侧单元的通信速率的乘积大于所述第一路侧单元的最大带宽的情况下,所述第一阈值取值为所述第一路侧单元的最大宽带。In a possible implementation, the method also includes: determining the first threshold; the determining the first threshold includes: when the product of the first stay time and the communication rate of the first roadside unit is less than or equal to the maximum bandwidth of the first roadside unit, the first threshold is taken as the product of the first stay time and the communication rate of the first roadside unit; the first stay time is the stay time of the traffic flow within the communication coverage of the first roadside unit; when the product of the first stay time and the communication rate of the first roadside unit is greater than the maximum bandwidth of the first roadside unit, the first threshold is taken as the maximum bandwidth of the first roadside unit.

在一种可能的实现方式中,所述第一车道属于第一道路,所述第一道路还包括至少一个第二车道,所述第二车道的通行方向与所述第一车道的通行方向相反;所述目标通信需求流量为所述第一累积未分配流量、所述第一通信需求流量、以及第二累积未分配流量的总和,所述第二累积未分配流量为在第二行驶方向的相反方向中在所述第一路侧单元的之前的一个或多个路侧单元的通信范围内交通流的通信需求流量中未分配完成的通信需求流量,所述第二行驶方向为所述第二车道的通行方向。In a possible implementation, the first lane belongs to a first road, and the first road also includes at least one second lane, and the travel direction of the second lane is opposite to the travel direction of the first lane; the target communication demand flow is the sum of the first cumulative unallocated flow, the first communication demand flow, and the second cumulative unallocated flow, and the second cumulative unallocated flow is the unallocated communication demand flow in the communication demand flow of the traffic flow within the communication range of one or more roadside units before the first roadside unit in the opposite direction of the second driving direction, and the second driving direction is the travel direction of the second lane.

在一种可能的实现方式中,通过以下方式计算所述N个路侧单元中每一个路侧单元的能耗:对于所述N个路侧单元中的第i路侧单元,在所述第i路侧单元的工作状态为所述关闭状态的情况下,所述第i路侧单元的能耗为预设睡眠能耗,所述i为大于或等于1且小于或等于所述N的正整数;在所述第i路侧单元的工作状态为所述开启状态的情况下,所述第i路侧单元的能耗为预设通信能耗与所述第i路侧单元带宽资源的使用程度的乘积与预设基础能耗的和;所述第i路侧单元带宽资源的使用程度为分配给所述第i路侧单元的全部通信需求流量与所述第i路侧单元对应的最大通信流量的比值,所述最大通信流量根据所述第一方向的交通流在所述第i路侧单元通信覆盖范围内的平均停留时长与所述第i路侧单元的通信速率的乘积确定,所述最大通信流量用于表示交通流在所述第i路侧单元通信覆盖范围内最大能够完成的通信流量。In a possible implementation, the energy consumption of each of the N roadside units is calculated in the following manner: for the i-th roadside unit among the N roadside units, when the working state of the i-th roadside unit is the closed state, the energy consumption of the i-th roadside unit is the preset sleep energy consumption, and i is a positive integer greater than or equal to 1 and less than or equal to N; when the working state of the i-th roadside unit is the open state, the energy consumption of the i-th roadside unit is the sum of the product of the preset communication energy consumption and the degree of use of the bandwidth resources of the i-th roadside unit and the preset basic energy consumption; the degree of use of the bandwidth resources of the i-th roadside unit is the ratio of the total communication demand flow allocated to the i-th roadside unit to the maximum communication flow corresponding to the i-th roadside unit, the maximum communication flow is determined according to the product of the average stay time of the traffic flow in the first direction within the communication coverage range of the i-th roadside unit and the communication rate of the i-th roadside unit, and the maximum communication flow is used to represent the maximum communication flow that can be completed by the traffic flow within the communication coverage range of the i-th roadside unit.

第二方面,本申请提供一种确定路侧单元工作效率的装置,所述装置包括:获取单元,用于获取第一路侧单元的工作状态,所述第一路侧单元为在第一行驶方向顺序分布的N个路侧单元中的任一路侧单元,所述第一行驶方向为第一车道的通行方向,所述第一路侧单元的工作状态为开启状态或关闭状态;In a second aspect, the present application provides a device for determining working efficiency of a roadside unit, the device comprising: an acquisition unit, configured to acquire a working state of a first roadside unit, the first roadside unit being any one of N roadside units sequentially distributed in a first driving direction, the first driving direction being a passing direction of a first lane, and the working state of the first roadside unit being an on state or a off state;

分配单元,用于在所述第一路侧单元的工作状态为所述开启状态的情况下,将目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元,且分配给所述第一路侧单元的通信流量小于或等于第一阈值,所述目标通信需求流量为第一累积未分配流量和第一时间段内交通流在所述第一路侧单元通信覆盖范围内的第一通信需求流量的总和,所述第一累积未分配流量为在所述第一行驶方向的相反方向中在所述第一路侧单元的之前的一个或多个路侧单元的通信范围内交通流的通信需求流量中未分配完成的通信需求流量,所述第一阈值为交通流在所述第一路侧单元通信覆盖范围内最大能够完成的通信流量;以及,在所述第一路侧单元的工作状态为所述关闭状态的情况下,不为所述第一路侧单元分配通信需求流量;an allocation unit, for allocating all or part of the target communication demand flow to the first roadside unit when the working state of the first roadside unit is the on state, and the communication flow allocated to the first roadside unit is less than or equal to a first threshold value, the target communication demand flow is the sum of a first cumulative unallocated flow and a first communication demand flow of the traffic flow within the communication coverage of the first roadside unit in a first time period, the first cumulative unallocated flow is the communication demand flow that has not been allocated in the communication demand flow of the traffic flow within the communication range of one or more roadside units before the first roadside unit in the opposite direction of the first driving direction, and the first threshold value is the maximum communication flow that can be completed by the traffic flow within the communication coverage of the first roadside unit; and, when the working state of the first roadside unit is the off state, not allocating the communication demand flow to the first roadside unit;

第一确定单元,用于根据所述第一路侧单元的工作状态确定第一组合,所述第一组合用于表示所述第一时间段内所述N个路侧单元中每个路侧单元的工作状态的一种取值排列;A first determining unit, configured to determine a first combination according to the working state of the first roadside unit, wherein the first combination is used to represent a value arrangement of the working state of each roadside unit of the N roadside units in the first time period;

第二确定单元,用于根据总通信需求流量的分配完成程度和所述N个路侧单元每单位能耗所传输的通信流量的乘积确定与所述第一组合对应的第一数值,所述第一数值与所述N个路侧单元的工作效率成正比,所述总通信需求流量为交通流在所述N个路侧单元中的每一个路侧单元通信覆盖范围内的通信需求流量的总和。The second determination unit is used to determine a first value corresponding to the first combination based on the degree of completion of the allocation of the total communication demand flow and the product of the communication flow transmitted by the N roadside units per unit energy consumption, wherein the first value is proportional to the working efficiency of the N roadside units, and the total communication demand flow is the sum of the communication demand flows of the traffic flow within the communication coverage range of each of the N roadside units.

第三方面,本申请提供一种电子设备,包括:存储器、处理器,其中,该存储器存储有程序指令;该程序指令被该处理器执行时,使该处理器执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a third aspect, the present application provides an electronic device, comprising: a memory and a processor, wherein the memory stores program instructions; when the program instructions are executed by the processor, the processor executes the method described in the first aspect and any possible implementation method of the first aspect.

第四方面,本申请实施例提供一种芯片系统,该芯片系统应用于电子设备,该芯片系统包括一个或多个处理器,该处理器用于调用计算机指令以使得该电子设备执行该第一方面或第一方面的任意可能的实现方式所示的方法。In a fourth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, which are used to call computer instructions so that the electronic device executes the method shown in the first aspect or any possible implementation of the first aspect.

第五方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序;当该计算机程序在一个或多个处理器上运行时,使得该终端设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program; when the computer program runs on one or more processors, the terminal device executes the method described in the first aspect and any possible implementation method of the first aspect.

第六方面,本申请提供一种包含指令的计算机程序产品,当该计算机程序产品在终端设备上运行时,使得该终端设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a sixth aspect, the present application provides a computer program product comprising instructions, which, when executed on a terminal device, enables the terminal device to execute the method described in the first aspect and any possible implementation manner of the first aspect.

可以理解的,上述第二方面提供的确定路侧单元工作效率的装置、第三方面提供的电子设备、第四方面提供的芯片系统、第五方面提供的计算机存储介质和第六方面提供的计算机程序产品均用于执行本申请实施例第一方面或第一方面的任一实现方式所示的方法。因此,其所能达到的有益效果可参考对应方法中的有益效果,此处不再赘述。It can be understood that the device for determining the working efficiency of the roadside unit provided in the second aspect, the electronic device provided in the third aspect, the chip system provided in the fourth aspect, the computer storage medium provided in the fifth aspect, and the computer program product provided in the sixth aspect are all used to execute the method shown in the first aspect of the embodiment of the present application or any implementation of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below.

图1为本申请实施例提供的一种确定路侧单元工作效率的方法的应用环境示意图;FIG1 is a schematic diagram of an application environment of a method for determining working efficiency of a roadside unit provided in an embodiment of the present application;

图2为本申请实施例提供的一种确定路侧单元工作效率的方法的流程示意图;FIG2 is a flow chart of a method for determining the working efficiency of a roadside unit provided in an embodiment of the present application;

图3A为本申请实施例提供的一种与交通流相关的示意图;FIG3A is a schematic diagram related to traffic flow provided in an embodiment of the present application;

图3B为本申请实施例提供的一种关于第一行驶方向的相反方向的示意图;FIG3B is a schematic diagram of a direction opposite to the first driving direction provided by an embodiment of the present application;

图3C为本申请实施例提供的又一种关于第一行驶方向的相反方向的示意图;FIG3C is a schematic diagram of another direction opposite to the first driving direction provided by an embodiment of the present application;

图3D为本申请实施例提供的一种关于第一行驶方向的相反方向和第二行驶方向的相反方向的示意图;FIG3D is a schematic diagram of a direction opposite to the first driving direction and a direction opposite to the second driving direction provided by an embodiment of the present application;

图4为本申请实施例提供的又一种确定路侧单元工作效率的方法的流程示意图;FIG4 is a flow chart of another method for determining the working efficiency of a roadside unit provided in an embodiment of the present application;

图5为本申请实施例提供的又一种确定路侧单元工作效率的方法的流程示意图;FIG5 is a flow chart of another method for determining the working efficiency of a roadside unit provided in an embodiment of the present application;

图6为本申请实施例提供的模型求解的原理示意图;FIG6 is a schematic diagram of the principle of model solving provided in an embodiment of the present application;

图7为本申请实施例提供的一种实验环境示意图;FIG7 is a schematic diagram of an experimental environment provided in an embodiment of the present application;

图8为本申请实施例提供的一种交通流在各路侧单元覆盖范围内的停留时长的示意图;FIG8 is a schematic diagram of the length of time that a traffic flow stays within the coverage area of each roadside unit provided in an embodiment of the present application;

图9为本申请实施例提供的一种交通流在各路侧单元覆盖范围内的通信需求流量的示意图;FIG9 is a schematic diagram of a communication demand flow of a traffic flow within the coverage area of each roadside unit provided in an embodiment of the present application;

图10为本申请实施例提供的一种采用不同的模型确定的路侧单元调度方案的工作效率的示意图;FIG10 is a schematic diagram of the working efficiency of a roadside unit scheduling solution determined by using different models provided in an embodiment of the present application;

图11为本申请实施例提供的一种确定路侧单元工作效率的装置的结构示意图;FIG11 is a schematic diagram of the structure of a device for determining the working efficiency of a roadside unit provided in an embodiment of the present application;

图12为本申请实施例提供的又一种确定路侧单元工作效率的装置的结构示意图FIG. 12 is a schematic diagram of the structure of another device for determining the working efficiency of a roadside unit provided in an embodiment of the present application

图13为本申请实施例提供的又一种确定路侧单元工作效率的装置的结构示意图。FIG13 is a schematic diagram of the structure of another device for determining the working efficiency of a roadside unit provided in an embodiment of the present application.

具体实施方式Detailed ways

下面结合附图对本申请作进一步详细描述。The present application is described in further detail below in conjunction with the accompanying drawings.

本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and appended claims of the present application, the singular expressions "a", "a", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context.

在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上,“至少两个(项)”是指两个或三个及三个以上,“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”。In the present application, "at least one (item)" means one or more, "more than one" means two or more, "at least two (items)" means two or three and more than three, and "and/or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and/or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character "/" generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c".

图1为本申请提供的一种确定路侧单元工作效率的方法的应用环境示意图。FIG1 is a schematic diagram of an application environment of a method for determining working efficiency of a roadside unit provided in the present application.

如图1所示,路侧单元(Road Side Unit,RSU)安装在公路、高速公路或车场管理等的路侧,常见的路侧单元为基站型路侧单元。路侧单元的主要工作任务是通过通讯网络与路侧感知设备(例如速度传感器等)、交通信号灯、电子标牌等终端通信,采集当前的道路状况、交通状况等信息,当车辆中的车载单元向路侧单元发出通信请求时,及时处理车载单元的通信请求,实现车路互联互通、交通信号实时交互等功能,辅助驾驶员进行驾驶,保障整个交通领域的人员及车辆安全。As shown in Figure 1, the Road Side Unit (RSU) is installed on the roadside of highways, expressways or parking lot management, and the most common RSU is a base station type RSU. The main task of the RSU is to communicate with roadside sensing equipment (such as speed sensors, etc.), traffic lights, electronic signs and other terminals through the communication network to collect current road conditions, traffic conditions and other information. When the on-board unit in the vehicle sends a communication request to the RSU, it will promptly process the communication request of the on-board unit to realize functions such as vehicle-road interconnection and real-time interaction of traffic signals, assist the driver in driving, and ensure the safety of people and vehicles in the entire transportation field.

本申请提供的确定路侧单元工作效率的方法既适用于4G路侧单元也适用于5G路侧单元,本文对此不做限定。The method for determining the working efficiency of a roadside unit provided in this application is applicable to both 4G roadside units and 5G roadside units, and this document does not limit this.

实施例1:Embodiment 1:

以下结合图2详细介绍本申请实施例提供的确定路侧单元工作效率的方法。The following is a detailed description of the method for determining the working efficiency of a roadside unit provided in an embodiment of the present application in conjunction with FIG. 2 .

在本申请实施例中,可以由确定路侧单元工作效率的装置执行本申请实施例提供的确定路侧单元工作效率的方法,以下为便于描述,将省略步骤的执行主语确定路侧单元工作效率的装置。In an embodiment of the present application, the method for determining the working efficiency of a roadside unit provided in an embodiment of the present application can be executed by a device for determining the working efficiency of a roadside unit. For ease of description below, the execution subject of the step of determining the working efficiency of a roadside unit will be omitted.

如图2所示,确定路侧单元工作效率的方法包括以下步骤:As shown in FIG2 , the method for determining the working efficiency of the roadside unit includes the following steps:

S201,获取第一路侧单元的工作状态,该第一路侧单元为在第一行驶方向顺序分布的N个路侧单元中的任一路侧单元。S201, obtaining a working status of a first roadside unit, where the first roadside unit is any one of N roadside units sequentially distributed in a first driving direction.

可理解的,在不同的地域,第一行驶方向可以是车辆靠道路左侧行驶也可以是车辆靠道路右侧行驶,根据具体的地域环境确定,本文对第一行驶方向的具体定义不做限定。It is understandable that in different regions, the first driving direction may be that the vehicle drives on the left side of the road or the vehicle drives on the right side of the road, which is determined according to the specific regional environment. This article does not limit the specific definition of the first driving direction.

在本申请实施例中,第一行驶方向为第一车道的通行方向。示例性的,第一车道属于第一道路,第一道路中包括至少一个第一车道,一个第一车道有一个通行方向,每个第一车道的通行方向可能相同也可能相反。In the embodiment of the present application, the first driving direction is the passing direction of the first lane. Exemplarily, the first lane belongs to the first road, the first road includes at least one first lane, a first lane has a passing direction, and the passing directions of each first lane may be the same or opposite.

示例性的,第一路侧单元的工作状态可以为开启状态或关闭状态。其中,开启状态也可以理解为值班状态,关闭状态也可以理解为睡眠状态。当路侧单元的工作状态为值班状态的情况下,路侧单元的能耗包括基础能耗和通信能耗,其中,基础能耗一般为常量,通信能耗与工作负载成正相关。当路侧单元的工作状态为睡眠状态的情况下,路侧单元的能耗为睡眠功耗,睡眠功耗一般为常量。Exemplarily, the working state of the first roadside unit can be an on state or an off state. The on state can also be understood as a duty state, and the off state can also be understood as a sleep state. When the working state of the roadside unit is the duty state, the energy consumption of the roadside unit includes basic energy consumption and communication energy consumption, wherein the basic energy consumption is generally a constant, and the communication energy consumption is positively correlated with the workload. When the working state of the roadside unit is the sleep state, the energy consumption of the roadside unit is the sleep power consumption, and the sleep power consumption is generally a constant.

在本申请实施例中,有以下三种方式获取第一路侧单元的工作状态:In the embodiment of the present application, there are three ways to obtain the working status of the first roadside unit:

方式1、根据用户输入的上述N个路侧单元的工作状态的组合获取第一路侧单元的工作状态。Method 1: Acquire the working status of the first roadside unit according to a combination of the working statuses of the N roadside units input by the user.

示例性的,每隔一个路侧单元开启一个路侧单元,针对这种用户自定义的开启方式,上述第一路侧单元的工作状态可以根据用户的输入确定。Exemplarily, every other roadside unit is turned on. For this user-defined turning-on method, the working state of the first roadside unit can be determined according to the user's input.

方式2、确定路侧单元工作效率的装置遍历上述N个路侧单元的不同取值组合,根据当前遍历到的组合确定上述第一路侧单元的工作状态。Method 2: The device for determining the working efficiency of the roadside unit traverses different value combinations of the above-mentioned N roadside units, and determines the working state of the above-mentioned first roadside unit according to the currently traversed combination.

示例性的,上述N个路侧单元的不同取值组合组成一个组合集,组合集中的任一个元素用于指示上述N个路侧单元中每个路侧单元的工作状态,组合集中最多可以包括2的N次方个元素,至少包括一个元素。Exemplarily, different value combinations of the above-mentioned N roadside units form a combination set, and any element in the combination set is used to indicate the working status of each roadside unit in the above-mentioned N roadside units. The combination set can include at most 2 to the power of N elements and at least one element.

方式3、根据开启规则确定第一路侧单元的工作状态。Method 3: Determine the working status of the first roadside unit according to the activation rule.

示例性的,开启规则为根据交通流在第一路侧单元通信覆盖范围内的第一通信需求流量和第一累积未分配流量的和(统称为目标通信需求流量)是否大于或等于第二阈值,确定将第一路侧单元的工作状态置为开启状态和关闭状态中的其中一种工作状态。Exemplarily, the activation rule is to determine whether the working state of the first roadside unit is set to one of the on state and the off state based on whether the sum of the first communication demand flow and the first accumulated unallocated flow (collectively referred to as the target communication demand flow) of the traffic flow within the communication coverage area of the first roadside unit is greater than or equal to a second threshold.

例如,上述第一累积未分配流量为对于在第一路侧单元的第一行驶方向的相反方向的一个或多个路侧单元的通信范围内的通信需求流量中未分配完成的通信需求流量,上述第二阈值根据第一阈值的二分之一确定,该第一阈值为交通流在第一路侧单元通信覆盖范围内最大能够完成的通信流量。For example, the first accumulated unallocated traffic is the unallocated communication demand traffic among the communication demand traffic within the communication range of one or more roadside units in the opposite direction of the first driving direction of the first roadside unit, and the second threshold is determined based on half of the first threshold, which is the maximum communication traffic that can be completed by the traffic flow within the communication coverage range of the first roadside unit.

若上述目标通信需求流量大于该第二阈值,则将第一路侧单元的工作状态置为开启状态,若上述目标通信需求流量小于该第二阈值,则分别尝试将第一路侧单元的工作状态置为开启状态或关闭状态的取值组合,分别得到对应的两个或两个以上第一组合。If the target communication demand flow is greater than the second threshold, the working state of the first road side unit is set to the on state. If the target communication demand flow is less than the second threshold, the working state of the first road side unit is tried to be set to the on state or the off state, respectively, and two or more corresponding first combinations are obtained.

S202,在第一路侧单元的工作状态为开启状态的情况下,将目标通信需求流量中的全部或部分通信需求流量分配给第一路侧单元。S202: when the working state of the first roadside unit is the on state, all or part of the target communication demand flow is allocated to the first roadside unit.

在本申请实施例中,还需要满足分配给第一路侧单元的通信需求流量小于或等于交通流在第一路侧单元通信覆盖范围内最大能够完成的通信流量(记为第一阈值)。In the embodiment of the present application, it is also necessary to meet the requirement that the communication demand flow allocated to the first roadside unit is less than or equal to the maximum communication flow that can be completed by the traffic flow within the communication coverage area of the first roadside unit (represented as the first threshold).

在本申请实施例中,在第一路侧单元的工作状态为关闭状态的情况下,不为第一路侧单元分配通信需求流量。In the embodiment of the present application, when the working state of the first roadside unit is the closed state, the communication demand flow is not allocated to the first roadside unit.

在本申请实施例中,交通流包括一辆或一辆以上的车辆,上述第一停留时长表征以第一路侧单元在第一行驶方向上的通信覆盖距离内包括的该一辆或一辆以上的车辆经过第一路侧单元的所需时长。示例性的,如图3A所示,若取第一路侧单元在对应的第一行驶方向上的通信距离为L,则交通流的长度为L。可理解的,在同一时刻,第一路侧单元最多只能为长度等于L的交通流提供通信服务,也即在同一时刻,第一路侧单元最多只需要满足一个交通流的通信需求流量。In an embodiment of the present application, the traffic flow includes one or more vehicles, and the first dwell time represents the time required for the one or more vehicles included in the communication coverage distance of the first roadside unit in the first driving direction to pass through the first roadside unit. Exemplarily, as shown in FIG3A , if the communication distance of the first roadside unit in the corresponding first driving direction is L, the length of the traffic flow is L. It is understandable that at the same time, the first roadside unit can only provide communication services for a traffic flow with a length equal to L at most, that is, at the same time, the first roadside unit only needs to meet the communication demand flow of one traffic flow at most.

取进入第一路侧单元的第一个车辆(第一车辆)为L的起点,L的终点为与该第一路侧单元距离L处的点。该L的起点至L的终点包括的车辆数目,即为该交通流包括的车辆数目。而该交通流包括的车辆经过该第一路侧单元的时长即为该交通流经过路侧单元的所需时长。可理解的,记第一时间段内两个或两个以上的交通流在第一路侧单元中的停留时长的均值为平均停留时长,记第一时间段内上述两个或两个以上的交通流在第一路侧单元中停留时的通信请求次数的均值为平均通信请求次数,记第一时间段内上述两个或两个以上的交通流在第一路侧单元中停留时的每次通信请求的通信需求流量的均值为平均通信需求流量。则上述平均停留时长、平均通信需求流量以及平均通信请求次数三者的乘积,则可以表征在第一时间段内,每一个交通流对于该第一路侧单元的平均通信需求流量。从而得到在第一时间段内,每一时刻,交通流对该第一路侧单元的通信需求流量,即为交通流在第一路侧单元的通信覆盖范围内的通信需求流量。The first vehicle (first vehicle) entering the first roadside unit is taken as the starting point of L, and the end point of L is the point at a distance L from the first roadside unit. The number of vehicles included from the starting point of L to the end point of L is the number of vehicles included in the traffic flow. The duration of time that the vehicles included in the traffic flow pass through the first roadside unit is the required duration of the traffic flow passing through the roadside unit. It can be understood that the average of the length of time that two or more traffic flows stay in the first roadside unit in the first time period is recorded as the average length of time that they stay, the average of the number of communication requests when the two or more traffic flows stay in the first roadside unit in the first time period is recorded as the average number of communication requests, and the average of the communication demand flow of each communication request when the two or more traffic flows stay in the first roadside unit in the first time period is recorded as the average communication demand flow. The product of the above average length of time, the average communication demand flow and the average number of communication requests can represent the average communication demand flow of each traffic flow for the first roadside unit in the first time period. Thus, the communication demand flow of the traffic flow to the first roadside unit at each moment in the first time period is obtained, that is, the communication demand flow of the traffic flow within the communication coverage of the first roadside unit.

在本申请实施例中,上述第一阈值为交通流在第一路侧单元通信覆盖范围内最大能够完成的通信流量。在一些实现方式中,该第一阈值由第一路侧单元的最大宽带确定,在另外一些实现方式中,该第一阈值由交通流经过该第一路侧单元最多能够完成的通信需求流量。In the embodiment of the present application, the first threshold is the maximum communication flow that can be completed by the traffic flow within the communication coverage of the first roadside unit. In some implementations, the first threshold is determined by the maximum bandwidth of the first roadside unit, and in other implementations, the first threshold is determined by the maximum communication demand flow that can be completed by the traffic flow passing through the first roadside unit.

示例性的,记交通流在第一路侧单元通信覆盖范围内的停留时长为第一停留时长。若该第一停留时长与第一路侧单元的通信速率的乘积(表征交通流经过第一路侧单元最多能够完成的通信需求流量)小于或等于第一路侧单元的最大带宽,则该第一阈值取值为第一停留时长与第一路侧单元的通信速率的乘积。若第一停留时长与第一路侧单元的通信速率的乘积大于第一路侧单元的最大带宽的情况下,则该第一阈值取值为第一路侧单元的最大宽带。Exemplarily, the length of time that the traffic flow stays within the communication coverage of the first roadside unit is recorded as the first length of stay. If the product of the first length of stay and the communication rate of the first roadside unit (indicating the maximum communication demand flow that the traffic flow can complete through the first roadside unit) is less than or equal to the maximum bandwidth of the first roadside unit, then the first threshold value is the product of the first length of stay and the communication rate of the first roadside unit. If the product of the first length of stay and the communication rate of the first roadside unit is greater than the maximum bandwidth of the first roadside unit, then the first threshold value is the maximum bandwidth of the first roadside unit.

在本申请实施例中,上述目标通信需求流量包括第一时间段内交通流在第一路侧单元通信覆盖范围内的第一通信需求流量和第一累积未分配流量,该第一累积未分配流量为对于在上述第一路侧单元的上述第一行驶方向的相反方向的一个或多个路侧单元的通信范围内与该第一行驶方向对应的交通流的通信需求流量中未分配完成的通信需求流量。In an embodiment of the present application, the above-mentioned target communication demand flow includes a first communication demand flow and a first accumulated unallocated flow of traffic flow within the communication coverage of the first roadside unit in a first time period, and the first accumulated unallocated flow is the unallocated communication demand flow of the traffic flow corresponding to the first driving direction within the communication range of one or more roadside units in the opposite direction of the above-mentioned first driving direction of the above-mentioned first roadside unit.

示例性的,若第一车道的通行方向由左至右,则上述第一行驶方向为由左至右。为便于描述,在本文一些描述中也将由左至右通行的交通流称为正向交通流。示例性的,如图3B所示,该第一行驶方向为由左至右;其中,RSU3为上述第一路侧单元,则上述第一累积未分配流量为在该第一行驶方向中RSU3之前的路侧单元(也即RSU1和RSU2)的通信覆盖范围内交通流的通信需求流量中未分配完成的通信需求流量。Exemplarily, if the direction of travel of the first lane is from left to right, then the above-mentioned first driving direction is from left to right. For the convenience of description, the traffic flow traveling from left to right is also referred to as forward traffic flow in some descriptions of this article. Exemplarily, as shown in FIG3B , the first driving direction is from left to right; wherein, RSU3 is the above-mentioned first roadside unit, then the above-mentioned first accumulated unallocated flow is the communication demand flow of the traffic flow within the communication coverage range of the roadside unit before RSU3 (that is, RSU1 and RSU2) in the first driving direction that has not been allocated.

若第一车道的行驶方向由右至左,则上述第一行驶方向为由右至左。为便于描述,在本文一些描述中也将由右至左通行的交通流称为反向交通流。示例性的,如图3C所示,第一行驶方向为由右至左;其中,RSU3为上述第一路侧单元,则上述第一累积未分配流量为在该第一行驶方向中RSU3之前的路侧单元(也即RSU4和RSU5)的通信覆盖范围内交通流的通信需求流量中未分配完成的通信需求流量。If the driving direction of the first lane is from right to left, then the above-mentioned first driving direction is from right to left. For the convenience of description, the traffic flow passing from right to left is also referred to as reverse traffic flow in some descriptions of this article. Exemplarily, as shown in FIG3C , the first driving direction is from right to left; wherein RSU3 is the above-mentioned first roadside unit, then the above-mentioned first accumulated unallocated flow is the communication demand flow of the traffic flow within the communication coverage range of the roadside unit before RSU3 (that is, RSU4 and RSU5) in the first driving direction that has not been allocated.

在一种可能的实现方式中,所述第一车道属于第一道路,所述第一道路还包括至少一个第二车道,所述第二车道的通行方向与所述第一车道的通行方向相反;所述目标通信需求流量为所述第一累积未分配流量、所述第一通信需求流量、以及第二累积未分配流量的总和,所述第二累积未分配流量为在第二行驶方向的相反方向中在所述第一路侧单元的之前的一个或多个路侧单元的通信范围内交通流的通信需求流量中未分配完成的通信需求流量,所述第二行驶方向为所述第二车道的通行方向。In a possible implementation, the first lane belongs to a first road, and the first road also includes at least one second lane, and the travel direction of the second lane is opposite to the travel direction of the first lane; the target communication demand flow is the sum of the first cumulative unallocated flow, the first communication demand flow, and the second cumulative unallocated flow, and the second cumulative unallocated flow is the unallocated communication demand flow in the communication demand flow of the traffic flow within the communication range of one or more roadside units before the first roadside unit in the opposite direction of the second driving direction, and the second driving direction is the travel direction of the second lane.

也就是说,若上述第一道路还包括第二车道,该第二车道的通行方向与该第一车道的通行方向相反,则上述目标通信需求流量还包括上述第二累积未分配流量。示例性的,如图3D所示,第一行驶方向为由左至右,第二行驶方向为由右至左;其中,RSU3为上述第一路侧单元,则上述第一累积未分配流量包括在该第一行驶方向中RSU3之前的路侧单元(也即RSU1和RSU2)的通信覆盖范围内交通流的通信需求流量中未分配完成的通信需求流量,第二累积未分配流量包括在该第二行驶方向中RSU3之前的路侧单元(也即RSU4和RSU5)的通信覆盖范围内交通流的通信需求流量中未分配完成的通信需求流量。That is to say, if the first road also includes a second lane, and the travel direction of the second lane is opposite to that of the first lane, then the target communication demand flow also includes the second accumulated unallocated flow. Exemplarily, as shown in FIG3D , the first driving direction is from left to right, and the second driving direction is from right to left; wherein RSU3 is the first roadside unit, then the first accumulated unallocated flow includes the communication demand flow of the traffic flow within the communication coverage of the roadside unit (i.e., RSU1 and RSU2) before RSU3 in the first driving direction, and the second accumulated unallocated flow includes the communication demand flow of the traffic flow within the communication coverage of the roadside unit (i.e., RSU4 and RSU5) before RSU3 in the second driving direction, and the communication demand flow of the traffic flow within the communication coverage of the roadside unit (i.e., RSU4 and RSU5) before RSU3 in the second driving direction.

可理解的,第一时间段为任意的一个时间段,例如用户想要通过本申请实施例提供的确定路侧单元工作效率的方法确定当天9:00至10:00上述第一组合对应的工作效率,则上述第一时间段为当天9:00至10:00。在本申请实施例中,可以通过该第一时间段之前的一些历史时间内交通流对第一路侧单元的通信需求流量来表征该第一时间段内交通流对第一路侧单元的通信需求流量。It is understandable that the first time period is any time period. For example, if the user wants to determine the working efficiency of the first combination from 9:00 to 10:00 on the same day through the method for determining the working efficiency of the roadside unit provided in the embodiment of the present application, the first time period is from 9:00 to 10:00 on the same day. In the embodiment of the present application, the communication demand flow of the traffic flow to the first roadside unit in the first time period can be characterized by the communication demand flow of the traffic flow to the first roadside unit in some historical time before the first time period.

示例性的,该第一时间段为当天9:00至10:00,可以采用当天的8:00至9:00内交通流对第一路侧单元的通信需求流量来表征当天9:00至10:00内交通流对第一路侧单元的通信需求流量。Exemplarily, the first time period is from 9:00 to 10:00 on the same day, and the communication demand flow of traffic flow to the first roadside unit from 8:00 to 9:00 on the same day can be used to characterize the communication demand flow of traffic flow to the first roadside unit from 9:00 to 10:00 on the same day.

示例性的,该第一时间段为当天9:00至10:00(当前时间),还可以采用当前时间的前15天的时间中与该第一时间段(9:00至10:00)存在吻合关系时间段内(例如该15天中每天的9:00至10:00这一时间段内),交通流对第一路侧单元的平均通信需求流量来表征该第一时间段内交通流对第一路侧单元的通信需求流量。Exemplarily, the first time period is 9:00 to 10:00 on the same day (current time). The communication demand flow of the traffic flow to the first roadside unit in the first time period can also be characterized by the average communication demand flow of the traffic flow to the first roadside unit in the 15 days before the current time that has a consistent relationship with the first time period (9:00 to 10:00) (for example, the time period from 9:00 to 10:00 every day of the 15 days).

在一种可能的实现方式中,上述将目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元,且分配给所述第一路侧单元的通信流量小于或等于第一阈值,具体包括:确定所述目标通信需求流量是否小于或等于所述第一阈值;若是,则将所述目标通信需求流量均分配给所述第一路侧单元;若否,则根据所述第一累积未分配流量被分配的优先级高于所述第一通信需求流量被分配的优先级,将所述目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元。In a possible implementation, the above-mentioned allocating all or part of the target communication demand traffic to the first roadside unit, and the communication traffic allocated to the first roadside unit is less than or equal to the first threshold, specifically includes: determining whether the target communication demand traffic is less than or equal to the first threshold; if so, allocating all of the target communication demand traffic to the first roadside unit; if not, allocating all or part of the target communication demand traffic to the first roadside unit based on the priority of the first accumulated unallocated traffic being allocated being higher than the priority of the first communication demand traffic being allocated.

示例性的,若上述目标通信需求流量大于上述第一阈值,则确定上述第一累积未分配流量与上述第一阈值的大小关系。若上述第一累积未分配流量等于上述第一阈值,则将上述第一累积未分配流量分配给上述第一路侧单元;并将上述第一通信需求流量作为直到该第一路侧单元(包括该第一路侧单元在内)的路侧单元的通信覆盖范围内的通信需求流量中剩余未分配完成的通信需求流量。若上述第一累积未分配流量小于上述第一阈值,则将上述第一累积未分配流量分配给上述第一路侧单元,以及,将第一阈值与第一累积未分配流量作差值得到第一分配流量,将该第一通信需求流量中与该第一分配流量的大小一致的通信需求流量分配给上述第一路侧单元,再将该第一通信需求流量与该第一分配流量做差值得到剩余未分配流量,该剩余未分配流量作为直到第一路侧单元均未分配完成的通信需求流量。若上述第一累积未分配流量大于上述第一阈值,则将上述第一累积未分配流量中与第一阈值的大小一致的通信需求流量分配给第一路侧单元,并将该第一累积分配流量中与该第一阈值的差值与上述第一通信需求流量的和作为直到第一路侧单元均未分配完成的通信需求流量。Exemplarily, if the target communication demand flow is greater than the first threshold, the magnitude relationship between the first cumulative unallocated flow and the first threshold is determined. If the first cumulative unallocated flow is equal to the first threshold, the first cumulative unallocated flow is allocated to the first roadside unit; and the first communication demand flow is used as the remaining unallocated communication demand flow in the communication coverage of the roadside unit up to the first roadside unit (including the first roadside unit). If the first cumulative unallocated flow is less than the first threshold, the first cumulative unallocated flow is allocated to the first roadside unit, and the first threshold is subtracted from the first cumulative unallocated flow to obtain the first allocated flow, and the communication demand flow in the first communication demand flow that is consistent with the first allocated flow is allocated to the first roadside unit, and then the first communication demand flow is subtracted from the first allocated flow to obtain the remaining unallocated flow, and the remaining unallocated flow is used as the communication demand flow that has not been allocated to the first roadside unit. If the above-mentioned first accumulated unallocated flow is greater than the above-mentioned first threshold, the communication demand flow in the above-mentioned first accumulated unallocated flow that is consistent with the size of the first threshold will be allocated to the first road side unit, and the sum of the difference between the first accumulated allocated flow and the first threshold and the above-mentioned first communication demand flow will be used as the communication demand flow that has not been allocated until the first road side unit.

可理解的,在另外一种可能的实现方式中,若目标通信需求流量大于上述第一阈值,也可以根据第一通信需求流量被分配的优先级高于第一累积未分配流量被分配的优先级的方式,将所述目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元,本文对此不做限定。It is understandable that in another possible implementation method, if the target communication demand flow is greater than the above-mentioned first threshold, all or part of the target communication demand flow can be allocated to the first road side unit in a manner in which the priority assigned to the first communication demand flow is higher than the priority assigned to the first accumulated unallocated flow. This document does not limit this.

S203,根据所述第一路侧单元的工作状态确定第一组合。S203: Determine a first combination according to the working status of the first roadside unit.

在本申请实施例中,上述第一组合用于表示上述第一时间段内N个路侧单元中每个路侧单元的工作状态的一种取值排列。In an embodiment of the present application, the first combination is used to represent a value arrangement of the working state of each roadside unit among the N roadside units in the first time period.

可理解的,若在上述步骤S201时获取第一路侧单元的工作状态的方式为上述方式1或方式2,则在上述步骤S201时就可以确定该第一组合,也即在步骤S203则可以不需要再确定该第一组合。若在上述步骤S201时获取第一路侧单元的工作状态的方式为上述方式3,则该第一组合需要在将每个第一路侧单元的上述目标通信需求流量分配给对应的第一路侧单元后,才能确定上述第一组合,需要执行该步骤S203。It is understandable that if the method for obtaining the working state of the first roadside unit in the above step S201 is the above method 1 or method 2, then the first combination can be determined in the above step S201, that is, the first combination does not need to be determined in step S203. If the method for obtaining the working state of the first roadside unit in the above step S201 is the above method 3, then the first combination needs to be determined after the above target communication demand flow of each first roadside unit is allocated to the corresponding first roadside unit, and step S203 needs to be executed.

在本申请实施例中,可以通过第一时间段之前的一些历史时间内交通流在路侧单元通信覆盖范围内体现的通信需求流量表征第一时间段的通信需求流量,并根据该历史时间交通流在路侧单元通信覆盖范围内体现的通信需求流量确定该第一时间段对应的上述第一组合。In an embodiment of the present application, the communication demand flow of the first time period can be characterized by the communication demand flow of the traffic flow within the communication coverage of the roadside unit in some historical time before the first time period, and the above-mentioned first combination corresponding to the first time period can be determined based on the communication demand flow of the traffic flow within the communication coverage of the roadside unit in the historical time.

S204,根据总通信需求流量的分配完成程度和N个路侧单元每单位能耗所传输的通信流量的乘积确定与上述第一组合对应的第一数值,该第一数值与N个路侧单元的工作效率成正比。S204, determining a first value corresponding to the first combination according to the degree of completion of the allocation of the total communication demand flow and the product of the communication flow transmitted by the N roadside units per unit energy consumption, and the first value is proportional to the working efficiency of the N roadside units.

在本申请实施例中,上述总通信需求流量为交通流在所述N个路侧单元中的每一个路侧单元通信覆盖范围内的通信需求流量的总和。In the embodiment of the present application, the above-mentioned total communication demand flow is the sum of the communication demand flow of the traffic flow within the communication coverage area of each roadside unit among the N roadside units.

在本申请实施例中,上述第一数值与N个路侧单元的工作效率成正比。从而可以通过上述第一数值确定N个路侧单元的工作效率,并根据第一组合对应的工作效率确定是否根据该第一组合确定上述第一时间段内N个路侧单元的工作状态。In the embodiment of the present application, the first value is proportional to the working efficiency of the N roadside units. Therefore, the working efficiency of the N roadside units can be determined by the first value, and according to the working efficiency corresponding to the first combination, it is determined whether to determine the working status of the N roadside units in the first time period according to the first combination.

在一种可能的实现方式中,所述总通信需求的分配完成程度为已分配给所述N个路侧单元中的每一个路侧单元的通信需求流的总和与所述总通信需求流量的比值;所述N个路侧单元每单位能耗所传输的通信流量为所述总通信需求流量与所述N个路侧单元中每一个路侧单元的能耗的总和的比值。In one possible implementation, the degree of completion of the allocation of the total communication demand is the ratio of the sum of the communication demand flows allocated to each of the N roadside units to the total communication demand flow; the communication flow transmitted by the N roadside units per unit energy consumption is the ratio of the total communication demand flow to the sum of the energy consumption of each of the N roadside units.

由此,通过本申请实施例提供的确定路侧单元工作效率的方法可以确定哪种路侧单元的组合方式可以使得路侧单元的工作效率更佳,从而可以根据不同时间段,不同组合对应的工作效率开启路侧单元,避免盲目固定地采用同一种开启方式开启路侧单元,导致通信需求得不到满足,或增大路侧单元的能耗的问题。Therefore, the method for determining the working efficiency of the roadside unit provided in the embodiment of the present application can determine which combination of roadside units can make the working efficiency of the roadside unit better, so that the roadside unit can be turned on according to the working efficiency corresponding to different combinations in different time periods, avoiding blindly and fixedly using the same opening method to turn on the roadside unit, resulting in communication needs not being met, or increasing the energy consumption of the roadside unit.

实施例2:Embodiment 2:

在一种可能的实现方式中,上述根据总通信需求流量的分配完成程度和所述N个路侧单元每单位能耗所传输的通信流量的乘积确定与所述第一组合对应的第一数值,包括:确定与目标时刻对应的所述第一数值,所述目标时刻为将目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元以确定所述第一组合的过程中的任一预设时刻;确定与所述目标时刻对应的第一损失值,其中,在所述目标时刻下所述第一累积未分配流量为0的情况下所述第一损失值为0,在所述目标时刻下所述第一累积未分配流量大于0的情况下所述第一损失值取值为预设损失值;以及,根据第三数值与第四数值的差值确定所述目标时刻下对应的奖励值,所述第三数值为第一权重与所述第一数值的乘积,所述第四数值为第二权重与所述第一损失值的乘积;根据预设折扣因子、以及与所述第一组合对应的至少两个所述目标时刻中每个所述目标时刻对应的所述奖励值,计算所述第一组合对应的第一长期奖励值;所述第一长期奖励值与所述N个路侧单元的工作效率成正比。In a possible implementation, the method of determining the first value corresponding to the first combination according to the product of the degree of completion of the allocation of the total communication demand flow and the communication flow transmitted by the N roadside units per unit energy consumption includes: determining the first value corresponding to the target moment, the target moment being any preset moment in the process of allocating all or part of the communication demand flow in the target communication demand flow to the first roadside unit to determine the first combination; determining a first loss value corresponding to the target moment, wherein the first loss value is 0 when the first cumulative unallocated flow is 0 at the target moment, and the first loss value is a preset loss value when the first cumulative unallocated flow is greater than 0 at the target moment; and determining the reward value corresponding to the target moment according to the difference between a third value and a fourth value, the third value being the product of a first weight and the first value, and the fourth value being the product of a second weight and the first loss value; calculating a first long-term reward value corresponding to the first combination according to a preset discount factor and the reward value corresponding to each of the at least two target moments corresponding to the first combination; the first long-term reward value is proportional to the working efficiency of the N roadside units.

在一种可能的实现方式中,所述获取所述第一路侧单元的工作状态包括:根据所述第一通信需求流量和/或所述第一累积未分配流量确定将所述第一路侧单元的工作状态置为所述开启状态和所述关闭状态中的其中一种工作状态。In a possible implementation, obtaining the working state of the first roadside unit includes: determining to set the working state of the first roadside unit to one of the on state and the off state according to the first communication demand flow and/or the first accumulated unallocated flow.

具体的,以下假定第一道路包括上述第一车道,且在上述第一道路上(或第一道路周围区域)存在N个通信覆盖范围无重复且无间隔地均匀排列的路侧单元,执行本申请提供的确定路侧单元工作效率的方法。在本申请实施例中,确定路侧单元工作效率的装置基于第1天到第D天相同时间段内的交通流的统计数据,确定N个路侧单元的工作状态的最优组合A,并将该最优组合A作为第D+1天在该相同时间段内该N个路侧单元的工作状态。同理,基于第2天到第D+1天相同时间段内的交通流的统计数据,确定N个路侧单元的最优组合B,并将该最优组合B作为第D+2天在该相同时间段内该N个路侧单元的工作状态。Specifically, it is assumed below that the first road includes the above-mentioned first lane, and there are N roadside units with communication coverage areas that are evenly arranged without duplication and without intervals on the above-mentioned first road (or the area around the first road), and the method for determining the working efficiency of the roadside units provided in the present application is executed. In an embodiment of the present application, the device for determining the working efficiency of the roadside units determines the optimal combination A of the working states of the N roadside units based on the statistical data of the traffic flow in the same time period from the 1st day to the Dth day, and uses the optimal combination A as the working state of the N roadside units in the same time period on the D+1th day. Similarly, based on the statistical data of the traffic flow in the same time period from the 2nd day to the D+1th day, the optimal combination B of the N roadside units is determined, and the optimal combination B is used as the working state of the N roadside units in the same time period on the D+2th day.

例如,基于第1天到第15天相同时间段(例如都是7:00至8:00)的交通流特征统计交通流在7:00至8:00时间段内在每一个路侧单元通信覆盖范围内行驶产生的通信需求流量,并根据路侧单元的预设开启规则和为路侧单元分配通信需求流量的分配规则模拟分配流程,得到对应的N个路侧单元工作状态的多个第一组合和与第一组合一一对应的分配结果,并计算每一个该第一组合和分配结果对应的上述第一数值后第一奖励值,根据最大第一数值或第一奖励值对应的目标第一组合确定N个路侧单元的工作状态。并将该目标第一组合作为第16天在7:00至8:00时间段内N个路侧单元的工作状态的组合。For example, based on the traffic flow characteristics of the same time period (for example, 7:00 to 8:00) from the 1st day to the 15th day, the communication demand flow generated by the traffic flow traveling within the communication coverage of each roadside unit in the time period from 7:00 to 8:00 is counted, and the allocation process is simulated according to the preset opening rule of the roadside unit and the allocation rule for allocating the communication demand flow to the roadside unit, and multiple first combinations of the corresponding N roadside unit working states and the allocation results corresponding to the first combinations are obtained, and the first reward value after the first value corresponding to each of the first combinations and the allocation results is calculated, and the working states of the N roadside units are determined according to the target first combination corresponding to the maximum first value or the first reward value. And the target first combination is used as the combination of the working states of the N roadside units in the time period from 7:00 to 8:00 on the 16th day.

在一种可能的实现方式中,在上述获取所述第一路侧单元的工作状态之前,所述方法还包括:获取组合集中的任一个元素作为所述第一组合,所述组合集中包括至少一个用于指示所述N个路侧单元中每个路侧单元的工作状态的元素;所述获取所述第一路侧单元的工作状态包括:根据所述第一组合确定所述第一路侧单元的工作状态;所述根据预设折扣因子、以及与所述第一组合对应的至少两个所述目标时刻中每个所述目标时刻对应的所述奖励值,计算所述第一组合对应的第一长期奖励值,包括:确定所述组合集中的每一个所述第一组合对应的所述第一长期奖励值;确定所述组合集中的每一个所述第一组合对应的所述第一长期奖励值中的最大值为目标长期奖励值;基于与所述目标长期奖励值对应的所述第一组合确定所述N个路侧单元的工作状态。In a possible implementation, before obtaining the working status of the first roadside unit, the method also includes: obtaining any one element in a combination set as the first combination, the combination set including at least one element for indicating the working status of each of the N roadside units; obtaining the working status of the first roadside unit includes: determining the working status of the first roadside unit according to the first combination; calculating the first long-term reward value corresponding to the first combination according to a preset discount factor and the reward value corresponding to each of the at least two target moments corresponding to the first combination, including: determining the first long-term reward value corresponding to each of the first combinations in the combination set; determining the maximum value of the first long-term reward values corresponding to each of the first combinations in the combination set as the target long-term reward value; determining the working status of the N roadside units based on the first combination corresponding to the target long-term reward value.

示例性的,结合图4所示的方法流程图,详细介绍本申请实施例提供的确定路侧单元的工作效率的方法。Exemplarily, in combination with the method flow chart shown in FIG4 , the method for determining the working efficiency of a roadside unit provided in an embodiment of the present application is described in detail.

如下图4所示,该方法包括以下步骤:As shown in Figure 4 below, the method includes the following steps:

阶段1:根据历史数据统计交通流特征数据。Phase 1: Collect traffic flow characteristic data based on historical data.

S401,根据样本数据确定在当前时间段内交通流在每一个路侧单元的停留时长和通信需求流量。S401, determining the stay time and communication demand flow of traffic flow at each roadside unit in the current time period according to sample data.

可理解的,上述样本数据为历史数据,本申请采用与当前时间段相同的目标时间段的历史数据统计交通流的特征,并把历史数据中交通流特征的均值作为当前时间段的交通流特征。It is understandable that the above sample data is historical data. This application uses historical data of the same target time period as the current time period to statistically analyze traffic flow characteristics, and uses the mean of traffic flow characteristics in the historical data as the traffic flow characteristics of the current time period.

示例性的,当前日期为2022年5月20日,当前时间段为2022年5月20日的7:00~9:00;上述目标时间段可以是15天内的相同时间段,即为2022年5月4日起至2022年5月19日的15天内每天的7:00~9:00。For example, the current date is May 20, 2022, and the current time period is 7:00-9:00 on May 20, 2022; the above target time period can be the same time period within 15 days, that is, 7:00-9:00 every day for 15 days from May 4, 2022 to May 19, 2022.

示例性的,对于其中一个第i路侧单元,统计15天内的每天7:00~9:00交通流在该第i路侧单元的通信覆盖范围内的停留时长满足正态分布函数f(RSUiii)的期望停留时长。例如第i路侧单元15天内的每天7:00~9:00对应的期望停留时长包括μi1、μi2、μi3、μi4、μi5、μi6、μi7、μi8、μi9、μi10、μi11、μi12、μi13、μi14以及μi15这15个期望停留时长,并将这15个期望停留时长的均值(μij表示第i路侧单元在15天内的第j天对应的期望停留时长)作为在上述目标时间段内交通流在该第i路侧单元的通信覆盖范围内的平均停留时长μii的单位可以是时间单位,例如小时、分钟或秒),以及,将该平均停留时长μi作为上述当前时间段内交通流在第i路侧单元通信覆盖范围内的停留时长。Exemplarily, for one of the i-th roadside units, the length of stay of the traffic flow from 7:00 to 9:00 every day within 15 days within the communication coverage of the i-th roadside unit is counted to satisfy the expected length of stay of the normal distribution function f(RSU iii ). For example, the expected length of stay corresponding to 7:00 to 9:00 every day within 15 days of the i-th roadside unit includes 15 expected lengths of stay of μ i1 , μ i2 , μ i3 , μ i4 , μ i5 , μ i6 , μ i7 , μ i8 , μ i9 , μ i10 , μ i11 , μ i12 , μ i13 , μ i14 and μ i15 , and the mean value of these 15 expected lengths of stay ( μ ij represents the expected stay time of the ith roadside unit corresponding to the jth day within 15 days) as the average stay time μ i of the traffic flow within the communication coverage of the ith roadside unit during the above-mentioned target time period (the unit of μ i can be a time unit, such as hour, minute or second), and the average stay time μ i is used as the stay time of the traffic flow within the communication coverage of the ith roadside unit during the above-mentioned current time period.

由此,可以得到当前时间段内交通流在N个路侧单元中的每个路侧单元的通信覆盖范围内的停留时长μ。示例性的,如下表1所示:Thus, the length of stay μ of the traffic flow in the communication coverage of each of the N roadside units in the current time period can be obtained. For example, as shown in the following Table 1:

表1Table 1

在本申请实施例中,为了统计在目标时间段内交通流在每一个路侧单元的平均通信需求流量,对于其中一个第i路侧单元,还需要统计15天内的每天7:00~9:00交通流在该第i路侧单元的通信覆盖范围内每分钟请求通信次数满足泊松分布(P(RSUii))的期望通信请求次数。例如15天内的每天7:00~9:00对应的期望每分钟请求通信次数包括λi1、λi2、λi3、λi4、λi5、λi6、λi7、λi8、λi9、λi10、λi11、λi12、λi13、λi14以及λi15这15个期望每分钟请求通信次数,并将这15个期望每分钟请求通信次数的均值(λij表示第i路侧单元在15天内的第j天对应的期望每分钟请求通信次数)作为在该目标时间段内交通流在该第i路侧单元的通信覆盖范围内的平均每分钟请求次数λiIn the embodiment of the present application, in order to count the average communication demand flow of the traffic flow in each roadside unit during the target time period, for one of the i-th roadside units, it is also necessary to count the number of communication requests per minute of the traffic flow within the communication coverage of the i-th roadside unit from 7:00 to 9:00 every day within 15 days, which satisfies the expected number of communication requests (P(RSU ii )). For example, the expected number of communication requests per minute corresponding to 7:00 to 9:00 every day within 15 days includes λ i1 , λ i2 , λ i3 , λ i4 , λ i5 , λ i6 , λ i7 , λ i8 , λ i9 , λ i10 , λ i11 , λ i12 , λ i13 , λ i14 and λ i15 , which are the 15 expected number of communication requests per minute, and the average value of these 15 expected number of communication requests per minute ( λ ij represents the expected number of communication requests per minute corresponding to the jth day of the ith roadside unit within 15 days) as the average number of requests per minute λ i of the traffic flow within the communication coverage of the ith roadside unit during the target time period.

以及,统计15天内的每天7:00~9:00交通流在该第i路侧单元的通信覆盖范围内每次请求的通信需求流量满足正态分布(g(RSUiii))的期望每次请求通信需求流量。例如15天内的每天7:00~9:00对应的期望每次请求通信需求流量包括ρi1、ρi2、ρi3、ρi4、ρi5、ρi6、ρi7、ρi8、ρi9、ρi10、ρi11、ρi12、ρi13、ρi14以及ρi15这15个期望每次请求通信需求流量,并将这15个期望每次请求通信需求流量的均值(ρij表示第i路侧单元在15天内的第j天对应的期望每次请求通信需求流量)作为在该目标时间段内交通流在该第i路侧单元的通信覆盖范围内的平均每次请求通信需求流量ρiAnd, count the communication demand flow of each request of the traffic flow within the communication coverage of the i-th roadside unit from 7:00 to 9:00 every day within 15 days, and the expected communication demand flow of each request satisfies the normal distribution (g(RSU iii )). For example, the expected communication demand flow corresponding to each request from 7:00 to 9:00 every day within 15 days includes ρ i1 , ρ i2 , ρ i3 , ρ i4 , ρ i5 , ρ i6 , ρ i7 , ρ i8 , ρ i9 , ρ i10 , ρ i11 , ρ i12 , ρ i13 , ρ i14 and ρ i15 , which are 15 expected communication demand flows per request, and the average value of these 15 expected communication demand flows per request ( ρ ij represents the expected communication demand flow per request corresponding to the jth day within 15 days of the ith roadside unit) as the average communication demand flow per request ρ i of the traffic flow within the communication coverage of the ith roadside unit during the target time period.

再根据上述平均停留时长μi与上述平均每分钟请求次数λi与上述平均每次请求通信需求流量ρi的乘积(ki=μiii),计算目标时间段内交通流在第i路侧单元的平均通信需求流量ki。以及,将平均通信需求流量ki作为上述当前时间段内交通流在第i路侧单元通信范围内的通信需求流量kiThen, the average communication demand flow k i of the traffic flow in the i-th roadside unit in the target time period is calculated according to the product of the average stay time μ i , the average number of requests per minute λ i and the average communication demand flow per request ρ i (k iiii ). And, the average communication demand flow k i is used as the communication demand flow k i of the traffic flow in the communication range of the i-th roadside unit in the current time period.

由此,可以得到当前时间段内交通流在N个路侧单元中的每个路侧单元的通信覆盖范围内的通信需求流量k。示例性的,如下表2所示:Thus, the communication demand flow k of the traffic flow in the communication coverage area of each roadside unit in the N roadside units in the current time period can be obtained. For example, as shown in the following Table 2:

表2Table 2

RSURSU kk RSU1 RSU 1 k1 k 1 RSU2 RSU 2 k2 k 2 RSU3 RSU 3 k3 k 3 RSU4 RSU 4 k4 k 4 ...... ...... RSUi RSU ki k i ...... ...... RSUN RSU N kN k N

阶段2:根据交通流特征数据、路侧单元工作状态的开启规则以及通信需求流量的分配规则,模拟将通信需求流量分配给对应的路侧单元。Phase 2: Based on the traffic flow characteristic data, the opening rules of the roadside unit working status and the allocation rules of the communication demand flow, simulate the allocation of the communication demand flow to the corresponding roadside unit.

S402,根据在当前时间段内交通流在每一个路侧单元的停留时长和通信需求流量、第一开启规则以及第一分配规则,确定每一个路侧单元的工作状态、以及将在当前时间段内交通流在每一个路侧单元通信范围内的通信需求流量模拟分配给处于工作状态为值班状态的路侧单元,得到一个或一个以上第一组合和每个第一组合对应的分配结果。S402, according to the length of stay of traffic flow at each roadside unit and the communication demand flow, the first activation rule and the first allocation rule in the current time period, the working status of each roadside unit is determined, and the communication demand flow of traffic flow within the communication range of each roadside unit in the current time period is simulated and allocated to the roadside units in the working state of the duty state, to obtain one or more first combinations and the allocation results corresponding to each first combination.

以下为便于描述,将第i路侧单元简称为RSUi,将当前时间段内交通流在第i路侧单元通信范围内的通信需求流量简称为ki。将第i-1累积未分配通信流量简称为Di-1。该Di-1为交通流在该i路侧单元的第一行驶方向的相反方向的路侧单元通信范围内的通信需求流量中未被分配的通信需求流量。将交通流在该第i路侧单元最大可完成的通信需求流量简称为第i最大可完成通信需求流量或简称为μi*ω,其中μi为上述在当前时间段内(目标时间段)交通流在该第i路侧单元的通信覆盖范围内的平均停留时长μi,ω为第i路侧单元的通信速率。For ease of description, the i-th roadside unit is referred to as RSU i , and the communication demand flow of the traffic flow within the communication range of the i-th roadside unit in the current time period is referred to as k i . The i-1th accumulated unallocated communication flow is referred to as D i-1 . The D i-1 is the unallocated communication demand flow in the communication demand flow of the traffic flow within the communication range of the roadside unit in the opposite direction of the first driving direction of the i-th roadside unit. The maximum achievable communication demand flow of the traffic flow in the i-th roadside unit is referred to as the i-th maximum achievable communication demand flow or simply as μ i *ω, where μ i is the average residence time μ i of the traffic flow within the communication coverage range of the i-th roadside unit in the current time period (target time period), and ω is the communication rate of the i-th roadside unit.

示例性的,先根据第一开启规则确定第i路侧单元的工作状态。例如:Exemplarily, the working state of the i-th roadside unit is first determined according to the first activation rule. For example:

判断ki与Di-1的和是否大于第二阈值。例如,该第二阈值为交通流在RSUi最大能够完成的通信需求流量的一半(μi*ω/2);若是,则将该RSUi的工作状态置为值班状态;若否,则尝试将该RSUi的工作状态置为值班状态和睡眠状态两种情况,对于两种情况都对应地为根据RSUi的工作状态以及第一分配规则确定是否为RSUi分配对应的通信需求流量。Determine whether the sum of k i and D i-1 is greater than a second threshold. For example, the second threshold is half of the maximum communication demand flow that the traffic flow can complete at RSU ii *ω/2); if so, set the working state of RSU i to the duty state; if not, try to set the working state of RSU i to the duty state and the sleep state. For both cases, determine whether to allocate the corresponding communication demand flow to RSU i according to the working state of RSU i and the first allocation rule.

可理解的,上述第一开启规则还可以包括其他规则。示例性的,还可以包括根据路侧单元通信覆盖范围内是否部署有信号灯确定是否将路侧单元的工作状态置为值班状态。例如,对于信号灯部署在RSUi的通信覆盖范围内的道路上,则交通流在RSUi覆盖范围内的停留时长和通信需求会相对多于其他路侧单元覆盖范围内的通信需求,则确定RSUi的工作状态为开启状态。It is understandable that the first activation rule may also include other rules. Exemplarily, it may also include determining whether to set the working state of the roadside unit to the duty state according to whether a traffic light is deployed within the communication coverage of the roadside unit. For example, if a traffic light is deployed on a road within the communication coverage of RSU i , the length of stay and communication demand of the traffic flow within the coverage of RSU i will be relatively greater than the communication demand within the coverage of other roadside units, and the working state of RSU i is determined to be the on state.

再根据第i路侧单元的工作状态、和第一分配规则确定是否为RSUi分配通信需求流量。例如:Then, according to the working state of the i-th roadside unit and the first allocation rule, it is determined whether to allocate the communication demand flow to RSU i . For example:

在确定RSUi的工作状态为睡眠状态的情况下,不为RSUi分配通信需求流量。在确定RSUi的工作状态为值班状态的情况下,确定ki与Di-1的和是否小于或等于第i最大可完成通信需求流量(μi*ω);When the working state of RSU i is determined to be the sleep state, no communication demand flow is allocated to RSU i . When the working state of RSU i is determined to be the duty state, determine whether the sum of k i and D i-1 is less than or equal to the i-th maximum communication demand flow (μ i *ω);

若是,则将ki和Di-1均份分配给RSUiIf so, k i and D i-1 are equally distributed to RSU i ;

若否,且Di-1等于μi*ω,则将Di-1分配给RSUi,并将ki作为DiIf not, and Di-1 is equal to μi *ω, Di -1 is assigned to RSUi and k i is taken as Di ;

或者,若否,且Di-1小于μi*ω,则根据μi*ω与Di-1的差值确定第一分配流量,并将Di-1和ki中的与该第一分配流量大小一致的通信需求流量分配给RSUi,以及将ki与该第一分配流量的差值作为DiOr, if not, and D i-1 is less than μ i *ω, then the first allocated flow is determined according to the difference between μ i *ω and D i-1 , and the communication demand flow in D i-1 and k i that is consistent with the first allocated flow is allocated to RSU i , and the difference between k i and the first allocated flow is taken as D i ;

或者,若否,且Di-1大于第i最大可完成通信需求流量,则将Di-1中与该第i最大可完成通信需求流量大小一致的通信需求流量分配给RSUi,以及将Di-1与μi*ω的差值与ki的和作为第i累积未分配通信需求流量DiOr, if not, and Di -1 is greater than the i-th maximum achievable communication demand flow, the communication demand flow in Di-1 that is consistent with the i-th maximum achievable communication demand flow is allocated to RSU i , and the sum of the difference between Di-1 and μ i *ω and k i is taken as the i-th cumulative unallocated communication demand flow Di.

由此,根据第一开启规则确定每一个RSUi的工作状态以及根据RSUi的工作状态和第一分配规则确定是否为RSUi分配通信需求流量,得到第一组合和第一分配结果,该第一组合包括每一个RSUi的工作状态的取值,该第一分配结果与该第一组合一一对应,该第一分配结果包括给每一个工作状态处于值班状态的RSUi分配的通信需求流量的分配记录。Therefore, the working status of each RSU i is determined according to the first startup rule, and whether to allocate communication demand traffic to RSU i is determined according to the working status of RSU i and the first allocation rule, and a first combination and a first allocation result are obtained. The first combination includes the value of the working status of each RSU i , and the first allocation result corresponds to the first combination one by one. The first allocation result includes an allocation record of the communication demand traffic allocated to each RSU i whose working status is on duty.

可理解的,若上述“则尝试将该RSUi的工作状态置为值班状态(或睡眠状态)”中,将该RSUi的工作状态置为值班状态,则下次尝试时,则将该RSUi的工作状态置为睡眠状态,且对于每一种情况都对应地为根据RSUi的工作状态、和第一分配规则确定是否为该RSUi分配通信需求流量。对于上述N个路侧单元中的每一个路侧单元(例如RSU1、RSU2、RSU3、RSUi等)均如此。从而,由上述第一开启规则和第一分配规则,可以对应得到一个或多个上述第一组合,以及与每一个第一组合对应的分配结果。It is understandable that if the working state of RSU i is set to the duty state (or sleep state) in the above “then try to set the working state of RSU i to the duty state (or sleep state)”, then the working state of RSU i will be set to the sleep state in the next attempt, and for each case, it is determined whether to allocate the communication demand flow to RSU i according to the working state of RSU i and the first allocation rule. This is true for each of the N roadside units (e.g., RSU 1 , RSU 2 , RSU 3 , RSU i , etc.). Therefore, one or more of the above first combinations and the allocation results corresponding to each first combination can be obtained by the above first activation rule and the first allocation rule.

阶段3:根据每种开启组合和每种开启组合分别对应的分配结果评估路侧单元的工作效率。Phase 3: Evaluate the working efficiency of the roadside unit based on each activation combination and the allocation results corresponding to each activation combination.

S403,当上述一个或多个第一组合的数量不为1的情况下,计算上述多个上述第一组合中每个第一组合对应的长期奖励值。S403: When the number of the one or more first combinations is not 1, calculate the long-term reward value corresponding to each first combination in the multiple first combinations.

示例性的,根据总通信需求的分配完成程度β和N个路侧单元每单位能耗所传输的通信流量TPE的乘积确定与第一组合对应的第一效能指标WEPE,其中该总通信需求流量为当前时刻交通流在N个路侧单元中的每一个路侧单元通信覆盖范围内的通信需求流量的总和(也即)。Exemplarily, the first performance indicator WEPE corresponding to the first combination is determined according to the product of the distribution completion degree β of the total communication demand and the communication flow TPE transmitted by N roadside units per unit energy consumption, wherein the total communication demand flow is the sum of the communication demand flow of the traffic flow within the communication coverage range of each roadside unit in the N roadside units at the current moment (that is, ).

示例性的,上述β的计算公式如下公式1所示:Exemplarily, the calculation formula of the above β is shown in the following formula 1:

其中M为上述已分配给所述N个路侧单元中的每一个路侧单元的通信需求流的总和。Wherein M is the sum of the communication demand flows allocated to each of the N roadside units.

示例性的,上述TPE的计算公式如下公式2所示:Exemplarily, the calculation formula of the above TPE is shown in the following formula 2:

其中Pi表示RSUi的的能耗。具体的,通过以下方式计算RSUi的的能耗:Where Pi represents the energy consumption of RSU i . Specifically, the energy consumption of RSU i is calculated as follows:

当RSUi的工作状态为关闭状态时,RSUi的能耗为预设睡眠能耗Psleep,i为大于或等于1且小于或等于所述N的正整数;当第i路侧单元的工作状态为开启状态时,第i路侧单元的能耗为预设通信能耗Pcom与RSUi带宽资源的使用程度Ci的乘积与预设基础能耗P0的和(也即P0+Ci*Pcom);该Ci为分配给RSUi的全部通信需求流量与RSUi对应的最大可完成通信流量(μi*ω)的比值。示例性的,该Pi的计算公式如下公式3所示。When the working state of RSU i is off, the energy consumption of RSU i is the preset sleep energy consumption P sleep , i is a positive integer greater than or equal to 1 and less than or equal to the N; when the working state of the i-th roadside unit is on, the energy consumption of the i-th roadside unit is the product of the preset communication energy consumption P com and the usage degree Ci of the bandwidth resources of RSU i and the sum of the preset basic energy consumption P 0 (that is, P 0 + Ci *P com ); Ci is the ratio of the total communication demand flow allocated to RSU i to the maximum communication flow (μ i *ω) corresponding to RSU i . Exemplarily, the calculation formula of P i is shown in the following formula 3.

可理解的,根据上述第一开启规则和第一分配规则将交通流在上述N个路侧单元中的每一个路侧单元通信范围内的通信需求流量模拟分配给处于值班状态的路侧单元是一个是循序渐进的过程,也就是需要经过一段时长后才能得到一个上述第一组合。It can be understood that simulating and allocating the communication demand flow of traffic within the communication range of each of the N roadside units to the roadside units on duty according to the first activation rule and the first allocation rule is a gradual process, that is, it takes a period of time to obtain the first combination mentioned above.

例如,可以确定到与预设时刻对应的分配状态,该分配状态包括但不限于:分配流程进行到哪个路侧单元、给每一个路侧单元分配的通信需求流量、以及总通信需求流量的的完成程度,该预设时刻为预设的获取分配状态的时刻。For example, the allocation status corresponding to the preset time can be determined, and the allocation status includes but is not limited to: which road side unit the allocation process proceeds to, the communication demand flow allocated to each road side unit, and the degree of completion of the total communication demand flow. The preset time is the preset time for obtaining the allocation status.

例如,在t时刻,当前模拟分配流程进行到RSUi(例如RSU5),在t+1时刻当前模拟分配流程进行到RSUi+3,在t+2时刻当前模拟分配流程进行到RSUi+8,依次类推,在模拟分配完成之前,指定一个预设时刻,均可以得到对应的分配状态。For example, at time t, the current simulated allocation process proceeds to RSU i (for example, RSU 5 ), at time t+1, the current simulated allocation process proceeds to RSU i+3 , at time t+2, the current simulated allocation process proceeds to RSU i+8 , and so on. Before the simulated allocation is completed, a preset time can be specified to obtain the corresponding allocation status.

可理解的,若RSUi对应的ki与Di-1的和小于或等于所述第二阈值,确定路侧单元工作效率的装置会尝试将RSUi的工作状态置为值班状态或睡眠状态。从而至少可以得到两个第一组合,包括组合A(对于与将RSUi的工作状态置为值班状态对应的第一组合)和组合B(与将RSUi的工作状态置为睡眠状态对应的第一组合),在生成该组合A与组合B的过程中由RSU1到RSUi的分配流程一致。若将分配流程进行到RSU1的时刻为t1=0,分配流程进行到RSUi对应的时刻为t2=100ms,在该t1到t2之间存在一个或多个上述预设时刻,则该组合A和该组合B在该t1到t2之间的每一个预设时刻对应的分配状态一致。It is understandable that if the sum of k i and D i-1 corresponding to RSU i is less than or equal to the second threshold, the device for determining the working efficiency of the roadside unit will try to set the working state of RSU i to the duty state or the sleep state. Thus, at least two first combinations can be obtained, including combination A (for the first combination corresponding to setting the working state of RSU i to the duty state) and combination B (the first combination corresponding to setting the working state of RSU i to the sleep state), and the allocation process from RSU 1 to RSU i is consistent in the process of generating the combination A and the combination B. If the time when the allocation process is carried out to RSU 1 is t1=0, and the time when the allocation process is carried out to RSU i is t2=100ms, and there are one or more of the above-mentioned preset moments between t1 and t2, then the allocation state corresponding to each preset moment between t1 and t2 of the combination A and the combination B is consistent.

在本申请实施例中,根据多个上述预设时刻对应的多种分配状态,对应计算一个第一组合在不同预设时刻对应的WEPEt,以及计算一个第一组合在不同预设时刻与该WEPEt相关的奖励值r(t)。In the embodiment of the present application, according to the multiple allocation states corresponding to the multiple preset moments, WEPE t corresponding to a first combination at different preset moments is calculated, and a reward value r(t) associated with the WEPE t of the first combination at different preset moments is calculated.

示例性的,在预设时刻(t时刻),第一组合对应的奖励值r(t)的计算公式如下公式4所示:Exemplarily, at a preset time (time t), the calculation formula of the reward value r(t) corresponding to the first combination is as shown in the following formula 4:

r(t)=λ1WEPEt2G(DN) 公式4r(t)=λ 1 WEPE t2 G(D N ) Formula 4

这里,λ1表示第一效能指标的权重,λ2表示未完成的通信需求流量部分的损失,WEPEt为与t时刻对应的效能指标(关于效能指标的计算方式请参照上文,在此不再详述)。Here, λ1 represents the weight of the first performance indicator, λ2 represents the loss of the unfinished communication demand flow portion, and WEPEt is the performance indicator corresponding to time t (for the calculation method of the performance indicator, please refer to the above, which will not be described in detail here).

可选的,可以在为了确定第一组合而进行的模拟分配的分配过程中,若检测到当前到达预设时刻t,则计算对应的WEPEt。也就是说,可以在确定第一组合的组合排列的过程中,计算即将确定的第一组合的多个WEPEtOptionally, during the allocation process of the simulated allocation for determining the first combination, if it is detected that the preset time t has been reached, the corresponding WEPE t is calculated. In other words, during the process of determining the combination arrangement of the first combination, multiple WEPE t of the first combination to be determined can be calculated.

或者,可选的,也可以在模拟分配完成后确定了第一组合后,回溯分配过程,计算对应的预设时刻t下对应的WEPEt。也就是说,可以在完整地确定了第一组合的组合排列之后,计算该第一组合的对应的多个WEPEtAlternatively, after the simulated allocation is completed and the first combination is determined, the allocation process can be traced back to calculate the corresponding WEPE t at the corresponding preset time t. That is, after the combination arrangement of the first combination is completely determined, the corresponding multiple WEPE t of the first combination can be calculated.

再根据每个上述预设时刻对应的上述r(t)与预设折扣因子γ计算上述第一组合对应的长期奖励Q。示例性的,计算公式如下公式5所示,其中,E表示对中括号中的值取均值。Then, the long-term reward Q corresponding to the first combination is calculated according to the r(t) corresponding to each of the preset moments and the preset discount factor γ. Exemplarily, the calculation formula is shown in the following formula 5, where E represents the average of the values in the brackets.

Q=E[rt+γrt+12rt+23rt+3+...] 公式5Q=E[r t +γr t+12 r t+23 r t+3 +...] Formula 5

由此,可以得到每一个第一组合对应的长期奖励值Q。Thus, the long-term reward value Q corresponding to each first combination can be obtained.

S404,确定多个上述第一组合中每个第一组合对应的长期奖励值中的最大长期奖励值作为目标长期奖励值,并根据该目标长期奖励值对应的第一组合确定N个路侧单元的工作状态。S404, determining a maximum long-term reward value among the long-term reward values corresponding to each of the plurality of first combinations as a target long-term reward value, and determining the working states of N roadside units according to the first combination corresponding to the target long-term reward value.

示例性的,可以表示为以下公式6:For example, it can be expressed as the following formula 6:

其中st用于表示在t时刻的分配状态,包括在与t对应的当前路侧单元RSUi覆盖范围内生成的通信需求流量,在路侧单元RSUi之前包括该RSUi在内的路侧单元的通信覆盖范围内的通信需求流量中尚未被分配的累积通信需求流量Di,和给RSUi分配的通信需求流量。at用于表示与t时刻对应的上述第一组合。π(π=arg maxQ(s,a))表示寻找使得路侧单元长期奖励值最高(工作效率最好)的调度方式。Where s t is used to represent the allocation state at time t, including the communication demand flow generated within the coverage of the current roadside unit RSU i corresponding to t, the cumulative communication demand flow D i that has not been allocated in the communication demand flow within the communication coverage of the roadside units including RSU i before the roadside unit RSU i , and the communication demand flow allocated to RSU i . a t is used to represent the above first combination corresponding to time t. π(π=arg maxQ(s,a)) represents the search for a scheduling method that maximizes the long-term reward value of the roadside unit (best working efficiency).

可理解的,上述第一开启规则为遍历路侧单元的工作状态的组合。具体的,在一种可能的实现方式中,所述根据所述第一通信需求流量和/或所述第一累积未分配流量确定将所述第一路侧单元的工作状态置为所述开启状态和所述关闭状态中的其中一种工作状态,包括:确定所述第一通信需求流量与所述第一累积未分配流量的和是否大于第二阈值,所述第二阈值根据所述第一阈值的二分之一确定;若是,则将所述第一路侧单元的工作状态置为所述开启状态;若否,则分别尝试将所述第一路侧单元的工作状态置为所述开启状态或所述关闭状态的取值组合,分别得到对应的两个或两个以上第一组合;所述根据预设折扣因子、以及与所述第一组合对应的至少两个所述目标时刻中每个所述目标时刻对应的所述奖励值,计算所述第一组合对应的第一长期奖励值,包括:确定所述两个或两个以上第一组合中的每一个所述第一组合对应的所述第一长期奖励值;确定所述两个或两个以上第一组合中的每一个所述第一组合对应的所述第一长期奖励值中的最大值为目标长期奖励值;基于与所述长期奖励值对应的所述第一组合确定所述第一时间段内所述N个路侧单元的工作状态。It can be understood that the above-mentioned first activation rule is a combination of the working states of the traversal roadside units. Specifically, in a possible implementation, the determining, based on the first communication demand flow and/or the first accumulated unallocated flow, to set the working state of the first roadside unit to one of the open state and the closed state comprises: determining whether the sum of the first communication demand flow and the first accumulated unallocated flow is greater than a second threshold, the second threshold being determined based on half of the first threshold; if so, setting the working state of the first roadside unit to the open state; if not, respectively attempting to set the working state of the first roadside unit to a combination of values of the open state or the closed state, and obtaining two or more corresponding first combinations respectively; the calculating, based on a preset discount factor and the reward value corresponding to each of the at least two target moments corresponding to the first combination, of the first long-term reward value corresponding to the first combination comprises: determining the first long-term reward value corresponding to each of the two or more first combinations; determining the maximum value of the first long-term reward values corresponding to each of the two or more first combinations as the target long-term reward value; and determining the working states of the N roadside units in the first time period based on the first combination corresponding to the long-term reward value.

为便于描述,本文将路侧单元工作状态的组合方式称为路侧单元调度方案。For ease of description, this article refers to the combination of roadside unit working states as a roadside unit scheduling scheme.

一般地,常用的能源优化策略是在深夜或者郊区等稀疏交通流的场景下关闭部分空闲路侧单元,只留部分路侧单元值班通信。如简单的“α-RSU duty”模型,α表示路侧单元按照相同的间隔开启的比例(α=50%时,即每隔一个路侧单元就开启一个路侧单元)。这种简单而固定的路侧单元值班调度方案虽然可行,但效果一般。因为它过于简单呆板而没有考虑交通流的具体特征,不能适应交通流的实时变化,也无法自适应地在车路通信的质量与路侧单元的能耗两者间取舍。Generally, the commonly used energy optimization strategy is to shut down some idle roadside units in scenarios with sparse traffic flow, such as late at night or in suburbs, and only keep some roadside units on duty for communication. For example, in the simple "α-RSU duty" model, α represents the proportion of roadside units that are turned on at the same interval (when α=50%, one roadside unit is turned on for every other roadside unit). Although this simple and fixed roadside unit duty scheduling scheme is feasible, the effect is average. Because it is too simple and rigid and does not take into account the specific characteristics of traffic flow, it cannot adapt to real-time changes in traffic flow, and it cannot adaptively choose between the quality of vehicle-road communication and the energy consumption of roadside units.

然而,通过本申请实施例提供的确定路侧单元工作效率的方法,可以评判路侧单元调度方案的工作效率,同时,还可以根据本申请实施例提供的方法,综合考虑交通流的变化特征,确定出相应时间段的交通流状况下的一个使得路侧单元的工作效率最大化的开启组合,解决路侧单元调度方案过于简单呆板,无法适应交通流的实时变化的问题。However, through the method for determining the working efficiency of the roadside unit provided in the embodiment of the present application, the working efficiency of the roadside unit scheduling plan can be evaluated. At the same time, according to the method provided in the embodiment of the present application, the changing characteristics of the traffic flow can be comprehensively considered to determine an activation combination that maximizes the working efficiency of the roadside unit under the traffic flow conditions in the corresponding time period, thereby solving the problem that the roadside unit scheduling plan is too simple and rigid and cannot adapt to the real-time changes in traffic flow.

实施例3:Embodiment 3:

以下假定第一道路包括上述第一车道和上述第二车道,且在第一道路上存在N个通信覆盖范围无重复且无间隔地均匀排列的路侧单元为例,执行本申请提供的确定路侧单元工作效率的方法。The following assumes that the first road includes the first lane and the second lane, and there are N roadside units whose communication coverage areas are evenly arranged without duplication and without intervals on the first road, and executes the method for determining the working efficiency of the roadside units provided in the present application.

如图5所示,该方法包括以下步骤:As shown in FIG5 , the method comprises the following steps:

阶段1:根据历史数据统计交通流特征数据。Phase 1: Collect traffic flow characteristic data based on historical data.

S501,获取与第一时间段对应的交通流在正向交通流和反向交通流中的每个路侧单元体现的交通流特征数据。S501, obtaining traffic flow characteristic data reflected by each roadside unit in the forward traffic flow and the reverse traffic flow corresponding to the first time period.

在本申请实施例中,采用与第一时间段对应的历史时间段内每个路侧单元在正向交通流和反向交通流中对应体现的交通流特征数据,表征第一时间段内每个路侧单元在正向交通流和反向交通流中对应体现的交通流特征数据。例如,历史时间段和第一时间段的日期不同,但历史时间段和第一时间段为一天中相同的时间段。In the embodiment of the present application, the traffic flow characteristic data corresponding to the forward traffic flow and the reverse traffic flow of each roadside unit in the historical time period corresponding to the first time period is used to characterize the traffic flow characteristic data corresponding to the forward traffic flow and the reverse traffic flow of each roadside unit in the first time period. For example, the dates of the historical time period and the first time period are different, but the historical time period and the first time period are the same time period in a day.

上述交通流特征数据包括在第一时间段内交通流分别在正向交通流和反向交通流中在每个路侧单元的通信覆盖范围内的停留时长、交通流分别在正向交通流和反向交通流中在每个路侧单元的通信覆盖范围内V2I通信的通信请求次数、以及交通流分别在正向交通流和反向交通流中在每个路侧单元的通信覆盖范围内每次请求通信的V2I通信需求流量。The above-mentioned traffic flow characteristic data include the length of time that the traffic flow stays within the communication coverage of each roadside unit in the forward traffic flow and the reverse traffic flow in the first time period, the number of communication requests for V2I communication in the communication coverage of each roadside unit in the forward traffic flow and the reverse traffic flow, and the V2I communication demand flow for each communication request in the communication coverage of each roadside unit in the forward traffic flow and the reverse traffic flow.

示例性的,可以通过路侧单元对应的道路轨迹信息和/或车辆中的T-BOX上报至车辆控制中心的行驶轨迹记录(行驶轨迹记录包括当前时间与当前位置)确定与第一时间段对应的两个或两个以上历史时间段内的交通流特征数据。Exemplarily, traffic flow characteristic data in two or more historical time periods corresponding to the first time period can be determined through road trajectory information corresponding to the roadside unit and/or driving trajectory records reported to the vehicle control center by the T-BOX in the vehicle (driving trajectory records include current time and current location).

具体的,获取与第一时间段对应的交通流在正向交通流和反向交通流中的每个路侧单元体现的交通流特征数据包括以下步骤:Specifically, obtaining traffic flow characteristic data reflected by each roadside unit in the forward traffic flow and the reverse traffic flow corresponding to the first time period includes the following steps:

S5011,获取与第一时间段对应的正向交通流中交通流在每一个路侧单元覆盖范围内的停留时长,以及,获取反向交通流中交通流在每一个路侧单元覆盖范围内的停留时长。S5011, obtaining the length of time that the traffic flow in the forward traffic flow corresponding to the first time period stays within the coverage of each roadside unit, and obtaining the length of time that the traffic flow in the reverse traffic flow stays within the coverage of each roadside unit.

根据获取到的与第一时间段对应的正向交通流中的每一个路侧单元覆盖范围内的停留时长,计算正向交通流(为便于描述,在一些函数的描述中,用F表示正向交通流)中路侧单元覆盖范围内交通流的停留时长的正态分布情况,分别一一得到用于表示第i路侧单元覆盖范围内交通流的停留时长的正态分布函数f(RSUiiFiF)。其中,i表示第i个目标路侧单元,i的取值为大于或等于1且小于或等于N的正整数,N用于表示测试道路中包括的路侧单元的总数,μiF用于表示第i个目标路侧单元覆盖范围内的正向交通流中交通流的停留时长的期望(均数),δiF为第i个目标路侧单元覆盖范围内的正向交通流中交通流的停留时长的标准差。以及,According to the acquired stay time within the coverage of each roadside unit in the forward traffic flow corresponding to the first time period, the normal distribution of the stay time of the traffic flow within the coverage of the roadside unit in the forward traffic flow (for ease of description, in the description of some functions, F is used to represent the forward traffic flow), and the normal distribution functions f(RSU iiFiF ) used to represent the stay time of the traffic flow within the coverage of the i-th roadside unit are obtained one by one. Wherein, i represents the i-th target roadside unit, the value of i is a positive integer greater than or equal to 1 and less than or equal to N, N is used to represent the total number of roadside units included in the test road, μ iF is used to represent the expected (mean) stay time of the traffic flow in the forward traffic flow within the coverage of the i-th target roadside unit, and δ iF is the standard deviation of the stay time of the traffic flow in the forward traffic flow within the coverage of the i-th target roadside unit. And,

根据获取到的与第一时间段对应的反向交通流中交通流在每一个路侧单元覆盖范围内的停留时长,计算反向交通流(为便于描述,在一些函数的描述中,用R表示反向交通流)中路侧单元覆盖范围内交通流的停留时长的正态分布情况,分别一一得到用于表示第i路侧单元覆盖范围内交通流的停留时长的正态分布函数f(RSUiiRiR)。其中,i表示第i路侧单元,i的取值为大于或等于1且小于或等于N的正整数,N用于表示测试道路中包括的路侧单元的总数,μiR用于表示第i路侧单元覆盖范围内的反向交通流中交通流的停留时长的期望(均数),也即交通流在第i路侧单元通信覆盖范围内的平均停留时长,δiR为第i路侧单元覆盖范围内的反向交通流中交通流的停留时长的标准差。According to the acquired residence time of the traffic flow in the reverse traffic flow corresponding to the first time period within the coverage of each roadside unit, the normal distribution of the residence time of the traffic flow in the reverse traffic flow (for the convenience of description, in the description of some functions, R is used to represent the reverse traffic flow) within the coverage of the roadside unit is calculated, and the normal distribution functions f(RSU iiRiR ) used to represent the residence time of the traffic flow within the coverage of the i-th roadside unit are obtained one by one. Wherein, i represents the i-th roadside unit, the value of i is a positive integer greater than or equal to 1 and less than or equal to N, N is used to represent the total number of roadside units included in the test road, μ iR is used to represent the expected (mean) residence time of the traffic flow in the reverse traffic flow within the coverage of the i-th roadside unit, that is, the average residence time of the traffic flow within the communication coverage of the i-th roadside unit, and δ iR is the standard deviation of the residence time of the traffic flow in the reverse traffic flow within the coverage of the i-th roadside unit.

具体如何根据与第一时间段对应的历史时间段求得μiF或μiR,可以参照本文其他实施例的相关说明(例如实施例2中S401中的相关说明),在此不再详述。For specific methods of obtaining μ iF or μ iR according to the historical time period corresponding to the first time period, reference may be made to the relevant descriptions of other embodiments herein (eg, the relevant descriptions in S401 in Embodiment 2), which will not be described in detail here.

S5012,获取与第一时间段对应的正向交通流中每一个路侧单元覆盖范围内交通流的V2I通信请求次数,以及获取与第一时间段对应的反向交通流中每一个上述路侧单元覆盖范围内交通流的V2I通信请求次数。S5012, obtaining the number of V2I communication requests for each traffic flow within the coverage area of a roadside unit in the forward traffic flow corresponding to the first time period, and obtaining the number of V2I communication requests for each traffic flow within the coverage area of the above roadside unit in the reverse traffic flow corresponding to the first time period.

根据获取到的上述正向交通流中每一个上述路侧单元覆盖范围内交通流的V2I通信的请求次数,计算正向交通流中所述路侧单元覆盖范围内交通流的V2I通信请求次数的泊松分布请求情况,分别一一得到用于表示第i路侧单元覆盖范围内交通流的V2I通信请求次数的泊松分布函数P(RSUiiF)。其中,参数i表示第i路侧单元,i的取值为大于或等于1且小于或等于N的正整数,N用于表示测试道路中包括的路侧单元的总数,λiF用于表示第i路侧单元覆盖范围内的正向交通流中交通流的V2I通信请求次数的期望(均数)和标准差。以及,According to the obtained number of V2I communication requests of the traffic flow within the coverage range of each of the above-mentioned roadside units in the above-mentioned forward traffic flow, the Poisson distribution request situation of the number of V2I communication requests of the traffic flow within the coverage range of the roadside unit in the forward traffic flow is calculated, and the Poisson distribution function P(RSU iiF ) used to represent the number of V2I communication requests of the traffic flow within the coverage range of the i-th roadside unit is obtained one by one. Among them, the parameter i represents the i-th roadside unit, the value of i is a positive integer greater than or equal to 1 and less than or equal to N, N is used to represent the total number of roadside units included in the test road, and λ iF is used to represent the expected (mean) and standard deviation of the number of V2I communication requests of the traffic flow in the forward traffic flow within the coverage range of the i-th roadside unit. And,

根据获取到的上述反向交通流中每一个上述路侧单元覆盖范围内交通流的V2I通信请求次数,计算反向交通流中所述路侧单元覆盖范围内交通流的V2I通信请求次数的泊松分布请求情况,分别一一得到用于表示第i路侧单元覆盖范围内交通流的V2I通信请求次数的泊松分布函数P(RSUiiR)。其中,参数i表示第i路侧单元,i的取值为大于或等于1且小于或等于N的正整数,N用于表示测试道路中包括的路侧单元的总数,λiR用于表示第i路侧单元覆盖范围内的反向交通流中交通流的V2I通信请求次数的期望(均数)和标准差。According to the obtained number of V2I communication requests of each traffic flow within the coverage of the above roadside unit in the above reverse traffic flow, the Poisson distribution request of the number of V2I communication requests of the traffic flow within the coverage of the roadside unit in the reverse traffic flow is calculated, and the Poisson distribution function P(RSU iiR ) used to represent the number of V2I communication requests of the traffic flow within the coverage of the i-th roadside unit is obtained one by one. Among them, the parameter i represents the i-th roadside unit, the value of i is a positive integer greater than or equal to 1 and less than or equal to N, N is used to represent the total number of roadside units included in the test road, and λ iR is used to represent the expectation (mean) and standard deviation of the number of V2I communication requests of the traffic flow in the reverse traffic flow within the coverage of the i-th roadside unit.

具体如何根据与第一时间段对应的历史时间段求得λiF或λiR,可以参照本文其他实施例的相关说明(例如实施例2中S401中的相关说明),在此不再详述。For specific methods of obtaining λ iF or λ iR according to the historical time period corresponding to the first time period, reference may be made to the relevant descriptions of other embodiments herein (eg, the relevant descriptions in S401 in Embodiment 2), which will not be described in detail here.

S5013,获取与第一时间段对应的正向交通流中每一个上述路侧单元覆盖范围内交通流每次请求的V2I通信需求流量,以及,获取与第一时间段对应的反向交通流中每一个上述路侧单元覆盖范围内交通流每次请求的V2I通信需求流量。S5013, obtaining the V2I communication demand flow requested each time by each traffic flow within the coverage area of the above-mentioned roadside unit in the forward traffic flow corresponding to the first time period, and obtaining the V2I communication demand flow requested each time by each traffic flow within the coverage area of the above-mentioned roadside unit in the reverse traffic flow corresponding to the first time period.

根据获取到的上述正向交通流中每一个上述路侧单元覆盖范围内交通流每次请求的V2I通信需求流量,计算正向交通流中上述路侧单元覆盖范围内交通流每次请求的V2I通信需求流量的正态分布情况,分别一一得到用于表示第i路侧单元覆盖范围内交通流每次请求的V2I通信需求流量的正态分布函数g(RSUiiFiF)。其中,参数i表示第i路侧单元,i的取值为大于或等于1且小于或等于N的正整数,N用于表示测试道路中包括的路侧单元的总数,ρiF用于表示第i路侧单元覆盖范围内的正向交通流中交通流每次请求的V2I通信需求流量的期望(均数),σiF用于表示第i路侧单元覆盖范围内的正向交通流中交通流每次请求的V2I通信需求流量的标准差。以及,According to the obtained V2I communication demand flow requested each time by the traffic flow within the coverage area of each roadside unit in the above-mentioned forward traffic flow, the normal distribution of the V2I communication demand flow requested each time by the traffic flow within the coverage area of the above-mentioned roadside unit in the forward traffic flow is calculated, and the normal distribution functions g(RSU i , ρ iF , σ iF ) used to represent the V2I communication demand flow requested each time by the traffic flow within the coverage area of the i-th roadside unit are obtained one by one. Among them, the parameter i represents the i-th roadside unit, the value of i is a positive integer greater than or equal to 1 and less than or equal to N, N is used to represent the total number of roadside units included in the test road, ρ iF is used to represent the expected (mean) V2I communication demand flow requested each time by the traffic flow in the forward traffic flow within the coverage area of the i-th roadside unit, and σ iF is used to represent the standard deviation of the V2I communication demand flow requested each time by the traffic flow in the forward traffic flow within the coverage area of the i-th roadside unit. And,

根据获取到的上述反向交通流中每一个上述路侧单元覆盖范围内的V2I的通信需求流量,计算反向交通流中上述路侧单元覆盖范围内交通流每次请求的V2I通信需求流量的正态分布情况,分别一一得到用于表示第i路侧单元覆盖范围内交通流每次请求的V2I通信需求流量的正态分布函数g(RSUiiRiR)。其中,参数i表示第i路侧单元,i的取值为大于或等于1且小于或等于N的正整数,N用于表示测试道路中包括的路侧单元的总数,ρiR用于表示第i路侧单元覆盖范围内的反向交通流中交通流每次请求的V2I通信需求流量的期望(均数),σiR用于表示第i路侧单元覆盖范围内的反向交通流中交通流每次请求的V2I通信需求流量的标准差。According to the acquired V2I communication demand flow within the coverage of each roadside unit in the reverse traffic flow, the normal distribution of the V2I communication demand flow requested by the traffic flow within the coverage of the roadside unit in the reverse traffic flow is calculated, and the normal distribution functions g(RSU iiRiR ) for representing the V2I communication demand flow requested by the traffic flow within the coverage of the i-th roadside unit are obtained one by one. Among them, the parameter i represents the i-th roadside unit, the value of i is a positive integer greater than or equal to 1 and less than or equal to N, N is used to represent the total number of roadside units included in the test road, ρ iR is used to represent the expected (mean) V2I communication demand flow requested by the traffic flow in the reverse traffic flow within the coverage of the i-th roadside unit, and σ iR is used to represent the standard deviation of the V2I communication demand flow requested by the traffic flow in the reverse traffic flow within the coverage of the i-th roadside unit.

具体如何根据与第一时间段对应的历史时间段求得ρiR或σiF,可以参照本文其他实施例的相关说明(例如实施例2中S401中的相关说明),在此不再详述。For specific methods of obtaining ρ iR or σ iF according to the historical time period corresponding to the first time period, reference may be made to the relevant descriptions of other embodiments herein (eg, the relevant descriptions in S401 in Embodiment 2), which will not be described in detail here.

结合上述关于停留时间、V2I通信请求次数以及交通流每次请求的V2I通信需求流量的分布函数,可得:Combining the above distribution functions of the dwell time, the number of V2I communication requests, and the V2I communication demand flow of each traffic flow request, we can get:

第一时间段内第i路侧单元覆盖范围内的正向交通流每时刻平均产生的通信需求流量可以表示为以下公式7,也即为:第i路侧单元覆盖范围内的正向交通流中交通流的停留时长的期望(μiF)、与第i路侧单元覆盖范围内的正向交通流中交通流的V2I通信请求次数的期望(λiF)、以及与第i路侧单元覆盖范围内的正向交通流中交通流每次请求的V2I通信需求流量的期望(ρiF)的乘积(具体以公式7中的表示)。The average communication demand flow generated by the forward traffic flow within the coverage area of the i-th roadside unit in the first time period at each moment It can be expressed as the following formula 7, that is, the product of the expected stay time of the traffic flow in the forward traffic flow within the coverage of the i-th roadside unit (μ iF ), the expected number of V2I communication requests of the traffic flow in the forward traffic flow within the coverage of the i-th roadside unit (λ iF ), and the expected V2I communication demand flow of each request of the traffic flow in the forward traffic flow within the coverage of the i-th roadside unit (ρ iF ) (specifically, the product of the expected stay time of the traffic flow in the forward traffic flow within the coverage of the i-th roadside unit (μ iF )). express).

第一时间段内第i路侧单元覆盖范围内的反向交通流每时刻平均产生的通信需求流量可以表示为以下公式8:第i路侧单元覆盖范围内的反向交通流中交通流的停留时长的期望(μiR)、与第i路侧单元覆盖范围内的反向交通流中交通流的V2I通信请求次数的期望(λiR)、以及与第i路侧单元覆盖范围内的反向交通流中交通流每次请求的V2I通信需求流量的期望(ρiR)的乘积。The average communication demand flow generated by the reverse traffic flow within the coverage area of the i-th roadside unit in the first time period It can be expressed as the following formula 8: the product of the expected stay time of the traffic flow in the reverse traffic flow within the coverage of the i-th roadside unit (μ iR ), the expected number of V2I communication requests of the traffic flow in the reverse traffic flow within the coverage of the i-th roadside unit (λ iR ), and the expected V2I communication demand flow of each request of the traffic flow in the reverse traffic flow within the coverage of the i-th roadside unit (ρ iR ).

S502,根据交通流特征数据确定正向交通流的通信需求流量集合和反向交通流的通信需求流量集合。S502: Determine a communication demand flow set of a forward traffic flow and a communication demand flow set of a reverse traffic flow according to traffic flow characteristic data.

可理解的,根据第第一时间段内第i路侧单元覆盖范围内的正向交通流每时刻平均产生的通信需求流量可以确定到正向交通流的通信需求流量集合,以及,根据第一时间段内第i路侧单元覆盖范围内的反向交通流每时刻平均产生的通信需求流量可以确定反向交通流的通信总需求集合。It can be understood that the average communication demand flow generated by the forward traffic flow within the coverage area of the i-th roadside unit in the first time period is The communication demand flow set of the forward traffic flow can be determined, and the communication demand flow generated by the reverse traffic flow within the coverage area of the i-th roadside unit at each moment in the first time period can be determined. The aggregate set of communication demands for the reverse traffic flow may be determined.

示例性的,正向交通流的通信总需求集合QF可以表示为反向交通流的通信需求集合QR可以表示为 For example, the total communication demand set Q F of the forward traffic flow can be expressed as The communication demand set QR of the reverse traffic flow can be expressed as

阶段2:根据交通流特征数据、路侧单元工作状态的开启规则以及通信需求流量的分配规则,模拟将通信需求流量分配给对应的路侧单元。Phase 2: Based on the traffic flow characteristic data, the opening rules of the roadside unit working status and the allocation rules of the communication demand flow, simulate the allocation of the communication demand flow to the corresponding roadside unit.

S503,基于第一开启规则和第一分配规则确定每一个路侧单元的工作状态、并将上述正向交通流的通信需求集合和上述反向交通流的通信需求集合里分解为子任务分配给处于值班状态的路侧单元,得到一个或一个以上第一组合和每个第一组合对应的分配结果。S503, based on the first activation rule and the first allocation rule, determine the working status of each roadside unit, and decompose the communication demand set of the above-mentioned forward traffic flow and the communication demand set of the above-mentioned reverse traffic flow into sub-tasks and assign them to the roadside units on duty, so as to obtain one or more first combinations and the allocation results corresponding to each first combination.

可理解的,路侧单元的工作状态为值班状态则表示路侧单元可以执行V2I通信任务;路侧单元的工作状态为睡眠状态则表示路侧单元不在工作状态(例如掉电关机等),不能处理V2I通信任务。It can be understood that if the working state of the roadside unit is on duty, it means that the roadside unit can perform V2I communication tasks; if the working state of the roadside unit is sleep, it means that the roadside unit is not in working state (for example, power off, etc.) and cannot process V2I communication tasks.

关于第一开启规则和第一分配规则的说明可以参照本文其他实施例的相关描述(例如实施例2中的S402中的相关说明)。For the description of the first activation rule and the first allocation rule, reference may be made to the relevant descriptions of other embodiments herein (eg, the relevant descriptions in S402 in Embodiment 2).

示例性的,记QF中的分解为多个以及,将QR中的分解为并分配到多个不相交的子集使得其中i表示相应的子任务()属于原第i路侧单元的通信任务,j用于表示第j路侧单元,表示属于原第i路侧单元的通信任务被分配给第j路侧单元。可理解的,j可以取值为1至N中的任意一个正整数,第j路侧单元的工作状态可能是睡眠状态也可能是值班状态,但通信需求流量只能被分配给处于值班状态的第j路侧单元。For example, let Q F Decompose into multiple And, change the Decomposed into And distribute to multiple disjoint subsets Make where i represents the corresponding subtask ( or ) belongs to the communication task of the original i-th roadside unit, j is used to represent the j-th roadside unit, or Indicates that the communication task belonging to the original i-th roadside unit is assigned to the j-th roadside unit. It can be understood that j can be any positive integer from 1 to N, and the working state of the j-th roadside unit can be either a sleeping state or a duty state, but the communication demand flow can only be assigned to the j-th roadside unit in the duty state.

可理解的,上述是用于表征基于第一开启规则和第一分配规则将对应的通信需求流量模拟分配给处于值班状态的路侧单元后得到的分配结果,而不是用于表征先将分解得到再基于第一开启规则和第一分配规将分解后的通信需求流量分配给对应的路侧单元。Understandably, the above and It is used to characterize the allocation result obtained by simulating the allocation of the corresponding communication demand flow to the roadside unit in the duty state based on the first opening rule and the first allocation rule, rather than for characterizing the allocation of and Decomposed and The decomposed communication demand flow is then allocated to the corresponding roadside unit based on the first activation rule and the first allocation rule.

示例性的,如下公式9所示,用yj取值为1表示第j路侧单元被调度为值班状态,用yj取值为0表示第j路侧单元被调度为睡眠状态。Exemplarily, as shown in the following formula 9, a value of yj of 1 indicates that the j-th roadside unit is scheduled to be in the duty state, and a value of yj of 0 indicates that the j-th roadside unit is scheduled to be in the sleep state.

在一种可能的实现方式中,在分配过程中,为保证在每个路侧单元覆盖范围内产生的V2I通信需求流量尽可能地分配完,则需要满足原第i路侧单元内产生的V2I通信需求流量分配给一个或一个以上第j路侧单元的V2I通信需求流量的总和,应尽可能趋近于原第i路侧单元内产生的V2I通信需求流量。In one possible implementation, during the allocation process, in order to ensure that the V2I communication demand flow generated within the coverage area of each roadside unit is allocated as much as possible, it is necessary to satisfy that the sum of the V2I communication demand flow generated in the original i-th roadside unit and allocated to one or more j-th roadside units should be as close as possible to the V2I communication demand flow generated in the original i-th roadside unit.

示例性的,如下公式10所示,用取值为1表示分解部分的通信任务分配给RSUj,用取值为0表示分解部分的通信任务未分配给RSUj。反向交通流分配通信任务分配结果同理。同时由于交通流的运动特点,在一个路侧单元覆盖范围内产生的通信需求只能分配给在其之后(包括这个)的路侧单元来完成,由此在正向交通流中需要满足j大于或等于i;反向交通流中则需要满足j小于或等于i。For example, as shown in the following formula 10, The value is 1. Decomposing communication tasks into parts Assigned to RSU j , using A value of 0 indicates Decomposing communication tasks into parts Not assigned to RSU j . Result of communication task allocation for reverse traffic flow allocation Similarly, due to the movement characteristics of traffic flow, the communication needs generated within the coverage of a roadside unit can only be allocated to the roadside unit after it (including this one) to complete, so in the forward traffic flow, j must be greater than or equal to i; in the reverse traffic flow, j must be less than or equal to i.

示例性的,原第i路侧单元内产生的V2I通信需求流量分配给一个或一个以上第j路侧单元的V2I通信需求流量的总和,应尽可能趋近于原第i路侧单元内产生的V2I通信需求流量,可以表示为如下公式11所示。Exemplarily, the sum of the V2I communication demand traffic generated in the original i-th roadside unit and allocated to one or more j-th roadside units should be as close as possible to the V2I communication demand traffic generated in the original i-th roadside unit, which can be expressed as shown in the following formula 11.

在一种可能的实现方式中,在分配过程中,为使得分配给对应路侧单元的通信任务该路侧单元可以完成,则需要满足分配给每个路侧单元的总通信任务应小于其最大带宽(例如用c表示路侧单元的最大宽带)。In one possible implementation, during the allocation process, in order for the corresponding roadside unit to complete the communication task assigned to the roadside unit, it is necessary to ensure that the total communication task assigned to each roadside unit is less than its maximum bandwidth (for example, c is used to represent the maximum bandwidth of the roadside unit).

示例性的,任意的第j路侧单元被分配的正向交通流的通信任务和被分配的反向交通流的通信任务的总和小于该第j路侧单元的最大带宽,可以表示为如下公式12所示。Exemplarily, the sum of the communication tasks of the forward traffic flow and the communication tasks of the reverse traffic flow assigned to any j-th roadside unit is less than the maximum bandwidth of the j-th roadside unit, which can be expressed as shown in the following formula 12.

在一种可能的实现方式中,为使得分配给对应路侧单元的通信任务该路侧单元可以完成,还需要满足分配给该路侧单元的通信任务(通信任务也即通信需求流量)所对应的通信时长小于交通流在其覆盖范围内的停留时长,否则,若通信时长大于交通流在交通流中的停留时长,可能会出现交通流已驶离路侧单元的覆盖范围,但通信任务并未完成。In one possible implementation, in order for the roadside unit to complete the communication task assigned to the corresponding roadside unit, it is also necessary to ensure that the communication duration corresponding to the communication task assigned to the roadside unit (the communication task is also the communication demand flow) is less than the length of time the traffic flow stays in its coverage area. Otherwise, if the communication duration is greater than the length of time the traffic flow stays in the traffic flow, the traffic flow may have left the coverage area of the roadside unit, but the communication task has not been completed.

示例性的,如下公式13所示,对于任意一个分配到第j路侧单元的正向交通流通信任务与路侧单元每秒传输的通信流量常数的比值小于或等于与交通流在该第j路侧单元覆盖范围内的停留时长的期望(均值),反向交通流同理。Exemplarily, as shown in the following formula 13, for any forward traffic flow communication task assigned to the j-th roadside unit The ratio of the communication flow constant transmitted per second by the roadside unit is less than or equal to the expected (mean) length of stay of the traffic flow within the coverage area of the jth roadside unit, and the same is true for the reverse traffic flow.

关于根据第一开启规则和第一分配规则将通信需求流量分配给对应的路侧单元后得到的一个或一个以上的第一组合和与每一个第一组合对应的分配结果的具体说明,可以参照本文其他实施例的相关描述,例如实施例2中S402中的相关说明,在此不再详述。For specific descriptions of one or more first combinations obtained after allocating the communication demand traffic to the corresponding roadside units according to the first activation rule and the first allocation rule and the allocation results corresponding to each first combination, please refer to the relevant descriptions of other embodiments of this document, such as the relevant descriptions in S402 in Embodiment 2, which will not be described in detail here.

阶段3:根据每种开启组合和每种开启组合分别对应的分配结果评估路侧单元的工作效率。Phase 3: Evaluate the working efficiency of the roadside unit based on each activation combination and the allocation results corresponding to each activation combination.

S504,当上述一个或多个第一组合的数量不为1的情况下,计算上述多个上述第一组合中每个第一组合对应的效能指标。S504: When the number of the one or more first combinations is not 1, calculate the performance index corresponding to each first combination in the multiple first combinations.

在本申请实施例中,可以通过不同的路侧单元调度方案的能量效率(指标1)和总V2I通信需求的完成程度(指标2)的乘积作为综合指标(WEPE),描述每单位能耗下路侧单元的工作效率,其中该综合指标与路侧单元的工作效率成正比。In an embodiment of the present application, the product of the energy efficiency (indicator 1) of different roadside unit scheduling schemes and the degree of completion of the total V2I communication demand (indicator 2) can be used as a comprehensive indicator (WEPE) to describe the working efficiency of the roadside unit per unit energy consumption, where the comprehensive indicator is proportional to the working efficiency of the roadside unit.

示例性的,如下公式14所示,上述指标1可以通过每单位能耗所传输的V2I通信流量(TPE)表示。TPE的取值越大表示上述指标1的表现越好。Exemplarily, as shown in the following formula 14, the above-mentioned indicator 1 can be represented by the V2I communication traffic (TPE) transmitted per unit energy consumption. The larger the value of TPE, the better the performance of the above-mentioned indicator 1.

其中,Pj是第j路侧单元(该第j路侧单元可能处于值班状态,也可能处于睡眠状态)的能耗。即为所有路侧单元产生的总能耗。M为上述已分配给所述N个路侧单元中的每一个路侧单元的通信需求流的总和。Wherein, Pj is the energy consumption of the j-th roadside unit (the j-th roadside unit may be in a duty state or in a sleep state). That is, it is the total energy consumption generated by all roadside units. M is the sum of the communication demand flows allocated to each of the N roadside units.

在另外一种可能的实现方式中,M还可以取值为所有值班路侧单元理论上所能传输的最大V2I通信流量总量。可理解的,在实际应用中,只要路侧单元处于开启状态,则会最大化地利用该路侧单元完成通信任务,也即分配给该路侧单元的通信需求流量通常会尽可能地趋近于该路侧单元理论上所能传输的最大V2I通信需求流量。示例性的,M的计算方法如下公式15所示。In another possible implementation, M can also be taken as the maximum total amount of V2I communication traffic that all on-duty roadside units can theoretically transmit. It is understandable that in practical applications, as long as the roadside unit is in the on state, the roadside unit will be used to the maximum extent to complete the communication task, that is, the communication demand traffic allocated to the roadside unit will usually be as close as possible to the maximum V2I communication demand traffic that the roadside unit can theoretically transmit. Exemplarily, the calculation method of M is shown in the following formula 15.

其中,ω为路侧单元平均每秒传输的通信流量常数。(μjFjR)*ω(也即正向交通流和反向交通流中交通流在第j路侧单元的平均时长与路侧单元平均每秒传输的通信流量的乘积)则用于表示第j路侧单元在交通流中的所传输的V2I通信流量。yj*(μjFjR)*ω中,当yj取值为1,则yj*(μjFjR)*ω表示第j路侧单元被调度为值班状态所需传输的V2I通信流量,当yj取值为0,则yj*(μjFjR)*ω表示第j路侧单元被调度为睡眠状态,无需传输V2I通信流量。从而所有值班路侧单元理论上所能传输的V2I通信流量总量可以由j取1至N下yj*(μjFjR)*ω的总和表示。Wherein, ω is the communication flow constant transmitted by the roadside unit on average per second. (μ jFjR )*ω (i.e., the product of the average duration of the traffic flow in the jth roadside unit in the forward traffic flow and the reverse traffic flow and the communication flow transmitted by the roadside unit on average per second) is used to represent the V2I communication flow transmitted by the jth roadside unit in the traffic flow. In y j *(μ jFjR )*ω, when y j takes the value of 1, y j *(μ jFjR )*ω represents the V2I communication flow required to be transmitted when the jth roadside unit is scheduled as the duty state, and when y j takes the value of 0, y j *(μ jFjR )*ω represents that the jth roadside unit is scheduled as the sleep state and does not need to transmit V2I communication flow. Therefore, the total amount of V2I communication flow that all duty roadside units can theoretically transmit can be represented by the sum of y j *(μ jFjR )*ω when j takes the value of 1 to N.

可理解的,路侧单元的工作状态不同,能耗Pj的计算方式也就不同。当路侧单元处于值班状态时,Pj通常包括基础能耗P0和通信能耗Pcom。当路侧单元处于值班状态,基础能耗为P0常量,通信能耗Pcom则根据路侧单元的工作负载对应。而当路侧单元没有被调度为值班状态,则立即进入睡眠,处于睡眠状态,则路侧单元的功能为常量PsleepIt is understandable that the calculation method of energy consumption Pj is different for different working states of the roadside unit. When the roadside unit is on duty, Pj usually includes basic energy consumption P0 and communication energy consumption Pcom . When the roadside unit is on duty, the basic energy consumption is constant P0 , and the communication energy consumption Pcom corresponds to the workload of the roadside unit. When the roadside unit is not scheduled to be on duty, it immediately goes to sleep. In the sleep state, the function of the roadside unit is constant Psleep .

示例性的,能耗Pi的计算方式如下公式16所示。在公式16中,RSUj的通信任务kij由正向交通流中RSUj的子任务和反向交通流中RSUj的子任务共同组成。具体的,该kij的计算方法为:也即公式16中的用于表示正向交通流和反向交通流中分配给RSUj的通信需求流量。μj*ω表征正向交通流和反向交通流在RSUj中可完成的最大通信任务量。Exemplarily, the energy consumption Pi is calculated as shown in the following formula 16. In formula 16, the communication task kij of RSU j is composed of the subtask of RSU j in the forward traffic flow and the subtask of RSU j in the reverse traffic flow. Specifically, the calculation method of kij is: That is, It is used to represent the communication demand flow assigned to RSU j in the forward traffic flow and the reverse traffic flow. μ j *ω represents the maximum communication task that can be completed in RSU j in the forward traffic flow and the reverse traffic flow.

在本申请实施例中,上述指标2(总V2I通信需求的完成程度)可以通过效能指数β来表示。该β的计算方式如下公式17所示,该β等于N个路侧单元可完成的通信需求流量与交通流在N个路侧单元产生的通信需求流量的比值。该β的取值越趋近于1(取值越大),则表示指标2表现越好。In the embodiment of the present application, the above-mentioned indicator 2 (the degree of completion of the total V2I communication demand) can be represented by the performance index β. The calculation method of β is shown in the following formula 17, which is equal to the ratio of the communication demand flow that can be completed by N roadside units to the communication demand flow generated by the traffic flow in the N roadside units. The closer the value of β is to 1 (the larger the value), the better the performance of indicator 2.

由此,上述描述每单位能耗下路侧单元的工作效率综合指标(WEPE)的计算方式如下公式18所示。该WEPE的取值越大,表示工作效率越好。Therefore, the calculation method of the comprehensive working efficiency index (WEPE) of the roadside unit per unit energy consumption is as shown in the following formula 18. The larger the value of the WEPE is, the better the working efficiency is.

S505,确定多个上述第一组合对应的效能指标中的最大效能指标作为目标效能指标,并根据该目标效能指标对应的第一组合确定N个路侧单元的工作状态。S505, determining a maximum performance indicator among the performance indicators corresponding to the plurality of first combinations as a target performance indicator, and determining the working states of N roadside units according to the first combination corresponding to the target performance indicator.

在一种可能的实现方式中,优化路侧单元的优化目标为maximize WEPE。也可以理解为,如何找到各个路侧单元的值班状态或睡眠状态的多项取值组合中的目标组合,该目标组合为多项组合中使得上述WEPE的取值最大的组合,以使得在满足V2I通信的前提下,最大化路侧单元的工作效率。In a possible implementation, the optimization goal of optimizing the roadside unit is to maximize WEPE. It can also be understood as how to find a target combination among multiple value combinations of the duty state or sleep state of each roadside unit, and the target combination is the combination that maximizes the value of the above WEPE among multiple combinations, so as to maximize the working efficiency of the roadside unit under the premise of satisfying V2I communication.

在另外一种实现方式中,还可以根据第一组合对应的效能指标WEPE计算第一组合对应的长期奖励值,以长期奖励值取最大值为优化路侧单元的优化目标。具体的,关于长期奖励值的计算方式可以参照本文其他实施例的相关描述(例如实施例2中S403中的相关说明),在此不再详述。In another implementation, the long-term reward value corresponding to the first combination can also be calculated according to the efficiency index WEPE corresponding to the first combination, and the maximum value of the long-term reward value is used as the optimization target of optimizing the roadside unit. Specifically, the calculation method of the long-term reward value can refer to the relevant description of other embodiments of this invention (such as the relevant description in S403 in Embodiment 2), which will not be described in detail here.

实施例4:Embodiment 4:

以下结合深度学习模型介绍本申请提供的确定路侧单元工作效率的方法的一种具体实现方式。The following introduces a specific implementation of the method for determining the working efficiency of a roadside unit provided in this application in combination with a deep learning model.

在深度学习模型的系统中,可以将统计得到的与第一时间段对应的在正向交通流或反向交通流中交通流在每个路侧单元通信覆盖范围内的平均停留时长、以及与第一时间段对应的在正向交通流或反向交通流中交通流在每个路侧单元通信覆盖范围内的平均产生的通信需求流量作为输入。关于该平均停留时长和平均通信需求流量如何获取可以参照本文其他实施例中关于阶段1(根据历史数据统计交通流特征数据)的相关说明,在此不再详述。In the deep learning model system, the statistically obtained average residence time of the traffic flow in the forward traffic flow or the reverse traffic flow corresponding to the first time period within the communication coverage of each roadside unit, and the average communication demand flow generated by the traffic flow in the forward traffic flow or the reverse traffic flow corresponding to the first time period within the communication coverage of each roadside unit can be used as input. For how to obtain the average residence time and the average communication demand flow, please refer to the relevant description of stage 1 (traffic flow feature data based on historical data) in other embodiments of this document, which will not be described in detail here.

再由深度学习模型实现上述阶段2(根据交通流特征数据、路侧单元工作状态的开启规则以及通信需求流量的分配规则,模拟将通信需求流量分配给对应的路侧单元)和阶段3(根据每种开启组合和每种开启组合分别对应的分配结果评估路侧单元的工作效率)的技术内容,最终确定一个工作效率最优的组合作为输出。The deep learning model is then used to implement the technical contents of the above-mentioned stage 2 (simulating the allocation of communication demand traffic to corresponding roadside units based on traffic flow characteristic data, the activation rules of the roadside unit working status, and the allocation rules of communication demand traffic) and stage 3 (evaluating the working efficiency of the roadside unit based on each activation combination and the allocation results corresponding to each activation combination), and finally determines a combination with the best working efficiency as the output.

具体的,假设一个中心代理云节点负责获取每个路侧单元覆盖范围内交通流的停留时长学习和交通流产生的V2I通信需求流量,并将信息组装转换为模型的系统状态,发送到深度Q网络。最优动作策略π=argmaxQ(x,a)是在当前时刻t时刻的反馈,其中x为系统状态,a是执行的动作,π是策略。当系统根据模型的输入采取不同的行动来调度路侧单元的工作状态时,V2I通信需求被不断分割成多个通信任务,分配给不同的被调度为值班的路侧单元。同时,将系统的奖励设置为与上述第一组合对应的长期奖励值,这样根据不同的调度动作就能获得不同的奖励值。系统将不断地进行尝试,以追求奖励值最大的调度方案作为输出。模型求解的具体原理图如图6所示。Specifically, it is assumed that a central proxy cloud node is responsible for acquiring the dwell time learning of traffic flow within the coverage area of each roadside unit and the V2I communication demand flow generated by traffic flow, and assembling the information into the system state of the model and sending it to the deep Q network. The optimal action strategy π = argmaxQ (x, a) is the feedback at the current time t, where x is the system state, a is the executed action, and π is the strategy. When the system takes different actions to schedule the working state of the roadside unit according to the input of the model, the V2I communication demand is continuously divided into multiple communication tasks and assigned to different roadside units scheduled for duty. At the same time, the system reward is set to the long-term reward value corresponding to the first combination mentioned above, so that different reward values can be obtained according to different scheduling actions. The system will continue to try to pursue the scheduling plan with the maximum reward value as the output. The specific schematic diagram of the model solution is shown in Figure 6.

在深度强化学习中,系统主要包括代理、状态、动作和奖励等主要元素:π=argmaxQ(st;at;θ),其中,In deep reinforcement learning, the system mainly includes the main elements such as agent, state, action and reward: π = argmaxQ(s t ; a t ; θ), where

①代理:N个路侧单元中的每一个路侧单元。①Agent: Each of the N roadside units.

②状态:在路侧单元RSUi覆盖范围内产生的V2I通信需求ki;在RSUj之前的路侧单元产生的通信需求流量且直到RSUj还未分配的V2I通信需求Dj;路侧单元RSUj已分配的通信任务Cj② Status: V2I communication demand k i generated within the coverage of roadside unit RSU i ; communication demand flow generated by the roadside unit before RSU j and V2I communication demand D j that has not been allocated until RSU j ; communication task C j allocated by roadside unit RSU j .

在路侧单元RSUi覆盖范围内产生的V2I通信需求ki的初始值由模型的输入可得,之后随着分配不断减少;当模拟分配进行到一个RSUj时,所有累积的还未分配的V2I通信需求Dj首先加上这个路侧单元覆盖范围内的V2I通信需求kj,表示该kj未被分配,接着根据这个路侧单元是否开启来决定是否为其分配通信任务,若为该路侧单元分配通信任务,则该Dj需要减去对应的分配任务。The initial value of the V2I communication demand k i generated within the coverage of the roadside unit RSU i is obtained from the input of the model, and then decreases continuously with the allocation; when the simulation allocation is carried out to an RSU j , all the accumulated V2I communication demands D j that have not yet been allocated are first added to the V2I communication demand k j within the coverage of this roadside unit, indicating that k j is not allocated, and then whether to allocate a communication task to it is determined based on whether this roadside unit is turned on. If a communication task is allocated to the roadside unit, D j needs to be subtracted from the corresponding allocated task.

路侧单元RSUj已分配的通信任务Cj初始值为0,最大值为其带宽c。The communication task Cj assigned to the roadside unit RSU j has an initial value of 0 and a maximum value of its bandwidth c.

③动作:系统根据模型的输入依次对每个路侧单元执行动作:A=[0,1]。其中1是开启,0是关闭。③Action: The system performs actions on each roadside unit in turn according to the input of the model: A = [0, 1], where 1 is on and 0 is off.

当模拟分配进行到一个RSUj时,所有累积的还未分配的V2I通信需求Dj首先加上这个路侧单元覆盖范围内的V2I通信需求kj,表示该kj未被分配,接着根据这个路侧单元是否开启来决定是否为其分配通信任务。如果路侧单元RSUj开启,系统最多可以为路侧单元RSUj分配μj*ω的通信任务,如果路侧单元RSUj为睡眠状态,则Cj=0。随着系统不断调度,各个kn将被分解分配为多个knj。而不同的调度策略也将得到不同的路侧单元工作效率,从而获得不同的奖励。When the simulation allocation reaches an RSU j , all the accumulated unallocated V2I communication demands D j are first added to the V2I communication demands k j within the coverage of this RSU, indicating that k j is not allocated. Then, whether to allocate communication tasks to it is determined based on whether this RSU is turned on. If the RSU j is turned on, the system can allocate a maximum of μ j *ω communication tasks to the RSU j . If the RSU j is in sleep mode, C j = 0. As the system continues to schedule, each k n will be decomposed and allocated into multiple k nj . Different scheduling strategies will also result in different RSU working efficiencies, thereby obtaining different rewards.

④奖励:本发明的目标是在保证V2I通信质量的同时最大限度地提高路侧单元的工作效率。奖励函数由两部分组成,第一部分旨在最大化路侧单元的工作效率WEPE,第二部分表示未完成的V2I通信需求部分的损失。λ1和λ2为各部分的权重,用以平衡收入和惩罚。④ Reward: The goal of the present invention is to maximize the working efficiency of the roadside unit while ensuring the quality of V2I communication. The reward function consists of two parts. The first part aims to maximize the working efficiency WEPE of the roadside unit, and the second part represents the loss of the unfinished V2I communication demand part. λ 1 and λ 2 are the weights of each part to balance the income and penalty.

在一种可能的实现方式中,上述也可以理解为G(D1)+G(DN)。其中,G(D1)为反向交通流到达它的最后一个路侧单元还没完成的通信任务(该最后一个路侧单元即为就是路段的第一个路侧单元RSUj=1),G(DN)为正向交通流到达它的最后一个路侧单元还没完成的通信任务(该最后一个路侧单元即为就是路段的最后一个路侧单元RSUj=N)。In a possible implementation, the above It can also be understood as G(D 1 )+G(D N ). Among them, G(D 1 ) is the communication task that has not been completed by the last roadside unit that the reverse traffic flow reaches (the last roadside unit is the first roadside unit RSU j=1 of the road section), and G(D N ) is the communication task that has not been completed by the last roadside unit that the forward traffic flow reaches (the last roadside unit is the last roadside unit RSU j=N of the road section).

其中,G(x)是一个分段函数,W设置为一个取值较大的正数来表示惩罚。Among them, G(x) is a piecewise function, and W is set to a large positive number to represent the penalty.

训练过程的目标是通过最优策略来使期望的长期奖励最大化,这可以通过Q值来获得:The goal of the training process is to maximize the expected long-term reward through the optimal strategy, which can be obtained through the Q value:

以下展示采用本申请实施例提供的确定路侧单元的工作效率的方法确定多种路侧单元的工作状态的组合方式中的最优工作效率对应的组合,在实际应用中的一些实验数据。The following shows some experimental data in actual application of using the method for determining the working efficiency of a roadside unit provided in an embodiment of the present application to determine a combination corresponding to the optimal working efficiency among the combinations of working states of multiple roadside units.

本申请实施例中,选择深圳市智慧城市科技发展集团有限公司坪山测试场作为实验场景进行实验。场地里每条道路均被路侧单元均匀铺设,间隔200米。试验园区内采用R14LTE-V2X进行V2I通信,最大可接入用户数为500。本发明选取聚清路与临汇路交叉口至与丹清路交叉口的一段路段作为实验道路,将起点到终点的交通流视为正向交通流。实验路段全长L为2210m(米),沿途共布设了11个路侧单元。具体实验环境如图7所示,其他主要实验参数如下表1所示,In the embodiment of the present application, the Pingshan test site of Shenzhen Smart City Technology Development Group Co., Ltd. is selected as the experimental scene for the experiment. Each road in the site is evenly paved with roadside units at intervals of 200 meters. R14LTE-V2X is used for V2I communication in the test park, and the maximum number of accessible users is 500. The present invention selects a section from the intersection of Juqing Road and Linhui Road to the intersection of Danqing Road as the experimental road, and regards the traffic flow from the starting point to the end point as a forward traffic flow. The total length L of the experimental section is 2210m (meters), and a total of 11 roadside units are deployed along the way. The specific experimental environment is shown in Figure 7, and other main experimental parameters are shown in Table 1 below.

表1Table 1

参数parameter 取值Value ω(路侧单元的通信速率)ω (communication rate of the roadside unit) 30Mbps30Mbps P0(基础能耗)P 0 (basic energy consumption) 2300W2300W Pcom(通信能耗)P com (communication energy consumption) 1600W1600W Psleep(睡眠能耗)P sleep (sleep energy consumption) 460W460W W(惩罚值)W (penalty value) 4040

实验园区内每条道路的轨迹信息和V2I通信流量采集时间为15天,采样间隔为5分钟。通过统计分析得到了交通流在各路侧单元覆盖范围内停留时长f(RSUiii)和V2I通信需求(RSUi,ki)的分布,如图8的条形图所示,本申请实施例取分布的期望值来描述交通流的运动状态。同样,每个路侧单元覆盖范围内的V2I通信需求如图9所示(其中forwardtraffic flow表示正向交通流,reverse traffic flow表示反向交通流)。其中,正向交通流通过整个路段所花费的时间为270s,而反向交通流为223s。此时,整条路段上的通信需求总量为200MB。The trajectory information and V2I communication flow of each road in the experimental park are collected for 15 days, with a sampling interval of 5 minutes. Through statistical analysis, the distribution of the traffic flow stay time f(RSU i , μ i , δ i ) and the V2I communication demand (RSU i , k i ) within the coverage area of each roadside unit is obtained, as shown in the bar chart of Figure 8. The embodiment of the present application takes the expected value of the distribution to describe the movement state of the traffic flow. Similarly, the V2I communication demand within the coverage area of each roadside unit is shown in Figure 9 (where forward traffic flow represents forward traffic flow and reverse traffic flow represents reverse traffic flow). Among them, the time taken for the forward traffic flow to pass through the entire road section is 270s, while the reverse traffic flow is 223s. At this time, the total communication demand on the entire road section is 200MB.

在深度强化学习框架的基础上,本发明设计了一个五层神经网络的模型结构,包括输入层、输出层和三层隐含层。将这三个隐藏层的神经元数量分别设置为400、200和100,ReLu作为激活函数,RMSprop作为优化器。学习速率设置为0.001。经过训练后,我们可以得到一个值班路侧单元调度方案作为输出。模型的输出包括所需路侧单元的最小数量、所选路侧单元的位置。如下表2所示,路侧单元RSU2,RSU4,RSU6和RSU10在这期间被调度为工作状态,其中1为开启,0为关闭。此时,该调度方案传输的V2I通信流量为193MB,所有的路侧单元总能耗为15.844KW,工作效率指标WEPE为11.75MB/KW。而对比“α-RSU duty”模型(α=1)表示道路上所有路侧单元全部开启以满足服务。此时V2I通信需求无疑可以完全完成,而所有的路侧单元总能耗为28.884KW,因此工作效率指标WEPE为6.92MB/KW。与α-RSU duty模型(α=1)相比,该调度方案在保证V2I质量96.5%的同时,节约了45.15%的能源消耗,工作效率指标WEPE提高了约1.7倍。Based on the deep reinforcement learning framework, the present invention designs a five-layer neural network model structure, including an input layer, an output layer and three hidden layers. The number of neurons in the three hidden layers is set to 400, 200 and 100 respectively, ReLu is used as the activation function, and RMSprop is used as the optimizer. The learning rate is set to 0.001. After training, we can get a duty roadside unit scheduling scheme as output. The output of the model includes the minimum number of required roadside units and the location of the selected roadside units. As shown in Table 2 below, roadside units RSU 2 , RSU 4 , RSU 6 and RSU 10 are scheduled to work during this period, where 1 is on and 0 is off. At this time, the V2I communication traffic transmitted by the scheduling scheme is 193MB, the total energy consumption of all roadside units is 15.844KW, and the work efficiency index WEPE is 11.75MB/KW. In contrast, the "α-RSU duty" model (α=1) indicates that all roadside units on the road are fully turned on to meet the service. At this time, the V2I communication demand can undoubtedly be fully met, and the total energy consumption of all roadside units is 28.884KW, so the work efficiency index WEPE is 6.92MB/KW. Compared with the α-RSU duty model (α=1), this scheduling scheme saves 45.15% of energy consumption while ensuring 96.5% of V2I quality, and the work efficiency index WEPE is improved by about 1.7 times.

表2模型的输入与输出Table 2 Input and output of the model

进一步结合路况对该调度方案的输出进行分析。由于信号灯被部署在RSU4,RSU6和RSU8覆盖范围内的道路上,以调控交通流。因此在这些路侧单元覆盖范围内的停留时长和V2I通信需求会相对多于其他路侧单元,系统在执行动作时也会对这些进行评估和考虑,结合其他路况,最终确定路侧单元RSU2,RSU4,RSU6和RSU10在这期间被调度为工作状态。The output of the scheduling scheme is further analyzed in combination with the road conditions. Since traffic lights are deployed on roads within the coverage of RSU 4 , RSU 6 and RSU 8 to regulate traffic flow, the length of stay and V2I communication requirements within the coverage of these roadside units will be relatively longer than other roadside units. The system will also evaluate and consider these when executing actions, and finally determine that roadside units RSU 2 , RSU 4 , RSU 6 and RSU 10 are scheduled to work during this period in combination with other road conditions.

本发明也进一步进行了多组实验以研究该模型在不同时间段的适应性,并与α-RSU duty模型进行了比较。以聚清路17:00-2:00的交通流信息为输入,进行多组实验。各方案的工作效率指标WEPE如图10所示。The present invention also further conducted multiple groups of experiments to study the adaptability of the model in different time periods and compared it with the α-RSU duty model. Multiple groups of experiments were conducted using the traffic flow information of Juqing Road from 17:00 to 2:00 as input. The work efficiency index WEPE of each scheme is shown in Figure 10.

进一步的实验表明,本发明提出的模型的工作效率指标WEPE始终高于其他模型。17:00-19:00期间,道路上车流比较密集,所有的路侧单元需要全部开启为车辆提供通信服务。因此,我们模型的工作效率指标WEPE与α-RSU duty模型(α=1)基本一致,且高于其他模型。随着时间的推移,交通流变得越来越稀疏。在这种情况下,我们的模型可以通过灵活选择最佳位置的路侧单元,并关闭空闲部分来自适应调整调度策略。这样可以在保证V2I通信服务质量的同时大大降低路侧单元的总能耗。而本发明提出的模型在20:00-22:00时工作效率指标WEPE下降的主要原因是V2I通信需求损失了一小部分,导致效用指标β小于1。在那之后,由于路侧单元的总能耗显著减少,工作效率指标WEPE将继续增加。而对于α-RSU duty模型,在交通流较为密集的情况下,由于开启的路侧单元不足,一部分模型(α=1/2,1/3,1/4)因不能满足所有的V2I通信需求,导致传输的V2I通信流量过少,工作效率指标不高。相反,当交通流较为稀疏时,即使某些模型(α=1,1/2,1/3)能够完成所有的V2I通信任务,但会消耗大量不必要的能量,导致工作效率指标较低。因此,随着交通流变得更加稀疏,工作效率指标WEPE也会不断降低。Further experiments show that the work efficiency index WEPE of the model proposed in the present invention is always higher than that of other models. During 17:00-19:00, the traffic on the road is relatively dense, and all roadside units need to be turned on to provide communication services for vehicles. Therefore, the work efficiency index WEPE of our model is basically consistent with the α-RSU duty model (α=1), and is higher than other models. As time goes by, the traffic flow becomes more and more sparse. In this case, our model can adaptively adjust the scheduling strategy by flexibly selecting the roadside unit in the best position and shutting down the idle part. In this way, the total energy consumption of the roadside unit can be greatly reduced while ensuring the quality of V2I communication service. The main reason why the work efficiency index WEPE of the model proposed in the present invention decreases during 20:00-22:00 is that a small part of the V2I communication demand is lost, resulting in the utility index β being less than 1. After that, the work efficiency index WEPE will continue to increase due to the significant reduction in the total energy consumption of the roadside unit. For the α-RSU duty model, when the traffic flow is dense, due to insufficient open roadside units, some models (α = 1/2, 1/3, 1/4) cannot meet all V2I communication needs, resulting in too little V2I communication traffic and low work efficiency. On the contrary, when the traffic flow is sparse, even if some models (α = 1, 1/2, 1/3) can complete all V2I communication tasks, they will consume a lot of unnecessary energy, resulting in low work efficiency. Therefore, as the traffic flow becomes more sparse, the work efficiency index WEPE will continue to decrease.

以下将介绍本发明实施例提供的确定路侧单元工作效率的装置。The following will introduce a device for determining the working efficiency of a roadside unit provided by an embodiment of the present invention.

请参见图11,为本发明实施例提供了一种确定路侧单元工作效率的装置的结构示意图。如图11所示,本发明实施例的确定路侧单元工作效率的装置可以包括:Please refer to Figure 11, which is a schematic diagram of a structure of a device for determining the working efficiency of a roadside unit according to an embodiment of the present invention. As shown in Figure 11, the device for determining the working efficiency of a roadside unit according to an embodiment of the present invention may include:

获取单元1101,用于获取第一路侧单元的工作状态,所述第一路侧单元为在第一行驶方向顺序分布的N个路侧单元中的任一路侧单元,所述第一路侧单元的工作状态为开启状态或关闭状态;An acquiring unit 1101 is configured to acquire a working state of a first roadside unit, where the first roadside unit is any one of N roadside units sequentially distributed in a first driving direction, and the working state of the first roadside unit is an on state or an off state;

分配单元1102,用于在所述第一路侧单元的工作状态为所述开启状态的情况下,将目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元,且分配给所述第一路侧单元的通信流量小于或等于第一阈值,所述目标通信需求流量为第一累积未分配流量和第一时间段内交通流在所述第一路侧单元通信覆盖范围内的第一通信需求流量的总和,所述第一累积未分配流量为对于在所述第一路侧单元的所述第一行驶方向的相反方向的一个或多个路侧单元的通信范围内的通信需求流量中未分配完成的通信需求流量,所述第一阈值为交通流在所述第一路侧单元通信覆盖范围内最大能够完成的通信流量;an allocating unit 1102, configured to allocate all or part of the target communication demand flow to the first roadside unit when the working state of the first roadside unit is the on state, and the communication flow allocated to the first roadside unit is less than or equal to a first threshold value, the target communication demand flow is the sum of the first cumulative unallocated flow and the first communication demand flow of the traffic flow within the communication coverage of the first roadside unit in a first time period, the first cumulative unallocated flow is the unallocated communication demand flow in the communication demand flow within the communication range of one or more roadside units in the opposite direction of the first driving direction of the first roadside unit, and the first threshold value is the maximum communication flow that can be completed by the traffic flow within the communication coverage of the first roadside unit;

第一确定单元1103,用于根据所述第一路侧单元的工作状态确定第一组合,所述第一组合用于表示所述第一时间段内所述N个路侧单元中每个路侧单元的工作状态的一种取值排列;A first determining unit 1103 is configured to determine a first combination according to the working state of the first roadside unit, wherein the first combination is used to represent a value arrangement of the working state of each roadside unit of the N roadside units in the first time period;

第二确定单元1104,用于根据总通信需求流量的分配完成程度和所述N个路侧单元每单位能耗所传输的通信流量的乘积确定与所述第一组合对应的第一数值,所述第一数值与所述N个路侧单元的工作效率成正比,所述总通信需求流量为交通流在所述N个路侧单元中的每一个路侧单元通信覆盖范围内的通信需求流量的总和。The second determination unit 1104 is used to determine a first value corresponding to the first combination based on the degree of completion of the allocation of the total communication demand flow and the product of the communication flow transmitted by the N roadside units per unit energy consumption, wherein the first value is proportional to the working efficiency of the N roadside units, and the total communication demand flow is the sum of the communication demand flows of the traffic flow within the communication coverage range of each of the N roadside units.

在一种可能的实现方式中,所述第二确定单元1104,具体用于确定与目标时刻对应的所述第一数值,所述目标时刻为将目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元以确定所述第一组合的过程中的任一预设时刻;确定与所述目标时刻对应的第一损失值,其中,在所述目标时刻下所述第一累积未分配流量为0的情况下所述第一损失值为0,在所述目标时刻下所述第一累积未分配流量大于0的情况下所述第一损失值取值为预设损失值;以及,根据第三数值与第四数值的差值确定所述目标时刻下对应的奖励值,所述第三数值为第一权重与所述第一数值的乘积,所述第四数值为第二权重与所述第一损失值的乘积;根据预设折扣因子、以及与所述第一组合对应的至少两个所述目标时刻中每个所述目标时刻对应的所述奖励值,计算所述第一组合对应的第一长期奖励值;所述第一长期奖励值与所述N个路侧单元的工作效率成正比。In a possible implementation, the second determination unit 1104 is specifically used to determine the first numerical value corresponding to a target moment, the target moment being any preset moment in the process of allocating all or part of the target communication demand flow to the first roadside unit to determine the first combination; determine a first loss value corresponding to the target moment, wherein the first loss value is 0 when the first cumulative unallocated flow is 0 at the target moment, and the first loss value is a preset loss value when the first cumulative unallocated flow is greater than 0 at the target moment; and determine a reward value corresponding to the target moment according to a difference between a third numerical value and a fourth numerical value, the third numerical value being the product of a first weight and the first numerical value, and the fourth numerical value being the product of a second weight and the first loss value; calculate a first long-term reward value corresponding to the first combination according to a preset discount factor and the reward value corresponding to each of the at least two target moments corresponding to the first combination; the first long-term reward value is proportional to the working efficiency of the N roadside units.

在一种可能的实现方式中,所述获取单元1101,具体用于根据所述第一通信需求流量和/或所述第一累积未分配流量确定将所述第一路侧单元的工作状态置为所述开启状态和所述关闭状态中的其中一种工作状态。In a possible implementation, the acquisition unit 1101 is specifically used to determine, based on the first communication demand flow and/or the first accumulated unallocated flow, whether to set the working state of the first road side unit to one of the on state and the off state.

在一种可能的实现方式中,所述获取单元1101,具体用于确定所述目标通信需求流量是否大于第二阈值,所述第二阈值根据所述第一阈值的二分之一确定;在确定所述目标通信需求流量大于第二阈值的情况下,将所述第一路侧单元的工作状态置为所述开启状态;在确定所述目标通信需求流量大于第二阈值的情况下,分别尝试将所述第一路侧单元的工作状态置为所述开启状态或所述关闭状态的取值组合,分别得到对应的两个或两个以上第一组合;所述根据预设折扣因子、以及与所述第一组合对应的至少两个所述目标时刻中每个所述目标时刻对应的所述奖励值,计算所述第一组合对应的第一长期奖励值,包括:确定所述两个或两个以上第一组合中的每一个所述第一组合对应的所述第一长期奖励值;确定所述两个或两个以上第一组合中的每一个所述第一组合对应的所述第一长期奖励值中的最大值为目标长期奖励值;基于与所述长期奖励值对应的所述第一组合确定所述第一时间段内所述N个路侧单元的工作状态。In a possible implementation, the acquisition unit 1101 is specifically used to determine whether the target communication demand flow is greater than a second threshold, and the second threshold is determined according to one half of the first threshold; when it is determined that the target communication demand flow is greater than the second threshold, the working state of the first roadside unit is set to the on state; when it is determined that the target communication demand flow is greater than the second threshold, attempts are made to set the working state of the first roadside unit to a combination of values of the on state or the off state, respectively, to obtain corresponding two or more first combinations; according to the preset discount factor and the reward value corresponding to each of the at least two target moments corresponding to the first combination, the first long-term reward value corresponding to the first combination is calculated, including: determining the first long-term reward value corresponding to each of the two or more first combinations; determining the maximum value of the first long-term reward values corresponding to each of the two or more first combinations as the target long-term reward value; determining the working states of the N roadside units in the first time period based on the first combination corresponding to the long-term reward value.

在一种可能的实现方式中,所述分配单元1102,具体用于确定所述目标通信需求流量是否小于或等于所述第一阈值;在确定所述目标通信需求流量小于或等于所述第一阈值的情况下,将所述目标通信需求流量均分配给所述第一路侧单元;在确定所述目标通信需求流量大于所述第一阈值的情况下,则根据所述第一累积未分配流量被分配的优先级高于所述第一通信需求流量被分配的优先级的策略,将所述目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元,且分配给所述第一路侧单元的通信流量等于所述第一阈值。In one possible implementation, the allocation unit 1102 is specifically used to determine whether the target communication demand flow is less than or equal to the first threshold; when it is determined that the target communication demand flow is less than or equal to the first threshold, the target communication demand flow is allocated to the first road side unit; when it is determined that the target communication demand flow is greater than the first threshold, all or part of the target communication demand flow is allocated to the first road side unit according to a strategy in which the priority allocated to the first accumulated unallocated flow is higher than the priority allocated to the first communication demand flow, and the communication flow allocated to the first road side unit is equal to the first threshold.

在一种可能的实现方式中,如图12所示,上述确定路侧单元工作效率的装置还可以包括:In a possible implementation, as shown in FIG12 , the apparatus for determining the working efficiency of the roadside unit may further include:

第三确定单元1105,用于确定所述第一阈值;该第三确定单元1105,具体用于在第一停留时长与所述第一路侧单元的通信速率的乘积小于或等于所述第一路侧单元的最大带宽的情况下,所述第一阈值取值为所述第一停留时长与所述第一路侧单元的通信速率的乘积;所述第一停留时长为交通流在所述第一路侧单元通信覆盖范围内的停留时长;在所述第一停留时长与所述第一路侧单元的通信速率的乘积大于所述第一路侧单元的最大带宽的情况下,所述第一阈值取值为所述第一路侧单元的最大宽带。The third determination unit 1105 is used to determine the first threshold; the third determination unit 1105 is specifically used to determine that the first threshold is the product of the first stay time and the communication rate of the first roadside unit when the product of the first stay time and the communication rate of the first roadside unit is less than or equal to the maximum bandwidth of the first roadside unit; the first stay time is the stay time of the traffic flow within the communication coverage of the first roadside unit; when the product of the first stay time and the communication rate of the first roadside unit is greater than the maximum bandwidth of the first roadside unit, the first threshold is the maximum bandwidth of the first roadside unit.

在一种可能的实现方式中,如图12所示,上述确定路侧单元工作效率的装置还可以包括:In a possible implementation, as shown in FIG12 , the apparatus for determining the working efficiency of the roadside unit may further include:

计算单元1106,用于通过以下方式计算所述N个路侧单元中每一个路侧单元的能耗:对于所述N个路侧单元中的第i路侧单元,在所述第i路侧单元的工作状态为所述关闭状态的情况下,所述第i路侧单元的能耗为预设睡眠能耗,所述i为大于或等于1且小于或等于所述N的正整数;在所述第i路侧单元的工作状态为所述开启状态的情况下,所述第i路侧单元的能耗为预设通信能耗与所述第i路侧单元带宽资源的使用程度的乘积与预设基础能耗的和;所述第i路侧单元带宽资源的使用程度为分配给所述第i路侧单元的全部通信需求流量与所述第i路侧单元对应的最大通信流量的比值,所述最大通信流量根据所述第一方向的交通流在所述第i路侧单元通信覆盖范围内的平均停留时长与所述第i路侧单元的通信速率的乘积确定,所述最大通信流量用于表示交通流在所述第i路侧单元通信覆盖范围内最大能够完成的通信流量。The calculation unit 1106 is used to calculate the energy consumption of each of the N roadside units in the following manner: for the i-th roadside unit among the N roadside units, when the working state of the i-th roadside unit is the closed state, the energy consumption of the i-th roadside unit is the preset sleep energy consumption, and i is a positive integer greater than or equal to 1 and less than or equal to N; when the working state of the i-th roadside unit is the open state, the energy consumption of the i-th roadside unit is the sum of the product of the preset communication energy consumption and the utilization degree of the bandwidth resources of the i-th roadside unit and the preset basic energy consumption; the utilization degree of the bandwidth resources of the i-th roadside unit is the ratio of the total communication demand flow allocated to the i-th roadside unit to the maximum communication flow corresponding to the i-th roadside unit, the maximum communication flow is determined according to the product of the average stay time of the traffic flow in the first direction within the communication coverage range of the i-th roadside unit and the communication rate of the i-th roadside unit, and the maximum communication flow is used to represent the maximum communication flow that can be completed by the traffic flow within the communication coverage range of the i-th roadside unit.

在一种可能的实现方式中,如图12所示,上述确定路侧单元工作效率的装置还可以包括:In a possible implementation, as shown in FIG12 , the apparatus for determining the working efficiency of the roadside unit may further include:

第四确定单元1107,用于确定与所述第一时间段对应的至少两个历史时间段内的交通流在所述第一路侧单元通信覆盖范围内的停留时长满足正态分布的第一期望停留时长,确定与所述第一时间段对应的至少两个历史时间段内的交通流在所述第一路侧单元通信覆盖范围内每分钟的通信请求次数满足泊松分布的第一期望请求次数,以及,确定与所述第一时间段对应的至少两个历史时间段内的交通流在所述第一路侧单元通信覆盖范围内每分钟的通信需求流量满足正态分布的第一期望通信需求流量;基于所述第一期望停留时长、所述第一期望请求次数以及所述第一期望通信需求流量的乘积,确定所述第一通信需求流量。The fourth determination unit 1107 is used to determine whether the length of stay of the traffic flow in at least two historical time periods corresponding to the first time period within the communication coverage of the first roadside unit satisfies the first expected length of stay of the normal distribution, whether the number of communication requests per minute of the traffic flow in at least two historical time periods corresponding to the first time period within the communication coverage of the first roadside unit satisfies the first expected number of requests of the Poisson distribution, and whether the communication demand flow per minute of the traffic flow in at least two historical time periods corresponding to the first time period within the communication coverage of the first roadside unit satisfies the first expected communication demand flow of the normal distribution; and determine the first communication demand flow based on the product of the first expected length of stay, the first expected number of requests and the first expected communication demand flow.

需要说明的是,具体执行过程可以参见图2、图4或图5所示的方法实施例的具体说明,在此不进行赘述。It should be noted that the specific execution process can refer to the specific description of the method embodiment shown in Figure 2, Figure 4 or Figure 5, and will not be repeated here.

可理解的,上述图11或图12所示的确定路侧单元工作效率的装置可以有多种产品形态。示例性的,确定路侧单元工作效率的装置还可以是如图13示的处理器、通信接口、存储器以及通信总线的确定路侧单元工作效率的装置。具体的,如图13所示,确定路侧单元工作效率的装置130可以包括:It is understandable that the device for determining the working efficiency of the roadside unit shown in FIG. 11 or FIG. 12 may have a variety of product forms. Exemplarily, the device for determining the working efficiency of the roadside unit may also be a device for determining the working efficiency of the roadside unit including a processor, a communication interface, a memory, and a communication bus as shown in FIG. 13. Specifically, as shown in FIG. 13, the device 130 for determining the working efficiency of the roadside unit may include:

至少一个处理器1301,例如CPU,至少一个通信接口1303,存储器1304,至少一个通信总线1302。其中,通信总线1302用于实现这些组件之间的连接通信。通信接口1303可选的可以包括标准的有线接口、无线接口(如WI-FI接口或蓝牙接口等)。存储器1304可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1304可选的还可以是至少一个位于远离前述处理器1301的存储装置。如图13所示,作为一种计算机存储介质的存储器1304中可以包括操作系统和程序指令。At least one processor 1301, such as a CPU, at least one communication interface 1303, a memory 1304, and at least one communication bus 1302. Among them, the communication bus 1302 is used to realize the connection and communication between these components. The communication interface 1303 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface or a Bluetooth interface, etc.). The memory 1304 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1304 may optionally be at least one storage device located away from the aforementioned processor 1301. As shown in Figure 13, the memory 1304 as a computer storage medium may include an operating system and program instructions.

示例性的,通信接口1303可以用于实现上述图11中的获取单元1101所执行的步骤或功能等。处理器1301可以用于实现上述分配单元1102、第一确定单元1103、第二确定单元1104所执行的步骤或功能等。上述通信接口1303可以为芯片的管脚,也可以为收发器。Exemplarily, the communication interface 1303 may be used to implement the steps or functions performed by the acquisition unit 1101 in FIG. 11. The processor 1301 may be used to implement the steps or functions performed by the allocation unit 1102, the first determination unit 1103, and the second determination unit 1104. The communication interface 1303 may be a chip pin or a transceiver.

在图13所示的确定路侧单元工作效率的装置130中,处理器1301可以用于加载存储器1304中存储的程序指令,并具体执行以下操作:In the apparatus 130 for determining the working efficiency of a roadside unit shown in FIG13 , the processor 1301 may be used to load the program instructions stored in the memory 1304 and specifically perform the following operations:

获取第一路侧单元的工作状态,所述第一路侧单元为在第一行驶方向顺序分布的N个路侧单元中的任一路侧单元,所述第一路侧单元的工作状态为开启状态或关闭状态;Acquire a working state of a first roadside unit, where the first roadside unit is any one of N roadside units sequentially distributed in the first driving direction, and the working state of the first roadside unit is an on state or a off state;

在所述第一路侧单元的工作状态为所述开启状态的情况下,将目标通信需求流量中的全部或部分通信需求流量分配给所述第一路侧单元,且分配给所述第一路侧单元的通信流量小于或等于第一阈值,所述目标通信需求流量为第一累积未分配流量和第一时间段内交通流在所述第一路侧单元通信覆盖范围内的第一通信需求流量的总和,所述第一累积未分配流量为对于在所述第一路侧单元的所述第一行驶方向的相反方向的一个或多个路侧单元的通信范围内的通信需求流量中未分配完成的通信需求流量,所述第一阈值为交通流在所述第一路侧单元通信覆盖范围内最大能够完成的通信流量;In the case where the working state of the first roadside unit is the on state, all or part of the target communication demand flow is allocated to the first roadside unit, and the communication flow allocated to the first roadside unit is less than or equal to a first threshold value, the target communication demand flow is the sum of the first cumulative unallocated flow and the first communication demand flow of the traffic flow within the communication coverage of the first roadside unit in the first time period, the first cumulative unallocated flow is the unallocated communication demand flow in the communication demand flow within the communication range of one or more roadside units in the opposite direction of the first driving direction of the first roadside unit, and the first threshold value is the maximum communication flow that can be completed by the traffic flow within the communication coverage of the first roadside unit;

根据所述第一路侧单元的工作状态确定第一组合,所述第一组合用于表示所述第一时间段内所述N个路侧单元中每个路侧单元的工作状态的一种取值排列;Determine a first combination according to the working state of the first roadside unit, the first combination being used to represent a value arrangement of the working state of each roadside unit of the N roadside units in the first time period;

根据总通信需求流量的分配完成程度和所述N个路侧单元每单位能耗所传输的通信流量的乘积确定与所述第一组合对应的第一数值,所述第一数值与所述N个路侧单元的工作效率成正比,所述总通信需求流量为交通流在所述N个路侧单元中的每一个路侧单元通信覆盖范围内的通信需求流量的总和。A first value corresponding to the first combination is determined based on the degree of completion of the allocation of the total communication demand flow and the product of the communication flow transmitted by the N roadside units per unit energy consumption. The first value is proportional to the working efficiency of the N roadside units. The total communication demand flow is the sum of the communication demand flows of the traffic flow within the communication coverage range of each of the N roadside units.

需要说明的是,具体执行过程可以参见图2、图4或图5所示的实施例的具体说明,在此不进行赘述。It should be noted that the specific execution process can refer to the specific description of the embodiment shown in Figure 2, Figure 4 or Figure 5, and will not be repeated here.

本发明实施例还提供了一种计算机存储介质,上述计算机存储介质可以存储有多条指令,上述指令适于由处理器加载并执行如上述图2、图4或图5所示的实施例的方法步骤,具体执行过程可以参见图2、图4或图5所示实施例的具体说明,在此不进行赘述。An embodiment of the present invention also provides a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded by a processor and executing the method steps of the embodiments shown in Figures 2, 4 or 5 above. The specific execution process can refer to the specific description of the embodiments shown in Figures 2, 4 or 5, which will not be repeated here.

上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本申请实施例该的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims (13)

1. A method of determining the efficiency of a roadside unit, the method comprising:
Acquiring the working state of a first road side unit, wherein the first road side unit is any one of N road side units distributed in sequence in a first driving direction, the first driving direction is the passing direction of a first lane, and the working state of the first road side unit is an on state or an off state;
When the working state of the first road side unit is the on state, distributing all or part of communication demand traffic in target communication demand traffic to the first road side unit, wherein the communication traffic distributed to the first road side unit is smaller than or equal to a first threshold value, the target communication demand traffic is the sum of first accumulated unassigned traffic and first communication demand traffic of traffic flow in the communication coverage area of the first road side unit in a first time period, the first accumulated unassigned traffic is communication demand traffic which is unassigned in the communication demand traffic of traffic flow in the communication coverage area of one or more road side units before the first road side unit in the opposite direction of the first driving direction, and the first threshold value is communication traffic which can be completed maximally in the communication coverage area of the first road side unit;
under the condition that the working state of the first road side unit is the closed state, communication demand flow is not distributed for the first road side unit;
Determining a first combination according to the working state of the first road side unit, wherein the first combination is used for representing a value arrangement of the working state of each road side unit in the N road side units in the first time period;
And determining a first numerical value corresponding to the first combination according to the product of the distribution completion degree of the total communication demand flow and the communication flow transmitted by the N road side units per unit energy consumption, wherein the first numerical value is in direct proportion to the working efficiency of the N road side units, and the total communication demand flow is the sum of the communication demand flows of the traffic flow in the communication coverage area of each road side unit in the N road side units.
2. The method according to claim 1, wherein determining the first value corresponding to the first combination according to a product of a degree of allocation completion of the total communication demand traffic and the communication traffic transmitted by the N roadside units per unit energy consumption includes:
Determining the first value corresponding to a target time, wherein the target time is any preset time in the process of distributing all or part of target communication demand flows to the first road side unit to determine the first combination;
Determining a first loss value corresponding to the target time, wherein the first loss value is 0 when the first accumulated unassigned flow is 0 at the target time, and the first loss value is a preset loss value when the first accumulated unassigned flow is greater than 0 at the target time; and
Determining a corresponding reward value at the target time according to a difference value between a third value and a fourth value, wherein the third value is a product of a first weight and the first value, and the fourth value is a product of a second weight and the first loss value;
Calculating a first long-term rewards value corresponding to the first combination according to a preset discount factor and the rewards value corresponding to each of at least two target moments corresponding to the first combination; the first long-term prize value is proportional to the operating efficiency of the N roadside units.
3. The method of claim 2, wherein the obtaining the operating state of the first roadside unit comprises:
and determining to set the working state of the first road side unit to one of the opening state and the closing state according to the first communication demand flow and/or the first accumulated unassigned flow.
4. A method according to claim 3, wherein said determining to set the operating state of the first road side unit to one of the on state and the off state based on the first communication demand traffic and/or the first accumulated unallocated traffic comprises:
Determining whether the target communication demand flow is greater than a second threshold, the second threshold being determined according to one half of the first threshold;
setting the working state of the first road side unit to be the opening state under the condition that the target communication demand flow is determined to be greater than a second threshold value;
Under the condition that the target communication demand flow is determined to be greater than a second threshold value, respectively attempting to set the working state of the first road side unit as the value combination of the opening state or the closing state, and respectively obtaining two or more corresponding first combinations;
The calculating a first long-term prize value corresponding to the first combination according to a preset discount factor and the prize value corresponding to each of at least two target moments corresponding to the first combination, including:
Determining the first long-term prize value corresponding to each of the two or more first combinations;
determining a maximum value of the first long-term prize values corresponding to each of the two or more first combinations as a target long-term prize value;
and determining the working states of the N road side units in the first time period based on the first combination corresponding to the long-term rewards value.
5. The method according to any one of claims 1 to 4, wherein the allocation completion degree of the total communication demand is a ratio of a sum of communication demand flows allocated to each of the N roadside units to the total communication demand flow rate; the communication flow transmitted by each unit energy consumption of the N road side units is the ratio of the total communication demand flow to the sum of the energy consumption of each of the N road side units.
6. The method according to any one of claims 1 to 4, wherein the first lane belongs to a first road, the first road further comprising at least one second lane, the second lane having a direction of traffic opposite to the direction of traffic of the first lane; the target communication demand flow is a sum of the first accumulated unallocated flow, the first communication demand flow, and a second accumulated unallocated flow, the second accumulated unallocated flow being a communication demand flow that is not allocated to completion among communication demand flows of traffic flows in a communication range of one or more preceding roadside units of the first roadside unit in an opposite direction of a second traveling direction, the second traveling direction being a traveling direction of the second lane.
7. The method of claim 6, wherein the allocating all or a portion of the target communication demand traffic to the first roadside unit and the communication traffic allocated to the first roadside unit is less than or equal to a first threshold comprises:
determining whether the target communication demand flow is less than or equal to the first threshold;
under the condition that the target communication demand flow is less than or equal to the first threshold value, distributing the target communication demand flow to the first road side unit;
And if the target communication demand traffic is determined to be greater than the first threshold, distributing all or part of the target communication demand traffic to the first road side unit according to a strategy that the distributed priority of the first accumulated unassigned traffic is higher than that of the first communication demand traffic, wherein the communication traffic distributed to the first road side unit is equal to the first threshold.
8. The method according to claim 4 or 7, characterized in that the method further comprises:
Determining the first threshold;
the determining the first threshold includes:
When the product of the first residence time length and the communication rate of the first road side unit is smaller than or equal to the maximum bandwidth of the first road side unit, the first threshold value is the product of the first residence time length and the communication rate of the first road side unit; the first stay time is the stay time of the traffic flow in the communication coverage area of the first road side unit;
And under the condition that the product of the first stay time length and the communication rate of the first road side unit is larger than the maximum bandwidth of the first road side unit, the first threshold value is the maximum bandwidth of the first road side unit.
9. The method of claim 8, wherein the method further comprises:
The energy consumption of each of the N roadside units is calculated by:
for an ith road side unit in the N road side units, when the working state of the ith road side unit is the closed state, the energy consumption of the ith road side unit is preset sleep energy consumption, and i is a positive integer greater than or equal to 1 and less than or equal to N;
When the working state of the ith road side unit is the opening state, the energy consumption of the ith road side unit is the sum of the product of the preset communication energy consumption and the use degree of the bandwidth resource of the ith road side unit and the preset basic energy consumption; the using degree of the bandwidth resource of the ith road side unit is the ratio of all communication demand flows distributed to the ith road side unit to the maximum communication flow corresponding to the ith road side unit, the maximum communication flow is determined according to the product of the average stay time of the traffic flow in the first direction in the communication coverage area of the ith road side unit and the communication speed of the ith road side unit, and the maximum communication flow is used for representing the maximum communication flow which can be completed by the traffic flow in the communication coverage area of the ith road side unit.
10. The method of claim 1 or 2, wherein the first communication demand traffic is an average communication demand traffic in communication demand traffic data within a communication coverage area of the first roadside unit for at least two historical time periods corresponding to the first time period, the method further comprising:
Determining that the stay time of traffic flows in at least two historical time periods corresponding to the first time period in the communication coverage area of the first road side unit meets first expected stay time of normal distribution, determining that the communication request times of traffic flows in at least two historical time periods corresponding to the first time period in the communication coverage area of the first road side unit meet first expected request times of poisson distribution, and determining that the communication demand flow of traffic flows in at least two historical time periods corresponding to the first time period in the communication coverage area of the first road side unit meets first expected communication demand flow of normal distribution;
The first communication demand traffic is determined based on a product of the first desired residence time, the first desired number of requests, and the first desired communication demand traffic.
11. An apparatus for determining the efficiency of a roadside unit, the apparatus comprising:
the system comprises an acquisition unit, a first road side unit and a second road side unit, wherein the acquisition unit is used for acquiring the working state of the first road side unit, the first road side unit is any one of N road side units which are sequentially distributed in a first driving direction, the first driving direction is the passing direction of a first lane, and the working state of the first road side unit is an opening state or a closing state;
An allocation unit, configured to allocate all or part of communication demand traffic in a target communication demand traffic to the first road side unit when the working state of the first road side unit is the on state, where the communication demand traffic allocated to the first road side unit is less than or equal to a first threshold, where the target communication demand traffic is a sum of a first accumulated unallocated traffic and a first communication demand traffic of traffic flows in a first time period within a communication coverage area of the first road side unit, and the first accumulated unallocated traffic is a communication demand traffic of traffic flows in a communication demand traffic of one or more road side units preceding the first road side unit in a direction opposite to the first driving direction, and the first threshold is a communication traffic of traffic flows that can be completed maximally within the communication coverage area of the first road side unit; and under the condition that the working state of the first road side unit is the closed state, not distributing communication demand flow for the first road side unit;
The first determining unit is used for determining a first combination according to the working state of the first road side unit, and the first combination is used for representing a value arrangement of the working state of each road side unit in the N road side units in the first time period;
And the second determining unit is used for determining a first numerical value corresponding to the first combination according to the product of the distribution completion degree of the total communication demand flow and the communication flow transmitted by the N road side units per unit energy consumption, wherein the first numerical value is in direct proportion to the working efficiency of the N road side units, and the total communication demand flow is the sum of the communication demand flows of the traffic flow in the communication coverage area of each road side unit in the N road side units.
12. An electronic device, comprising: a memory, a processor, wherein the memory stores program instructions; the program instructions, when executed by the processor, cause the processor to perform the method of any of claims 1 to 10.
13. A computer-readable storage medium, wherein the computer-readable storage medium has a computer program stored therein; the method of any one of claims 1 to 10 being performed when the computer program is run on one or more processors.
CN202210565601.1A 2022-05-23 2022-05-23 A method for determining the working efficiency of a roadside unit and a related device Active CN115103331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210565601.1A CN115103331B (en) 2022-05-23 2022-05-23 A method for determining the working efficiency of a roadside unit and a related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210565601.1A CN115103331B (en) 2022-05-23 2022-05-23 A method for determining the working efficiency of a roadside unit and a related device

Publications (2)

Publication Number Publication Date
CN115103331A CN115103331A (en) 2022-09-23
CN115103331B true CN115103331B (en) 2024-08-06

Family

ID=83289402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210565601.1A Active CN115103331B (en) 2022-05-23 2022-05-23 A method for determining the working efficiency of a roadside unit and a related device

Country Status (1)

Country Link
CN (1) CN115103331B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105809953A (en) * 2014-12-27 2016-07-27 吉林大学 City traffic flow vehicle and road cooperative control method based on M2M
CN110160804A (en) * 2019-05-31 2019-08-23 中国科学院深圳先进技术研究院 A kind of test method of automatic driving vehicle, apparatus and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017133769A1 (en) * 2016-02-04 2017-08-10 Nokia Solutions And Networks Oy Vehicular communication of road traffic status
KR102386960B1 (en) * 2017-01-10 2022-04-15 씨에이브이에이치 엘엘씨 Connected Automated Vehicle Road Systems and Methods
CN113744546A (en) * 2021-09-24 2021-12-03 安徽达尔智能控制系统股份有限公司 Signal lamp control method and system of drive test unit based on V2X

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105809953A (en) * 2014-12-27 2016-07-27 吉林大学 City traffic flow vehicle and road cooperative control method based on M2M
CN110160804A (en) * 2019-05-31 2019-08-23 中国科学院深圳先进技术研究院 A kind of test method of automatic driving vehicle, apparatus and system

Also Published As

Publication number Publication date
CN115103331A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
He et al. Charging an electric vehicle-sharing fleet
WO2022077588A1 (en) Method, system and apparatus for calling adjustable load to participate in demand response
EP2652855B1 (en) Systems and methods for predicting customer compliance with demand response requests
CN112332404B (en) Intelligent management system and method for heating service
CN118430328B (en) Parking lot management method and system based on cloud computing
Wang et al. Towards accessible shared autonomous electric mobility with dynamic deadlines
CN118430293B (en) Intelligent regulation and control system and method for urban environment protection
CN118350565A (en) Prediction method and device for adjustable resource regulation boundary of electric power user based on deep learning
CN109978241B (en) Method and device for determining charging load of electric automobile
DE202022106297U1 (en) Intelligent system for energy demand forecasting and sustainable energy management through machine learning and artificial intelligence
CN116896086A (en) Adjustable resource control system and method for virtual power plant considering demand response
CN117985557A (en) Elevator cluster control method and system
CN104063282B (en) Management method, device and server for IaaS cloud variable scale resource pool
CN114971135A (en) Intelligent charging station power equipment management system based on 5G Internet of things and scheduling method
Rogers et al. Intelligent efficiency technology and market assessment
CN101431467B (en) Real-time Task Admission Control Method for Shared Resource Network
CN118692256A (en) Intelligent parking supervision method and system based on smart city
CN116914847A (en) A method for aggregation, complementation and optimal dispatch of multiple generating units in a virtual power plant
Li et al. Dynamic pricing, vehicle relocation and staff rebalancing for station-based one-way electric carsharing systems considering nonlinear charging profile
CN115103331B (en) A method for determining the working efficiency of a roadside unit and a related device
CN118469249B (en) Vehicle endurance management method, device, storage medium and system
CN103761666B (en) The On-Line Control Method of platform profit maximization in participatory sensory perceptual system
Wang et al. Bounded rational real‐time charging pricing strategy under the traffic‐grid coupling network
DE112018007023T5 (en) ADMINISTRATIVE DEVICE, DEVICE, ADMINISTRATIVE PROCEDURE OF AN ELECTRICAL POWER OR. POWER DEVICE, PROGRAM AND STORAGE MEDIUM
Kalra et al. RETRACTED ARTICLE: Enduring data analytics for reliable data management in handling smart city services

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant