Vehicle-mounted bandwidth allocation method and device, electronic equipment and storage medium
By dynamically adjusting bandwidth allocation according to the security of on-board applications and user perception types, the problem of unreasonable bandwidth allocation when on-board communication equipment is slow, efficient and balanced network resource allocation is achieved, and driving safety and user experience are improved.
Patent Information
- Application Number
- CN202510833146.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-08-22
AI Technical Summary
When the network speed of on-vehicle communication equipment is slow, the bandwidth is allocated only based on the time required by the on-vehicle application, resulting in severe lag in other applications and unable to effectively improve the bandwidth allocation effect.
According to the types related to driving safety of the vehicle application and the types related to user perception, determine the current priority of each vehicle application and dynamically adjust the bandwidth allocation to ensure that key applications obtain more network resources and reasonably allocate network interface bandwidth.
It improves the resource utilization efficiency and user experience of the on-board network system, ensures driving safety and comfort, and adapts to network needs in different driving scenarios.
Smart Images

Figure CN120529367A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicles, and in particular to a vehicle-mounted bandwidth allocation method, device, electronic equipment and storage medium. Background Art
[0002] In related technologies, when the in-vehicle communication device's network speed is slow, the bandwidth provided by the in-vehicle communication device's network interface is allocated to the in-vehicle application based solely on the time at which the in-vehicle application requested bandwidth, resulting in poor bandwidth allocation to the in-vehicle application. For example, a certain in-vehicle application may obtain the full bandwidth provided by the in-vehicle communication device's network interface when the in-vehicle communication device's network speed is slow simply because it requested bandwidth the earliest. This may result in other in-vehicle applications not receiving bandwidth, causing them to experience severe lag. Improving the effectiveness of bandwidth allocation to in-vehicle applications when the in-vehicle communication device's network speed is slow has become a problem that needs to be solved. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a vehicle-mounted bandwidth allocation method, device, electronic device, and storage medium.
[0004] In a first aspect, an embodiment of the present invention provides a vehicle-mounted bandwidth allocation method, which is applied to a vehicle. The method includes: when it is detected that the network speed of the vehicle-mounted communication device is less than a network speed threshold, determining the current priority of each vehicle-mounted application among multiple vehicle-mounted applications based on the type of the vehicle-mounted application related to vehicle driving safety and / or the type related to user perception; and allocating the bandwidth of the network interface to the vehicle-mounted application based on the current priority of each vehicle-mounted application among the multiple vehicle-mounted applications, wherein the vehicle-mounted application corresponds to the network interface of the vehicle-mounted communication device.
[0005] The in-vehicle bandwidth allocation method provided in this embodiment considers multiple factors when allocating bandwidth provided by the network interface of the in-vehicle communication device to in-vehicle applications, namely, the type of in-vehicle application related to driving safety and the type of in-vehicle application related to user perception. Based on the type of in-vehicle application related to driving safety and the type of in-vehicle application related to user perception, a more comprehensive assessment can be made of the priority of the in-vehicle application in being allocated the bandwidth provided by the network interface of the in-vehicle communication device, i.e., the current priority of the in-vehicle application. This ensures that in-vehicle applications that can ensure driving safety receive more network resources, thereby improving driving safety. At the same time, for in-vehicle applications that are more sensitive to user perception, it can also ensure that they can still operate normally under limited network resources, thereby improving the user experience. Based on the current priority of the in-vehicle application, the bandwidth provided by the network interface is allocated to the in-vehicle application, so that in-vehicle applications with higher current priority are allocated more bandwidth and in-vehicle applications with lower current priority are allocated less bandwidth, thus improving the rationality of allocating bandwidth provided by the network interface to in-vehicle applications. This improves the effectiveness of allocating bandwidth to in-vehicle applications when the network speed of the in-vehicle communication device is slow.
[0006] In combination with the first aspect, in one embodiment, determining the current priority of the in-vehicle application includes: determining the initial priority of the in-vehicle application based on the type of the in-vehicle application related to vehicle driving safety, and / or the type of the in-vehicle application related to user perception; determining the current priority of the in-vehicle application based on the initial priority of the in-vehicle application and the operation information of the in-vehicle application.
[0007] The in-vehicle bandwidth allocation method provided in this embodiment not only considers the impact of in-vehicle applications on driving safety and the importance of user perception, but also uses in-vehicle application operational information as the basis for determining priority. This allows for a more accurate assessment of the priority of each in-vehicle application based on its actual needs, thereby more rationally allocating network interface bandwidth. This ensures that in-vehicle applications that ensure driving safety receive more network resources when needed, further enhancing driving safety. Furthermore, applications that are user-sensitive and have higher actual needs are also guaranteed access to more network resources, improving the user experience.
[0008] In combination with the first aspect or its corresponding embodiment, in one embodiment, the current priority of the vehicle-mounted application is determined based on the initial priority of the vehicle-mounted application and the operation information of the vehicle-mounted application, including: obtaining the candidate priority of the vehicle-mounted application based on the operation information of the vehicle-mounted application and the initial priority of the vehicle-mounted application; determining the target security level corresponding to the initial priority from multiple security levels; determining the current priority of the vehicle-mounted application based on the comparison result of the candidate priority and the highest priority, wherein each security level corresponds to a different priority; and determining the highest priority among all priorities corresponding to the target security level.
[0009] The in-vehicle bandwidth allocation method provided in this embodiment considers the impact of in-vehicle application operation information on priority and compares it with the highest security level priority corresponding to the initial priority to ensure that the final current priority meets the requirements of driving safety and reflects the actual operating status of the in-vehicle application. This makes the allocation of in-vehicle bandwidth more flexible and can adapt to the actual demand of in-vehicle applications for network resources in different driving scenarios, thereby ensuring driving safety while also improving the user experience.
[0010] In combination with the first aspect or its corresponding embodiment, in one embodiment, the current priority of the vehicle-mounted application is determined based on the initial priority of the vehicle-mounted application and the operation information of the vehicle-mounted application, and the method also includes: when the vehicle-mounted application caches application data, obtaining the configurable bandwidth of the vehicle-mounted application in the configurable resource period; and determining the current priority of the vehicle-mounted application based on the configurable bandwidth in the configurable resource period, the initial priority of the vehicle-mounted application, and the operation information of the vehicle-mounted application.
[0011] The in-vehicle bandwidth allocation method provided in this embodiment determines the available bandwidth for in-vehicle applications during resource allocation periods based on the cached data of the in-vehicle applications. It also determines the current priority of the in-vehicle applications based on their initial priority and operational information. This method ensures more efficient in-vehicle bandwidth allocation while meeting the real-time operational status and security requirements of the in-vehicle applications while also taking into account the data transmission efficiency of the in-vehicle applications. Furthermore, by dynamically adjusting the priorities of in-vehicle applications, it ensures that critical applications receive more network resources when needed, thereby improving the efficiency and security of information exchange during driving and providing a smoother and safer riding experience for drivers and passengers.
[0012] In combination with the first aspect or its corresponding embodiment, in one embodiment, the bandwidth of the network interface is allocated to each vehicle-mounted application according to the current priority of each vehicle-mounted application among multiple vehicle-mounted applications, including: determining the first bandwidth ratio that can be allocated to each vehicle-mounted application according to the current priority of the vehicle-mounted application; and allocating the bandwidth of the network interface to each vehicle-mounted application according to the first bandwidth ratio.
[0013] The in-vehicle bandwidth allocation method provided in this embodiment comprehensively considers the current priority of in-vehicle applications to accurately determine the bandwidth ratio that can be allocated to each in-vehicle application, and then allocates the bandwidth of the network interface to each in-vehicle application according to this ratio. This not only ensures that high-priority applications can obtain more network resources to maintain their normal operation and response speed, but also allocates a reasonable bandwidth share to low-priority applications, avoiding complete occupation or idleness of resources, making the resource utilization of the entire in-vehicle network system more efficient and balanced.
[0014] In combination with the first aspect or its corresponding embodiment, in one embodiment, the above method also includes: when it is detected that the network speed of the vehicle-mounted communication device is less than the network speed threshold, determining the current priority of each vehicle-mounted device among multiple vehicle-mounted devices according to the device function of the vehicle-mounted device and / or the vehicle status; allocating the bandwidth of the network interface to each vehicle-mounted device according to the current priority of each vehicle-mounted device among the multiple vehicle-mounted devices, wherein the vehicle-mounted device corresponds to the network interface of the vehicle-mounted communication device.
[0015] The in-vehicle bandwidth allocation method provided in this embodiment allocates appropriate network bandwidth to in-vehicle communication devices based on their specific functions and the vehicle's current operating status when their network speed falls below a set threshold. This not only ensures that critical in-vehicle devices receive priority access to network resources to ensure driving safety and the proper functioning of vehicle functions, but also effectively improves network resource utilization, avoiding network congestion and resource waste. Furthermore, by dynamically adjusting network interface bandwidth, the in-vehicle device network can better adapt to varying driving environments and user needs, achieving reliable network resource management.
[0016] In combination with the first aspect or its corresponding embodiment, in one embodiment, the bandwidth of the network interface is allocated to each vehicle-mounted device according to the current priority of each vehicle-mounted device among multiple vehicle-mounted devices, including: determining the second bandwidth ratio that can be allocated to each vehicle-mounted device according to the current priority of the vehicle-mounted device; and allocating the bandwidth of the network interface to each vehicle-mounted device according to the second bandwidth ratio.
[0017] The vehicle bandwidth allocation method provided in this embodiment determines the bandwidth ratio that can be allocated to each vehicle-mounted device based on the current priority of the vehicle-mounted device. Based on the safety and functional requirements during vehicle driving, it ensures that key devices can obtain more network support when communication resources are tight. This ensures vehicle communication efficiency while also improving driving comfort and intelligence.
[0018] In a second aspect, an embodiment of the present invention provides a vehicle-mounted bandwidth allocation device, which is applied to a vehicle. The device includes: a network speed detection module, which is used to determine the current priority of each vehicle-mounted application among multiple vehicle-mounted applications based on the type of vehicle-mounted application related to vehicle driving safety and / or the type related to user perception when it is detected that the network speed of the vehicle-mounted communication device is less than the network speed threshold; a bandwidth allocation module, which is used to allocate the bandwidth of the network interface to each vehicle-mounted application in multiple vehicle-mounted devices based on the current priority of each vehicle-mounted application in multiple vehicle-mounted devices, wherein the vehicle-mounted application corresponds to the network interface of the vehicle-mounted communication device.
[0019] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the vehicle-mounted bandwidth allocation method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0020] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the vehicle-mounted bandwidth allocation method of the first aspect or any corresponding embodiment thereof.
[0021] In a fifth aspect, an embodiment of the present invention provides a vehicle, comprising: a vehicle memory and a memory for communicating with a vehicle controller; the memory stores instructions that can be executed by the vehicle controller, and the instructions are executed by the vehicle controller to enable the vehicle controller to execute the vehicle-mounted bandwidth allocation method of the above-mentioned first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 is a flowchart of a method for allocating vehicle bandwidth according to some embodiments of the present invention;
[0024] Figure 2 is a flowchart of another vehicle-mounted bandwidth allocation method according to some embodiments of the present invention;
[0025] Figure 3 is a schematic diagram of determining the current priority of an in-vehicle application in another in-vehicle bandwidth allocation method according to some embodiments of the present invention;
[0026] Figure 4 is a flowchart of another vehicle-mounted bandwidth allocation method according to some embodiments of the present invention;
[0027] Figure 5 is an example diagram of another vehicle-mounted bandwidth allocation method according to some embodiments of the present invention;
[0028] Figure 6 is a structural block diagram of a vehicle-mounted bandwidth allocation device according to an embodiment of the present invention;
[0029] Figure 7 FIG. 4 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0031] According to an embodiment of the present invention, an embodiment of a vehicle-mounted bandwidth allocation method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0032] In this embodiment, a vehicle-mounted bandwidth allocation method is provided, which is applied to a vehicle. Figure 1 FIG. 1 is a flow chart of a vehicle-mounted bandwidth allocation method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0033] Step S101: When it is detected that the network speed of the in-vehicle communication device is less than the network speed threshold, the current priority of each in-vehicle application among multiple in-vehicle applications is determined according to the type of the in-vehicle application related to vehicle driving safety and / or the type related to user perception.
[0034] For a network interface and an in-vehicle application of an in-vehicle communication device, if the in-vehicle application transmits data through the network interface, the in-vehicle application is the in-vehicle application corresponding to the network interface.
[0035] In this embodiment, the above-mentioned on-vehicle communication equipment can be an on-vehicle Wi-Fi, 4G / 5G communication module, etc., which is used to realize communication between the vehicle and the external network. When the network speed of the on-vehicle communication equipment is lower than the preset network speed threshold, it indicates that the current network resources are tight and a reasonable bandwidth allocation strategy is needed to ensure the normal operation of key applications. At this time, it is necessary to evaluate the current priority of each on-vehicle application based on its type related to vehicle driving safety and / or type related to user perception. For example, applications directly related to driving safety, such as emergency braking assistance, lane departure warning, online maps, etc., will be given a higher priority to ensure driving safety. Applications that are more sensitive to user perception, such as online media, music playback, etc., although they do not directly affect driving safety, they also need to be guaranteed to operate normally in the case of limited network resources to improve user experience.
[0036] In a specific embodiment, when determining the current priority of an in-vehicle application based on the type of in-vehicle application related to vehicle driving safety, it can be determined based on preset safety level rules. For example, applications that directly affect vehicle driving safety, such as adaptive cruise control, blind spot monitoring, etc., are set to the highest safety level and given the highest priority. For applications that indirectly affect driving safety or only provide auxiliary information, such as weather forecasts, news push, etc., they are set to lower safety levels and priorities. At the same time, when determining the current priority of an in-vehicle application based on the type of in-vehicle application related to user perception, it is also possible to give higher priority to applications that are frequently used by users and have high evaluations, such as high-definition video playback, online games, etc., based on factors such as user usage frequency and feedback evaluation, so as to meet users' needs for high-quality network experience.
[0037] Furthermore, the current priority of in-vehicle applications can also be determined based on operational information about the in-vehicle applications, such as data transmission volume and real-time requirements. For applications with high data transmission volumes or high real-time requirements, such as real-time road condition updates and remote vehicle control, their priority can be appropriately increased to ensure timely data transmission and processing. For applications with low data transmission volumes or less real-time requirements, their priority can be appropriately lowered to balance the allocation of network resources.
[0038] Step S102 : allocating bandwidth of a network interface to each of the multiple in-vehicle applications according to the current priority of each in-vehicle application.
[0039] In this embodiment, for each in-vehicle application, a dynamic bandwidth allocation strategy can be adopted when allocating the bandwidth of the network interface to the in-vehicle application based on the current priority of the in-vehicle application. Specifically, first, the bandwidth ratio that can be allocated to each in-vehicle application is determined based on the current priority of the in-vehicle application. This ratio reflects the resource requirements and priority order of each in-vehicle application in the current network environment. Subsequently, the bandwidth of the network interface is allocated to each in-vehicle application according to this ratio, which not only ensures that high-priority applications can obtain more network resources to maintain their normal operation and response speed, but also allocates a reasonable bandwidth share to low-priority applications, avoiding the complete occupation or idleness of resources. In addition, when the network environment changes, this strategy can also dynamically adjust the bandwidth allocation according to the real-time situation to adapt to different driving scenarios and network requirements, thereby improving the resource utilization efficiency and response speed of the entire in-vehicle network system.
[0040] In summary, the in-vehicle bandwidth allocation method provided by the embodiment of the present invention can accurately evaluate the priority of each in-vehicle application by comprehensively considering the relevance of in-vehicle applications to driving safety, the relevance of user perception, and the operation information of in-vehicle applications, and reasonably allocate the bandwidth of the network interface according to the priority, so as to ensure that in-vehicle applications that can ensure driving safety obtain more network resources, thereby improving driving safety; at the same time, for in-vehicle applications that are more sensitive to user perception, it can also ensure that they can still operate normally under limited network resources, thereby improving user experience and making the resource utilization of the in-vehicle network more efficient and balanced.
[0041] In this embodiment, another vehicle-mounted bandwidth allocation method is provided, which is applied to vehicles. Figure 2 FIG. 1 is a flow chart of another vehicle-mounted bandwidth allocation method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0042] Step S201: When it is detected that the network speed of the in-vehicle communication device is less than the network speed threshold, the current priority of each in-vehicle application among multiple in-vehicle applications is determined according to the type of the in-vehicle application related to vehicle driving safety and / or the type related to user perception.
[0043] Specifically, the above step S201 includes:
[0044] Step S2011 : determining the initial priority of the in-vehicle applications according to the types of the in-vehicle applications related to vehicle driving safety and / or the types of the in-vehicle applications related to user perception.
[0045] Among them, the types of in-vehicle applications related to vehicle driving safety include but are not limited to emergency braking systems, lane keeping assist, blind spot monitoring, adaptive cruise control, online maps, etc. These in-vehicle applications are directly related to vehicle driving safety and are therefore given a higher initial priority. The types of in-vehicle applications related to user perception include but are not limited to entertainment systems, online services, online media, and vehicle information display. Although they do not directly affect driving safety, they are crucial to improving the driving experience and ride comfort. Based on user usage habits, feedback, and the importance of the application, these applications will be given corresponding initial priorities; types of in-vehicle applications that are not related to user perception, such as background downloads, will be given a lower initial priority.
[0046] Specifically, based on the type of in-vehicle application related to vehicle driving safety, the priority of in-vehicle applications related to driving safety (such as online maps) is defined as the first priority; based on the type of in-vehicle application related to user perception, the priority of in-vehicle applications related to user perception (such as online media) is defined as the second priority; based on the type of in-vehicle application not related to user perception, the priority of in-vehicle applications not related to user perception (such as background downloads) is defined as the third priority. A first weight is determined for each in-vehicle application corresponding to the first priority, a second weight is determined for each in-vehicle application corresponding to the second priority, and a third weight is determined for each in-vehicle application corresponding to the third priority, where the first weight is higher than the second weight, and the second weight is higher than the third weight.
[0047] Secondly, if the current in-vehicle application is a driving safety-related in-vehicle application, the initial priority of the in-vehicle application is determined to be the first priority, and its corresponding weight is the first weight; if the current in-vehicle application is a user-perceived in-vehicle application related to user perception, the initial priority of the in-vehicle application is determined to be the second priority, and its corresponding weight is the second weight; if the current in-vehicle application is a user-unaware in-vehicle application that is not related to user perception, the initial priority of the in-vehicle application is determined to be the third priority, and its corresponding weight is the third weight.
[0048] Furthermore, if the current in-vehicle application is both a driving safety-related in-vehicle application and a user perception-related in-vehicle application, the initial priority of the in-vehicle application is determined based on the first weight of each in-vehicle application corresponding to the first priority and the second weight of each in-vehicle application corresponding to the second priority. For example, for an in-vehicle application that provides both driving safety information and online media playback functions, its initial priority can be dynamically adjusted based on the weight of its driving safety function and the user's demand for media playback, to ensure that the user's driving experience is maximized while ensuring driving safety.
[0049] Step S2012 : determining the current priority of the in-vehicle application according to the initial priority of the in-vehicle application and the operation information of the in-vehicle application.
[0050] Among them, the operation information of the in-vehicle application includes but is not limited to the user's operation behavior, the operation time of the corresponding in-vehicle application, the foreground stay time of the corresponding in-vehicle application, the data transmission volume, the data request frequency, the real-time requirements and the operating status of the in-vehicle application, etc., which can reflect one or more of the information of the actual usage and resource requirements of the in-vehicle application.
[0051] Specifically, the current priority of in-vehicle applications can be determined based on their operational information, based on pre-set operational rules. For example, for applications that are frequently operated or used for extended periods by users, such as navigation applications and music playback applications, their current priority can be appropriately increased to ensure smooth user access. For applications that are rarely operated or used only in specific situations, such as vehicle diagnostic applications and emergency rescue applications, their current priority can be appropriately lowered to allocate limited network resources to applications that are more in need.
[0052] Furthermore, when determining the current priority of in-vehicle applications, the real-time network speed and bandwidth usage of in-vehicle communication devices can also be considered. When the network speed of in-vehicle communication devices is low or the bandwidth usage is high, the network resource requirements of high-priority applications can be prioritized to ensure their normal operation and response speed. For low-priority applications, their network resource usage can be appropriately restricted to avoid network congestion and resource waste. By comprehensively considering the relevance of in-vehicle applications to driving safety, the relevance of user perception, the operating information of in-vehicle applications, and the real-time network speed and bandwidth usage of in-vehicle communication devices, the current priority of each in-vehicle application is dynamically evaluated, and the bandwidth of the network interface is reasonably allocated according to the priority. This not only ensures that critical safety applications can obtain more network resources to improve driving safety, but also provides a reasonable bandwidth share for other applications to balance the allocation of network resources.
[0053] Furthermore, the data transfer volume reflects the scale of data to be transferred when in-vehicle applications perform specific tasks. For applications with a large data transfer volume, such as high-definition video monitoring or real-time traffic condition updates, higher priorities can be assigned to ensure the timely transmission of this critical data. The real-time requirement reflects the need of in-vehicle applications for time-sensitive data transmission. For example, an emergency braking assistance system needs to obtain information about obstacles ahead in real time to react quickly, so its real-time requirement for data transmission is extremely high. At this time, the bandwidth allocation needs to be adjusted according to these real-time requirements to meet the rapid response needs of high-priority applications.
[0054] In addition, the priority marking of data packets is another important operation information, which allows in-vehicle applications to prioritize data packets at the network layer. By identifying and utilizing these markings, high-priority data packets are preferentially transmitted, thus optimizing the utilization of network resources. For example, an online navigation application may mark its key path planning data packets as high-priority to ensure accurate navigation information for users in complex traffic environments.
[0055] For example, the user's operation actions include but are not limited to: screen clicks, such as operating Application 1-1 and Application 1-2; steering wheel control operations, such as operating Application 1-2 and Application 1-3; voice operations, such as operating Application 3-1 and Application 3-2; gesture operations, such as operating Application 2-1 and Application 2-2; other operations that may call network applications, such as operating Application 2-2. When determining the current priority of an in-vehicle application, the corresponding operation duration weight can be determined based on the operation duration of the user for each in-vehicle application that needs to schedule the network. The longer the operation duration, the greater the corresponding operation duration weight. For example, for the in-vehicle Application 1 with the highest priority <Aa < Ab <... < An, after operation, according to the operation duration, its corresponding operation duration weight is A, then the current priority of the in-vehicle application is A → A × Aa → A × Ab → A × An. If the in-vehicle application is exited, its corresponding weight is 0 and the default value is restored when the in-vehicle application is started next time. At the same time, the corresponding residence duration weight can also be determined according to the residence duration of each in-vehicle application. The longer the residence duration, the greater the corresponding residence duration weight. For example, for the in-vehicle Application 1 with the highest priority <Ba < Bb <... < Bn, after staying in the foreground, according to the residence duration, its corresponding residence duration weight is A, then the current priority of the in-vehicle application is A → A × Ba → A × Bb → A × Bn.
[0056] The current priority of in-vehicle applications can also be determined based on interdependencies between applications. For example, some in-vehicle applications may rely on data or services provided by other applications to function properly. For such applications, bandwidth allocation must ensure that the dependent applications have sufficient network resources to avoid service interruptions or performance degradation caused by insufficient resources. Furthermore, to further enhance the flexibility and adaptability of bandwidth allocation, users can adjust the priority of in-vehicle applications based on their usage habits and needs.
[0057] In this embodiment of the present invention, by using the operational information of in-vehicle applications as the basis for determining priorities based on their impact on driving safety and their perceived importance to users, and more accurately assessing the priority of each in-vehicle application based on its actual needs, network interface bandwidth is more rationally allocated, ensuring that critical safety applications receive more network resources when needed, further enhancing driving safety. Furthermore, applications that are user-sensitive and have higher actual needs are also guaranteed access to more network resources, improving the user experience.
[0058] Step S202: For each in-vehicle application, allocate bandwidth of the network interface to the in-vehicle application according to the current priority of the in-vehicle application. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0059] Specifically, the above step S202 includes:
[0060] Step S2021 : Determine a first bandwidth ratio that can be allocated to each in-vehicle application based on the current priority of the in-vehicle application.
[0061] Specifically, when determining the first bandwidth allocation ratio for each in-vehicle application based on its current priority, a preset bandwidth allocation mechanism can be employed to calculate a reasonable bandwidth allocation ratio for each in-vehicle application based on factors such as the application's current priority, historical bandwidth usage, and real-time network conditions. This ensures that high-priority applications receive more bandwidth resources to meet their performance requirements, while lower-priority applications receive the necessary bandwidth share without impacting overall network performance. Specifically, higher-priority safety-related applications, such as emergency brake assist systems or blind spot monitoring systems, are allocated more bandwidth resources to ensure they can respond quickly and function effectively at critical moments. Meanwhile, lower-priority entertainment applications with less real-time requirements, such as music or video playback, are allocated a smaller bandwidth ratio when their bandwidth requirements are lower, balancing overall network resource utilization. This maximizes user satisfaction with in-vehicle applications while ensuring driving safety, thereby enhancing comfort and convenience during driving.
[0062] Step S2022: Allocate the bandwidth of the network interface to each in-vehicle application according to the first bandwidth ratio.
[0063] Specifically, for each in-vehicle application, when allocating network interface bandwidth to the in-vehicle application according to the first bandwidth ratio of the in-vehicle application, the total bandwidth resources can be divided among the in-vehicle applications based on the first bandwidth ratio determined above, via the network interface controller or the corresponding bandwidth management module. During the actual allocation process, the first bandwidth ratio can be fine-tuned based on the current network load and the real-time data needs of each application to ensure that the allocated bandwidth meets the performance requirements of the application without causing excessive waste or congestion of network resources. This allows each application in the in-vehicle network to obtain appropriate network resources based on its importance and actual needs, thereby improving the operating efficiency and user experience of the entire in-vehicle system.
[0064] In an embodiment of the present invention, by comprehensively considering the current priority of in-vehicle applications, the bandwidth ratio that can be allocated to each in-vehicle application is accurately determined, and then the bandwidth of the network interface is allocated to each in-vehicle application according to this ratio. This not only ensures that high-priority applications can obtain more network resources to maintain their normal operation and response speed, but also allocates a reasonable bandwidth share to low-priority applications, avoiding the complete occupation or idleness of resources, making the resource utilization of the entire in-vehicle network system more efficient and balanced.
[0065] In some optional implementations, the above step S2011 includes:
[0066] Step a1: obtaining candidate priorities of the in-vehicle applications according to the operation information of the in-vehicle applications and the initial priorities of the in-vehicle applications.
[0067] Step a2: determining a target security level corresponding to the initial priority from a plurality of security levels, wherein each security level corresponds to a different priority.
[0068] Step a3: Determine the highest priority among all priorities corresponding to the target security level.
[0069] Step a4: determining the current priority of the in-vehicle application based on a comparison result of the candidate priority of the in-vehicle application with the highest priority of the security level corresponding to the initial priority of the in-vehicle application.
[0070] For example, security levels can include high, medium, and low. The security level "high" corresponds to priority 1 and priority 2; the security level "medium" corresponds to priority 3 and priority 4. The security level "low" corresponds to priority 5 and priority 6. Assuming the initial priority is 3, the security level corresponding to the initial priority "3" is called the target security level, and the security level corresponding to "3" is "medium"; the security level "medium" corresponds to "priority 3" and "priority 4"; the highest priority among all priorities corresponding to the security level "medium" is "priority 4"; then the candidate priority is compared with "priority 4".
[0071] In an embodiment of the present invention, by considering the impact of the in-vehicle application operation information on the priority and comparing it with the highest security level priority corresponding to the initial priority, it is ensured that the final determined current priority not only meets the driving safety requirements, but also reflects the actual operation status of the in-vehicle application, making the allocation of in-vehicle bandwidth more flexible and able to adapt to the actual needs of in-vehicle applications for network resources in different driving scenarios, thereby ensuring driving safety while also improving the user experience.
[0072] Specifically, one or more candidate priorities can be generated based on the operational information and initial priorities of in-vehicle applications. These candidate priorities reflect the level of network resources that an in-vehicle application may require under specific operational scenarios. For example, a navigation application's candidate priority may be increased when the vehicle is about to enter complex road conditions or a highway to ensure real-time navigation information updates and accuracy. Meanwhile, an entertainment application, such as music playback, may have a lower candidate priority when the vehicle is moving smoothly and the driver's operation is stable to avoid excessive network resource usage. These candidate priorities are then compared with the highest priority in the security level corresponding to the in-vehicle application's initial priority. If any candidate priority is higher than or equal to the highest priority, that candidate priority is determined as the in-vehicle application's current priority, ensuring that critical safety applications have an advantage in network resource competition. If all candidate priorities are lower than the highest priority, but to ensure a basic user experience, the mechanism selects the candidate priority closest to the highest priority but not exceeding it as the current priority. This allows for more flexible adaptation to actual user needs for in-vehicle applications while ensuring driving safety, enabling dynamic and optimized allocation of network resources.
[0073] For example, the corresponding operation duration weights QTa, QTb, ..., QTn can be determined based on the user's operation duration Ta, Tb, ..., Tn on an in-vehicle app; the corresponding dwell time weights SRa, SRb, ..., SRn can be determined based on the user's foreground dwell time Ra, Rb, ..., Rn on an in-vehicle app; and the corresponding operation frequency weights PFa, PFb, ..., PFn can be determined based on the user's real-time operation frequency Fa, Fb, ..., Fn on an in-vehicle app. For example, if a user frequently operates an in-vehicle app, such as frequently adjusting a navigation route or switching music playlists, the real-time operation frequency weight of that app will be increased accordingly. This dynamic adjustment of weights can reflect the user's immediate needs and preferences for in-vehicle apps, allowing for more precise adjustment of the current priority of in-vehicle apps to meet their actual needs. Furthermore, considering the operation frequency weights can prevent certain apps from occupying high priority for long periods of time due to short bursts of high-frequency operation, ensuring fair and reasonable bandwidth allocation.
[0074] The initial priority of in-vehicle applications is weighted based on the weights of operation information, such as operation duration weight, dwell time weight, and operation frequency weight, to obtain the candidate priority of in-vehicle applications. When determining the candidate priority, user-defined weight coefficients can be further introduced to allow users to assign different importance to different types of operation information based on their preferences and needs. For example, some users may place more emphasis on operation duration and believe that applications used for a long time should be given higher priority; while other users may pay more attention to operation frequency and believe that frequently operated applications better reflect their current needs and their network resources should be prioritized. By introducing user-defined weight coefficients, users can be provided with more personalized and flexible bandwidth allocation strategies, further improving the user experience.
[0075] When determining the target security level corresponding to the initial priority from multiple security levels, the functional importance, data sensitivity, and potential cyberattack risks of in-vehicle applications can be comprehensively considered. For example, for critical applications involving vehicle control, such as braking systems or steering systems, the security level should be set to the highest to ensure that sufficient network resources are available under all circumstances and to avoid security issues caused by network delays or interruptions. For some entertainment applications, such as music playback or video playback, the security level can be relatively low because the functional implementation of these applications is not directly related to the safe operation of the vehicle. By setting such a security level, while ensuring the network resource requirements of critical applications, the remaining network resources can be reasonably allocated to non-critical applications, achieving efficient utilization of network resources and security assurance.
[0076] Finally, the highest priority among all priorities corresponding to the target security level is determined, and the candidate priority of the in-vehicle application is compared with the highest priority among all priorities corresponding to the target security level to determine the final current priority of the in-vehicle application. If the candidate priority is higher than or equal to the highest priority corresponding to the target security level, the candidate priority is directly determined as the current priority of the in-vehicle application to ensure that the network resource requirements of critical safety applications are met first. If the candidate priority is lower than the highest priority corresponding to the target security level, but in order to improve the user experience, the candidate priority closest to the highest priority but not exceeding the highest priority is selected as the current priority to ensure driving safety while meeting the actual needs of users for in-vehicle applications and realizing dynamic optimization allocation of network resources.
[0077] In some alternative implementations, see Figure 3 , the above step S2011 further includes:
[0078] Step b1: when the in-vehicle application caches the application data, obtain the allocable bandwidth of the in-vehicle application in the allocable resource period.
[0079] Step b2: determining the current priority of the in-vehicle application based on the allocable bandwidth in the allocable resource period, the initial priority of the in-vehicle application, and the operation information of the in-vehicle application.
[0080] In this embodiment of the present invention, the available bandwidth for in-vehicle applications during the available resource allocation period is determined based on the cached data status of the in-vehicle applications. The current priority of the in-vehicle applications is determined by combining the initial priority and operational information of the in-vehicle applications. This ensures that the data transmission efficiency of the in-vehicle applications is taken into account while meeting the real-time operational status and security requirements of the in-vehicle applications, thereby making the allocation of in-vehicle bandwidth more efficient. Furthermore, by dynamically adjusting the priority of in-vehicle applications, critical applications are ensured to receive more network resources when needed, thereby improving the efficiency and security of information exchange during driving and providing a smoother and safer riding experience for drivers and passengers.
[0081] Specifically, based on the vehicle's driving status (such as the vehicle's driving speed), the network environment (such as signal strength, network congestion, etc.) and the data transmission requirements of each on-board application in a specific time period, the network speed available for data transmission in each time period can be dynamically calculated to more finely manage network resources and ensure that the available network bandwidth is maximized without affecting driving safety.
[0082] Next, the initial priority of the in-vehicle application (based on its impact on driving safety and user-perceived importance) and operation information (such as operation duration, operation frequency, etc., to reflect the user's immediate needs and preferences for in-vehicle applications) are integrated to determine the current priority of the in-vehicle application, so as to dynamically adjust the current priority of the in-vehicle application to adapt to the actual needs in different driving scenarios.
[0083] By specifically prioritizing in-vehicle applications that cache application data (i.e., cached applications) when determining their current priority and evaluating their available bandwidth during resource allocation periods, we can more accurately determine their data transmission potential and needs. Based on this, by combining the application's initial priority and operational information, we assign a more appropriate priority to each application, ensuring fast and efficient data transmission during periods of high demand. During periods of low demand, we lower its priority appropriately to balance overall network resource allocation, ensuring that the data transmission needs of critical applications are prioritized while avoiding idle network resources and improving the data transmission efficiency and responsiveness of the entire in-vehicle network system. For example, if a navigation application caches the latest map data when a vehicle is about to enter complex road conditions, we can increase the utilization of its available bandwidth during resource allocation periods to ensure timely updates and transmission of navigation data, ensuring that the driver receives the most accurate navigation information and improving driving safety. For some entertainment applications, such as music or video playback applications, if they cache a large amount of media data, their data transmission speed can be appropriately increased when the network load is low or the driver's demand for network resources is not high, so as to preload or cache more media content in advance, so that they can respond quickly when the user needs it and provide a smooth playback experience. This not only ensures that the data transmission needs of key safety applications are met first, but also improves user satisfaction with the use of in-vehicle applications, achieving a dual improvement in driving safety and user experience.
[0084] Furthermore, when obtaining the allocable bandwidth of the in-vehicle application in the allocable resource time period, for the in-vehicle application that does not have an application data cache, the minimum required bandwidth of the in-vehicle application that does not have an application data cache is obtained, and based on the minimum required bandwidth, the in-vehicle applications with allocable network speed are screened out from the in-vehicle applications with an application data cache to obtain the allocable network speed and the corresponding allocable time period, and the current priority of the in-vehicle application is determined based on the allocable bandwidth in the allocable resource time period, the initial priority of the in-vehicle application, and the operation information of the in-vehicle application.
[0085] Among them, when filtering out in-vehicle applications that can be allocated network speed from in-vehicle applications with application data cache based on the minimum required bandwidth to obtain the allocatable network speed and the corresponding allocatable time period, the bandwidth difference between the current bandwidth of the in-vehicle application that does not have an application data cache and the minimum required bandwidth can be calculated first; then, based on the bandwidth difference and the bandwidth requirement time period of the in-vehicle application that does not have an application data cache, the in-vehicle applications that can be allocated bandwidth are filtered out from the in-vehicle applications with an application data cache; finally, based on the cached application data loading time period of the in-vehicle application that can be allocated bandwidth, the resource allocation time period is determined.
[0086] Furthermore, after an in-vehicle application allocates resources, a protection flag can be added to it to ensure that the in-vehicle application that allocated resources will not be requested to allocate resources again by other in-vehicle applications, thereby avoiding over-allocation and conflicts of network resources and improving the stability and reliability of bandwidth allocation. At the same time, by adding a protection flag to the in-vehicle application that allocates resources, the security and integrity of these applications during data transmission can be ensured, preventing unauthorized access or tampering of data, further enhancing the security and credibility of the in-vehicle network system.
[0087] In this embodiment, another vehicle-mounted bandwidth allocation method is provided, which is applied to vehicles. Figure 4 FIG. 1 is a flow chart of another vehicle-mounted bandwidth allocation method according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0088] Step S401 , when it is detected that the network speed of the vehicle-mounted communication device is less than the network speed threshold, the current priority of each vehicle-mounted device among the multiple vehicle-mounted devices is determined according to the device function of the vehicle-mounted device and / or the vehicle status.
[0089] For a network interface of an in-vehicle communication device and an in-vehicle device, if the in-vehicle device transmits data through the network interface, the in-vehicle device is the in-vehicle device corresponding to the network interface.
[0090] Among them, the functions of in-vehicle devices include in-vehicle navigation, in-vehicle entertainment, and in-vehicle safety monitoring. The different functions of in-vehicle devices determine their different network bandwidth requirements and priorities. For example, in-vehicle navigation plays a vital role in vehicle driving. It requires real-time updates of map information, road conditions, and other information to ensure that drivers can obtain the most accurate navigation guidance. Therefore, its corresponding in-vehicle applications are generally given a higher priority. In-vehicle entertainment functions, such as music and video playback, while they can enhance the riding experience, have a relatively small impact on driving safety. Therefore, their corresponding in-vehicle applications may be given a lower priority in bandwidth allocation.
[0091] Vehicle status, including speed, direction, and whether it's in congested traffic, also influences the priority of in-vehicle applications. For example, when the vehicle is traveling at high speed, the driver's attention needs to be highly focused. In this case, in-vehicle applications corresponding to safety monitoring functions, such as blind spot monitoring systems and emergency brake assist systems, should be prioritized to ensure driving safety. When the vehicle is parked or traveling at low speeds, the driver's demand for network resources may decrease. In this case, the priority of in-vehicle applications corresponding to in-vehicle entertainment functions can be appropriately increased to enhance the riding experience.
[0092] When determining the current priority of in-vehicle applications, if the network speed of the in-vehicle communication device is less than the network speed threshold, it means that the current network environment is poor and network resources are limited. In this case, the priority of in-vehicle applications needs to be dynamically adjusted based on the device functions and vehicle status to ensure that critical safety applications can obtain sufficient network resources and maintain their normal operation and responsiveness. At the same time, for low-priority applications, the allocated bandwidth ratio can be appropriately reduced to balance the overall utilization of network resources, thereby maximizing the user's demand for in-vehicle applications while ensuring driving safety.
[0093] In an embodiment of the present invention, when the network speed of an on-board communication device falls below a set speed threshold, the on-board device that needs to transmit data is identified. Then, appropriate network bandwidth is allocated to each on-board device based on its specific functions and the vehicle's current operating status. This not only ensures that critical on-board devices have priority access to network resources to ensure driving safety and the normal operation of vehicle functions, but also effectively improves the utilization efficiency of network resources, avoiding network congestion and resource waste. Furthermore, by dynamically adjusting the network interface bandwidth, the on-board device network can better adapt to different driving environments and user needs, achieving reliable management of network resources.
[0094] Step S402 : allocating bandwidth of a network interface to each of the plurality of in-vehicle devices according to the current priority of each in-vehicle device.
[0095] Specifically, the above step S402 includes:
[0096] Step S4021 : Determine the second bandwidth ratio that can be allocated to each in-vehicle device according to the current priority of the in-vehicle device.
[0097] Specifically, a reasonable bandwidth ratio can be allocated to each on-board device based on factors such as the current priority of the on-board device, the importance of the device function, the vehicle status, and the availability of network resources. This ensures that high-priority devices obtain more network resources to maintain their normal operation and response speed. At the same time, a certain bandwidth share is allocated to low-priority devices to avoid complete idleness of resources and achieve optimal utilization of network resources. When determining the bandwidth ratio, factors such as the total bandwidth of the network interface, the currently allocated bandwidth, and possible future bandwidth requirements can also be used to ensure the rationality and sustainability of the allocation. This allows for refined management and dynamic adjustment of on-board network resources to adapt to the actual needs of different driving scenarios, thereby improving driving safety and user experience.
[0098] Step S4022: Allocate the bandwidth of the network interface to each vehicle-mounted device according to the second bandwidth ratio.
[0099] Specifically, the bandwidth allocation of each on-board device can be flexibly adjusted based on the real-time needs of each on-board device and the availability of network resources to ensure that key on-board devices can obtain more network resources when needed to maintain their normal operation and response speed. At the same time, a certain bandwidth share is also provided to other on-board devices, avoiding the waste of network resources and improving the overall utilization efficiency of network resources. In actual operation, the dynamic bandwidth allocation function of the network interface can be used to monitor the network usage of each on-board device and the overall status of network resources in real time. Then, based on this information, the bandwidth of each on-board device can be adjusted according to the second bandwidth ratio to achieve dynamic balancing and optimal utilization of network resources, ensure the stability and reliability of the on-board network, and provide drivers and passengers with a smoother and safer riding experience.
[0100] In an embodiment of the present invention, the proportion of bandwidth that can be allocated to each vehicle-mounted device is determined based on the current priority of the vehicle-mounted device, so as to ensure that key devices can obtain more network support when communication resources are tight based on the safety and functional requirements during vehicle driving. This ensures the vehicle's communication efficiency while also improving driving comfort and intelligence.
[0101] Furthermore, the example of allocating bandwidth by the method provided in the embodiment of the present application is as follows: Figure 5 As shown, when bandwidth is allocated based on the priority of in-vehicle applications, for each in-vehicle application, the bandwidth of the network interface is allocated to the in-vehicle application according to the current priority of the in-vehicle application; when bandwidth is allocated based on the priority of in-vehicle devices, for each in-vehicle device, the bandwidth of the network interface is allocated to the in-vehicle device according to the current priority of the in-vehicle device.
[0102] This embodiment also provides an in-vehicle bandwidth allocation device for implementing the aforementioned embodiments and preferred implementations. Details already described will not be repeated. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. While the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0103] This embodiment provides a vehicle-mounted bandwidth allocation device, which is applied to a vehicle, such as Figure 6 Shown, including:
[0104] The network speed detection module 601 is configured to determine the current priority of each of the plurality of in-vehicle applications based on a type of the in-vehicle application related to vehicle driving safety and / or a type related to user perception when detecting that the network speed of the in-vehicle communication device is less than a network speed threshold;
[0105] The bandwidth allocation module 602 is configured to allocate bandwidth of a network interface to a plurality of in-vehicle applications according to a current priority of each in-vehicle application, wherein the in-vehicle application corresponds to a network interface of the in-vehicle communication device.
[0106] In some optional implementations, the network speed detection module 601 includes:
[0107] an application initial priority determination unit, configured to determine the initial priority of the in-vehicle application based on the type of the in-vehicle application related to vehicle driving safety and / or the type of the in-vehicle application related to user perception;
[0108] The application current priority determination unit is used to determine the current priority of the in-vehicle application according to the initial priority of the in-vehicle application and the operation information of the in-vehicle application.
[0109] In some optional implementations, the application current priority determination unit includes:
[0110] an application candidate priority determination subunit, configured to obtain a candidate priority of the in-vehicle application based on the operation information of the in-vehicle application and the initial priority of the in-vehicle application;
[0111] a target security level determination subunit, configured to determine a target security level corresponding to the initial priority from a plurality of security levels, wherein each security level corresponds to a different priority;
[0112] A security level priority determination subunit, used to determine the highest priority among all priorities corresponding to the target security level;
[0113] The first application priority determination subunit is configured to determine the current priority of the in-vehicle application according to a comparison result between the candidate priority and the highest priority.
[0114] In some optional implementations, the application current priority determination unit further includes:
[0115] The application configurable bandwidth acquisition subunit is used to obtain the configurable bandwidth of the vehicle application in the configurable resource period when the vehicle application caches the application data;
[0116] The second application priority determination subunit is configured to determine a current priority of the in-vehicle application based on the allocable bandwidth in the allocable resource period, the initial priority of the in-vehicle application, and the operation information of the in-vehicle application.
[0117] In some optional implementations, the bandwidth allocation module 602 includes:
[0118] an application bandwidth ratio determining unit, configured to determine a first bandwidth ratio allocable to each in-vehicle application according to a current priority of the in-vehicle application;
[0119] The in-vehicle application bandwidth allocation unit is configured to allocate the bandwidth of the network interface to the in-vehicle application according to a first bandwidth ratio.
[0120] In some optional embodiments, the network speed detection module is further configured to determine the current priority of each of the plurality of in-vehicle applications based on the device function and the vehicle status when detecting that the network speed of the in-vehicle communication device is less than a network speed threshold;
[0121] The bandwidth allocation module is further configured to allocate bandwidth of a network interface to each of the plurality of onboard devices according to a current priority of each onboard device, wherein the onboard devices correspond to network interfaces of the onboard communication devices.
[0122] In some optional implementations, the bandwidth allocation module includes:
[0123] a device bandwidth ratio determination unit, configured to determine the bandwidth ratio that can be allocated to each on-board device based on the current priority of the on-board device;
[0124] The vehicle-mounted device bandwidth allocation unit is used to allocate the bandwidth of the network interface to each vehicle-mounted device according to the bandwidth ratio of the vehicle-mounted device.
[0125] The vehicle-mounted bandwidth allocation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0126] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0127] An embodiment of the present invention further provides an electronic device having the above Figure 6 The vehicle-mounted bandwidth distribution device shown.
[0128] See also Figure 7 , Figure 7 is a structural diagram of an electronic device provided by an optional embodiment of the present invention, such as Figure 7As shown, the electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components utilize different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0129] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.
[0130] The memory 20 stores instructions that can be executed by at least one processor 10, so as to enable at least one processor 10 to execute the method shown in the above embodiment.
[0131] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created based on the use of an electronic device presented by a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0132] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0133] The electronic device further includes a communication interface 30 for the electronic device to communicate with other devices or a communication network.
[0134] An embodiment of the present invention also provides a vehicle, comprising: a vehicle memory and a memory for communicating with a vehicle controller; the memory stores instructions that can be executed by the vehicle controller, and the instructions are executed by the vehicle controller to enable the vehicle controller to execute the vehicle-mounted bandwidth allocation method of the above-mentioned first aspect or any corresponding embodiment thereof.
[0135] The embodiment of the present invention also provides a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or downloaded through a network and originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0136] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A vehicle-mounted bandwidth allocation method, characterized in that: Applied to a vehicle, the method comprises: When it is detected that the network speed of the in-vehicle communication device is less than the network speed threshold, the bandwidth of the network interface is allocated to each of the multiple in-vehicle applications according to the current priority of each of the in-vehicle applications, wherein the in-vehicle application corresponds to the network interface of the in-vehicle communication device, and the current priority of the in-vehicle application is determined according to the type of the in-vehicle application related to the vehicle driving safety and / or the type related to user perception.
2. The method according to claim 1, characterized in that Determine the current priority of the in-vehicle application, including: determining an initial priority of the in-vehicle application according to a type of the in-vehicle application related to the vehicle driving safety and / or a type of the in-vehicle application related to the user perception; The current priority of the in-vehicle application is determined according to the initial priority of the in-vehicle application and the operation information of the in-vehicle application.
3. The method according to claim 2, characterized in that The determining, according to the initial priority of the in-vehicle application and the operation information of the in-vehicle application, the current priority of the in-vehicle application includes: Obtaining a candidate priority of the in-vehicle application according to the operation information of the in-vehicle application and the initial priority of the in-vehicle application; determining a target security level corresponding to the initial priority from a plurality of security levels, wherein each security level corresponds to a different priority; Determine the highest priority among all priorities corresponding to the target security level; The current priority of the in-vehicle application is determined according to a comparison result of the candidate priority and the highest priority.
4. The method according to claim 2, characterized in that The determining the current priority of the in-vehicle application according to the initial priority of the in-vehicle application and the operation information of the in-vehicle application further includes: When the in-vehicle application caches the application data, obtaining the allocable bandwidth of the in-vehicle application in the allocable resource period; The current priority of the in-vehicle application is determined based on the allocable bandwidth in the allocable resource period, the initial priority of the in-vehicle application, and the operation information of the in-vehicle application.
5. The method according to claim 1, wherein Allocating bandwidth of a network interface to each of the plurality of in-vehicle applications according to a current priority of each of the in-vehicle applications includes: Determining a first bandwidth ratio allocable to each of the in-vehicle applications according to a current priority of the in-vehicle applications; Allocate the bandwidth of the network interface to each of the in-vehicle applications according to the first bandwidth ratio.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When it is detected that the network speed of the vehicle communication device is lower than the network speed threshold; According to the current priority of each of the multiple on-board devices, the bandwidth of the network interface is allocated to each of the on-board devices, wherein the on-board device corresponds to the network interface of the on-board communication device, and the current priority of the on-board device is determined according to the device function of the on-board device and / or the vehicle status.
7. The method according to claim 6, characterized in that Allocating bandwidth of a network interface to each of the plurality of on-board devices according to a current priority of each of the on-board devices includes: determining, according to the current priority of the in-vehicle device, a second bandwidth ratio allocable to each of the in-vehicle devices; The bandwidth of the network interface is allocated to each of the in-vehicle devices according to the second bandwidth ratio.
8. A vehicle-mounted bandwidth allocation device, characterized in that: Applied to a vehicle, the device comprises: a network speed detection module, configured to, when detecting that the network speed of the in-vehicle communication device is less than a network speed threshold, determine a current priority of each of the plurality of in-vehicle applications based on a type of the in-vehicle application related to vehicle driving safety and / or a type related to user perception; The bandwidth allocation module is configured to allocate bandwidth of a network interface to each of a plurality of in-vehicle applications according to a current priority of each of the in-vehicle applications, wherein the in-vehicle application corresponds to the network interface of the in-vehicle communication device.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the vehicle-mounted bandwidth allocation method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the vehicle-mounted bandwidth allocation method according to any one of claims 1 to 7.