AUTBUS resource allocation method and device

Through the management nodes in the AUTBUS system, the cumbersome resource allocation problem in the existing technology is solved, and the ease of use and deployment efficiency of the AUTBUS system is improved, ensuring efficient utilization of resources.

CN119052192APending Publication Date: 2024-11-29KYLAND TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411079801.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing AUTBUS bus system requires manual configuration of symbol resources, which is cumbersome and not easy to use by non-professional personnel, especially the lack of automation in resource allocation, resulting in inefficient deployment.

Method used

Provides an AUTBUS resource allocation method, the management node MN automatically detects and configures communication resources, dynamically adjusts according to the needs and resource utilization of the terminal node, and supports resource allocation without human operation, including automatic configuration when there are idle resources and in the absence of Adjust resource configuration when free resources.

Benefits of technology

It improves the ease of use and deployment efficiency of the AUTBUS system, realizes automated resource configuration, reduces manual operation steps, and improves resource utilization and overall system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052192A_ABST
    Figure CN119052192A_ABST
Patent Text Reader

Abstract

The invention relates to an AUTBUS resource allocation method, which is applied to a management node MN and comprises the following steps: the MN determines whether idle communication resources exist or not according to communication resources allocated to each terminal node TN; when it is determined that idle communication resources exist, corresponding communication resources are configured from the idle communication resources for the TN needing to expand the communication resources; adjusting configuration information of communication resources of at least two TNs according to the resource use condition of each TN when it is determined that no idle communication resources exist; and sending the configuration information of the communication resource to the TN, so that the corresponding TN uses the configured communication resource to communicate. The invention also correspondingly provides an AUTBUS resource allocation device. According to the method, resource configuration can be completed without manual operation of professional software, and the usability and deployment efficiency of the AUTBUS are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of AUTBUS bus application, and in particular to an AUTBUS resource allocation method and device. Background Art

[0002] AUTBUS is a bus communication system based on OFDM (Orthogonal Frequency Division Multiplexing) technology at the physical layer. Its signal frame consists of pilot symbols and data symbols. Two consecutive pilot symbols constitute the signal frame header, which is used for system synchronization. AUTBUS is a broadband industrial bus based on time-sensitive technology. It is a time-slice mechanism. The signal mechanism is as follows:

[0003] Signal frame mechanism - based on the time-synchronized time slot communication bus, the physical layer signal frame (FRAME) is continuously transmitted to control and deploy the communication rhythm and communication resource planning of the entire network. FRAME is composed of a series of continuous OFDM symbols (64 in total), called Symbol, such as Figure 1 Symbol not only represents the time slot relationship, but also contains the maximum data carrying capacity in this time slot, and is the minimum allocation unit of communication resources. FRAME includes system-specific symbol communication resources (Symbol 0-3, Symbol 61-63) and symbol communication resources available for business data (Symbol 4-60).

[0004] When communication is established between TNs or between TN and MN, MN needs to allocate symbols (i.e. Symbol 4-60). MN, as the management node in the AUTBUS bus network, is the master role in the physical layer. There is only one MN in the entire network, which provides network communication management. At the link layer, it can also be used as a service node. TN, as the terminal node in the AUTBUS bus network, is a slave role at the physical layer, accepting the management and configuration of the master role, and is used as a service node at the link layer. All nodes can establish service-level communication relationships and support unicast, multicast, and broadcast transmission between nodes, such as Figure 2 shown.

[0005] FRAME can be configured to have 1 to 8 cycles, such as Figure 3 In terms of time slot resource allocation, FRAME is a basic time period, and time slot resources are allocated in units of periods. Time slot resources can also be allocated in units of 2 to 8 consecutive FRAMEs as a period.

[0006] For example, to establish a communication channel between TN-A and TN-B, apply for the allocation of two symbol resources (such as symbol 4 and symbol 5) in each FRAME, set TN-A: symbol 4 is used for sending, symbol 5 is used for receiving, and the corresponding TN-B: symbol 4 is used for receiving, symbol 5 is used for sending. The above configuration enables TN-A and TN-B to establish communication. This is equivalent to having a sending or receiving window in each FRAME cycle, such as Figure 4 If the application allocates two symbol resources in every 8 FRAMEs, it is equivalent to having a sending window in every 8 FRAME cycles.

[0007] Before using the existing AUTBUS bus, symbol resources need to be manually configured on the MN device through a command line terminal or a configuration tool. This operation is difficult for a non-professional or someone who is not familiar with AUTBUS technology, and is tedious even for a professional. Summary of the invention

[0008] In view of the above problems in the prior art, the present application provides an AUTBUS resource allocation method and device to support resource configuration without the need for manual operation of professional software, thereby improving the usability and deployment efficiency of AUTBUS.

[0009] To achieve the above-mentioned object, the first aspect of the present application provides an AUTBUS resource allocation method, which is applied to a management node MN, comprising:

[0010] The MN determines whether there are idle communication resources based on the communication resources allocated to each terminal node TN;

[0011] When it is determined that there are idle communication resources, configure corresponding communication resources from the idle communication resources for the TN that needs to expand the communication resources; when it is determined that there are no idle communication resources, adjust the configuration information of the communication resources of at least two TNs according to the resource usage of each TN;

[0012] The configuration information of the communication resources is sent to the TN so that the corresponding TN communicates using the configured communication resources.

[0013] From the above, when the MN of this application determines that it has idle communication resources, it will automatically configure communication resources with the required bandwidth for the TN from the idle communication resources. When there are no idle communication resources, it will also adjust the configuration information of the communication resources of at least two TNs according to the resource usage of each TN. In this way, there is no need to manually plan and design the bus network resources after completing the AUTBUS device deployment, and it supports the completion of resource configuration without manual operation of professional software, which greatly improves the ease of use and deployment efficiency of AUTBUS.

[0014] As a possible implementation of the first aspect, when it is determined that there are idle communication resources, configuring corresponding communication resources from the idle communication resources for the TN that needs to expand communication resources includes:

[0015] When it is determined that there are idle communication resources, broadcasting the idle communication resources;

[0016] receiving idle resource request information sent by any first TN in response to the idle communication resource broadcast, wherein the idle resource request information includes a bandwidth of communication resources to be expanded by the first TN;

[0017] According to the bandwidth of the communication resources to be expanded of the first TN, configuring communication resources of corresponding bandwidth for the first TN from the idle communication resources;

[0018] The configuration information of the communication resources is sent to the first TN so that the first TN communicates using the communication resources.

[0019] From the above, when there are idle communication resources in the AUTBUS network, the present application will broadcast to any TN, and will configure communication resources of corresponding bandwidth for any TN that responds to the broadcast, thus ensuring that the bandwidth is optimally allocated.

[0020] As a possible implementation of the first aspect, when it is determined that there are idle communication resources, configuring corresponding communication resources from the idle communication resources for the TN that needs to expand communication resources includes:

[0021] When it is determined that there are idle communication resources, statistics are collected for any second TN about the bandwidth actually currently used and the bandwidth of the configured communication resources;

[0022] Calculating the utilization rate of the bandwidth currently actually used by the second TN relative to the bandwidth of the configured communication resources;

[0023] When the utilization rate is greater than a threshold, configuring a portion of the idle communication resources for the second TN as expanded communication resources;

[0024] The configuration information of the communication resources is sent to the second TN so that the second TN communicates using the configured extended communication resources.

[0025] From the above, when there are idle communication resources in the AUTBUS network, the present application will count the resource utilization of any TN. When its communication resource utilization is greater than the threshold, a part of the idle communication resources will be allocated to the TN as an expanded communication resource. In this way, the current idle resources can be allocated based on the actual usage of the communication resources of the TN, which can improve the utilization of the current idle resources.

[0026] As a possible implementation manner of the first aspect, when it is determined that there are no idle communication resources, adjusting the configuration information of the communication resources of at least two TNs according to the resource usage of each TN includes:

[0027] When it is determined that there are no idle communication resources, counting the bandwidth actually currently used by each TN and the bandwidth of the configured communication resources, wherein the TNs include at least any third TN and any fourth TN;

[0028] Calculating the utilization rate of the bandwidth actually used by the third TN and the fourth TN respectively relative to the bandwidth of the communication resources configured by each TN;

[0029] When the calculated utilization rate of the third TN is lower than the calculated utilization rate of the fourth TN, a portion of the unused portion of the communication resources configured for the third TN is configured to be released and recycled, and the communication resources configured to be recycled are configured as communication resources expanded by the fourth TN;

