Equipment access method and system based on protocol conversion

Through the protocol conversion module, the communication protocols of different devices are converted into standard protocols, which solves the problem of protocol incompatibility between devices, realizes seamless access and management of devices, improves system compatibility and scalability, and ensures stable communication and security, simplify the equipment access process and improve operation and maintenance efficiency.

CN119094626AInactive Publication Date: 2024-12-06GUANLIN TECH CO LTD

Patent Information

Application Number
CN202411200184.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The communication protocols between different devices and systems are incompatible, which leads to difficulty in interconnection between devices, long development cycles, complex maintenance, and difficult to ensure communication stability and data transmission efficiency in high concurrency environments, insufficient security authentication mechanisms, threatening the network Safety.

Method used

Using a device access method and system based on protocol conversion, the original communication protocol of different devices is converted into standard protocols through the protocol conversion module, so as to realize seamless access and management of devices, and integrate device authentication, communication link maintenance and load balancing functions. , supports dynamic resource allocation and encryption processing, ensuring efficient operation and security of the system.

Benefits of technology

It realizes seamless access to multiple device protocols, improves system management efficiency, ensures communication stability and security, supports dynamic access to new devices and new protocols, simplifies the device access process, and improves the long-term system Applicability and operation and maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094626A_ABST
    Figure CN119094626A_ABST
Patent Text Reader

Abstract

The invention discloses a device access method and system based on protocol conversion, and relates to the technical field of dynamic information processing of multi-device access, and the method comprises the following steps: 1, connecting a device to be accessed through an adaptive physical interface, and receiving an original communication protocol sent by the device according to the physical interface standards of different devices; according to the device access method and system based on protocol conversion, all access devices are managed in a centralized mode through a unified standard protocol, the management efficiency of the system is greatly improved, communication resources can be reasonably distributed, communication delay or data loss caused by resource contention of some devices is prevented, and the user experience is improved. The communication link and the data transmission strategy of each device are dynamically adjusted, it is ensured that the system can still operate stably under the high-load condition, the communication encryption unit is responsible for encrypting communication data between the devices and the system, the data are prevented from being stolen or tampered in the transmission process, and the integrity of the data and the credibility of the source of the data are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of dynamic information processing for multi-device access, and in particular to a device access method and system based on protocol conversion. Background Art

[0002] With the rapid development of IoT technology, more and more devices are connected to the network for data exchange and remote control, forming a huge IoT ecosystem; however, the communication protocols used by different devices and systems are different, making interoperability between devices a major problem. Traditional device access methods usually require customized development for each protocol, resulting in a long development cycle, complex maintenance, and difficulty in achieving unified management and control of multiple protocol devices. In addition, data security, authentication reliability, and communication stability during device access also face huge challenges.

[0003] In the existing device access solutions, the problem of protocol incompatibility is particularly prominent. Different device manufacturers often use their own proprietary protocols, which makes data exchange and communication between multiple devices extremely difficult. In order to achieve interoperability of heterogeneous devices, existing technologies usually rely on manually writing protocol conversion codes or using middleware for protocol adaptation, which is not only inefficient but also has a high risk of error. In addition, with the rapid increase in the number of IoT devices, how to ensure the stability of device communication and the efficiency of data transmission in a high-concurrency environment has also become an urgent problem to be solved. Existing load balancing strategies are often too simple and cannot dynamically adapt to changes in system load, resulting in uneven resource allocation and degraded system performance. At the same time, during the device access process, the lack of security authentication mechanism may lead to illegal device access, thereby threatening the security of the entire network. Summary of the invention

[0004] In order to solve the above technical problems, the present invention is implemented through the following technical solutions: a device access method and system based on protocol conversion, comprising the following steps:

[0005] Step 1: Connect the device to be connected through the adapted physical interface, and receive the original communication protocol sent by the device according to the physical interface standards of different devices;

[0006] Step 2: Perform a preliminary analysis on the original communication protocol, extract key fields, and find matching mapping rules based on the extracted key fields, and convert the key fields into standard protocols according to the mapping rules;

[0007] Step 3: Manage the access and communication status of the device according to the converted standard protocol, including device registration, establishment and maintenance of communication links, monitoring and recovery of abnormal status; authenticate the access device to ensure the legitimacy of the device; encrypt the communication data to ensure the security and integrity of the data;

[0008] Step 4: Monitor the operating status of the equipment in real time and dynamically adjust the resource allocation plan of the equipment to ensure efficient operation of the system;

[0009] Among them, it communicates with the equipment through standard protocols, records and analyzes the operation logs and communication logs generated by the equipment, detects abnormal situations, and warns of potential failures or safety risks in advance; and dynamically adjusts the resource allocation plan of the equipment.

[0010] A device access system based on protocol conversion includes a protocol conversion module, a device interface module, a communication management module and a control center:

[0011] The protocol conversion module is used to convert the original communication protocols of different devices into a unified standard protocol;

[0012] The device interface module is connected to different devices and is used to receive the original communication protocol sent by the device and transmit the original communication protocol to the protocol conversion module for processing;

[0013] At the same time, the device interface module is also used to receive the target protocol processed by the protocol conversion module and send it to the target device;

[0014] The communication management module is responsible for managing the access and communication status of the device, including device registration, establishment and maintenance of communication links, and monitoring and recovery of abnormal status;

[0015] The control center is used to communicate with different devices through standard protocols, monitor the operating status of each device in real time, generate log data, and identify potential problems and abnormal situations in system operation.

