Multi-communication-mode unified configuration binding method and system based on domestic CPU and OS

Through protocol abstraction and adaptation, unified identification and resource scheduling methods, unified access and management of terminal devices in multiple communication methods is realized, and the high cost and management complexity problems of equipment access platforms in the prior art are solved, and the compatibility and automation level of the system are improved.

CN120416031APending Publication Date: 2025-08-01INSPUR QILU SOFTWARE IND
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510678611.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

When accessing the platform, existing terminal equipment needs to be configured and managed separately for each communication protocol, resulting in an increase in system development and operation and maintenance costs, and a lack of a unified management mechanism, affecting system stability and scalability.

Method used

The protocol abstraction and adaptation, unified identification generation, communication resource scheduling and dynamic configuration mechanisms are adopted to realize unified access, configuration and state management of multiple communication terminals. By generating unified terminal identifiers and communication mapping tables, a unified access interface and dynamic switching mechanism are provided.

Benefits of technology

It improves the compatibility, flexibility and automation level of the equipment management platform, reduces development and operation and maintenance costs, and improves the expansion capabilities and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120416031A_ABST
    Figure CN120416031A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-communication-mode unified configuration binding method and system based on a domestic CPU (Central Processing Unit) and an OS (Operating System), belongs to the technical field of communication management, and aims to solve the technical problem of how to realize unified access, identification, configuration and communication resource management of terminal equipment with different communication protocols. In order to improve the compatibility, flexibility and automation level of an equipment management platform, the adopted technical scheme is as follows: protocol abstraction and adaptation: performing abstraction packaging on MQTT, serial port communication, WebSocket, TCP / IP, HTTP and CoAP communication protocols to form a unified protocol adaptation layer; terminal identification and binding: generating a unique terminal identifier with a uniform format for each terminal device, binding a communication mode and a terminal logic identifier, and storing the terminal identifier and the terminal logic identifier in a communication mapping table; communication resource management: adopting a unified resource scheduling model to manage connection, monitoring, sending and receiving tasks of each protocol channel; performing dynamic configuration and switching; unified access management is realized; and state monitoring and alarm are carried out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication management technology, in particular to a method and system for uniformly configuring and binding multiple communication modes based on a domestically produced CPU and OS. Background Art

[0002] Existing terminal devices typically support multiple communication methods, such as MQTT, serial communication, and WebSocket. However, due to varying communication protocol standards, device access platforms often require separate configuration and management for each protocol, increasing system development and maintenance costs. Furthermore, when device communication methods change or multiple methods coexist, the lack of a unified management mechanism can easily lead to information inconsistencies, resource waste, and other issues, reducing system stability and scalability.

[0003] Therefore, how to achieve unified access, identification, configuration and communication resource management of terminal devices with different communication protocols, thereby improving the compatibility, flexibility and automation level of the device management platform is a technical problem that needs to be solved urgently. Summary of the Invention

[0004] The technical task of the present invention is to provide a method and system for unified configuration and binding of multiple communication modes based on domestic CPU and OS to solve the problem of how to achieve unified access, identification, configuration and communication resource management of terminal devices with different communication protocols, thereby improving the compatibility, flexibility and automation level of the device management platform.

[0005] The technical task of the present invention is achieved in the following way: a unified configuration binding method for multiple communication modes based on domestic CPU and OS, the method is as follows:

[0006] Protocol abstraction and adaptation: abstract and encapsulate MQTT, serial communication, WebSocket, TCP / IP, HTTP and CoAP communication protocols to form a unified protocol adaptation layer;

[0007] Terminal identification and binding: Generate a unique terminal identifier in a unified format for each terminal device, bind the communication mode and the terminal logical identifier, and store them in the communication mapping table;

[0008] Communication resource management: A unified resource scheduling model is used to manage the connection, monitoring, sending and receiving tasks of each protocol channel;

[0009] Dynamic configuration and switching: Dynamically switch communication modes, update parameter configurations through a hot parameter update mechanism, and automatically reestablish and rebind device sessions through connection reestablishment strategies;