[0030] The configuration information of the communication resources is sent to the third TN and the fourth TN, so that the third TN releases the corresponding communication resources and the fourth TN communicates using the configured expanded communication resources.

[0031] From the above, in this application, when the MN has no idle communication resources, the resource utilization of any two TNs will be calculated, and part of the communication resources of the TN with low communication resource utilization will be reallocated to the TN with high communication resource utilization, thereby achieving optimal allocation of the bandwidth occupied by each TN and improving the effective utilization of the AUTBUS bus.

[0032] As a possible implementation of the first aspect, the following also includes:

[0033] The calculated utilization rate of the third TN is lower than a first threshold, and the calculated utilization rate of the fourth TN is higher than a second threshold; wherein the first threshold is lower than the second threshold.

[0034] As a possible implementation of the first aspect, when the TN goes online, it also includes:

[0035] receiving an online message sent by the TN, wherein the online message includes communication resource request information;

[0036] Determine the bandwidth of the communication resources required by the TN according to the communication resource request information, and when it is determined that idle communication resources can meet the communication resources of the bandwidth required by the TN, configure the communication resources of the required bandwidth for the TN from the idle communication resources;

[0037] The configuration information of the communication resources is sent to the TN so that the TN communicates using the configured communication resources.

[0038] From the above, the present application can also automatically allocate communication resources of the required bandwidth to TN upon receiving a communication resource request from TN. Similarly, there is no need to manually plan and design bus network resources after completing the deployment of AUTBUS equipment. It supports the completion of resource configuration without manual operation of professional software, which greatly improves the ease of use and deployment efficiency of AUTBUS.

[0039] As a possible implementation manner of the first aspect, determining the bandwidth of the communication resources required by the TN according to the communication resource request information includes one of the following:

[0040] The communication resource request information includes a communication resource field required for TN communication and a configured bandwidth value, and the bandwidth of the communication resource required for TN is determined according to the bandwidth value configured in the communication resource field required for TN communication;

[0041] The communication resource request information includes a communication resource field required for TN communication and a node type of the device, wherein the communication resource field required for TN communication is marked to use a default value or is unassigned, and the bandwidth of the communication resource required for TN is determined according to the node type of the device.

[0042] From the above, the present application can determine the bandwidth of the communication resources required by the TN communication based on the bandwidth value configured by the communication resources required for the TN communication field, and can also determine the bandwidth of the communication resources required by the TN communication based on the node type of the device when the communication resources required for the TN communication field is marked with a default value or is not assigned a value, thereby providing a variety of bandwidth determination methods for communication resources.

[0043] As a possible implementation of the first aspect, the following also includes:

[0044] When it is determined that the idle communication resources do not satisfy the communication resources of the bandwidth required by the TN, a resource shortage message is sent to the TN.

[0045] From the above, the present application can inform the TN when the idle communication resources are insufficient, so that the TN can be informed of the resource status on the bus in a timely manner.

[0046] As a possible implementation of the first aspect, the following also includes:

[0047] Receive an offline message sent by the TN, search for the communication resources configured by the offline TN, and recycle the communication resources configured by the offline TN as idle communication resources.

[0048] From the above, this application will recycle the communication resources allocated to TN after TN goes offline, so that the resources of the AUTBUS bus can be better utilized.

[0049] As a possible implementation manner of the first aspect, sending the configuration information of the communication resources to the TN includes: recording the configuration information of the communication resources in a resource allocation table, and sending the resource allocation table to the TN in a broadcasting manner.

[0050] From the above, this application uses a resource allocation table to record the configuration information of communication resources, which can be better managed. The resource allocation table is sent in a broadcast manner to ensure that the nodes can understand the resource configuration in a timely manner.

[0051] A second aspect of the present application provides an AUTBUS resource allocation device, applied to a management node MN, comprising:

[0052] A resource determination module, used by the MN to determine whether there are idle communication resources according to the communication resources allocated to each terminal node TN;

[0053] A resource allocation module, configured to, when it is determined that there are idle communication resources, configure corresponding communication resources from the idle communication resources for the TN that needs to expand the communication resources; when it is determined that there are no idle communication resources, adjust the configuration information of the communication resources of at least two TNs according to the resource usage of each TN;

[0054] The information sending module sends the configuration information of the communication resources to the TN so that the corresponding TN communicates using the configured communication resources.

[0055] A third aspect of the present application provides an AUTBUS resource allocation method, which is applied to a terminal node TN, comprising:

[0056] Generate an online message based on the configuration file loaded at power-on, wherein the online message includes communication resource request information;

[0057] Sending the online message to the management node MN, so that the MN determines the bandwidth of the communication resources required by the TN according to the communication resource request information, and configures the communication resources of the required bandwidth for the TN from the idle communication resources;

[0058] Receive configuration information of the communication resources sent by the MN, and use the communication resources for communication.

[0059] A fourth aspect of the present application provides an AUTBUS resource allocation method, which is applied to a terminal node TN, comprising:

[0060] Receiving idle communication resources broadcasted by the management node MN;

[0061] Determine the bandwidth of communication resources that need to be expanded based on its current communication needs and allocated communication resources;

[0062] Sending idle resource request information to the MN, so that the MN responds to the idle resource request information and configures communication resources of corresponding bandwidth for the TN from idle communication resources, wherein the idle resource request information includes the bandwidth of the idle communication resources that need to be expanded;

[0063] Receive configuration information of the communication resources sent by the MN to use the communication resources for communication.

[0064] A fifth aspect of the present application provides an AUTBUS resource allocation method, including:

[0065] When the terminal node TN is powered on, the configuration file is loaded and an online message is generated, wherein the online message includes communication resource request information;

[0066] The TN sends the online message to the management node MN;

[0067] The MN receives an online message sent by the TN, determines the bandwidth of the communication resources required by the TN according to the communication resource request information in the online message, and when it is determined that the idle communication resources can meet the bandwidth of the communication resources required by the TN, configures the communication resources with the required bandwidth for the TN from the idle communication resources;

[0068] The MN sends the configuration information of the communication resources to the TN;

[0069] The TN receives the configuration information of the communication resources sent by the MN, and uses the communication resources for communication.

[0070] A sixth aspect of the present application provides an AUTBUS resource allocation device, applied to a terminal node TN, including:

[0071] A message generating module, used to generate an online message based on the configuration file loaded at power-on, wherein the online message includes communication resource request information;

[0072] A message sending module, configured to send the online message to a management node MN, so that the MN determines the bandwidth of the communication resources required by the TN according to the communication resource request information, and configures communication resources of the required bandwidth for the TN from idle communication resources;

[0073] The resource receiving module is used to receive the configuration information of the communication resources sent by the MN and use the communication resources for communication.

[0074] A seventh aspect of the present application provides an AUTBUS resource allocation device, applied to a terminal node TN, comprising:

[0075] A resource receiving module, used for receiving idle communication resources broadcasted by the management node MN;

[0076] An expansion resource determination module is used to determine the bandwidth of the communication resources that need to be expanded according to its current communication needs and the allocated communication resources;

[0077] A message sending module, configured to send idle resource request information to the MN, so that the MN responds to the idle resource request information and configures communication resources of corresponding bandwidth for the TN from idle communication resources, wherein the idle resource request information includes the bandwidth of the idle communication resources that need to be expanded;

[0078] The resource receiving module is further used to: receive configuration information of communication resources sent by the MN, so as to use the communication resources for communication.

[0079] An eighth aspect of the present application provides an AUTBUS resource allocation system, including: a terminal node TN and a management node MN;

[0080] The TN is used for:

[0081] When powered on, the configuration file is loaded and an online message is generated, wherein the online message includes communication resource request information; the online message is sent to the management node MN;

[0082] The MN is used to:

[0083] receiving an online message sent by the TN, determining the bandwidth of the communication resources required by the TN according to the communication resource request information in the online message, and when it is determined that idle communication resources can meet the communication resources of the bandwidth required by the TN, configuring the communication resources of the required bandwidth for the TN from the idle communication resources; and sending the configuration information of the communication resources to the TN;

[0084] The TN is also used for:

[0085] The configuration information of the communication resources sent by the MN is received, and the communication resources are used for communication.

[0086] A ninth aspect of the present application provides a computing device, including:

[0087] processor, and

[0088] A memory having program instructions stored thereon, wherein when the program instructions are executed by the processor, the processor executes any one of the methods described in the first aspect or the third aspect.

[0089] In a tenth aspect, the present application provides a computer-readable storage medium having program instructions stored thereon. When the program instructions are executed by a computer, the computer implements any of the methods described in the first or third aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0090] Figure 1 It is a schematic diagram of the symbol communication resources inside the FRAME in the existing AUTBUS bus network;

