A system for interconnection and intercommunication of master micro-modules
Patent Information
- Application Number
- CN202611142624.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-30
- Publication Date
- 2026-10-27
AI Technical Summary
[0004]公开号为CN110445856B的中国发明专利(发明名称:一种支持多协议接入的物联网通讯组件管控系统及方法)公开了一种物联网设备管控技术,该专利通过解析不同终端设备的通讯协议和报文格式,实现多协议设备的接入与管控,能够支持多种主流物联网协议的数据解析与转发,但该专利仅解决了协议层面的部分兼容问题,仍存在明显不足:未涉及硬件接口的自适应配置,无法解决不同接口标准模块的互联问题;缺乏对通信优先级的动态管理机制,关键数据与非关键数据混杂传输,易导致延迟;未实现全局资源的动态调度与故障自愈合,系统可靠性有待提升;
[0025]本发明,提升了硬件兼容性,实现了便捷的即插即用:通过在主控制模块中集成自适应接口矩阵单元,有效改善了现有技术中硬件接口兼容性不足的问题,自适应接口矩阵单元中的接口状态检测子单元能够自动检测接入的功能微模块的接口类型与电气特性,接口切换控制器根据检测结果动态配置可配置物理接口的电气参数与通信模式,使得符合基本电气规范的功能微模块都能够与主控制模块无缝连接,显著提升了系统的可扩展性,降低了系统升级与维护的成本;
Smart Images