[0010] Unified access management: Expose a unified device access interface, regardless of the underlying communication method, to achieve automatic identification, registration, and communication initialization of terminal devices. Among them, the unified access interface is used to provide REST API and WebSocket server capabilities for unified invocation by external platforms or user systems.

[0011] Status monitoring and alarm: Real-time collect the connection status of each terminal device, and automatically trigger the alarm mechanism when disconnection or communication anomalies occur.

[0012] Preferably, the protocol adaptation layer consists of several protocol processing units, and each protocol processing unit implements corresponding data encapsulation, unpacking, heartbeat detection, and connection maintenance for a communication protocol.

[0013] Preferably, the terminal identifier adopts a combination generation rule of "communication method + device code + timestamp" to ensure that device identifiers are not repeated in multiple communication scenarios.

[0014] Preferably, the dynamic switching of the communication method includes steps of disconnecting the old connection, releasing resources, updating configurations, and rebuilding the connection, and supports an automatic recovery mechanism.

[0015] More preferably, the communication mapping table is synchronously updated to the edge node cache in real time to support local message forwarding and fault tolerance. When a device goes online, disconnects, or switches the communication method, the communication mapping table is automatically updated and relevant service modules are notified.

[0016] A unified configuration binding system for multiple communication methods based on domestic CPUs and OS, which includes:

[0017] A communication protocol parsing module, used to receive and process terminal messages in different communication methods. Among them, the communication methods include MQTT, serial communication, WebSocket, TCP / IP, HTTP, and CoAP communication protocols.

[0018] An identification and binding module, used to generate a unified terminal identifier for the terminal, maintain the binding relationship between the communication channel and the device, and store it in the communication mapping table.

[0019] A configuration management module, used to support the issuance, update of terminal parameters, and dynamic switching of communication methods.

[0020] A communication resource scheduling module, used to uniformly schedule and manage each communication task thread and resource multiplexing.

[0021] An access management module, used to externally provide a unified device access interface, and the unified device access interface includes registration, authentication, and initialization functions.

[0022] The status monitoring module is used to monitor the connection status of each device in real time and record logs, and supports exception warning and recovery mechanisms.

[0023] Preferably, the terminal identifier generation logic includes communication type recognition, device code reading, and timestamp splicing to ensure uniqueness and traceability.

[0024] Preferably, the dynamic switching of the communication method includes steps such as disconnecting the old connection, releasing resources, updating configurations, and re-establishing connections, and supports an automatic recovery mechanism.

[0025] Preferably, the communication mapping table is synchronously updated to the edge node cache in real time to support local message forwarding and fault tolerance. When a device goes online, disconnects, or switches the communication method, the communication mapping table is automatically updated and relevant service modules are notified.

[0026] More preferably, the working process of the system is as follows:

[0027] (1) Receive a device access request, which carries device identification information and communication method information;

[0028] (2) Select the corresponding communication protocol parsing module according to the communication method information corresponding to the device to parse the access request and extract the device identifier and connection parameters;

[0029] (3) Check whether there is an existing communication configuration corresponding to the device identifier in the unified communication configuration center:

[0030] ① If it exists, return the corresponding communication binding parameters;

[0031] ② If it does not exist, create a new communication configuration item and perform an initial binding;

[0032] (4) Dynamically bind the device identifier, communication method, connection parameters, and configuration parameters to form a unified communication mapping table;

[0033] (5) Perform protocol routing, message forwarding, and status management for the subsequent communication process through the communication mapping table.

[0034] The multi-communication method unified configuration and binding method and system based on domestic CPUs and operating systems of the present invention have the following advantages:

[0035] (1) Through protocol abstraction and adaptation, unified identifier generation, communication resource scheduling, and dynamic configuration mechanisms, the present invention realizes the unified access, configuration, and status management of multi-communication method terminals, improves the automation degree, compatibility, and resource utilization efficiency of the system, and is applicable to the terminal supervision platform under domestic CPU and operating system environments;