[0016] Preferably, the protocol conversion module includes a protocol mapping algorithm, which is used to convert original communication protocols of different devices into a unified standard protocol;

[0017] The protocol mapping algorithm includes a protocol parsing unit, a protocol mapping unit, a rule base, and a rule engine:

[0018] Rule base: stores the mapping rules of the original communication protocols of different devices. Each rule defines the conversion method from the original communication protocol to the standard protocol.

[0019] The rule base supports dynamic updates, and administrators can add or modify rules to adapt to the access of new devices or new original communication protocols;

[0020] Rule engine: responsible for converting the key fields parsed from the original communication protocol according to the mapping rules in the rule base.

[0021] The rule engine uses a forward chain reasoning mechanism to automatically select appropriate mapping rules for conversion based on key fields and generate corresponding rule instructions;

[0022] Protocol parsing unit: responsible for preliminary parsing of the original communication protocols sent by different devices, extracting key fields in the original communication protocols, and passing them to the rule engine.

[0023] The protocol parsing unit supports multiple data formats, such as JSON, XML, binary stream, etc.

[0024] Protocol mapping unit: used to convert the parsed rule instructions into standard protocols according to the mapping rules generated by the rule engine, and input the standard protocols into the control center;

[0025] Among them, the protocol mapping unit in the protocol conversion module supports multiple mapping rules:

[0026] Mapping rules include data field reorganization, format conversion, verification, and calculation to ensure the accuracy and compatibility of protocol conversion;

[0027] Algorithm execution steps: The protocol parsing unit parses the original communication protocol, extracts the key fields, and then the rule engine searches for matching mapping rules in the rule base based on the key fields; once a suitable mapping rule is matched, the rule engine performs mapping conversion and generates rule instructions, and then the protocol mapping unit converts the rule instructions into standard protocols according to the mapping rules based on the rule instructions generated by the rule engine; the protocol mapping unit outputs the converted standard protocol to the communication management module, completing the conversion process from the original communication protocol to the standard protocol.

[0028] Preferably, the protocol conversion module further includes a protocol library and a dynamic update unit:

[0029] The protocol library stores the parsing rules of various original communication protocols, and cooperates with the protocol parsing unit to call the parsing rules to complete the preliminary parsing of the original communication protocols sent by different devices;

[0030] The dynamic update unit can be used to update the parsing rules in the protocol library in real time according to the needs of new devices or changes in the original communication protocol, and automatically update the mapping rules in the rule library to support the access of new devices and new protocols, ensuring the long-term scalability and high adaptability of the system.

[0031] Preferably, the protocol conversion module also supports a bidirectional protocol conversion function: the protocol conversion module can not only convert the original communication protocols of different devices into a unified standard protocol; the protocol conversion module can also remap the data of the standard protocol into a target protocol that can be recognized by the target device according to the instructions of the control center;

[0032] Bidirectional protocol conversion function: This is achieved through the forward chain reasoning mechanism of the rule engine, ensuring that the system can flexibly convert between different communication protocols, improving the data exchange efficiency between devices and the interoperability of the system.

[0033] Preferably, the device interface module includes multiple interface standards, and the device interface module realizes access and data transmission to different devices by adapting different physical interfaces;

[0034] The device interface module cooperates with the protocol conversion module to perform preliminary analysis on the original communication protocol sent by the device through the protocol analysis unit, and then transmits it to the protocol mapping unit for protocol conversion to obtain the standard protocol.

[0035] Preferably, the communication management module further includes a device authentication unit, a communication encryption unit and a communication link maintenance unit:

[0036] The device authentication unit uses an identity authentication algorithm based on public key infrastructure to authenticate the access device and verify the legitimacy of the device;

[0037] The authentication algorithm includes:

[0038] Certificate Manager: Responsible for managing the digital certificates of devices, including certificate issuance, verification, revocation and other functions. The certificate manager is based on the PKI system to ensure that the identity of each access device is unique and credible;

[0039] Authenticator: Uses digital certificates to authenticate access devices;

[0040] Key Manager: Responsible for the secure management and exchange of keys. Specifically, it is responsible for managing the public and private keys used in the device authentication process and ensuring the secure storage and transmission of keys.

[0041] The communication encryption unit is responsible for encrypting the communication data during the data transmission between devices, supporting symmetric encryption and asymmetric encryption, and ensuring the credibility of data through digital signature and verification mechanism, preventing data leakage and tampering, and ensuring the security and integrity of communication data;

[0042] The communication link maintenance unit adopts a load balancing algorithm based on dynamic scheduling: including equipment status monitor, load distributor, scheduling strategy library and strategy optimizer;

[0043] Device status monitor: monitors the communication status of each device in real time and provides monitoring data to the load distributor, including data transmission rate, communication delay and error rate parameters; Load distributor: dynamically adjusts the communication resources allocated to each device based on the monitoring data provided by the device status monitor and the current system load status to ensure that the system can still run stably under high load conditions; Scheduling policy library: stores different load balancing policies, such as polling scheduling, weighted polling scheduling, minimum connection number scheduling, etc. Administrators can choose the appropriate load balancing policy according to actual needs; Policy optimizer: based on machine learning algorithms, analyzes monitoring data, continuously optimizes load balancing policies, and improves system resource utilization and response speed.