[0091] Figure 2 It is a schematic diagram of the communication relationship between the management node MN and the terminal node TN in the existing AUTBUS bus network;

[0092] Figure 3 This is a schematic diagram of the existing AUTBUS bus network with FRAME configured as 8 for one cycle;

[0093] Figure 4 This is a schematic diagram of the allocation of symbol resources in the existing AUTBUS bus network;

[0094] Figure 5 It is a flowchart of a first embodiment of an AUTBUS resource allocation method (applied to MN) provided in an embodiment of the present application;

[0095] Figure 6 It is a first flow chart of idle resource allocation when there are idle communication resources in a first embodiment of an AUTBUS resource allocation method provided by an embodiment of the present application;

[0096] Figure 7 It is a second flow chart of idle resource allocation when there are idle communication resources in the first embodiment of an AUTBUS resource allocation method provided by an embodiment of the present application;

[0097] Figure 8 This is a flowchart of resource allocation when there are no idle communication resources in a first embodiment of an AUTBUS resource allocation method provided in an embodiment of the present application;

[0098] Fig. 9 This is a flowchart of resource allocation performed by the MN when the TN comes online in the first embodiment of an AUTBUS resource allocation method provided by the embodiment of the present application;

[0099] Fig.10 It is a flowchart of a second embodiment of an AUTBUS resource allocation method (applied to TN, TN power-on request resource allocation) provided in an embodiment of the present application;

[0100] Fig.11 It is a flowchart of a third embodiment of an AUTBUS resource allocation method (applied to TN, TN responding to idle resource allocation of MN) provided in an embodiment of the present application;

[0101] Fig.12 is a flowchart of a fourth embodiment of an AUTBUS resource allocation method (applied to the interaction between TN and MN) provided in an embodiment of the present application;

[0102] Fig.13 It is a flowchart of a first specific implementation method of an AUTBUS resource allocation method provided in an embodiment of the present application;

[0103] Fig.14 It is a flowchart of a second specific implementation method of an AUTBUS resource allocation method provided in an embodiment of the present application;

[0104] Fig.15 is a flowchart of a third specific implementation of an AUTBUS resource allocation method provided in an embodiment of the present application;

[0105] Fig.16 is a flowchart of a fourth specific implementation of an AUTBUS resource allocation method provided in an embodiment of the present application;

[0106] Fig.17 This is an AUTBUS bus network diagram provided by an embodiment of the present application;

[0107] Fig.18 This is a flow chart of a first embodiment of an AUTBUS resource allocation device (applied to MN) provided in an embodiment of the present application;

[0108] Fig.19 is a structural schematic diagram of a second embodiment of an AUTBUS resource allocation device (applied to TN) provided in an embodiment of the present application;

[0109] Fig. 20 is a structural schematic diagram of a third embodiment of an AUTBUS resource allocation device (applied to TN) provided in an embodiment of the present application;

[0110] Fig.21 It is a structural schematic diagram of a computing device provided in an embodiment of the present application.

[0111] It should be understood that the size and shape of each block diagram in the above structural diagram are for reference only and should not constitute an exclusive interpretation of the embodiment of the present invention. The relative position and inclusion relationship between the blocks presented in the structural diagram are only schematic representations of the structural association between the blocks, and do not limit the physical connection method of the embodiment of the present invention. DETAILED DESCRIPTION

[0112] The technical solution provided by the present application is further described below with reference to the accompanying drawings and examples. It should be understood that the system structure and business scenarios provided in the examples of the present application are mainly to illustrate the possible implementation methods of the technical solution of the present application and should not be interpreted as the only limitation on the technical solution of the present application. It is known to those of ordinary skill in the art that with the evolution of the system structure and the emergence of new business scenarios, the technical solution provided by the present application is also applicable to similar technical problems.

[0113] It should be understood that the AUTBUS resource allocation solution provided in the embodiments of the present application includes an AUTBUS resource allocation method, apparatus, system, computing device, etc. Since the principles of solving the problems in these technical solutions are the same or similar, some repetitions may not be repeated in the introduction of the following specific embodiments, but it should be regarded that these specific embodiments have been referenced to each other and can be combined with each other.

[0114] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of this application. In the event of any inconsistency, the meaning described in this specification or the meaning derived from the contents recorded in this specification shall prevail. In addition, the terms used in this specification are only for the purpose of describing the embodiments of this application and are not intended to limit this application. Some of the meanings are as follows:

[0115] MN: Management node in the AUTBUS bus communication system, used to allocate communication resources for communication between TNs.

[0116] TN: terminal node in the AUTBUS bus communication system. The first TN, second TN, third TN, and fourth TN mentioned in this application are any TN in the AUTBUS bus communication system. The description of the first TN to the fourth TN used in the specification is only for the convenience of description and does not mean that these TNs are specific TNs. It can be understood that in each embodiment, these TNs can be interchangeable. For example, for the embodiment of the first TN, the first TN can be replaced with any TN from the second TN to the fourth TN.

[0117] Before using the existing AUTBUS bus, symbol resources need to be manually configured on the MN device through a command line terminal or a configuration tool. This operation is difficult for a non-professional or someone who is not familiar with AUTBUS technology, and is tedious even for a professional.

[0118] In order to support the completion of resource configuration without the need for human operation of professional software, an embodiment of the present application provides an AUTBUS resource allocation method, in which the MN determines whether there are idle communication resources based on the communication resources allocated to each terminal node TN; when it is determined that there are idle communication resources, the corresponding communication resources are configured from the idle communication resources for the TN that needs to expand the communication resources; when it is determined that there are no idle communication resources, the configuration information of the communication resources of at least two TNs is adjusted according to the resource usage of each TN; the configuration information of the communication resources is sent to the TN so that the corresponding TN uses the configured communication resources to communicate, thereby realizing automatic allocation of AUTBUS resources, without the need to manually plan and design the bus network resources after completing the deployment of the AUTBUS equipment.

[0119] [First embodiment of the AUTBUS resource allocation method]

[0120] To achieve the above objectives, the first embodiment of the present application provides an AUTBUS resource allocation method, which is applied to a management node MN. The specific process is as follows: Figure 5 As shown, including:

[0121] S110: The MN determines whether there is idle communication resource according to the communication resources allocated to each terminal node TN;

[0122] S120: when it is determined that there are idle communication resources, configure corresponding communication resources from the idle communication resources for the TN that needs to expand communication resources; when it is determined that there are no idle communication resources, adjust the configuration information of the communication resources of at least two TNs according to the resource usage of each TN;

[0123] S130: Send the configuration information of the communication resources to the TN, so that the corresponding TN communicates using the configured communication resources.

[0124] In the specific implementation, firstly, MN establishes a communication resource management table (i.e., symbol resource management table), which records the status of all symbol resources on the bus, including the number of each symbol, whether it has been allocated, to which node it is allocated, the size of the allocated bandwidth, the start and end time, etc. Then, when executing S110, MN determines whether there are idle communication resources (i.e., calculates the number of idle symbols) based on this symbol resource management table. This can be achieved by traversing the symbol resource management table and filtering the symbol count marked as "unassigned", or by directly subtracting the number of allocated symbols from the total. If MN is configured with a dynamic resource adjustment or resource reservation mechanism, MN needs to consider the reserved symbols when calculating the number of idle symbols.

[0125] The specific implementation of S120 is described in detail below. Figure 6 As shown, when it is determined that there are idle communication resources, the corresponding communication resources are configured from the idle communication resources for the TN that needs to expand the communication resources, including:

[0126] S210: Determine idle communication resources, and broadcast the idle communication resources;

[0127] S220: receiving idle resource request information sent by any first TN in response to the idle communication resource broadcast, wherein the idle resource request information includes a bandwidth of communication resources to be expanded by the first TN;

[0128] S230: Allocate communication resources of corresponding bandwidth for the second TN from the idle communication resources according to the bandwidth of the communication resources to be expanded of the first TN;

[0129] S240: Send configuration information of communication resources to the first TN, so that the first TN communicates using the communication resources.

[0130] From the above, when there are idle communication resources in the AUTBUS network, the MN will broadcast to any TN and configure communication resources of corresponding bandwidth for any TN that responds to the broadcast, so as to improve the effective utilization of bus resources and ensure the optimal allocation of bandwidth.