[0036] (2) The present invention provides a method for unified configuration and binding of terminal communication methods that support multiple protocols such as MQTT, serial communication, and WebSocket, which is used to improve the access, configuration, and management efficiency of terminal devices under different communication methods, and is applicable to the unified communication management of the access of multiple types of intelligent terminals in a terminal device supervision platform;

[0037] (3) The present invention realizes the unified access, identification, configuration, and communication resource management of terminal devices with different communication protocols, thereby enhancing the compatibility, flexibility, and automation level of the device management platform;

[0038] (4) The present invention has a unified access interface that provides the capabilities of REST API and WebSocket server for unified invocation by external platforms or user systems;

[0039] (5) The present invention is adapted to domestic CPU architectures such as LoongArch and FT-2000 / 4, and runs in domestic operating system environments such as Kylin and Zhongbiao Kylin to ensure the domestic support of the software and hardware environment;

[0040] (6) The present invention realizes the unified identification, unified configuration, and unified access of terminals under multiple communication methods, simplifying the system architecture design;

[0041] (7) The present invention improves the compatibility of the platform with multi-protocol devices and enhances the system expansion ability;

[0042] (8) The present invention supports dynamic switching of communication methods, enhancing the stability of the system in complex network environments;

[0043] (9) The present invention reduces the development and operation and maintenance costs, improves the device online efficiency and system reliability;

[0044] (10) The present invention provides standardized interfaces, which are convenient for rapid integration and secondary development. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The present invention will be further described below with reference to the accompanying drawings.

[0046] FIG Figure 1 is a schematic structural diagram of a multi-communication method unified configuration and binding system based on domestic CPU and OS;

[0047] FIG Figure 2 is a schematic diagram of the terminal representation generation logic;

[0048] FIG Figure 3 is a flowchart of the dynamic switching of communication methods. DETAILED DESCRIPTION OF THE INVENTION

[0049] The following provides a detailed description of the unified configuration and binding method and system for multi-communication methods based on domestic CPUs and operating systems according to the accompanying drawings of the specification and specific embodiments.

[0050] Embodiment 1:

[0051] This embodiment provides a unified configuration and binding method for multi-communication methods based on domestic CPUs and operating systems. The method is as follows:

[0052] S1. Protocol abstraction and adaptation: Abstractly encapsulate MQTT, serial communication, WebSocket, TCP / IP, HTTP, and CoAP communication protocols to form a unified protocol adaptation layer.

[0053] S2. Terminal identification and binding: Generate a unique terminal identifier in a unified format for each terminal device, bind the communication method to the terminal logical identifier, and store it in the communication mapping table.

[0054] S3. Communication resource management: Use a unified resource scheduling model to manage the connection, listening, sending, and receiving tasks of each protocol channel.

[0055] S4. Dynamic configuration and switching: Dynamically switch the communication method, update the parameter configuration through the parameter hot update mechanism, and automatically complete the device session reconstruction and re-binding through the connection reconstruction strategy.

[0056] S5. Unified access management: Expose the unified device access interface, regardless of the underlying communication method, to achieve automatic identification, registration, and communication initialization of terminal devices. Among them, the unified access interface is used to provide the REST API and WebSocket server capabilities for unified invocation by external platforms or user systems.

[0057] S6. Status monitoring and alarm: Real-time collect the connection status of each terminal device, and automatically trigger the alarm mechanism when disconnection or communication anomalies occur.

[0058] The protocol adaptation layer in step S1 of this embodiment consists of several protocol processing units, and each protocol processing unit implements corresponding data encapsulation, unpacking, heartbeat detection, and connection maintenance for a communication protocol.

[0059] The terminal identifier in step S2 of this embodiment adopts a combination generation rule of "communication method + device code + timestamp" to ensure that device identifiers are not repeated in multi-communication scenarios.