Figure CN122994401A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of modular system integration technology, and in particular relates to a system for interconnection and interoperability of main and auxiliary micro-modules. Background Technology
[0002] With the rapid development of Industry 4.0 and IoT technologies, modular system design has been widely applied in various fields such as industrial control, smart homes, data centers, and intelligent transportation due to its advantages such as high flexibility, strong scalability, and low maintenance costs. A modular system typically consists of a main control module and multiple functional micro-modules, which interconnect and work collaboratively through specific interfaces and protocols.
[0003] Currently, existing technologies have proposed several solutions to address the interoperability issues of modular systems:
[0004] Chinese invention patent CN110445856B (Invention title: A management and control system and method for IoT communication components supporting multi-protocol access) discloses an IoT device management and control technology. This patent realizes the access and management of multi-protocol devices by parsing the communication protocols and message formats of different terminal devices. It can support data parsing and forwarding of multiple mainstream IoT protocols. However, this patent only solves some compatibility issues at the protocol level and still has obvious shortcomings: it does not involve adaptive configuration of hardware interfaces and cannot solve the interconnection problem of modules with different interface standards; it lacks a dynamic management mechanism for communication priorities, and the transmission of critical data and non-critical data mixed together can easily lead to delays; it does not realize dynamic scheduling of global resources and fault self-healing, and the system reliability needs to be improved.
[0005] Chinese invention patent application CN106095711A (invention title: connection device and communication method for master-slave module communication) discloses a master-slave module communication technology. This patent realizes plug-and-play and automatic address allocation of master-slave modules by setting up an address identification circuit and an automatic configuration mechanism. However, the technical solution of this patent is relatively simple: it only solves the address configuration and basic connection problem of master-slave modules, without involving the conversion of heterogeneous protocols; it only supports fixed types of hardware interfaces and cannot be compatible with modules from different manufacturers; it does not consider resource scheduling and fault handling during system operation, and is difficult to adapt to complex application scenarios.
[0006] Based on the above-mentioned existing technologies, current modular interconnection systems still have the following common technical problems:
[0007] Insufficient hardware interface compatibility makes it difficult to achieve convenient plug-and-play functionality: Most existing modular systems use fixed types of hardware interfaces. Functional micro-modules produced by different manufacturers often use different interface standards and electrical characteristics. When users need to replace or add functional micro-modules, they must choose products that are highly compatible with the main control module interface; otherwise, it is difficult to connect and use them normally. Even if some systems use universal interfaces, they often only support a single type of communication protocol and cannot meet the interconnection needs of heterogeneous modules. This interface incompatibility problem limits the scalability of the system and increases the cost of system upgrades and maintenance.
[0008] The protocols are highly heterogeneous, resulting in low data interaction efficiency and a lack of priority management: different functional micro-modules typically use different communication protocols for data transmission, such as Modbus, Profinet, and EtherCAT protocols commonly used in industrial control, and Wi-Fi, Bluetooth, and ZigBee protocols commonly used in smart home applications. In existing technologies, the main control module often only supports a limited number of protocols. For unsupported protocols, an additional protocol conversion gateway is required to achieve data interaction. At the same time, existing solutions lack dynamic management of the communication priorities of different modules, and critical data is transmitted mixed with non-critical data, which can easily lead to data interaction delays and untimely responses to critical commands.
[0009] The resource scheduling method is simplistic, and the global load balancing effect is not ideal: Most existing modular systems adopt a centralized static scheduling method for resource scheduling. The main control module pre-allocates fixed tasks and resources to each functional micro-module. When the system load changes or a functional micro-module fails, the main control module cannot dynamically adjust the task allocation scheme, which can easily lead to some modules being overloaded while other modules are idle, reducing the overall operating efficiency of the system. At the same time, the static scheduling method lacks effective fault self-healing capability. When a functional micro-module fails, the entire system may be significantly affected.
[0010] The system is difficult to expand and maintain, and has a high barrier to entry for users: Due to the aforementioned issues such as incompatible interfaces, heterogeneous protocols, and rigid resource scheduling, users need to have certain professional technical knowledge and practical experience when expanding or maintaining the existing modular system. Ordinary users often find it difficult to independently complete the replacement, addition, and configuration of modules and must rely on professional technicians for operation. This not only increases the system maintenance cost but also prolongs the system downtime, causing unnecessary losses to users.
[0011] Therefore, a system for interconnecting main and auxiliary micro-modules is needed to solve the above problems. Summary of the Invention
[0012] The purpose of this invention is to provide a system for interconnecting main and auxiliary micro-modules to solve the problems mentioned in the background art.
[0013] To achieve the above objectives, the present invention provides the following technical solution:
[0014] A system for interconnecting main and auxiliary micro-modules includes a main control module, at least one functional micro-module, and an interconnection network. The main control module is bidirectionally connected to all the functional micro-modules via the interconnection network. The main control module integrates an adaptive interface matrix unit, a protocol negotiation unit, and a global resource scheduling unit. Each functional micro-module integrates a micro-module interface unit, a local protocol processing unit, and a local resource management unit. The adaptive interface matrix unit is physically connected to the micro-module interface unit via the interconnection network. The protocol negotiation unit is electrically connected to the adaptive interface matrix unit and communicates bidirectionally with the local protocol processing unit via the adaptive interface matrix unit. The global resource scheduling unit is electrically connected to the protocol negotiation unit and communicates bidirectionally with the local resource management unit via the protocol negotiation unit.
[0015] A further technical solution includes an adaptive interface matrix unit comprising an interface switching controller, multiple configurable physical interfaces, and an interface status detection subunit. The interface switching controller is electrically connected to the configurable physical interfaces, the interface status detection subunit, and the protocol negotiation unit, respectively. The interface status detection subunit is electrically connected to the configurable physical interfaces and is used to detect the connection status and interface type of the configurable physical interfaces. This solution can automatically identify the interface characteristics of the access module, providing basic data support for subsequent dynamic configuration and solving the problem of fixed hardware interfaces in the prior art.
[0016] A further technical solution is that each of the configurable physical interfaces integrates multiple electrical characteristic driving circuits. The interface switching controller dynamically configures the electrical characteristics and communication protocol parameters of the configurable physical interface according to the detection results of the interface status detection subunit. This enables seamless hardware connection of modules with different interface types, improves the hardware compatibility of the system, and eliminates the need for additional interface conversion devices.
[0017] A further technical solution includes a protocol negotiation unit comprising a protocol parsing subunit, a protocol conversion subunit, and a dynamic weight calculation subunit. The protocol parsing subunit is electrically connected to the adaptive interface matrix unit and is used to parse protocol data packets from the functional micro-modules. The protocol conversion subunit is electrically connected to both the protocol parsing subunit and the global resource scheduling unit, and is used to perform format conversion between different protocols. The dynamic weight calculation subunit is electrically connected to both the protocol parsing subunit and the protocol conversion subunit, and is used to calculate the communication priority weight of each functional micro-module. This solution enables automatic identification and conversion of heterogeneous protocols, and adjusts communication priorities according to module characteristics, thus solving the problems of low protocol conversion efficiency and lack of priority management in existing technologies.
[0018] In a further technical solution, the dynamic weight calculation subunit stores a variety of preset protocol templates. When the protocol parsing subunit identifies an unknown protocol, the dynamic weight calculation subunit automatically matches the closest preset protocol template and generates temporary protocol conversion rules. This can expand the protocol compatibility range of the system, meet the interconnection needs of some special protocols, and further improve the versatility of the system.
[0019] A further technical solution includes a global resource scheduling unit comprising a resource status collection subunit, a load balancing scheduling subunit, and a fault self-healing subunit. The resource status collection subunit is electrically connected to the protocol negotiation unit and is used to collect resource usage status information of all functional micro-modules. The load balancing scheduling subunit is electrically connected to the resource status collection subunit and is used to allocate system tasks according to the global resource status. The fault self-healing subunit is electrically connected to both the resource status collection subunit and the load balancing scheduling subunit and is used to detect the fault status of functional micro-modules and perform fault transfer operations. This enables dynamic management of global resources and automatic fault handling, solving the problems of rigid resource scheduling and lack of fault self-healing capability in existing technologies.
[0020] A further technical solution is that the load balancing scheduling subunit adopts a distributed task scheduling algorithm to decompose the total system task into multiple subtasks, and allocates the subtasks to appropriate functional micro-modules for execution according to the resource status and communication priority weight of each functional micro-module; this can optimize the task allocation scheme, improve the overall operating efficiency of the system, and avoid the situation where some modules are overloaded.
[0021] In a further technical solution, the micro-module interface unit integrates an identity recognition chip, which stores the unique identifier, function type, interface parameters, and protocol information of the corresponding functional micro-module; it can provide a unique identifier and capability description for the module, facilitating identification and management by the main control module and providing a basis for automatic configuration.
[0022] A further technical solution involves the following: when a functional micro-module connects to the interconnected network, the identity recognition chip automatically sends identity information and capability parameters to the main control module. The main control module then completes automatic configuration and registration based on the received information. This enables automatic access and configuration of the module, simplifies the user's operation process, and allows the module to be registered and activated without manual intervention.
[0023] A further technical solution is that the interconnected network adopts a hybrid network architecture, supporting seamless switching between wired and wireless communication. The wired communication includes at least one of Ethernet, RS-485, and CAN bus, and the wireless communication includes at least one of Wi-Fi, Bluetooth, ZigBee, and LoRa. This allows the network to adapt to different application scenarios and communication needs, improving the system's flexibility and adaptability, and meeting data transmission requirements at different distances and speeds.
[0024] Compared with the prior art, the beneficial effects of the present invention are:
[0025] This invention improves hardware compatibility and enables convenient plug-and-play functionality: by integrating an adaptive interface matrix unit into the main control module, it effectively addresses the problem of insufficient hardware interface compatibility in existing technologies. The interface status detection subunit in the adaptive interface matrix unit can automatically detect the interface type and electrical characteristics of the connected functional micro-modules. The interface switching controller dynamically configures the electrical parameters and communication mode of the configurable physical interface based on the detection results, enabling functional micro-modules that conform to basic electrical specifications to seamlessly connect with the main control module, significantly improving the system's scalability and reducing the cost of system upgrades and maintenance.
[0026] This invention achieves automatic compatibility and efficient conversion of heterogeneous protocols, improving the real-time performance and reliability of data interaction. By integrating a protocol negotiation unit into the main control module, it effectively addresses the problems of strong protocol heterogeneity and low data interaction efficiency in existing technologies. The protocol parsing subunit in the protocol negotiation unit can automatically identify the communication protocol used by the functional micro-module, and the protocol conversion subunit can achieve seamless conversion between different protocols. At the same time, the dynamic weight calculation subunit can calculate the communication priority weight of each functional micro-module based on its functional type, data transmission requirements, and real-time communication status, ensuring that critical data can be transmitted first.
[0027] This invention achieves dynamic scheduling and load balancing of global resources, improving the overall operating efficiency and reliability of the system. By integrating a global resource scheduling unit into the main control module, it effectively improves the problems of single resource scheduling methods and unsatisfactory global load balancing in the prior art. The resource status collection subunit in the global resource scheduling unit can collect the resource usage status information of all functional micro-modules in real time. The load balancing scheduling subunit adopts a distributed task scheduling algorithm to dynamically allocate system tasks according to the global resource status and the communication priority weight of each functional micro-module, ensuring that the load of each functional micro-module is within a reasonable range.
[0028] This invention lowers the barrier to entry for the system and simplifies the system's expansion and maintenance processes. Through the aforementioned three-tiered technological innovation, it achieves fully automated interconnection and collaborative operation between the main and auxiliary micro-modules. When expanding or maintaining the system, users only need to connect the functional micro-modules to the interconnection network, without needing complex configuration operations or advanced technical knowledge. Most ordinary users can independently complete the replacement, addition, and maintenance of modules, significantly lowering the barrier to entry for the system, simplifying the system's expansion and maintenance processes, and reducing reliance on professional technicians.
[0029] To more clearly illustrate the structural features and effects of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. Attached Figure Description
[0030] Figure 1 This is a block diagram of the overall architecture of the present invention;
[0031] Figure 2 This is a block diagram of the architecture of the adaptive interface matrix unit of the present invention;
[0032] Figure 3 This is an architectural block diagram of the protocol negotiation unit of the present invention;
[0033] Figure 4 This is an architectural block diagram of the global resource scheduling unit of the present invention.
[0034] In the diagram: 1. Main control module; 11. Adaptive interface matrix unit; 111. Interface switching controller; 112. Configurable physical interface; 113. Interface status detection subunit; 12. Protocol negotiation unit; 121. Protocol parsing subunit; 122. Protocol conversion subunit; 123. Dynamic weight calculation subunit; 13. Global resource scheduling unit; 131. Resource status collection subunit; 132. Load balancing scheduling subunit; 133. Fault self-healing subunit; 2. Functional micro-module; 21. Micro-module interface unit; 211. Identity recognition chip; 22. Local protocol processing unit; 23. Local resource management unit; 3. Interconnection network. Detailed Implementation
[0035] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0036] The specific implementation of the present invention will be described in detail below with reference to specific embodiments.
[0037] Example 1
[0038] like Figure 1-4 As shown, this embodiment of the invention provides a system for interconnection and interoperability of main and auxiliary micro-modules, including a main control module 1, at least one functional micro-module 2, and an interconnection network 3. The main control module 1 is bidirectionally connected to all functional micro-modules 2 through the interconnection network 3.
[0039] The main control module 1 is the core of the entire system, responsible for coordinating and managing the work of all functional micro-modules 2. The main control module 1 integrates an adaptive interface matrix unit 11, a protocol negotiation unit 12, and a global resource scheduling unit 13.
[0040] The adaptive interface matrix unit 11 is the physical connection interface between the main control module 1 and the functional micro-module 2. It is responsible for realizing the seamless hardware interconnection between the main and auxiliary modules. The adaptive interface matrix unit 11 includes an interface switching controller 111, multiple configurable physical interfaces 112, and an interface status detection subunit 113. The interface switching controller 111 is electrically connected to the configurable physical interface 112, the interface status detection subunit 113, and the protocol negotiation unit 12, respectively. The interface status detection subunit 113 is electrically connected to the configurable physical interface 112 and is used to detect the connection status and interface type of the configurable physical interface 112. Each configurable physical interface 112 integrates multiple electrical characteristic drive circuits, which can support multiple different types of hardware interface standards and electrical characteristics.
[0041] The protocol negotiation unit 12 is responsible for achieving protocol compatibility and data interaction between the main control module 1 and the functional micro-module 2. The protocol negotiation unit 12 includes a protocol parsing subunit 121, a protocol conversion subunit 122, and a dynamic weight calculation subunit 123. The protocol parsing subunit 121 is electrically connected to the adaptive interface matrix unit 11 and is used to parse protocol data packets from the functional micro-module 2. The protocol conversion subunit 122 is electrically connected to the protocol parsing subunit 121 and the global resource scheduling unit 13, respectively, and is used to realize format conversion between different protocols. The dynamic weight calculation subunit 123 is electrically connected to the protocol parsing subunit 121 and the protocol conversion subunit 122, respectively, and is used to calculate the communication priority weight of each functional micro-module 2.
[0042] The global resource scheduling unit 13 is responsible for realizing the dynamic scheduling and collaborative work of global resources. The global resource scheduling unit 13 includes a resource status collection subunit 131, a load balancing scheduling subunit 132, and a fault self-healing subunit 133. The resource status collection subunit 131 is electrically connected to the protocol negotiation unit 12 and is used to collect the resource usage status information of all functional micro-modules 2. The load balancing scheduling subunit 132 is electrically connected to the resource status collection subunit 131 and is used to allocate system tasks according to the global resource status. The fault self-healing subunit 133 is electrically connected to the resource status collection subunit 131 and the load balancing scheduling subunit 132 respectively and is used to detect the fault status of the functional micro-module 2 and perform fault transfer operations.
[0043] Each functional micro-module 2 is a functional execution unit of the system, responsible for completing specific tasks. The functional micro-module 2 can be various types of functional modules such as sensor modules, actuator modules, data processing modules, and communication modules. Each functional micro-module 2 integrates a micro-module interface unit 21, a local protocol processing unit 22, and a local resource management unit 23.
[0044] The micro-module interface unit 21 is the physical connection interface between the functional micro-module 2 and the main control module 1. The micro-module interface unit 21 integrates an identification chip 211, which stores the unique identifier, function type, interface parameters and protocol information of the corresponding functional micro-module 2. The local protocol processing unit 22 is electrically connected to the micro-module interface unit 21 and is used to process the communication protocol inside the functional micro-module 2. The local resource management unit 23 is electrically connected to the local protocol processing unit 22 and is used to manage the computing resources, storage resources and energy resources inside the functional micro-module 2.
[0045] Interconnection network 3 is the data transmission channel between main control module 1 and functional micro-module 2. Interconnection network 3 adopts a hybrid network architecture and supports seamless switching between wired and wireless communication. Wired communication includes at least one of Ethernet, RS-485, and CAN bus, while wireless communication includes at least one of Wi-Fi, Bluetooth, ZigBee, and LoRa.
[0046] The working principle of this embodiment is as follows:
[0047] When a functional micro-module 2 is connected to the interconnection network 3, the identification chip 211 in the micro-module interface unit 21 automatically sends an identity data packet containing the unique identifier of the functional micro-module 2, its function type, interface parameters, and protocol information to the main control module 1.
[0048] When the interface status detection subunit 113 in the adaptive interface matrix unit 11 detects a new connection on the configurable physical interface 112, it immediately sends a detection signal to the interface switching controller 111. After receiving the detection signal, the interface switching controller 111 receives the identity data packet from the functional micro-module 2 through the configurable physical interface 112 and forwards the identity data packet to the protocol negotiation unit 12.
[0049] The protocol parsing subunit 121 in the protocol negotiation unit 12 parses the identity data packet, obtains the interface parameters and protocol information of the functional micro-module 2, and sends this information to the dynamic weight calculation subunit 123. The dynamic weight calculation subunit 123 calculates the communication priority weight of the functional micro-module 2 based on the obtained information, and sends the calculation result to the protocol conversion subunit 122 and the global resource scheduling unit 13.
[0050] Meanwhile, the interface switching controller 111 dynamically configures the electrical characteristics and communication protocol parameters of the corresponding configurable physical interface 112 according to the interface parameters in the identity data packet, so that the configurable physical interface 112 and the micro-module interface unit 21 of the functional micro-module 2 are highly matched. At this point, the physical connection and protocol connection between the main control module 1 and the functional micro-module 2 are established, and the functional micro-module 2 is successfully registered to the system.
[0051] When the system is running normally, the resource status collection subunit 131 in the global resource scheduling unit 13 periodically sends resource status query requests to all registered functional micro-modules 2 through the protocol negotiation unit 12. After receiving the query request, the local resource management unit 23 in each functional micro-module 2 collects resource usage status information such as computing resource utilization rate, storage resource utilization rate, and energy remaining amount of this module, and sends this information to the main control module 1 through the local protocol processing unit 22 and the micro-module interface unit 21.
[0052] After the resource status collection subunit 131 collects the resource usage status information of all functional micro-modules 2, it sends this information to the load balancing scheduling subunit 132. The load balancing scheduling subunit 132 uses a distributed task scheduling algorithm to decompose the total system task into multiple sub-tasks based on the global resource status information and the communication priority weight of each functional micro-module 2, and assigns the sub-tasks to the appropriate functional micro-modules 2 for execution.
[0053] When a functional micro-module 2 fails, the resource status collection subunit 131 cannot receive the resource status information of the module, or the received information shows that the module is in an abnormal state. After the fault self-healing subunit 133 detects the fault, it immediately notifies the load balancing scheduling subunit 132 to transfer the task of the faulty module to other normally functioning functional micro-modules 2 for execution, and removes the faulty module from the system registration list. At the same time, the main control module 1 sends a fault alarm message to the user, prompting the user to replace the faulty module in time.
[0054] In this embodiment, the core formula for calculating the communication priority weight of the functional micro-module 2 by the dynamic weight calculation subunit 123 is as follows:
[0055] ;
[0056] in:
[0057] Indicates the first The communication priority weight of each functional micro-module has a value range of [0,1], and the larger the value, the higher the priority.
[0058] Indicates the first The functional importance coefficient of each functional micro-module ranges from [0,1] and is determined by the functional type of the functional micro-module. For example, the functional importance coefficient of security-related modules is higher, while the functional importance coefficient of non-critical functional modules is lower.
[0059] Indicates the first The data real-time requirement coefficient for each functional micro-module ranges from [0,1] and is determined by the data transmission delay requirement of the functional micro-module. The higher the delay requirement, the larger the data real-time requirement coefficient.
[0060] Indicates the first The resource status coefficient of each functional micro-module ranges from [0,1] and is determined by the resource usage status of the functional micro-module. The lower the resource utilization rate, the larger the resource status coefficient.
[0061] , , Let represent the weighting factors for the functional importance coefficient, data real-time requirement coefficient, and resource status coefficient, respectively, and satisfy . .
[0062] Formula derivation process: Communication priority weight It is an indicator that comprehensively considers functional importance, data real-time requirements, and resource status; functional importance coefficient This reflects the core status of the functional micro-module in the system; core modules should have higher communication priority; data real-time requirement coefficient. This reflects the sensitivity of the functional micro-module to data transmission latency; latency-sensitive modules should have higher communication priority; resource status coefficient. This reflects the available resources of the functional micro-modules. Modules with sufficient resources should have higher communication priority to improve the overall operating efficiency of the system.
[0063] The three coefficients are combined using a linear weighting method to obtain a comprehensive communication priority weight. Weighting factors , , It can be adjusted according to different application scenarios. For example, in industrial control scenarios, where data real-time requirements are high, the size can be appropriately increased. The value; in smart home scenarios, functionality is even more critical, and can be appropriately increased. The value of .
[0064] Constraints: The range of values for all variables must be strictly limited to [0,1] to ensure consistency and comparability in weight calculation;
[0065] Weighting factors , , Must meet This is to ensure the normalization of weight calculation;
[0066] When a functional micro-module fails, its communication priority weight Automatically set to 0, and no longer participate in task allocation.
[0067] Control logic: The dynamic weight calculation subunit 123 recalculates the communication priority weights of all functional micro-modules at regular time intervals. When the resource status of a certain functional micro-module changes significantly, the weight will be recalculated. The calculated weight value will be sent to the protocol conversion subunit 122 and the load balancing scheduling subunit 132 in real time to adjust the data transmission priority and task allocation scheme.
[0068] Overall effect: The communication priority weights calculated by this formula can accurately reflect the actual needs and status of each functional micro-module in the system, ensuring that critical modules and latency-sensitive modules can obtain communication and computing resources first, thereby improving the overall performance and reliability of the system. At the same time, the dynamic adjustment of the weights can adapt to changes in system load and achieve optimized allocation of global resources.
[0069] This embodiment provides two typical use cases:
[0070] Use case 1: Industrial automated production line;
[0071] In an industrial automated production line, the main control module 1 is responsible for coordinating the operation of the entire production line. The functional micro-modules 2 include sensor modules, motor drive modules, robot control modules, vision inspection modules, etc. Different functional micro-modules use different communication protocols. For example, the sensor module uses the Modbus protocol, the motor drive module uses the CAN bus protocol, the robot control module uses the EtherCAT protocol, and the vision inspection module uses the Ethernet protocol.
[0072] After adopting the system of the present invention, all functional micro-modules can be seamlessly connected to the main control module 1 through the adaptive interface matrix unit 11, and the protocol negotiation unit 12 automatically realizes the conversion between different protocols; the global resource scheduling unit 13 dynamically allocates tasks and resources according to the functional importance and real-time requirements of each module; when a motor drive module fails, the fault self-healing sub-unit 133 automatically transfers the task of the module to the backup motor drive module for execution, ensuring that the production line can operate continuously.
[0073] Use Case 2: Smart Home System;
[0074] In a smart home system, the main control module 1 is responsible for managing all the smart devices in the home. The functional micro-modules 2 include smart lighting modules, smart curtain modules, smart air conditioning modules, smart security modules, smart speaker modules, etc. Different functional micro-modules use different wireless communication protocols. For example, the smart lighting module uses the ZigBee protocol, the smart air conditioning module uses the Wi-Fi protocol, and the smart speaker module uses the Bluetooth protocol.
[0075] After adopting the system of the present invention, users only need to connect the new smart device to the interconnection network 3, and the system can automatically complete the identification and configuration to achieve plug and play. The protocol negotiation unit 12 automatically realizes the conversion between different wireless protocols. Users can control all smart devices through a unified control interface. The global resource scheduling unit 13 dynamically adjusts the operating parameters of the devices according to the operating status of each device and the user's usage habits to achieve a balance between energy saving and comfort.
[0076] Example 2
[0077] This embodiment, based on embodiment 1, further details the specific working process of the adaptive interface matrix unit 11.
[0078] When the functional micro-module 2 is connected to the interconnection network 3, the interface status detection subunit 113 determines whether a new module has been connected by detecting the pin level change of the configurable physical interface 112. When a new module is detected, the interface status detection subunit 113 immediately sends an interrupt signal to the interface switching controller 111.
[0079] After receiving the interrupt signal, the interface switching controller 111 sends a series of test signals to the configurable physical interface 112 to detect the electrical characteristics of the interface, including voltage level, impedance matching, transmission rate, etc. At the same time, the interface switching controller 111 sends an identity query command to the functional micro-module 2 through the configurable physical interface 112.
[0080] After receiving the identity query command, the micro-module interface unit 21 in the functional micro-module 2 reads the identity information and capability parameters stored in the identity recognition chip 211, and packages this information into an identity data packet and sends it to the main control module 1.
[0081] After receiving the identity data packet, the interface switching controller 111 forwards it to the protocol negotiation unit 12 for parsing. The protocol parsing subunit 121 parses the identity data packet, obtains information such as the interface type, electrical parameters, and supported communication protocols of the functional micro-module 2, and sends this information to the interface switching controller 111.
[0082] Based on the acquired information, the interface switching controller 111 dynamically configures the electrical characteristic drive circuit of the configurable physical interface 112, so that the voltage level, impedance matching, transmission rate and other parameters of the configurable physical interface 112 are highly matched with the micro-module interface unit 21 of the functional micro-module 2. At the same time, the interface switching controller 111 configures the communication mode of the configurable physical interface 112 to support the communication protocol adopted by the functional micro-module 2.
[0083] After configuration, the interface switching controller 111 sends a configuration completion signal to the functional micro-module 2. After receiving the configuration completion signal, the functional micro-module 2 sends an acknowledgment signal to the main control module 1. At this point, the physical connection between the main control module 1 and the functional micro-module 2 is established.
[0084] In this embodiment, the configurable physical interface 112 is implemented using a programmable logic device, which can support a variety of different types of hardware interface standards, including USB, Ethernet, RS-232, RS-485, CAN bus, etc. The interface switching controller 111 realizes dynamic switching of interface electrical characteristics and communication modes by configuring the internal registers of the programmable logic device.
[0085] Example 3
[0086] This embodiment, based on embodiment 1, further details the specific working process of the protocol negotiation unit 12.
[0087] Once the physical connection between the main control module 1 and the functional micro-module 2 is established, the protocol negotiation unit 12 begins the protocol negotiation process. The protocol parsing subunit 121 receives the protocol data packets from the functional micro-module 2 through the adaptive interface matrix unit 11, parses the header information of the data packets, and identifies the communication protocol type used by the data packets.
[0088] If the protocol parsing subunit 121 can identify the protocol type, and the protocol conversion subunit 122 stores the conversion rules between the protocol and the internal protocol of the main control module 1, then the protocol conversion subunit 122 directly converts the data packet format according to the conversion rules and sends the converted data packet to the global resource scheduling unit 13 for processing.
[0089] If the protocol parsing subunit 121 cannot identify the protocol type, it sends the feature information of the data packet to the dynamic weight calculation subunit 123. The dynamic weight calculation subunit 123 compares the feature information of the data packet with the stored preset protocol templates and calculates the similarity between the data packet and each preset protocol template.
[0090] The dynamic weight calculation subunit 123 selects the preset protocol template with the highest similarity as the matching template, and generates temporary protocol conversion rules according to the matching template. The dynamic weight calculation subunit 123 sends the temporary protocol conversion rules to the protocol conversion subunit 122, and the protocol conversion subunit 122 performs format conversion on the data packets according to the temporary conversion rules.
[0091] Simultaneously, the dynamic weight calculation subunit 123 calculates the communication priority weight of the functional micro-module 2 based on its functional type, data transmission requirements, and real-time communication status. The calculated weight values are sent to the protocol conversion subunit 122 in real time to adjust the priority of data transmission.
[0092] When multiple functional micro-modules 2 simultaneously send data to the main control module 1, the protocol conversion subunit 122 determines the communication priority weight of each functional micro-module 2. Data packets are queued and processed, with high-priority data packets being converted and transmitted first, ensuring that critical data can reach the main control module 1 in a timely manner.
[0093] In this embodiment, the dynamic weight calculation subunit 123 stores a variety of commonly used communication protocol templates, covering mainstream protocols in multiple fields such as industrial control, smart home, and data center. When encountering an unknown protocol, the system can quickly generate temporary conversion rules through template matching to achieve compatibility with most unknown protocols. At the same time, the system supports user-defined protocol templates, and users can add new protocol templates according to their own needs, further improving the system's flexibility and scalability.
[0094] Example 4
[0095] This embodiment, based on embodiment 1, further details the specific working process of the global resource scheduling unit 13.
[0096] When the system is running normally, the resource status collection subunit 131 sends a resource status query request to all registered functional micro-modules 2 at regular intervals. After receiving the query request, the local resource management unit 23 in each functional micro-module 2 collects the resource usage status information such as the computing resource utilization rate, storage resource utilization rate, energy remaining amount, and temperature of this module, and packages this information into a resource status data packet and sends it to the main control module 1.
[0097] After collecting the resource status information of all functional micro-modules 2, the resource status collection subunit 131 organizes and analyzes this information to generate a global resource status table. The global resource status table contains information such as the unique identifier, function type, communication priority weight, and resource usage status of each functional micro-module 2.
[0098] The load balancing scheduling subunit 132 uses a distributed task scheduling algorithm based on the global resource status table to decompose the total system task into multiple subtasks. For each subtask, the load balancing scheduling subunit 132 calculates the suitability of each functional micro-module 2 to execute the subtask and selects the functional micro-module 2 with the highest suitability to execute the subtask.
[0099] The formula for calculating the suitability of functional micro-module 2 for executing subtasks is as follows:
[0100] ;
[0101] in:
[0102] Indicates the first The functional micro-module executes the first The suitability of each subtask, with a value range of [0,1], where a larger value indicates a higher suitability;
[0103] Indicates the first The communication priority weights of each functional micro-module are determined by... Calculated;
[0104] Indicates the first The functional micro-module executes the first The predicted resource utilization rate of each subtask is in the range of [0,1] and is predicted based on the computational load of the subtask and the current resource status of the functional micro-module.
[0105] The load balancing scheduling subunit 132 assigns the subtask to the functional micro-module 2 with the highest suitability for execution, and sends a task execution instruction to the functional micro-module 2 through the protocol negotiation unit 12. After receiving the task execution instruction, the functional micro-module 2 allocates the necessary resources by the local resource management unit 23, executes the subtask, and sends the execution result to the main control module 1.
[0106] When a functional micro-module 2 malfunctions, the resource status collection subunit 131 fails to receive the resource status information of the module for multiple consecutive time intervals, or the received information shows that the resource utilization rate of the module is abnormal. After detecting the fault, the fault self-healing subunit 133 immediately reassigns all the unfinished tasks of the faulty module to other normally functioning functional micro-modules 2 for execution, and removes the faulty module from the global resource status table. At the same time, the main control module 1 sends a fault alarm message to the user, prompting the user to replace the faulty module in time.
[0107] In this embodiment, the distributed task scheduling algorithm adopted by the load balancing scheduling subunit 132 can effectively avoid single points of failure and improve the reliability and fault tolerance of the system. At the same time, the algorithm considers the communication priority weight and resource usage status of each functional micro-module, which can achieve a relatively ideal global load balancing and improve the overall operating efficiency of the system.
[0108] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A system for interconnecting main and auxiliary micro-modules, characterized in that, It includes a main control module (1), at least one functional micro-module (2), and an interconnection network (3); the main control module (1) is bidirectionally connected to all the functional micro-modules (2) through the interconnection network (3); the main control module (1) integrates an adaptive interface matrix unit (11), a protocol negotiation unit (12), and a global resource scheduling unit (13); each functional micro-module (2) integrates a micro-module interface unit (21), a local protocol processing unit (22), and a local resource management unit (23); the adaptive interface matrix... Unit (11) is physically connected to the micro-module interface unit (21) through the interconnection network (3); the protocol negotiation unit (12) is electrically connected to the adaptive interface matrix unit (11), and the protocol negotiation unit (12) communicates bidirectionally with the local protocol processing unit (22) through the adaptive interface matrix unit (11); the global resource scheduling unit (13) is electrically connected to the protocol negotiation unit (12), and the global resource scheduling unit (13) communicates bidirectionally with the local resource management unit (23) through the protocol negotiation unit (12).
2. The system for interconnection and interoperability of main and auxiliary micro-modules according to claim 1, characterized in that, The adaptive interface matrix unit (11) includes an interface switching controller (111), multiple configurable physical interfaces (112), and an interface status detection subunit (113). The interface switching controller (111) is electrically connected to the configurable physical interface (112), the interface status detection subunit (113), and the protocol negotiation unit (12), respectively. The interface status detection subunit (113) is electrically connected to the configurable physical interface (112) and is used to detect the connection status and interface type of the configurable physical interface (112).
3. The system for interconnection and interoperability of main and auxiliary micro-modules according to claim 2, characterized in that, Each of the configurable physical interfaces (112) integrates multiple electrical characteristic driving circuits. The interface switching controller (111) dynamically configures the electrical characteristics and communication protocol parameters of the configurable physical interface (112) according to the detection results of the interface status detection subunit (113).
4. The system for interconnection and interoperability of main and auxiliary micro-modules according to claim 1, characterized in that, The protocol negotiation unit (12) includes a protocol parsing subunit (121), a protocol conversion subunit (122), and a dynamic weight calculation subunit (123). The protocol parsing subunit (121) is electrically connected to the adaptive interface matrix unit (11) and is used to parse protocol data packets from the functional micro-module (2). The protocol conversion subunit (122) is electrically connected to the protocol parsing subunit (121) and the global resource scheduling unit (13) respectively, and is used to realize format conversion between different protocols. The dynamic weight calculation subunit (123) is electrically connected to the protocol parsing subunit (121) and the protocol conversion subunit (122) respectively, and is used to calculate the communication priority weight of each functional micro-module (2).
5. A system for interconnecting main and auxiliary micro-modules according to claim 4, characterized in that, The dynamic weight calculation subunit (123) stores a variety of preset protocol templates. When the protocol parsing subunit (121) identifies an unknown protocol, the dynamic weight calculation subunit (123) automatically matches the closest preset protocol template and generates a temporary protocol conversion rule.
6. The system for interconnection and interoperability of main and auxiliary micro-modules according to claim 1, characterized in that, The global resource scheduling unit (13) includes a resource status collection subunit (131), a load balancing scheduling subunit (132), and a fault self-healing subunit (133). The resource status collection subunit (131) is electrically connected to the protocol negotiation unit (12) and is used to collect resource usage status information of all functional micro-modules (2). The load balancing scheduling subunit (132) is electrically connected to the resource status collection subunit (131) and is used to allocate system tasks according to the global resource status. The fault self-healing subunit (133) is electrically connected to the resource status collection subunit (131) and the load balancing scheduling subunit (132) respectively and is used to detect the fault status of the functional micro-module (2) and perform fault transfer operation.
7. A system for interconnecting main and auxiliary micro-modules according to claim 6, characterized in that, The load balancing scheduling subunit (132) adopts a distributed task scheduling algorithm to decompose the total system task into multiple subtasks, and assigns the subtasks to the appropriate functional micro-modules (2) for execution according to the resource status and communication priority weight of each functional micro-module (2).
8. The system for interconnection and interoperability of main and auxiliary micro-modules according to claim 1, characterized in that, The micro-module interface unit (21) integrates an identity recognition chip (211), which stores the unique identity identifier, function type, interface parameters and protocol information of the corresponding functional micro-module (2).
9. A system for interconnecting main and auxiliary micro-modules according to claim 8, characterized in that, When the functional micro-module (2) is connected to the interconnection network (3), the identity recognition chip (211) automatically sends identity information and capability parameters to the main control module (1), and the main control module (1) completes automatic configuration and registration based on the received information.
10. A system for interconnecting main and auxiliary micro-modules according to claim 1, characterized in that, The interconnected network (3) adopts a hybrid network architecture and supports seamless switching between wired and wireless communication. The wired communication includes at least one of Ethernet, RS-485, and CAN bus, and the wireless communication includes at least one of Wi-Fi, Bluetooth, ZigBee, and LoRa.
Citation Information
Patent Citations
Connection device and communication method used for communication between master module and slave module
CN106095711A
A management and control system and method for IoT communication components supporting multi-protocol access.
CN110445856B