[0131] In specific implementation, as mentioned above, the MN can record the status of all symbol resources on the bus based on the symbol resource management table, so as to determine the idle communication resources. The MN will receive the idle resource request information of one or more first TNs, and then determine how many symbols to allocate to it based on the bandwidth of the communication resources to be expanded by the first TN. It is explained here that the bandwidth size is related to the number of symbols. Symbol can be understood as the minimum allocation unit of bandwidth. The bandwidth demand of the device is directly related to the required symbol. Devices that require more bandwidth will be allocated more symbols to meet their data transmission needs. For example, if a device requires higher bandwidth communication, it may be allocated multiple continuous or discontinuous symbol resources.

[0132] When executing S230, in order to improve the optimization of resource allocation and network stability, when configuring communication resources for multiple first TNs, at least one of the following methods may be considered for configuration:

[0133] 1. Resource demand integration and assessment

[0134] The MN collects and summarizes all the resource requests of the first TN in response, including the number of newly requested symbols, the current allocation status and (possibly) the priority.

[0135] The MN then performs load assessment: it analyzes the overall load of the current network, including the usage rate of allocated symbols, busy time slots, network congestion, and expected future load growth, and allocates resources accordingly.

[0136] 2. Fairness and Optimization Algorithm

[0137] Fairness principle: Use algorithms such as the Max-Min-Min-Min algorithm or the Proportional Fairness principle to ensure that resource allocation satisfies both high-demand nodes and low-demand nodes.

[0138] Optimization algorithm: Apply heuristic algorithms such as genetic algorithm, simulated annealing algorithm or particle swarm optimization to find the global optimal solution or approximate optimal solution for resource allocation and balance resource utilization and network efficiency.

[0139] 3. Network stability guarantee

[0140] Stability considerations: During the allocation process, ensure that the network does not cause local or global congestion due to resource reconfiguration, use reserved bandwidth as a buffer, and avoid resource adjustments from causing impacts on real-time communications.

[0141] Dynamic adjustment: Monitor network status in real time and dynamically adjust algorithm parameters, such as adjusting resource allocation weights according to the degree of network congestion to ensure that the algorithm adapts to the current network conditions.

[0142] 4. Redistribution

[0143] Based on the above principles and algorithms, the MN can recalculate the symbol resource allocation table, including the symbol allocation, sending and receiving time, priority, etc. of each TN.

[0144] When multiple TNs request the same symbol resource, they are reallocated based on priority or fairness, and negotiation or compensation is performed when necessary to avoid resource allocation conflicts.

[0145] 5. Verify allocation: Verify the rationality of the new resource allocation table to ensure that there is no violation of network rules, such as bandwidth restrictions, retention of system symbols, etc.

[0146] When executing S240, the configuration information of the communication resources may be sent to all TNs in the AUTBUS network, including the first TN, in a broadcasting form, so that each TN updates the resource configuration information recorded locally.

[0147] In some embodiments, Figure 7 As shown, when it is determined that there are idle communication resources, the corresponding communication resources are configured from the idle communication resources for the TN that needs to expand the communication resources, including:

[0148] S310: When it is determined that there are idle communication resources, statistics are collected on the bandwidth actually currently used by any second TN and the bandwidth of the configured communication resources;

[0149] S320: Calculate the utilization rate of the bandwidth actually currently used by the second TN relative to the bandwidth of the configured communication resources;

[0150] S330: when the utilization rate is greater than a threshold, configuring a portion of the idle communication resources for the second TN as expanded communication resources;

[0151] S340: Send the configuration information of the communication resources to the second TN, so that the second TN communicates using the configured extended communication resources.

[0152] Specifically, MN continuously monitors network activities through the bus monitoring mechanism, counts the actual bandwidth used by any second TN, and can obtain the bandwidth of the communication resources configured for the second TN from the symbol resource management table. Then, MN will calculate the ratio of the bandwidth actually used by the second TN to the bandwidth of the configured communication resources. When the ratio is greater than a threshold (such as 90%), it means that the utilization rate of the allocated resources of the second TN is high, resulting in insufficient communication resources for the second TN. Then, more communication resources need to be allocated to the second TN, and a part of the idle resources of MN can be allocated to the second TN (for example, 50% of the idle resources). Finally, the expanded corresponding configuration information is sent to each TN including the second TN in a broadcast manner, so that the second TN uses the configured expanded resources, and other TNs update their locally recorded resource configuration information.

[0153] In addition, when the ratio is less than the threshold and less than another threshold (such as 10%), it indicates that the utilization rate of the allocated resources of the second TN is low, and the allocated resources of the second TN need to be recovered, and a part of them (such as 50%) can be recovered and then reallocated.

[0154] From the above, when there are idle communication resources in the AUTBUS network, the present application will count the resource utilization of any TN. When its communication resource utilization is greater than the threshold, a part of the idle communication resources will be allocated to the TN as an expanded communication resource. In this way, the current idle resources can be allocated based on the actual usage of the communication resources of the TN, which can improve the utilization of the current idle resources and achieve resource optimization.

[0155] In some embodiments, Figure 8 As shown, when it is determined that there are no idle communication resources, adjusting the configuration information of the communication resources of at least two TNs according to the resource usage of each TN includes:

[0156] S410: When it is determined that there are no idle communication resources, counting the bandwidth actually currently used by each TN and the bandwidth of the configured communication resources, wherein the TNs include at least any third TN and any fourth TN;

[0157] S420: Calculating the utilization ratio of the bandwidth actually used by the third TN and the fourth TN relative to the bandwidth of the communication resources configured by each TN;

[0158] S430: when the calculated utilization rate of the third TN is lower than the calculated utilization rate of the fourth TN, a portion of the unused portion of the communication resources configured for the third TN is configured to be released and recycled, and the communication resources configured to be recycled are configured as communication resources expanded by the fourth TN;

[0159] S440: Sending configuration information of communication resources to the third TN and the fourth TN, so that the third TN releases corresponding communication resources, and the fourth TN communicates using the configured expanded communication resources.

[0160] In some embodiments, it also includes:

[0161] The calculated utilization rate of the third TN is lower than a first threshold, and the calculated utilization rate of the fourth TN is higher than a second threshold; wherein the first threshold is lower than the second threshold.

[0162] Specifically, there are multiple TN device types in an AUTBUS network, and the data bandwidth occupied by each TN device is different. At this time, the MN will continuously monitor network activities through the bus monitoring mechanism, count the bandwidth currently actually used by each TN and the bandwidth of the configured communication resources, and calculate the utilization rate of the bandwidth actually used by any two TNs (the third TN and the fourth TN) relative to the bandwidth of the communication resources configured by each TN, and then compare the size of the utilization rates of the two TNs (the third TN and the fourth TN) and the size of the first threshold (for example, 10%) and the second threshold (for example, 90%). The bandwidth utilization rate of one TN must be less than the first threshold (for example, 10%) and the other must be greater than the second threshold (for example, 90%). Under this restriction, a part of the communication resources configured by the TN with a small utilization rate will be recovered and distributed to the TN with a large utilization rate. In this way, the bandwidth occupied by each TN is optimized and allocated, ensuring that the bandwidth is optimally allocated, and improving the effective utilization rate of the AUTBUS bus.

[0163] If the bandwidth utilization of one TN is greater than a first threshold (such as 10%) and the bandwidth utilization of the other TN is less than a second threshold (such as 90%), then no resource reallocation is performed between the two TNs.

[0164] The release and recovery of the allocated resources of the TN device in S430 mainly includes: configuring some unused time slots of the TN (the time slots are the communication resources previously configured by the MN for the TN) as idle in the resource allocation table. The resource allocation table will be broadcast to each online TN in the following steps so that each TN updates local resources and each online TN knows that the corresponding time slots are configured as idle. These idle time slots cannot be used for communication before being allocated to a certain TN.

[0165] In some embodiments, sending the configuration information of the communication resources to the TN in S130 includes: recording the configuration information of the communication resources in a resource allocation table, and sending the resource allocation table in a broadcasting manner.

[0166] Based on the symbol resource management table established by the MN, when executing S130, the configuration information of the communication resources can be recorded in a resource allocation table, wherein the resource allocation table can record information such as the number of the allocated symbol, the allocated bandwidth size, the start and end time, the allocated TN, etc.

[0167] Then, the resource allocation table is sent in a broadcasting manner, which can ensure that each TN node in the network where the MN is located can obtain the configuration information, so that each TN node can update the resource configuration information recorded locally.

[0168] In some embodiments, Fig. 9 As shown, when TN is online, it also includes:

[0169] S510: receiving an online message sent by the TN, wherein the online message includes communication resource request information;