[0044] Preferably, the communication link maintenance unit also includes a heartbeat detection mechanism for monitoring whether the communication link between the device and the system is working normally: when the heartbeat detection mechanism finds that the communication link is abnormal, the communication link maintenance unit will start the link reconstruction process to restore normal device communication by rebuilding the communication link; combined with the load balancing algorithm, the link reconstruction process will automatically evaluate the current system load status and select the best communication link to ensure the stability and efficiency of data transmission.

[0045] Preferably, the load balancing algorithm also includes an adaptive adjustment mechanism: the communication requirements of the current device and the load status of the system are evaluated in real time through the policy optimizer, and the load balancing strategy is dynamically adjusted to ensure that each device can obtain the optimal communication resource allocation; under high load conditions, the system can automatically reduce the communication priority of non-critical devices, give priority to the data transmission requirements of critical devices, and prevent excessive consumption of system resources.

[0046] The identity authentication algorithm in the device authentication unit supports a multi-level authentication mechanism:

[0047] The multi-level authentication mechanism uses different authentication levels according to the importance and security requirements of the device, including simple authentication, enhanced authentication, and two-factor authentication:

[0048] Among them, in two-factor authentication, in addition to verification based on digital certificates, an additional verification step based on a one-time password is introduced to ensure the high security of device access.

[0049] Preferably, the control center includes a device monitoring unit and a log management unit:

[0050] The equipment monitoring unit is used to monitor the operating status of each device in real time, including the online status, data transmission status and fault status of the device; the log management unit is used to record the operation log and communication log of the device and generate log data for subsequent analysis and troubleshooting;

[0051] The control center adopts a multi-objective optimization algorithm based on a genetic algorithm: including an objective function definition unit, a population initialization unit, a genetic operation unit and a fitness evaluator:

[0052] Objective function definition unit: defines multiple optimization objectives and obtains multiple objective functions, such as maximizing communication efficiency, minimizing resource usage, minimizing delay, etc. These objective functions are used as fitness evaluation criteria for genetic algorithms;

[0053] Population initialization unit: The population initialization unit randomly generates several individuals according to the current system status and equipment conditions. Each individual represents a possible resource allocation solution.

[0054] Genetic operation unit: Genetic operations include selection, crossover and mutation. Individuals with higher fitness are selected for mating to generate the next generation of individuals. The diversity of the population is increased through crossover and mutation operations.

[0055] Fitness evaluator: evaluates the fitness of each individual according to the objective function and selects individuals with higher fitness to enter the next generation;

[0056] Iterative optimization: After multiple generations of iterations, the algorithm gradually converges and eventually outputs the optimal resource allocation plan, which is then applied by the control center to the equipment management process.

[0057] The log management unit also includes a data analysis unit, which identifies potential problems and abnormal conditions in system operation by conducting in-depth analysis of the recorded log data:

[0058] The data analysis unit uses an anomaly detection algorithm based on machine learning to analyze the operation logs and communication logs of the equipment, generate analysis results, and warn of possible failures or safety risks in advance by identifying abnormal patterns and abnormal operation behaviors;

[0059] Feed the analysis results generated by the data analysis unit back to the policy optimizer to further optimize the system's load balancing strategy and resource allocation plan, and issue instructions to the device based on the optimized load balancing strategy and resource allocation plan to improve the overall performance and stability of the system;

[0060] In addition, the control center also includes a resource monitoring unit and a scheduling unit:

[0061] The resource monitoring unit monitors the usage of system resources in real time, including CPU, memory, network bandwidth, etc., to prevent resource overload and generate feedback information; the scheduling unit dynamically adjusts the resource allocation plan of the device through a multi-objective optimization algorithm based on the feedback information from the resource monitoring unit to ensure efficient operation of the system and stable access to the equipment.

[0062] The present invention provides a device access method and system based on protocol conversion, which has the following beneficial effects:

[0063] 1. The device access method and system based on protocol conversion, through the protocol conversion module, the system can be compatible with the communication protocols of multiple devices and realize seamless access of devices with different protocols; the dynamic update function of the protocol library ensures that the system can continuously adapt to the access requirements of new devices and new protocols, and enhance the long-term applicability of the system.

[0064] 2. The device access method and system based on protocol conversion integrates functions such as device authentication, communication link maintenance, and load balancing to ensure communication stability and efficiency when multiple devices are connected in parallel; the control center centrally manages all access devices through a unified standard protocol, greatly improving the management efficiency of the system.

[0065] 3. The device access method and system based on protocol conversion support parallel access of multiple devices. The communication management module can manage the access and communication of multiple devices at the same time to ensure the independence and non-interference between the devices. The load balancing unit in the system will reasonably allocate communication resources according to the current system load to prevent communication delays or data loss caused by resource contention for certain devices. In the case of parallel access of multiple devices, the communication management module dynamically adjusts the communication links and data transmission strategies of each device by optimizing the scheduling algorithm to ensure that the system can still operate stably under high load conditions.

[0066] 4. The device access method and system based on protocol conversion, the device access method attaches great importance to the security of data transmission; the communication encryption unit is responsible for encrypting the communication data between the device and the system to prevent the data from being stolen or tampered with during transmission; the system supports multiple encryption algorithms, including symmetric encryption and asymmetric encryption, and users can choose the appropriate encryption method according to security requirements; the system also supports digital signatures and verification mechanisms to ensure the integrity of the data and the credibility of the source.

[0067] 5. The device access method and system based on protocol conversion support remote management functions. Administrators can monitor, configure and upgrade the device access system in real time through the remote management terminal, greatly improving the system's operation and maintenance efficiency. In addition, the intelligent control center realizes centralized control and automated management of multiple devices through optimization algorithms, simplifying the operating procedures of complex systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A schematic flow chart of a device access method based on protocol conversion according to the present invention;