[0060] The dynamic switching of the communication method in step S4 of this embodiment includes the steps of disconnecting the old connection, releasing resources, updating the configuration, and reconstructing the connection, and supports an automatic recovery mechanism.

[0061] In this embodiment, the communication mapping table in step S2 is synchronously updated to the edge node cache in real time to support local message forwarding and fault tolerance. When a device goes online, disconnects, or switches the communication method, the communication mapping table is automatically updated and relevant service modules are notified.

[0062] Embodiment 2:

[0063] As shown in the Figure 1 attached figure, this embodiment provides a unified configuration and binding system for multiple communication methods based on domestic CPUs and operating systems (OS). The system includes:

[0064] A communication protocol parsing module, which is used to receive and process terminal messages under different communication methods; among them, the communication methods include MQTT, serial communication, WebSocket, TCP / IP, HTTP, and CoAP communication protocols;

[0065] An identification and binding module, which is used to generate a unified terminal identifier for the terminal, maintain the binding relationship between the communication channel and the device, and store it in the communication mapping table;

[0066] A configuration management module, which is used to support the distribution, update of terminal parameters, and dynamic switching of communication methods;

[0067] A communication resource scheduling module, which is used to uniformly schedule and manage each communication task thread and resource reuse;

[0068] An access management module, which is used to provide a unified device access interface externally. The unified device access interface includes registration, authentication, and initialization functions;

[0069] A status monitoring module, which is used to monitor the connection status of each device in real time and record logs, and support exception warning and recovery mechanisms.

[0070] As shown in the Figure 2 attached figure, the terminal identifier generation logic in this embodiment includes communication type identification, device code reading, and timestamp splicing to ensure uniqueness and traceability.

[0071] As shown in the Figure 3 attached figure, the dynamic switching of communication methods in this embodiment includes steps such as disconnecting the old connection, releasing resources, updating configurations, and re-establishing connections, and supports an automatic recovery mechanism.

[0072] In this embodiment, the communication mapping table is synchronously updated to the edge node cache in real time to support local message forwarding and fault tolerance. When a device goes online, disconnects, or switches the communication method, the communication mapping table is automatically updated and relevant service modules are notified.

[0073] The working process of the system is specifically as follows:

[0074] (1) Receive a device access request, which carries device identification information and communication method information;

[0075] (2) Select the corresponding communication protocol parsing module according to the communication method information corresponding to the device to parse the access request, and extract the device identifier and connection parameters;

[0076] (3) Check whether there is an existing communication configuration corresponding to the device identifier in the unified communication configuration center:

[0077] ① If it exists, return the corresponding communication binding parameters;

[0078] ② If it does not exist, create a new communication configuration item and perform initial binding;

[0079] (4) Dynamically bind the device identifier, communication method, connection parameters and configuration parameters to form a unified communication mapping table;

[0080] (5) Perform protocol routing, message forwarding and status management for the subsequent communication process through the communication mapping table.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A unified configuration and binding method for multiple communication modes based on domestic CPUs and operating systems, characterized in that The method is as follows: Protocol abstraction and adaptation: Abstractly encapsulate MQTT, serial communication, WebSocket, TCP / IP, HTTP, and CoAP communication protocols to form a unified protocol adaptation layer; Terminal identification and binding: Generate a unique terminal identifier in a unified format for each terminal device, bind the communication method and the terminal logical identifier, and store them in the communication mapping table; Communication resource management: Adopt a unified resource scheduling model to manage the connection, listening, sending, and receiving tasks of each protocol channel; Dynamic configuration and switching: Dynamically switch the communication method, update the parameter configuration through the parameter hot update mechanism, and automatically complete the device session reconstruction and re-binding through the connection reconstruction strategy; Unified access management: Expose a unified device access interface, regardless of the underlying communication method, to achieve automatic identification, registration, and communication initialization of terminal devices; among them, the unified access interface is used to provide REST API and WebSocket server capabilities for unified invocation by external platforms or user systems; Status monitoring and alarm: Real-time collect the connection status of each terminal device, and automatically trigger the alarm mechanism when disconnection or communication anomalies occur.