[0170] S520: determining the bandwidth of the communication resources required by the TN according to the communication resource request information, and when it is determined that idle communication resources can satisfy the communication resources of the bandwidth required by the TN, configuring the communication resources of the required bandwidth for the TN from the idle communication resources;

[0171] S530: Send the configuration information of the communication resources to the TN, so that the TN communicates using the configured communication resources.

[0172] In some embodiments, determining the bandwidth of the communication resources required by the TN according to the communication resource request information includes one of the following:

[0173] The communication resource request information includes a communication resource field required for TN communication and a configured bandwidth value, and the bandwidth of the communication resource required for TN is determined according to the bandwidth value configured in the communication resource field required for TN communication;

[0174] The communication resource request information includes a communication resource field required for TN communication and a node type of the device, wherein the communication resource field required for TN communication is marked to use a default value or is unassigned, and the bandwidth of the communication resource required for TN is determined according to the node type of the device.

[0175] In specific implementation, in S510, the MN monitors the AUTBUS bus. When a TN comes online, the MN monitors and receives an online message sent by the TN through a remote procedure call (RPC) channel of the AUTBUS bus system. The online message includes communication resource request information.

[0176] The communication resource request information may include the communication resource field required for TN communication and the configured bandwidth value. For example, the bandwidth configured in the communication resource field may be N, where N represents the bandwidth size, and the unit may be Kbps or Mbps, etc., where 1Mbps=128Kbps. When the bandwidth value is 0, it does not mean that the allocated bandwidth is 0, but rather that the allocated bandwidth is the default bandwidth size. At this point, in S520, communication resources of N bandwidth (i.e., the number of symbols) may be configured for the TN from the idle communication resources.

[0177] The communication resource request information may also include the communication resource field required for TN communication and the node type of the device. At this time, the communication resource field required for TN communication is marked with a default value or unassigned. For example, the bandwidth configured in the communication resource field may be 0, which does not mean that the allocated bandwidth is 0, but rather that the allocated bandwidth is the default bandwidth size. At this time, S520 can configure N bandwidth communication resources (i.e., the number of symbols) for the TN from the idle communication resources based on the node type of the device. Node Type generally refers to the role played by a device in a bus network or the category of its physical layer communication interface, which directly affects their default bandwidth allocation. The following lists some node types and their corresponding default bandwidths in this application, as follows:

[0178] type=RS485: The bandwidth allocated is 1 Mbps.

[0179] type=CAN: The bandwidth allocation is 1Mbps.

[0180] type=ETH: The bandwidth allocated is 5 Mbps.

[0181] The configuration information of the default bandwidth corresponding to each node type can be pre-stored in the MN. These default bandwidth allocations reflect the common communication rates and application requirements of different interface types. For example, RS485 and CAN are often used for control signal transmission of industrial field equipment, with lower rate requirements; while Ethernet (ETH) is used for high-speed data transmission, such as video surveillance.

[0182] From the above, the present application can also automatically allocate communication resources of the required bandwidth to TN upon receiving a communication resource request from TN. The bandwidth of the communication resources required by TN can be determined based on the bandwidth value configured in the communication resource field required for TN communication. The bandwidth of the communication resources required by TN can also be determined based on the node type of the device when the communication resource field required for TN communication is marked with a default value or is not assigned a value. A variety of communication resource bandwidth determination methods are provided. In this way, there is no need to manually plan and design bus network resources after completing the AUTBUS device deployment. It supports resource configuration without manual operation of professional software, which greatly improves the ease of use and deployment efficiency of AUTBUS.

[0183] In some embodiments, it also includes: when it is determined that the idle communication resources do not meet the communication resources of the bandwidth required by the TN, sending a resource shortage message to the TN.

[0184] From the above, the present application can inform the TN when the idle communication resources are insufficient, so that the TN can issue an alarm indication and make the TN aware of the resource status on the bus in a timely manner. In some embodiments, after receiving the insufficient resource message, the TN can also adjust the requested communication resources (such as reducing the bandwidth requirement) and re-request, or re-request after a delay (in the expectation that bandwidth is released).

[0185] In some embodiments, it also includes:

[0186] Receive the offline message sent by the TN, find the communication resources configured by the TN, and recycle the communication resources configured by the offline TN as idle communication resources.

[0187] From the above, this application will recycle the communication resources allocated to TN after TN goes offline, which can improve the bandwidth optimization allocation of the AUTBUS bus.

[0188] In summary, when the MN of this application determines that its own idle communication resources can meet the bandwidth of the communication resources required by the TN, it will automatically configure the communication resources with the required bandwidth for the TN from the idle communication resources. In this way, there is no need to manually plan and design the bus network resources after completing the AUTBUS device deployment. It supports the completion of resource configuration without manual operation of professional software, which greatly improves the ease of use and deployment efficiency of AUTBUS.

[0189] [Second embodiment of AUTBUS resource allocation method]

[0190] To achieve the above purpose, the second embodiment of the present application provides an AUTBUS resource allocation method, which is applied to the terminal node TN. After the TN is powered on, it actively sends a request to the MN, and the MN allocates communication resources to the TN. The specific process is as follows: Fig.10 As shown, including:

[0191] S610: Generate an online message based on the configuration file loaded at power-on, wherein the online message includes communication resource request information;

[0192] S620: Sending the online message to the management node MN, so that the MN determines the bandwidth of the communication resources required by the TN according to the communication resource request information, and configures the communication resources of the required bandwidth for the TN from the idle communication resources;

[0193] S630: Receive configuration information of the communication resources sent by the MN, and use the communication resources for communication.

[0194] In specific implementation, after the TN device is powered on, it first loads the configuration file, obtains the TN's own node information (which can be the communication resources (i.e., bandwidth) and device type required for communication), generates an online message, and then sends the online message to the MN through the RPC channel of the AUTBUS system. The online message contains device information (such as TN identification), required bandwidth resource size (this information is optional. If this information is not included, the NM will configure it according to the default bandwidth corresponding to the device type), device type, etc. Then, the TN blocks and waits for the resource configuration information sent by the MN. After receiving the resource configuration information from the MN, it configures its registers according to the resource configuration information to complete the resource configuration, and joins the AUTBUS bus network to start communication. If the MN message received is insufficient resources or the message reception timeout, an alarm event is triggered, the device alarm light is controlled to indicate an alarm, or the requested communication resources are changed or the request is made after a certain delay, etc.

[0195] [Third embodiment of AUTBUS resource allocation method]

[0196] To achieve the above purpose, the third embodiment of the present application provides an AUTBUS resource allocation method, which is applied to the terminal node TN. When the MN determines that the idle resources are sufficient, it actively broadcasts the idle communication resources to the TN, and the TN that needs to expand the communication resources responds to the MN. Specifically, Fig.11 As shown, including:

[0197] S710: receiving idle communication resources broadcasted by the management node MN;

[0198] S720: Determine the bandwidth of the communication resources to be expanded according to the current communication demand and the allocated communication resources;

[0199] S730: Sending idle resource request information to the MN, so that the MN responds to the idle resource request information and configures communication resources of corresponding bandwidth for the TN from idle communication resources, wherein the idle resource request information includes the bandwidth of the idle communication resources to be expanded;

[0200] S740: Receive configuration information of the communication resources sent by the MN to use the communication resources for communication.

[0201] In some embodiments, when executing S720, after receiving the idle communication resources, the TN can evaluate whether additional idle symbol resources are needed to optimize communication performance or adapt to possible future bandwidth growth based on its current communication needs and allocated resources. In some embodiments, at least one of the following methods can be used to evaluate whether some idle resources need to be requested:

[0202] 1. Resource requirement analysis: TN analyzes its current communication tasks and data transmission requirements, including real-time transmission rate, packet size, transmission frequency, and expected future growth trends.

[0203] 2. Check the current resource status: TN checks whether the currently allocated symbol resources meet the current and expected needs, including analyzing the symbol's time slot allocation, data carrying capacity, and actual usage ratio. TN needs to evaluate whether its resources have reached saturation or are underutilized.

[0204] 3. Performance evaluation: TN evaluates its current communication performance, including indicators such as latency, packet loss rate, and throughput, to determine whether resource limitations have affected the communication quality.

[0205] 4. Future prediction: TN can estimate bandwidth demand in the future based on historical data and business development prediction models, and consider whether it is necessary to reserve resources for possible future business growth to avoid frequent resource reconfiguration.

[0206] 5. Resource request decision: Based on the above analysis, the TN decides whether to request additional symbol resources from the MN. If necessary, the TN calculates how many symbols are needed to achieve optimal performance or reserve them, while considering the economy and fairness of resource allocation.