[0069] Figure 2 The present invention is a flowchart of a device access system based on protocol conversion. DETAILED DESCRIPTION

[0070] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The embodiments of the present invention are provided for the purpose of illustration and description, and are not intended to be exhaustive or to limit the present invention to the disclosed forms. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention, and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for specific uses.

[0071] like Figure 1 As shown, the present invention provides a technical solution: a device access method based on protocol conversion, comprising the following steps: Step 1: connecting the device to be accessed through an adapted physical interface, and receiving the original communication protocol sent by the device according to the physical interface standards of different devices; Step 2: preliminarily parsing the original communication protocol, extracting key fields, and finding matching mapping rules based on the extracted key fields, and converting the key fields into standard protocols according to the mapping rules; Step 3: managing the access and communication status of the device according to the converted standard protocol, including device registration, establishment and maintenance of communication links, and monitoring and recovery of abnormal states; authenticating the access device to ensure the legitimacy of the device; encrypting the communication data to ensure the security and integrity of the data; Step 4: monitoring the operating status of the device in real time, and dynamically adjusting the resource allocation plan of the device to ensure efficient operation of the system.

[0072] Among them, it communicates with the equipment through standard protocols, records and analyzes the operation logs and communication logs generated by the equipment, detects abnormal situations, and warns of potential failures or safety risks in advance; and dynamically adjusts the resource allocation plan of the equipment.

[0073] The communication management module establishes a communication link with the device and monitors the data transmission status in real time. The communication link maintenance unit ensures the stability and reliability of data transmission through strategies such as heartbeat detection and link reconstruction. The control center controls the access device through standard protocols and sends operation instructions. After the access device executes the instruction, it transmits the feedback data back to the control center through the protocol conversion module and the communication management module.

[0074] During the operation of the equipment, the equipment monitoring unit monitors the operating status of the equipment in real time, and records the operation log and communication log through the log management unit to facilitate subsequent analysis and maintenance;

[0075] Through the dynamic update unit, the parsing rules in the protocol library and the mapping rules in the rule library can be updated in real time to support the access of new devices and new protocols; the system also supports remote monitoring, configuration and upgrading of device access systems through remote management terminals to improve management efficiency.

[0076] That is to say, the system supports the parallel access and expansion of multiple devices during operation. Administrators can maintain the system through remote management functions, including software upgrades, configuration adjustments and device management, to ensure that the system is always in the best operating state.

[0077] In this technical solution, the device access method of the present invention can effectively solve the problem of incompatibility of communication protocols between different devices, simplify the device access process, improve the compatibility and scalability of the system, and ensure the stable and efficient operation of the device.

[0078] The protocol conversion module converts the original communication protocols of different devices into standard protocols, which simplifies the access process of multi-protocol devices and realizes seamless interconnection between different devices. The system has good scalability and can dynamically update new supported devices and protocols to ensure the long-term applicability of the system. The device interface module supports multiple interface standards and can adapt to diverse device access requirements.

[0079] like Figure 2 As shown, a device access system based on protocol conversion includes a protocol conversion module, a device interface module, a communication management module and a control center: the protocol conversion module is used to convert the original communication protocols of different devices into a unified standard protocol; the device interface module is connected to different devices, and is used to receive the original communication protocol sent by the device, and transmit the original communication protocol to the protocol conversion module for processing; at the same time, the device interface module is also used to receive the target protocol processed by the protocol conversion module and send it to the target device; the communication management module is responsible for managing the access and communication status of the device, and the communication status includes device registration, establishment and maintenance of communication links, and monitoring and recovery of abnormal status; the control center is used to communicate with different devices through standard protocols, and monitor the operating status of each device in real time, generate log data, and identify potential problems and abnormal conditions in system operation.

[0080] The protocol conversion module includes a protocol mapping algorithm, which is used to convert the original communication protocols of different devices into a unified standard protocol; the protocol mapping algorithm includes a protocol parsing unit, a protocol mapping unit, a rule base and a rule engine: Rule base: stores the mapping rules of the original communication protocols of different devices, and each rule defines the conversion method from the original communication protocol to the standard protocol.

[0081] The rule base supports dynamic updates, and administrators can add or modify rules to adapt to the access of new devices or new original communication protocols; rule engine: responsible for converting the key fields parsed from the original communication protocol according to the mapping rules in the rule base.

[0082] The rule engine adopts the forward chain reasoning mechanism to automatically select the appropriate mapping rules for conversion according to the key fields and generate corresponding rule instructions; the protocol parsing unit is responsible for the preliminary parsing of the original communication protocols sent by different devices, extracting the key fields in the original communication protocols, and passing them to the rule engine.

[0083] The protocol parsing unit supports multiple data formats, such as JSON, XML, binary stream, etc.; the protocol mapping unit is used to convert the parsed rule instructions into standard protocols according to the mapping rules generated by the rule engine, and input the standard protocols into the control center.

[0084] Among them, the protocol mapping unit in the protocol conversion module supports multiple mapping rules: the mapping rules include data field reorganization, format conversion, verification and calculation to ensure the accuracy and compatibility of protocol conversion.

[0085] The communication management module improves the security of the system through device authentication and data encryption functions, and ensures the stable operation of the system with multiple devices connected through the maintenance strategy of the communication link. The control center centrally manages and controls various types of equipment through a unified standard protocol, which simplifies system operation and improves management efficiency. The overall system supports remote management functions, further improving the convenience and management efficiency of system operation and maintenance, and has broad application prospects.