2. The unified configuration and binding method for multiple communication modes based on domestic CPUs and operating systems according to claim 1, wherein The protocol adaptation layer consists of several protocol processing units, and each protocol processing unit implements corresponding data encapsulation, unpacking, heartbeat detection, and connection maintenance for a communication protocol.

3. The unified configuration and binding method for multiple communication modes based on domestic CPUs and operating systems according to claim 1, characterized in that, The terminal identifier is generated using a combination rule of "communication method + device code + timestamp" to ensure that the device identifier is not repeated in multiple communication scenarios.

4. The unified configuration and binding method for multiple communication modes based on domestic CPUs and operating systems according to claim 1, characterized in that, The dynamic switching of the communication method includes steps of disconnecting the old connection, releasing resources, updating the configuration, and reconstructing the connection, and supports an automatic recovery mechanism.

5. The unified configuration and binding method for multiple communication modes based on domestic CPUs and operating systems according to any one of claims 1-4, characterized in that The communication mapping table is synchronously cached to the edge node in real time to support local message forwarding and fault tolerance. When the device goes online, disconnects, or switches the communication method, the communication mapping table is automatically updated and relevant service modules are notified.

6. A unified configuration and binding system for multiple communication methods based on domestic CPUs and operating systems, characterized in that, The system includes: A communication protocol parsing module, which is used to receive and process terminal messages in different communication methods; among them, the communication methods include MQTT, serial communication, WebSocket, TCP / IP, HTTP, and CoAP communication protocols; An identification and binding module, which is used to generate a unified terminal identifier for the terminal, maintain the binding relationship between the communication channel and the device, and store it in the communication mapping table; A configuration management module, which is used to support the distribution, update of terminal parameters, and dynamic switching of the communication method; A communication resource scheduling module, which is used to uniformly schedule and manage each communication task thread and resource reuse; An access management module, which is used to provide a unified device access interface externally, and the unified device access interface includes functions of registration, authentication, and initialization; A status monitoring module, which is used to monitor and record the connection status of each device in real time, and supports an exception alarm and recovery mechanism.

7. The unified configuration and binding system for multiple communication methods based on domestic CPUs and operating systems according to claim 6, characterized in that, The terminal identifier generation logic includes communication type identification, device code reading, and timestamp splicing to ensure uniqueness and traceability.

8. The unified configuration and binding system for multiple communication methods based on domestic CPUs and operating systems according to claim 6, characterized in that, The dynamic switching of the communication method includes steps such as disconnecting the old connection, releasing resources, updating the configuration, and reconstructing the connection, and supports an automatic recovery mechanism.

9. The unified configuration and binding system for multiple communication methods based on domestic CPUs and operating systems according to claim 6, wherein, The communication mapping table is synchronized to the edge node cache in real time to support local message forwarding and fault tolerance. When a device goes online, disconnects, or switches communication methods, the communication mapping table is automatically updated and relevant service modules are notified.

10. The unified configuration and binding system for multiple communication methods based on domestic CPUs and operating systems according to any one of claims 6-9, characterized in that, The working process of this system is as follows: (1) Receive a device access request, which carries device identification information and communication method information; (2) Select the corresponding communication protocol parsing module according to the communication method information corresponding to the device to parse the access request and extract the device identifier and connection parameters; (3) Check whether there is an existing communication configuration corresponding to the device identifier in the unified communication configuration center: ① If it exists, return the corresponding communication binding parameters; ② If it does not exist, create a new communication configuration item and perform an initial binding; (4) Dynamically bind the device identifier, communication method, connection parameters, and configuration parameters to form a unified communication mapping table; (5) Perform protocol routing, message forwarding, and status management for the subsequent communication process through the communication mapping table.

Citation Information

Cited By

  • Multi-protocol dynamic adaptation and session management method based on TCP / IP

    CN121547517A