[0207] In some embodiments, when S730 is executed, the idle resource request information may include an identifier of the TN, details of existing resources of the TN, and a requested resource amount.

[0208] Then TN waits for MN to respond. When resource allocation is successful, TN adjusts local configuration to adapt to new resources. Of course, if MN has insufficient resources and returns insufficient resource message, TN may take downgrade measures or adjust communication strategy, such as optimizing data compression and caching, reducing the number of required symbols, and regenerating idle resource request information for reapplication.

[0209] In some embodiments, executing S740 specifically includes: after receiving the new resource allocation table sent by the MN, the TN parses the content of the table to obtain key parameters such as the newly allocated symbol ID, and then updates the resource configuration information recorded locally and uses the updated symbol resources for data transmission.

[0210] [Fourth embodiment of AUTBUS resource allocation method]

[0211] To achieve the above objectives, the fourth embodiment of the present application provides an AUTBUS resource allocation method to realize the interaction between MN and TN, such as Fig.12 As shown, including:

[0212] S810: When the terminal node TN is powered on, a configuration file is loaded and an online message is generated, wherein the online message includes communication resource request information;

[0213] S820: The TN sends the online message to the management node MN;

[0214] S830: the MN receives an online message sent by the TN, determines the bandwidth of the communication resources required by the TN according to the communication resource request information in the online message, and when it is determined that the idle communication resources can meet the bandwidth of the communication resources required by the TN, configures communication resources with the required bandwidth for the TN from the idle communication resources;

[0215] S840: The MN sends the configuration information of the communication resources to the TN;

[0216] S850: The TN receives the configuration information of the communication resources sent by the MN, and uses the communication resources for communication.

[0217] During the specific implementation, reference may be made to the specific description of an AUTBUS resource allocation method applied to MN provided in the first embodiment of the present application and an AUTBUS resource allocation method applied to TN provided in the second embodiment of the present application, which will not be repeated here.

[0218] [A first specific implementation method of the AUTBUS resource allocation method]

[0219] The first specific implementation is applied to MN and TN, and is mainly an implementation example of MN performing resource allocation after TN goes online. The specific method steps are as follows Fig.13 As shown, including:

[0220] S111: MN starts, starts to monitor the AUTBUS bus and enters the resource management preparation state. A symbol resource management table is established, which records the status of all symbol resources on the bus, including the number of each symbol, whether it has been allocated, which node it is allocated to, the allocated bandwidth size, the start and end time, and other information.

[0221] S112: The TN is powered on and initialized, a configuration file atbcfg is loaded, the device type of the TN and the required communication resource size (ie, the required bandwidth) are obtained from the configuration file atbcfg, and an online message is generated and reported to the MN.

[0222] S113: After the MN monitors the online message of the TN node, it parses the online message reported by the TN node and extracts the device type of the TN node and the required communication resource size (ie, the required bandwidth).

[0223] S114: The MN traverses the idle resource pool to determine whether the idle communication resources in the idle resource pool are sufficient.

[0224] S115: When the MN determines that the idle communication resources can satisfy the communication resources required by the TN, the MN allocates the communication resources (number of symbols) required by the TN from the idle resource pool, and sends the allocated communication resources to the TN node.

[0225] After the MN allocates the communication resources, it also needs to update the resource allocation table accordingly, and can send the resource allocation table to the TN and other online TNs in a broadcasting manner.

[0226] S116: The TN node device uses the allocated communication resource configuration register to complete resource configuration, joins the AUTBUS bus network and starts communication.

[0227] Specifically, this step includes writing the received resource allocation table into the register to implement writing or updating of the local resource allocation table.

[0228] S117: When MN determines that the idle communication resources do not meet the communication resources required by TN (that is, the resources required by TN have exceeded the size of the idle resource pool), it sends a resource shortage message to the TN node, and the TN node control device alarm light gives an alarm indication. At this time, TN cannot communicate with other TN node devices.

[0229] S118: When the MN monitors the offline message of the TN node, it searches for the communication resources allocated to the TN and releases the communication resources allocated to the TN to the idle resources.

[0230] In addition, after the MN releases the communication resources, it also needs to update the resource allocation table accordingly, and send the updated resource allocation table to each online TN in a broadcast manner, so that each online TN updates its local resource allocation table.

[0231] [Second specific implementation method of AUTBUS resource allocation method]

[0232] The second specific implementation is applied to MN and TN, mainly for MN to automatically allocate idle bandwidth. When there are many idle symbol resources in a certain AUTBUS network, the current idle resources can be automatically allocated to the TN terminal node. This process aims to improve the effective use of bus resources and ensure the optimal allocation of bandwidth.

[0233] The specific steps are as follows Fig.14 As shown, including:

[0234] S211: MN calculates the number of idle symbols according to the symbol resource management table. The symbol resource management table records the status of all symbol resources on the AUTBUS bus, including the number of each symbol, whether it has been allocated, to which node it is allocated, the size of the allocated bandwidth, the start and end time, and other information. MN executes the algorithm to calculate the number of idle symbols by traversing the resource management table, filtering the symbol count marked as "unassigned", or directly subtracting the number of allocated symbols from the total number of symbols. If there is a dynamic adjustment or reservation mechanism, the reserved symbols must also be considered.

[0235] S212: The MN sends the current idle resource information to each TN node by broadcasting.

[0236] S213: TN receives current idle resource information (including the number of idle symbols);

[0237] S214: TN determines whether it needs to expand its resources;

[0238] S215: If necessary, the number of idle symbol resources required is calculated based on the current communication demand and the allocated communication resources. If not necessary, the process ends (or a response indicating that the resource is not necessary is returned to the MN).

[0239] S216: TN responds to MN by sending a free resource request to MN through the system RPC channel. The request may include the identifier of TN, details of allocated resources (number and number) and the requested resource amount (ie, the number of free symbol resources required).

[0240] S217: MN receives idle symbol resource request data from TN;

[0241] S218: The MN recalculates the symbol resource management table, that is, recalculates the communication resources allocated to the TN node.

[0242] S219: The MN sends the adjusted resource allocation table to each online TN, including the TN that sent the idle resource request, through bus broadcast or system RPC channel.

[0243] S220 Each TN that receives the new symbol resource table activates the newly allocated symbol resource table, that is, updates the local resource table, and can communicate based on the new symbol resources.

[0244] [Third specific implementation method of AUTBUS resource allocation method]

[0245] The third specific implementation is applied to MN and TN, mainly the adjustment of the real-time data bandwidth of TN by MN. When the real-time data bandwidth occupied by a TN is small but the allocated bandwidth is large, the excess bandwidth allocated by the TN can be recycled and reused. This process aims to improve the effective use of bus resources and ensure the optimal allocation of bandwidth.

[0246] The specific steps are as follows Fig.15 As shown, including:

[0247] S311: The MN counts the actual communication bandwidth of each currently online TN terminal device.

[0248] Among them, each online TN can periodically report its communication bandwidth usage status, for example, reporting its actual maximum bandwidth (equivalent to the communication volume), based on which the MN can learn the actual communication bandwidth of each online TN. In another specific implementation, each online TN can report its communication bandwidth usage status in response to the statistical request information broadcast by the MN.

[0249] S312: For any TN, the MN divides the actual communication bandwidth of the TN terminal device by the resource allocation bandwidth of the TN terminal device to obtain a ratio, which can be called bandwidth utilization.

[0250] The MN may obtain the bandwidth configured for each TN from the resource configuration table stored therein.

[0251] S313: If the ratio is less than 10%, it indicates that the utilization rate of the resources allocated to the TN is insufficient, and the MN adjusts the allocated resources of the TN terminal device, and releases half of the allocated resources of the TN terminal device to be recovered into the idle resource list of the MN.

[0252] The release and recovery of the allocated resources of the TN terminal device mainly includes: configuring some unused time slots of the TN (time slots are communication resources previously configured by the MN for the TN) as idle in the resource allocation table. The resource allocation table will be broadcast to each online TN in the following steps so that each TN updates local resources and each online TN knows that the corresponding time slots are configured as idle. These idle time slots cannot be used for communication before being allocated to a certain TN.

[0253] S314: If the ratio is greater than 90%, it indicates that the resources allocated to the TN are insufficient and insufficient in utilization. In this case, the MN needs to calculate the idle resource table and increase half of the idle resources to be allocated to the TN terminal device.

[0254] S315: Based on the above addition or deletion, the symbol resource configuration table allocated to the current TN is adjusted to obtain a new symbol resource configuration table, and the new symbol resource configuration table is sent to each online TN terminal device in a broadcasting manner.