[0086] Among them, the execution steps of the protocol mapping algorithm are:

[0087] 1. Rule matching: The protocol parsing unit parses the original communication protocol and extracts the key fields. The rule engine then searches for matching mapping rules in the rule base based on the key fields.

[0088] 2. Mapping conversion: Once a suitable mapping rule is matched, the rule engine performs mapping conversion and generates a rule indication. Then, the protocol mapping unit converts the rule indication into a standard protocol according to the mapping rule based on the rule indication generated by the rule engine;

[0089] 3. Output result: The protocol mapping unit outputs the converted standard protocol to the communication management module, completing the conversion process from the original communication protocol to the standard protocol.

[0090] Through the protocol mapping algorithm based on the rule engine, the system can flexibly respond to the access requirements of devices with different protocols, ensure the correct parsing and transmission of data, and make protocol conversion more flexible and efficient.

[0091] The protocol conversion module further includes a protocol library and a dynamic update unit:

[0092] The protocol library stores the parsing rules of multiple original communication protocols, and cooperates with the protocol parsing unit to call the parsing rules to complete the preliminary parsing of the original communication protocols sent by different devices; the dynamic update unit can be used to update the parsing rules in the protocol library in real time according to the needs of new devices or changes in the original communication protocols, and automatically update the mapping rules in the rule library to support the access of new devices and new protocols, ensuring the long-term scalability and high adaptability of the system.

[0093] The protocol conversion module also supports bidirectional protocol conversion function:

[0094] The protocol conversion module can not only convert the original communication protocols of different devices into a unified standard protocol; the protocol conversion module can also remap the data of the standard protocol into the target protocol that the target device can recognize according to the instructions of the control center; the two-way protocol conversion function: realized through the forward chain reasoning mechanism of the rule engine, ensures that the system can flexibly convert between different communication protocols, improve the data exchange efficiency between devices and the interoperability of the system.

[0095] The basic steps of the forward chaining reasoning mechanism include:

[0096] Initialization: define a set of initial facts (known information) and a set of rules;

[0097] Matching: Check whether there is an item in the current fact set that matches the premise (left side) of the rule;

[0098] Select: If matching rules are found, select one or more rules to apply;

[0099] Apply: Apply the selected rules to the current set of facts and generate new facts through logical operations;

[0100] Insert: Add the newly generated facts to the fact collection;

[0101] Iteration: Repeat the matching and applying steps until there are no more rules to apply, or a specific target fact is reached;

[0102] Conclusion: If the target fact is reached, the reasoning is successful and the conclusion is output;

[0103] If the goal is not reached, but the rule cannot be applied further, the reasoning fails or is incomplete.

[0104] For example: If "the weather is fine" and "today is the weekend", then "go to the park".

[0105] By applying this forward chain reasoning mechanism, the system can flexibly switch between different communication protocols, thereby improving the data exchange efficiency between devices and the interoperability of the system.

[0106] The device interface module includes multiple interface standards, including but not limited to serial port, USB interface, Ethernet interface, wireless communication interface, etc. The device interface module realizes access and data transmission of different devices by adapting different physical interfaces;

[0107] The device interface module works in conjunction with the protocol conversion module. After the original communication protocol sent by the device is initially parsed by the protocol parsing unit, it is passed to the protocol mapping unit for protocol conversion to obtain the standard protocol.

[0108] The communication management module further includes a device authentication unit, a communication encryption unit and a communication link maintenance unit:

[0109] The device authentication unit uses an identity authentication algorithm based on public key infrastructure to authenticate the access device and verify the legitimacy of the device;

[0110] The authentication algorithm includes:

[0111] Certificate Manager: Responsible for managing the digital certificates of devices. The certificate manager is based on the PKI system to ensure that the identity of each access device is unique and trustworthy.

[0112] Authenticator: Uses digital certificates to authenticate access devices.

[0113] Key Manager: Responsible for the secure management and exchange of keys. Specifically, it is responsible for managing the public and private keys used in the device authentication process and ensuring the secure storage and transmission of keys.

[0114] Among them, the authentication algorithm is executed:

[0115] 1. Certificate request: When a device accesses the system, it first sends a digital certificate request to the certificate manager. After the certificate manager verifies the preliminary information of the device, it issues a digital certificate.

[0116] 2. Identity verification: When a device is connected to the system, the device's digital certificate is verified by the authenticator. The verification includes certificate validity check, signature verification, certificate chain verification, timestamp verification and device information verification to ensure the legitimacy and credibility of the device identity.

[0117] 3. Key exchange: After verification, the system and the device will exchange keys securely through the key manager and establish an encrypted communication channel.

[0118] 4. Device registration: The successfully authenticated device completes registration in the communication management module, and the system allocates communication resources to it, allowing it to transmit data.

[0119] The identity authentication algorithm is based on the PKI system, which realizes the trusted identity authentication and communication security of the device, effectively prevents the access of illegal devices, and makes device authentication more secure and reliable.

[0120] The communication encryption unit is responsible for encrypting the communication data during the data transmission between devices, supporting symmetric encryption and asymmetric encryption, and ensuring the credibility of data through digital signature and verification mechanism, preventing data leakage and tampering, and ensuring the security and integrity of communication data.

[0121] Among them, the identity authentication algorithm is based on the PKI system, which realizes the trusted identity authentication and communication security of the device, and effectively prevents the access of illegal devices.