[0255] S316: When each online TN receives a new resource allocation table from the MN, it updates and activates the new symbol resource table, that is, updates the local resource table, and can continue communication based on the new symbol resource allocation.

[0256] [Fourth specific implementation method of AUTBUS resource allocation method]

[0257] The third specific implementation is applied to MN and TN, mainly to achieve the adjustment of real-time data bandwidth between TNs. When there are multiple TN device types in an AUTBUS network, and the data bandwidth occupied by each TN device is different, the resources of the small data bandwidth device can be automatically allocated to the large data bandwidth TN terminal device by automatic real-time data bandwidth distribution.

[0258] The specific steps are as follows Fig.16 As shown, including:

[0259] S411: The MN counts the actual communication bandwidth of each currently online TN terminal device.

[0260] Among them, each online TN can periodically report its communication bandwidth usage status, for example, reporting its actual maximum bandwidth (equivalent to the communication volume), based on which the MN can learn the actual communication bandwidth of each online TN. In another specific implementation, each online TN can report its communication bandwidth usage status in response to the statistical request information broadcast by the MN.

[0261] S412: For any two TNs (such as TN1 and TN2), the MN divides the actual communication bandwidth of the two TN terminal devices by the resource allocation bandwidth of the terminal devices to obtain a ratio, which can be called bandwidth utilization.

[0262] The MN may obtain the bandwidth configured for each TN from the resource configuration table stored therein.

[0263] S413: If (TN1 ratio < 10%) < (TN2 ratio > 90%), it means that the utilization rate of resources allocated to TN1 is insufficient, and the utilization rate of resources allocated to TN2 is sufficient and insufficient, then MN adjusts the allocated resources of TN1 and TN2, releases part of the allocated resources of the TN1 terminal device to recycle them into the idle resource list of MN, and then MN calculates the idle resource table and allocates the recovered resources to the TN2 terminal device.

[0264] The release and recovery of the allocated resources of the TN1 terminal equipment mainly includes: configuring some unused time slots of the TN1 (time slots are communication resources previously configured by the MN for the TN1) as idle in the resource allocation table. The resource allocation table will be broadcast to each online TN in the following steps so that each TN updates local resources and each online TN knows that the corresponding time slots are configured as idle. These idle time slots cannot be used for communication before being allocated to a certain TN.

[0265] S414: Based on the above addition or deletion, the current TN symbol resource configuration table is adjusted to obtain a new symbol resource configuration table, and the new symbol resource configuration table is sent to each online TN terminal device in a broadcasting manner.

[0266] S415: When each online TN receives a new resource allocation table from the MN, it updates and activates the new symbol resource table, that is, updates the local resource table, and can continue communication based on the new symbol resource allocation.

[0267] Next, further combining Fig.17 An example of multiple devices using an AUTBUS bus network is shown to further introduce the present application. In this example, the MN pre-records information about different node types and corresponding default bandwidths, which includes at least the following information:

[0268] type=rs485 bandwidth allocation 1Mbps;

[0269] type=can bandwidth allocation 1Mbps;

[0270] type=eth bandwidth allocation 5Mbps.

[0271] like Fig.17 As shown, nodes TN1 and TN6 are of RS485 type, and the lower ends are connected to a controller with an RS485 interface and a temperature and humidity meter with an RS485 interface, respectively. After nodes TN1 and TN6 go online, they read the configuration file and send an online message to MN. After MN receives the online messages of TN1 and TN6, it configures the communication resources between TN1 and TN6 according to the method in the first embodiment above, and can realize the reading and control of the RS485 controller to the RS485 meter based on the configured communication resources.

[0272] Nodes TN2 and TN3 are of CAN type, and the lower ends are connected to a CAN controller and a CAN drive motor respectively. After nodes TN2 and TN3 go online, they read the configuration file and send an online message to MN. After MN receives the online messages of TN2 and TN3, it configures the communication resources between TN2 and TN3 according to the method in the first embodiment above, and can realize the reading and control from the CAN controller to the CAN drive based on the configured communication resources.

[0273] Nodes TN4 and TN5 are of ETH type, and an ETH monitor and an ETH camera are connected to the lower end respectively. After nodes TN4 and TN5 go online, they read the configuration file and send an online message to MN. After MN receives the online messages of TN4 and TN5, it configures the communication resources between TN4 and TN5 according to the method in the first embodiment above, and can display the video screen of the ETH camera on the monitor in real time based on the configured communication resources.

[0274] After the above steps are completed and each TN node is brought online, the MN automatically configures the AUTBUS bus resources for the online TN using the solution provided in this application, so that the corresponding TN can communicate.

[0275] [First embodiment of the AUTBUS resource allocation device of the present application]

[0276] like Fig.18 As shown, the embodiment of the present application provides an AUTBUS resource allocation device, which is applied to a management node MN. The AUTBUS resource allocation device can be used to implement the AUTBUS resource allocation method in the first embodiment above, such as Fig.18 As shown, the AUTBUS resource allocation device comprises a resource determination module 1510 , a resource allocation module 1520 , and an information sending module 1530 .

[0277] A resource determination module 1510, configured for the MN to determine whether there are idle communication resources according to the communication resources allocated to each terminal node TN;

[0278] The resource allocation module 1520 is used to configure corresponding communication resources from the idle communication resources for the TN that needs to expand the communication resources when it is determined that there are idle communication resources; when it is determined that there are no idle communication resources, adjust the configuration information of the communication resources of at least two TNs according to the resource usage of each TN;

[0279] The information sending module 1530 is used to send the configuration information of the communication resources to the TN, so that the corresponding TN uses the configured communication resources for communication.

[0280] [Second embodiment of the AUTBUS resource allocation device of the present application]

[0281] like Fig.19 As shown, the embodiment of the present application provides an AUTBUS resource allocation device, which is applied to the terminal node TN. The AUTBUS resource allocation device can be used to implement the AUTBUS resource allocation method in the second embodiment above, such as Fig.19 As shown, the AUTBUS resource allocation device comprises a message generating module 1610 , a message sending module 1620 , and a resource receiving module 1630 .

[0282] A message generating module 1610, configured to generate an online message based on a configuration file loaded at power-on, wherein the online message includes communication resource request information;

[0283] The message sending module 1620 is used to send the online message to the management node MN, so that the MN determines the bandwidth of the communication resources required by the TN according to the communication resource request information, and configures the communication resources of the required bandwidth for the TN from the idle communication resources;

[0284] The resource receiving module 1630 is used to receive the configuration information of the communication resources sent by the MN, and use the communication resources for communication.

[0285] [Third embodiment of the AUTBUS resource allocation device of the present application]

[0286] like Fig. 20 As shown, the embodiment of the present application provides an AUTBUS resource allocation device, which is applied to the terminal node TN. The AUTBUS resource allocation device can be used to implement the AUTBUS resource allocation method in the third embodiment above, such as Fig. 20 As shown, the AUTBUS resource allocation device comprises a resource receiving module 1710 , an extended resource determining module 1720 , and a message sending module 1730 .

[0287] The resource receiving module 1710 is used to receive idle communication resources broadcasted by the management node MN;

[0288] An expansion resource determination module 1720 is used to determine the bandwidth of the communication resources that need to be expanded according to its current communication demand and the allocated communication resources;

[0289] The message sending module 1730 is used to send idle resource request information to the MN, so that the MN responds to the idle resource request information and configures communication resources of corresponding bandwidth for the TN from idle communication resources, wherein the idle resource request information includes the bandwidth of the idle communication resources that need to be expanded;

[0290] The resource receiving module 1710 is further used to receive configuration information of communication resources sent by the MN to use the communication resources for communication.

[0291] [Implementation example of the AUTBUS resource allocation system of the present application]

[0292] The present application also provides an AUTBUS resource allocation system, comprising: a terminal node TN and a management node MN;

[0293] The TN is used to: load a configuration file and generate an online message when powered on, wherein the online message includes communication resource request information; and send the online message to the management node MN;

[0294] The MN is used to: receive an online message sent by the TN, determine the bandwidth of the communication resources required by the TN according to the communication resource request information in the online message, and when it is determined that idle communication resources can meet the communication resources of the bandwidth required by the TN, configure the communication resources of the required bandwidth for the TN from the idle communication resources; and send the configuration information of the communication resources to the TN;

[0295] The TN is further used for: receiving configuration information of communication resources sent by the MN, and using the communication resources for communication.

[0296] [Embodiment of the computing device of the present application]