[0122] The communication link maintenance unit adopts a load balancing algorithm based on dynamic scheduling:

[0123] The load balancing algorithm includes a device status monitor, a load distributor, a scheduling policy library, and a policy optimizer;

[0124] Device status monitor: monitors the communication status of each device in real time and provides monitoring data to the load distributor, including data transmission rate, communication delay and error rate parameters;

[0125] Load distributor: dynamically adjusts the communication resources allocated to each device based on the monitoring data provided by the device status monitor and the current system load status to ensure that the system can still operate stably under high load conditions;

[0126] Scheduling strategy library: stores different load balancing strategies, such as polling scheduling, weighted polling scheduling, minimum connection number scheduling, etc. Administrators can choose the appropriate load balancing strategy according to actual needs;

[0127] Strategy optimizer: Based on machine learning algorithms, it analyzes monitoring data, continuously optimizes load balancing strategies, and improves system resource utilization and response speed;

[0128] Load balancing algorithm execution steps:

[0129] 1. Monitoring and analysis: The device status monitor monitors the communication status of each device in real time and analyzes the load status of the current system;

[0130] 2. Strategy selection: Based on the system's load status and monitoring data, the load distributor selects a suitable load balancing strategy through the scheduling strategy library and applies it to the current load scheduling;

[0131] 3. Dynamic adjustment: During the load scheduling process, the load distributor continuously monitors the system status and optimizes the load balancing strategy through the policy optimizer when necessary, adjusts resource allocation in real time, and ensures that the communication links of each device are stable and efficient.

[0132] The load balancing algorithm ensures communication efficiency and link stability when multiple devices are connected. At the same time, the dynamic scheduling strategy optimizes system resource utilization and makes communication management more intelligent.

[0133] The communication link maintenance unit also includes a heartbeat detection mechanism: used to monitor whether the communication link between the device and the system is working properly:

[0134] If the heartbeat detection mechanism finds that the communication link is abnormal, the communication link maintenance unit will start the link reconstruction process to restore normal device communication by rebuilding the communication link; combined with the load balancing algorithm, the link reconstruction process will automatically evaluate the current system load status and select the best communication link to ensure the stability and efficiency of data transmission.

[0135] The load balancing algorithm also includes an adaptive adjustment mechanism:

[0136] The adaptive adjustment mechanism uses a policy optimizer to conduct real-time evaluation of the communication needs of the current device and the load status of the system, and dynamically adjusts the load balancing strategy to ensure that each device can obtain the optimal allocation of communication resources; under high load conditions, the system can automatically reduce the communication priority of non-critical devices, give priority to the data transmission needs of critical devices, and prevent excessive consumption of system resources.

[0137] The authentication algorithm in the device authentication unit supports a multi-level authentication mechanism:

[0138] The multi-level authentication mechanism uses different authentication levels according to the importance and security requirements of the device, including simple authentication, enhanced authentication, and two-factor authentication:

[0139] Among them, in two-factor authentication, in addition to verification based on digital certificates, an additional verification step based on a one-time password is introduced to ensure the high security of device access.

[0140] From the above technical solutions, it can be seen that the system attaches great importance to the security of data transmission. The communication encryption unit is responsible for encrypting the communication data between the device and the system to prevent the data from being stolen or tampered with during transmission. The system supports multiple encryption algorithms, including symmetric encryption and asymmetric encryption. Users can choose the appropriate encryption method according to security requirements. The system also supports digital signatures and verification mechanisms to ensure the integrity of the data and the credibility of the source.

[0141] The control center includes a device monitoring unit and a log management unit:

[0142] The equipment monitoring unit is used to monitor the operating status of each device in real time, including the online status, data transmission status and fault status of the device;

[0143] The log management unit is used to record the operation log and communication log of the device and generate log data for subsequent analysis and troubleshooting;

[0144] The control center adopts a multi-objective optimization algorithm based on genetic algorithm:

[0145] First, multiple optimization goals are defined to obtain multiple objective functions, such as maximizing communication efficiency, minimizing resource usage, minimizing delay, etc. These objective functions are used as fitness evaluation criteria for the genetic algorithm; then the population initialization unit randomly generates a number of individuals according to the current system status and equipment conditions, and each individual represents a possible resource allocation plan; then individuals with higher fitness are selected for mating to generate the next generation of individuals, and the population diversity is increased through crossover and mutation operations; then the fitness of each individual is evaluated according to the objective function, and individuals with higher fitness are selected to enter the next generation; after multiple generations of iterations, the algorithm gradually converges and finally outputs the optimal resource allocation plan, which is then applied by the control center to the equipment management process.

[0146] Multi-objective optimization algorithm execution steps:

[0147] 1. Goal setting: The control center sets optimization goals based on current management needs, such as maximizing device communication efficiency or minimizing system latency.

[0148] 2. Initialize the population: Generate an initial population, where each individual represents a possible device resource allocation solution.

[0149] 3. Genetic evolution: Through selection, crossover and mutation operations, the population is continuously optimized and the fitness of individuals is improved.

[0150] 4. Application of optimization results: After multiple generations of iterations, the individual with the highest fitness is selected as the optimal solution and applied to the resource allocation and management of the equipment.

[0151] The multi-objective optimization algorithm achieves the optimal allocation of equipment resources through iterative optimization of genetic algorithms, improving the overall performance and management efficiency of the system.

[0152] The log management unit also includes a data analysis unit, which identifies potential problems and abnormal conditions in system operation by conducting in-depth analysis of the recorded log data:

[0153] The data analysis unit uses an anomaly detection algorithm based on machine learning to analyze the operation logs and communication logs of the equipment, generate analysis results, and warn of possible failures or safety risks in advance by identifying abnormal patterns and abnormal operation behaviors;

[0154] Feed the analysis results generated by the data analysis unit back to the policy optimizer to further optimize the system's load balancing strategy and resource allocation plan, and issue instructions to the device based on the optimized load balancing strategy and resource allocation plan to improve the overall performance and stability of the system;

[0155] In addition, the control center also includes a resource monitoring unit and a scheduling unit:

[0156] The resource monitoring unit monitors the usage of system resources in real time, including CPU, memory, network bandwidth, etc., to prevent resource overload and generate feedback information;

[0157] The scheduling unit dynamically adjusts the resource allocation plan of the equipment through a multi-objective optimization algorithm based on the feedback information from the resource monitoring unit to ensure efficient operation of the system and stable access to the equipment;

[0158] The system supports remote management functions, and is connected to the remote management terminal through the network interface to achieve remote monitoring, configuration and upgrade of the device access system, thereby improving the management efficiency and operation and maintenance convenience of the system;

[0159] In addition, the remote management function is combined with a multi-objective optimization algorithm to achieve intelligent control and management of the equipment. The system configuration parameters can be dynamically adjusted through the remote management terminal, and the equipment can be remotely maintained and upgraded.

[0160] The multi-objective optimization algorithm achieves the optimal allocation of device resources through iterative optimization of genetic algorithms, improves the overall performance and management efficiency of the system, and makes resource allocation more optimized; by introducing the above algorithms, this device access system can achieve efficient, secure and intelligent device access and management in complex and diverse device environments.

[0161] Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field and related fields without creative work should fall within the scope of protection of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention are implemented according to the conventional means in the field unless otherwise specified and limited.

Claims

1. A device access method based on protocol conversion, characterized in that: The steps include: Step 1: Connect the device to be connected through the adapted physical interface, and receive the original communication protocol sent by the device according to the physical interface standards of different devices; Step 2: Perform a preliminary analysis on the original communication protocol, extract key fields, and find matching mapping rules based on the extracted key fields, and convert the key fields into standard protocols according to the mapping rules; Step 3: Manage the access and communication status of the device according to the converted standard protocol, then authenticate the connected device and encrypt the communication data; Step 4: Monitor the operating status of the device in real time and dynamically adjust the resource allocation plan of the device.

2. A device access system based on protocol conversion, comprising a protocol conversion module, a device interface module, a communication management module and a control center, characterized in that: The protocol conversion module is used to convert the original communication protocols of different devices into a unified standard protocol; The device interface module is connected to different devices and is used to receive the original communication protocol sent by the device and transmit the original communication protocol to the protocol conversion module for processing; At the same time, the device interface module is also used to receive the target protocol processed by the protocol conversion module and send it to the target device; The communication management module is responsible for managing the access and communication status of the device, including device registration, establishment and maintenance of communication links, and monitoring and recovery of abnormal status; The control center is used to communicate with different devices through standard protocols, monitor the operating status of each device in real time, generate log data, and identify potential problems and abnormal situations in system operation.

3. A device access system based on protocol conversion according to claim 2, characterized in that: The protocol conversion module includes a protocol mapping algorithm, which is used to convert the original communication protocols of different devices into a unified standard protocol; The protocol mapping algorithm includes a protocol parsing unit, a protocol mapping unit, a rule base, and a rule engine: Rule base: stores the mapping rules of the original communication protocols of different devices. Each rule defines the conversion method from the original communication protocol to the standard protocol. The rule base supports dynamic updates, and administrators can add or modify rules to adapt to the access of new devices or new original communication protocols; Rule engine: responsible for converting the key fields parsed from the original communication protocol according to the mapping rules in the rule base; The rule engine uses a forward chain reasoning mechanism to automatically select appropriate mapping rules for conversion based on key fields and generate corresponding rule instructions; Protocol parsing unit: responsible for preliminary parsing of the original communication protocols sent by different devices, extracting key fields in the original communication protocols, and passing them to the rule engine; Protocol mapping unit: used to convert the parsed rule instructions into standard protocols according to the mapping rules generated by the rule engine, and input the standard protocols into the control center; Among them, the protocol mapping unit in the protocol conversion module supports multiple mapping rules: Mapping rules include data field reorganization, format conversion, verification, and calculation.

4. The device access system based on protocol conversion according to claim 3 is characterized in that: The protocol conversion module further includes a protocol library and a dynamic update unit: The protocol library stores the parsing rules of various original communication protocols, and cooperates with the protocol parsing unit to call the parsing rules to complete the preliminary parsing of the original communication protocols sent by different devices; The dynamic update unit is used to update the parsing rules in the protocol library in real time, and automatically update the mapping rules in the rule library to support the access of new devices and new protocols.

5. The device access system based on protocol conversion according to claim 4 is characterized in that: The protocol conversion module also supports bidirectional protocol conversion function: The protocol conversion module can not only convert the original communication protocols of different devices into a unified standard protocol; The protocol conversion module can also remap the data of the standard protocol into the target protocol that the target device can recognize according to the instructions of the control center; Bidirectional protocol conversion function: implemented through the forward chain reasoning mechanism of the rule engine.