[0297] Fig.21 900 is a schematic structural diagram of a computing device 900 provided in an embodiment of the present application. The computing device can be used as an AUTBUS resource allocation device to execute the above-mentioned AUTBUS resource allocation method, calibration method or each optional embodiment of the AUTBUS resource allocation method of AR-HUD. The computing device can be a terminal or a chip or chip system inside the terminal. Fig.21 As shown, the computing device 900 includes: a processor 910 , a memory 920 , and a communication interface 930 .

[0298] It should be understood that Fig.21 The communication interface 930 in the computing device 900 shown may be used to communicate with other devices, and may specifically include one or more transceiver circuits or interface circuits.

[0299] The processor 910 may be connected to a memory 920. The memory 920 may be used to store the program code and data. Therefore, the memory 920 may be a storage unit inside the processor 910, or an external storage unit independent of the processor 910, or a component including a storage unit inside the processor 910 and an external storage unit independent of the processor 910.

[0300] Optionally, the computing device 900 may further include a bus. The memory 920 and the communication interface 930 may be connected to the processor 910 via the bus. The bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.21 A line without an arrow is used to represent the bus, but this does not mean that there is only one bus or one type of bus.

[0301] It should be understood that in the embodiment of the present application, the processor 910 may adopt a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. Alternatively, the processor 910 may adopt one or more integrated circuits to execute relevant programs to implement the technical solutions provided in the embodiment of the present application.

[0302] The memory 920 may include a read-only memory and a random access memory, and provides instructions and data to the processor 910. A portion of the processor 910 may also include a nonvolatile random access memory. For example, the processor 910 may also store information on the device type.

[0303] When the computing device 900 is running, the processor 910 executes the computer-executable instructions in the memory 920 to perform any operation step of the above method and any optional embodiment thereof.

[0304] It should be understood that the computing device 900 according to the embodiment of the present application can correspond to the corresponding subjects in the methods according to the embodiments of the present application, and the above-mentioned and other operations and / or functions of each module in the computing device 900 are respectively for implementing the corresponding processes of each method of the present embodiment. For the sake of brevity, they will not be repeated here.

[0305] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0306] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0307] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0308] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0309] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0310] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0311] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it is used to execute the above method, which includes at least one of the solutions described in the above embodiments.

[0312] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive lists) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing programs, which can be used by instruction execution systems, devices or devices or used in combination with them.

[0313] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0314] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0315] Computer program code for performing the operation of the present application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).

[0316] In addition, the words "first, second, third, etc." or module A, module B, module C and other similar terms in the specification and claims are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that the specific order or sequence can be interchanged where permitted so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0317] In the above description, the numbers representing the steps, such as S110, S120, etc., do not necessarily mean that the steps will be executed in this manner. If permitted, the order of the steps can be interchanged or they can be executed simultaneously.

[0318] The term "comprising" as used in the description and claims should not be interpreted as being limited to what is listed thereafter; it does not exclude other elements or steps. Therefore, it should be interpreted as specifying the presence of the features, integers, steps or components mentioned, but does not exclude the presence or addition of one or more other features, integers, steps or components and groups thereof. Therefore, the expression "a device comprising means A and B" should not be limited to a device consisting of components A and B only.

[0319] References to "one embodiment" or "an embodiment" in this specification mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present application. Therefore, the phrases "in one embodiment" or "in an embodiment" appearing in various places in this specification do not necessarily refer to the same embodiment, but may refer to the same embodiment. In addition, in one or more embodiments, the particular features, structures, or characteristics can be combined in any appropriate manner, as would be apparent to one of ordinary skill in the art from this disclosure.

[0320] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may also include more other equivalent embodiments without departing from the concept of the present application, all of which belong to the scope of protection of the present application.

Claims

1. An AUTBUS resource allocation method, applied to a management node MN, characterized in that: include: The MN determines whether there is idle communication resource according to the communication resources allocated to each terminal node TN; When it is determined that there are idle communication resources, configure corresponding communication resources from the idle communication resources for the TN that needs to expand the communication resources; when it is determined that there are no idle communication resources, adjust the configuration information of the communication resources of at least two TNs according to the resource usage of each TN; The configuration information of the communication resources is sent to the TN so that the corresponding TN communicates using the configured communication resources.

2. The method according to claim 1, characterized in that When it is determined that there are idle communication resources, configuring corresponding communication resources from the idle communication resources for the TN that needs to expand communication resources includes: When it is determined that there are idle communication resources, broadcasting the idle communication resources; receiving idle resource request information sent by any first TN in response to the idle communication resource broadcast, wherein the idle resource request information includes a bandwidth of communication resources to be expanded by the first TN; According to the bandwidth of the communication resources to be expanded of the first TN, configuring communication resources of corresponding bandwidth for the first TN from the idle communication resources; The configuration information of the communication resources is sent to the first TN so that the first TN communicates using the communication resources.

3. The method according to claim 1, characterized in that When it is determined that there are idle communication resources, configuring corresponding communication resources from the idle communication resources for the TN that needs to expand communication resources includes: When it is determined that there are idle communication resources, statistics are collected for any second TN about the bandwidth actually currently used and the bandwidth of the configured communication resources; Calculating the utilization rate of the bandwidth currently actually used by the second TN relative to the bandwidth of the configured communication resources; When the utilization rate is greater than a threshold, configuring a portion of the idle communication resources for the second TN as expanded communication resources; The configuration information of the communication resources is sent to the second TN so that the second TN communicates using the configured extended communication resources.

4. The method according to claim 1, characterized in that When it is determined that there are no idle communication resources, adjusting the configuration information of the communication resources of at least two TNs according to the resource usage of each TN includes: When it is determined that there are no idle communication resources, counting the bandwidth actually currently used by each TN and the bandwidth of the configured communication resources, wherein the TNs include at least any third TN and any fourth TN; Calculating the utilization rate of the bandwidth actually used by the third TN and the fourth TN respectively relative to the bandwidth of the communication resources configured by each TN; When the calculated utilization rate of the third TN is lower than the calculated utilization rate of the fourth TN, a portion of the unused portion of the communication resources configured for the third TN is configured to be released and recycled, and the communication resources configured to be recycled are configured as communication resources expanded by the fourth TN; The configuration information of the communication resources is sent to the third TN and the fourth TN, so that the third TN releases the corresponding communication resources and the fourth TN communicates using the configured expanded communication resources.

5. The method according to claim 4, characterized in that Also includes: The calculated utilization rate of the third TN is lower than a first threshold, and the calculated utilization rate of the fourth TN is higher than a second threshold; wherein the first threshold is lower than the second threshold.

6. The method according to claim 1, characterized in that When TN goes live, it also includes: receiving an online message sent by the TN, wherein the online message includes communication resource request information; Determine the bandwidth of the communication resources required by the TN according to the communication resource request information, and when it is determined that idle communication resources can meet the communication resources of the bandwidth required by the TN, configure the communication resources of the required bandwidth for the TN from the idle communication resources; The configuration information of the communication resources is sent to the TN so that the TN communicates using the configured communication resources.

7. The method according to claim 6, characterized in that The determining, according to the communication resource request information, the bandwidth of the communication resource required by the TN comprises one of the following: The communication resource request information includes a communication resource field required for TN communication and a configured bandwidth value, and the bandwidth of the communication resource required for TN is determined according to the bandwidth value configured in the communication resource field required for TN communication; The communication resource request information includes a communication resource field required for TN communication and a node type of the device, wherein the communication resource field required for TN communication is marked to use a default value or is unassigned, and the bandwidth of the communication resource required for TN is determined according to the node type of the device.

8. The method according to claim 2 or 6, characterized in that Also include one of the following: When it is determined that the idle communication resources do not satisfy the communication resources of the bandwidth required by the TN, a resource shortage message is sent to the TN.

9. The method according to claim 1 or 7, characterized in that: Also includes: Receive an offline message sent by the TN, search for the communication resources configured by the offline TN, and recycle the communication resources configured by the offline TN as idle communication resources.

10. An AUTBUS resource allocation device, applied to a management node MN, characterized in that: include: A resource determination module, used by the MN to determine whether there are idle communication resources according to the communication resources allocated to each terminal node TN; A resource allocation module, configured to, when it is determined that there are idle communication resources, configure corresponding communication resources from the idle communication resources for the TN that needs to expand the communication resources; when it is determined that there are no idle communication resources, adjust the configuration information of the communication resources of at least two TNs according to the resource usage of each TN; The information sending module sends the configuration information of the communication resources to the TN so that the corresponding TN communicates using the configured communication resources.