6. The device access system based on protocol conversion according to claim 5, characterized in that: The device interface module includes multiple interface standards, and the device interface module realizes access and data transmission of different devices by adapting different physical interfaces; The device interface module cooperates with the protocol conversion module to perform preliminary analysis on the original communication protocol sent by the device through the protocol analysis unit, and then transmits it to the protocol mapping unit for protocol conversion to obtain the standard protocol.

7. A device access system based on protocol conversion according to claim 6, characterized in that: The communication management module further includes a device authentication unit, a communication encryption unit and a communication link maintenance unit: The device authentication unit uses an identity authentication algorithm based on public key infrastructure to authenticate the access device and verify the legitimacy of the device; The authentication algorithm includes: Certificate Manager: Responsible for managing the digital certificates of devices. The certificate manager is based on the PKI system to ensure that the identity of each access device is unique and credible. Authenticator: Uses digital certificates to authenticate access devices; Key Manager: Responsible for the secure management and exchange of keys. Specifically, it is responsible for managing the public and private keys used in the device authentication process. The communication encryption unit is responsible for encrypting the communication data during the data transmission between devices; The communication link maintenance unit adopts a load balancing algorithm based on dynamic scheduling; The load balancing algorithm includes a device status monitor, a load distributor, a scheduling policy library, and a policy optimizer; Equipment status monitor: monitors the communication status of each device in real time and provides monitoring data to the load distributor; Load distributor: dynamically adjusts the communication resources allocated to each device based on the monitoring data provided by the device status monitor and the current system load status; Scheduling strategy library: stores different load balancing strategies, and administrators can select appropriate load balancing strategies according to actual needs; Policy Optimizer: Analyzes monitoring data based on machine learning algorithms and continuously optimizes load balancing strategies.

8. The device access system based on protocol conversion according to claim 7, characterized in that: The communication link maintenance unit also includes a heartbeat detection mechanism: The heartbeat detection mechanism is used to monitor whether the communication link between the device and the system is working properly: When the heartbeat detection mechanism finds that the communication link is abnormal, the communication link maintenance unit will start the link reconstruction process; Combined with the load balancing algorithm, the link reconstruction process will automatically evaluate the current system load status and select the best communication link.

9. A device access system based on protocol conversion according to claim 8, characterized in that: The load balancing algorithm also includes an adaptive adjustment mechanism: The adaptive adjustment mechanism uses the policy optimizer to evaluate the communication requirements of the current device and the load status of the system in real time and dynamically adjust the load balancing strategy; The identity authentication algorithm in the device authentication unit supports a multi-level authentication mechanism: The multi-level authentication mechanism uses different authentication levels according to the importance and security requirements of the device, including simple authentication, enhanced authentication, and two-factor authentication: Among them, in two-factor authentication, in addition to verification based on digital certificates, an additional verification step based on a one-time password is introduced.

10. A device access system based on protocol conversion according to claim 9, characterized in that: The control center includes a device monitoring unit and a log management unit: The equipment monitoring unit is used to monitor the operating status of each device in real time; The log management unit is used to record the operation log and communication log of the device and generate log data; The control center adopts a multi-objective optimization algorithm based on genetic algorithm; The multi-objective optimization algorithm includes an objective function definition unit, a population initialization unit, a genetic operation unit, and a fitness evaluator: Objective function definition unit: define multiple optimization objectives and obtain multiple objective functions; Population initialization unit: The population initialization unit randomly generates several individuals according to the current system status and equipment conditions. Each individual represents a possible resource allocation solution. Genetic operation unit: Genetic operations include selection, crossover and mutation. Individuals with higher fitness are selected for mating to generate the next generation of individuals. The diversity of the population is increased through crossover and mutation operations. Fitness evaluator: evaluates the fitness of each individual according to the objective function and selects individuals with higher fitness to enter the next generation; Iterative optimization: After multiple generations of iterations, the algorithm gradually converges and eventually outputs the optimal resource allocation solution, which is then applied by the control center to the equipment management process. The log management unit also includes a data analysis unit, which identifies potential problems and abnormal conditions in system operation by conducting in-depth analysis of the recorded log data: The data analysis unit uses an anomaly detection algorithm based on machine learning to analyze the operation logs and communication logs of the equipment, generate analysis results, and warn of possible failures in advance by identifying abnormal patterns; Feeding the analysis results generated by the data analysis unit back to the policy optimizer to further optimize the system's load balancing strategy and resource allocation plan, and issuing instructions to the device according to the optimized load balancing strategy and resource allocation plan; In addition, the control center also includes a resource monitoring unit and a scheduling unit: The resource monitoring unit monitors the usage of system resources in real time and generates feedback information; The scheduling unit dynamically adjusts the resource allocation plan of the equipment through a multi-objective optimization algorithm based on the feedback information from the resource monitoring unit.

Citation Information

Patent Citations

  • Cloud computing resource scheduling realization method based on improved genetic algorithm

    CN105740051A

  • Rule formula-based data communication protocol conversion system, decoding method and encoding method

    CN112511416A

  • Multi-protocol conversion access system and method

    CN113938529A

  • Information acquisition equipment based on Internet of Things

    CN117675858A

  • Semantic reasoning model construction and optimization method for Internet of Things metadata

    CN117808003A

Cited By

  • Cross-platform data communication board card data processing method and device

    CN119420785A

  • Cross-platform data communication board data processing method and device

    CN119420785B

  • Data exchange method based on P2P

    CN119728704A

  • Perception terminal data access configuration method and system based on Internet of Things

    CN119854333A

  • A method and system for configuring data access of perception terminals based on the Internet of Things

    CN119854333B