CN-122027713-A - Dynamic adaptation method for intelligent fusion terminal multi-mode function module
Abstract
The application discloses a dynamic adaptation method of an intelligent fusion terminal multi-mode function module, which comprises the steps of deploying a function module adaptation component in the intelligent fusion terminal, acquiring and generating a function list set of the function module from a main station, dynamically and continuously acquiring the state of an expansion interface of hardware equipment, identifying the driving type of an interaction interface of the module, developing a protocol session between the intelligent fusion terminal and an external expansion function module, matching different types of module data interface protocols according to the communication protocol set, providing a unified access interface between an application layer and the module, configuring an application program access service, and distributing corresponding identification equipment codes to the function list and a non-function list attribution module. The intelligent fusion terminal realizes dynamic adaptation of the multi-mode function module, improves the identification efficiency of the external expansion function module, and realizes quick starting of the application program of the intelligent fusion terminal by generating a classification set, identifying the driving type of an interface, matching a protocol, identifying the function and returning to the port, matching a unique equipment code and matching the application program.
Inventors
- CHANG XINGZHI
- MA XIN
- DAI GUOHUA
- Jiang Gun
- LI HONG
- CHANG LE
- LI QIANG
- JIN PENG
- DANG ZHENGJUN
- WANG ZAIWANG
Assignees
- 宁夏隆基宁光仪表股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260415
Claims (10)
- 1. The intelligent fusion terminal multi-mode function module dynamic adaptation method is characterized by comprising the following steps of: step S1, deploying a function module adaptation component in an intelligent fusion terminal, wherein the function module adaptation component acquires and generates a function module function list set from a master station Establishing a module function classification set for the function module function list set Establishing a communication protocol set for an external extension function module communication protocol Acquiring an intelligent fusion terminal application software list set Establishing a knowledge base foundation for dynamic adaptation; step S2, dynamically and continuously acquiring the state of the expansion interface of the hardware equipment, and identifying the driving type of the interaction interface of the module group ; S3, the intelligent fusion terminal and the external extension function module develop protocol session according to the communication protocol set Matching different types of data interface protocols, classifying set by module function Identifying the attribution classification set type of the external expansion function module for searching the library; Step S4, collecting the list of the function modules according to the function types Performing function identification for the search library, and matching the type of the return business function of the external expansion function module; Step S5, searching the intelligent fusion terminal application software list set A unified access interface is provided between an application layer and the module, and an application program access service is configured to enable the external extension function module and the intelligent fusion terminal main body to perform data interaction and business cooperation; And S6, distributing the multi-mode module unique identification equipment codes to the function list attribution module, distributing the temporary identification equipment codes to the non-function list attribution module and reporting the temporary identification equipment codes to the data center.
- 2. The intelligent fusion terminal multi-mode function module dynamic adaptation method according to claim 1, wherein the module function classification set Including communication class module function subset Control class module function subset Computing analysis class module function subset Unknown class module function subset ; The communication module function subset The wireless communication system comprises a wireless public network communication function, a wireless private network communication function, a local dual-mode communication function, an RS-485 communication function, a CAN communication function, an Ethernet communication function, a Bluetooth communication function and a WiFi communication function; the control class module function subset The remote control system comprises a remote signaling function, a local control function and a remote control function; the computing analysis class module function subset The system comprises a power quality analysis function and an AI function; the unknown class of module function subsets Including no communication function and a communicable unidentified function; The function module adapting component distributes a unique module type code for each function subset and consists of 2 bytes, and distributes a unique module function code for each function subset and consists of 2 bytes.
- 3. The method for dynamically adapting multi-mode function modules of intelligent fusion terminal according to claim 1, wherein in step S1, the intelligent fusion terminal application software list set Classifying into basic class application subsets according to software function types Application subset of marketing data collection class Power distribution data collection class application subset Subset of remote interaction class applications Subset of security class applications Computing analysis class application subsets ; The subset of base class applications The system comprises a system management application, a drive management application, a data center application, a local communication management application, a data sampling application and an interface control application; The marketing data collection class application subset The system comprises a marketing data unified acquisition application, a low-voltage data centralized meter reading application and a distributed power management application; the distribution data collection class application subset The system comprises a platform area management application, a distribution equipment interaction application, a sensing equipment interaction application and a control equipment interaction application; the remote interaction class application subset The method comprises the steps of collecting a master station communication application, a power distribution master station communication application and an Internet of things service application; the subset of security class applications The system comprises a safety online monitoring application, a unified safety access suite application and a safety management application; The computational analysis class application subset The system comprises a resource priority scheduling management application, a security chip scheduling application, a station monitoring analysis application and a power quality analysis application; Each application adopts a unique APP ID for data interaction and type identification.
- 4. The method for dynamically adapting the multi-mode function module of the intelligent fusion terminal according to claim 1, wherein in the step S2, the method for matching the driving type comprises: the function module adapting component dynamically and continuously acquires the expansion interface state of the hardware equipment, and utilizes the USB host controller of the operating system to select and call the driver , wherein, For the type of ethernet adaptation, In the case of a serial communication drive type, Is of an unrecognizable type; Aiming at the driving type which can be identified by the functional module adapting component, directly selecting and calling a driving file corresponding to the driving type, and carrying out the next step of communication protocol and type identification operation; aiming at the driving type which cannot be identified by the function module adapting component, extracting the characteristics of the function module, and marking the identification type of the function module as Reporting to a terminal data center by the function module adapting component.
- 5. The method for dynamically adapting the multimode function module of the intelligent fusion terminal according to claim 1, wherein in the step S3, the communication protocol set is used for the communication protocol set Matching different types of data interface protocols is: step S31 based on the drive type output in step S2 Running a driving program corresponding to the driving of the peripheral interface, and driving the expansion module data interaction interface; step S32, inquiring the communication protocol set The communication protocol matching of the expansion module is carried out in a table look-up and polling interaction mode, each type of protocol selects two modes of broadcasting read communication address and point-to-point read communication address to interact 3 times, the reading waiting period is 300 milliseconds, the data is completely returned after receiving the returned data in the process, and the maximum message return waiting time interval is 2 seconds; Communication protocol set The method comprises the steps that DL/T698.45-2017、DL/T 645-2007、DL/T 645-1997、DL/T 842、IEC 60870-5-101:2002、IEC 60870-5-104:2000、MQTT、MODBUS、DL/T 698.42-2013、DL/T 698.44-2016、DL/T 698.46-2016,, a module adapter identifies a communication protocol newly added by a terminal in a file loading mode, files the communication protocol to a communication protocol set G, and performs classification marking according to a protocol selectable driving type; The capability discovery stage comprises the steps that a function module adaptation component not only identifies a communication protocol but also further analyzes and extracts atomic capabilities provided by the expansion module through multi-mode interaction, wherein the atomic capabilities comprise one or more of data acquisition capability, protocol conversion capability, calculation analysis capability and control execution capability, and a structured capability descriptor is generated for each atomic capability; Step S34, registering and modeling the extracted all atomic capabilities and descriptors thereof to a dynamic capability resource pool of the terminal, and constructing a capability map of the expansion module; step S35, when the application software needs to call the peripheral functions, declaring the required capacity requirement combination to the function module adapting component; Step S36, dynamically matching and instantiating, namely, a service arrangement engine in a function module adapting component performs inquiry and matching in the dynamic capacity resource pool according to the capacity demand combination, selects atomic capacity meeting the demand from a single or a plurality of expansion modules, and dynamically combines and instantiates one or a plurality of executable service instances facing to the application; and step S37, providing a unified interface, wherein a hardware abstraction layer dynamically generates a unified access interface matched with the application requirement according to the configuration of the service instance, and calling application software to complete data interaction and business cooperation.
- 6. The method for dynamically adapting a multi-mode function module of an intelligent fusion terminal according to claim 5, wherein in step S32, the module communication protocol matching operation further comprises an intelligent matching step: Step S32a, the function module adaptation component starts a built-in protocol classification model while looking up the table and polling interaction; Step S32b, the protocol classification model extracts the following characteristics of the communication interaction message, namely the message length sequence statistical characteristics, the byte value distribution characteristics, the fixed position byte mode characteristics and the interaction time sequence characteristics; Step S32c, the protocol classification model outputs a matched protocol family type, a key communication parameter analysis result and a matching confidence level based on the characteristics; step S32d, if the matching confidence is higher than a first threshold, preferentially adopting the protocol family and parameters output by the model to communicate, and marking the module as a model identification protocol; if the table look-up polling is successful and the model confidence is low, adopting a table look-up result, taking the interactive message as a training sample, and updating the local protocol classification model; if both fail, but the interaction between the module and the application is stable, an active learning process is started, and the communication mode of the module is recorded as a terminal self-adaptive protocol.
- 7. The method for dynamically adapting the multi-mode functional module of the intelligent fusion terminal according to claim 6, wherein in the step S32c, the method for outputting the matching confidence level by the protocol classification model comprises the following steps: Step S32c1, calculating the confidence coefficient of the statistical characteristic based on the statistical characteristic of the message, wherein the statistical characteristic of the message at least comprises byte value distribution similarity, message length distribution matching degree and verification result; Step S32c2, calculating the confidence coefficient of the structural feature based on the structural feature of the message, wherein the structural feature of the message at least comprises the matching degree of the frame head and the frame tail, the field boundary recognition result and the fixed length/variable length mode of the message; Step S32c3, calculating behavior feature confidence coefficient based on the interactive behavior features, wherein the interactive behavior features at least comprise request-response mode matching degree, time sequence features and state transition consistency; Step S32c4, calculating response verification confidence based on a response verification result, wherein the response verification at least comprises command success rate, data semantic rationality and multi-command consistency; And step S32c5, carrying out weighted fusion on the statistical feature confidence coefficient, the structural feature confidence coefficient, the behavior feature confidence coefficient and the response verification confidence coefficient to generate a final matching confidence coefficient.
- 8. The intelligent fusion terminal multi-mode function module dynamic adaptation method according to claim 6, wherein the step S4 function identification method is as follows: aiming at the communicable function module, the module communication protocol output in the step S32 is called by the function module adapting component, and equipment service function data reading and service control return instruction interaction are carried out according to the function type of the external extension function module; The function module adaptation component analyzes the application type and identifies the application function based on the function type, the protocol type and the instruction response characteristic of the external extension function module.
- 9. The method for dynamically adapting the multi-mode function module of the intelligent fusion terminal according to claim 7, further comprising the step S4a of learning the function behaviors and constructing the portrait, specifically: for an expansion module which is accessed and performs business cooperation, the function module adaptation component continuously monitors a data interaction instruction sequence and a response mode between the function module adaptation component and one or more application software; based on the monitoring data, extracting atomic capability characteristics, control response characteristics and service association characteristics of the expansion module; Dynamically constructing and updating a functional portrait of the expansion module according to the characteristics, wherein the functional portrait at least comprises an inferred atomic capability list, a behavior pattern description and association relations with other applications or modules; And optimizing the application service configured for the expansion module according to the updated function representation, wherein the optimization comprises the steps of adjusting a data access path, finding out an undefined potential function or generating equipment state early warning.
- 10. The method for dynamically adapting the multi-mode function module of the intelligent fusion terminal according to claim 1, 2, 3 or 7, wherein the method for generating the unique identification device code in step S6 is as follows: S61, the functional module adapting component and the expansion module perform security authentication, acquire and verify the hardware security identity of the functional module adapting component and the expansion module, and generate an untampered identity code; S62, generating a baseline capacity code comprising a module type code, a function code, a communication protocol identifier and an initial application identifier based on the identification and matching results of the step S3 and the step S4; S63, if the expansion module triggers functional behavior learning, adding a version number and a content abstract of a learning result image to form a dynamic learning abstract; S64, combining and signing the identity code, the baseline capacity code and the dynamic learning abstract by a security chip of the intelligent fusion terminal to generate a dynamic capacity certificate with a valid period and a permission identifier, wherein the dynamic capacity certificate is used as a unique identification equipment code of the expansion module; The method comprises the steps of issuing a long-term certificate with high authority to a function list attribution module, issuing a temporary certificate with limited authority to a non-function list attribution module, and upgrading the temporary certificate into the long-term certificate after behavior learning of the temporary certificate reaches the standard.
Description
Dynamic adaptation method for intelligent fusion terminal multi-mode function module Technical Field The invention relates to the technical field of intelligent fusion terminal function expansion and module adaptation, in particular to a dynamic adaptation method of an intelligent fusion terminal multi-mode function module. Background The intelligent fusion terminal is different from traditional concentrator, power equipment such as district distribution terminal, and it has abandoned traditional fixed form's such as wire communication, switching value, pulse hardware interface, adopts modularized design scheme and container technique to dispose all kinds of expanded functions as required, has characteristics such as the two-way decoupling of hardware and software, the type of hardware interface is diversified, software business APP ization, operating system platform safety reinforcement. The intelligent fusion terminal is used as core intelligent equipment of a power distribution station, integrates multiple functions such as low-voltage data collection, power distribution station management, power distribution station running state monitoring, distributed energy management and the like, needs to be accessed and managed with various external functional modules such as a remote signaling pulse module, an RS-485 module, a local dual-mode communication module, an Ethernet communication module, a 4G/5G remote communication module and the like, has different interface driving types (such as Ethernet, serial ports and the like), has various communication protocols (such as DL/T698.45, modbus, IEC 104 and the like), and has different functions and service attribution. In the prior art, the management of the external module by the intelligent fusion terminal generally adopts a static configuration mode, and all the drivers, protocol analysis libraries and corresponding application association relations of the possible access modules need to be burnt in the terminal in advance. The interface adaptation of the terminal expansion module is of a non-uniform rule, the binding of the module and the application is static, the module capacity can not be dynamically combined according to the real-time service requirement, the multifunctional potential of the module can not be exerted, the terminal expansion module can not be suitable for newly-appearing and non-predefined modules, and the expansibility is severely limited. The problems that the intelligent fusion terminal is difficult to identify, the software interface adapting efficiency is low, the communication protocol and the function application are called incorrectly, repeated invalid interaction is easy to occur, and the operation and maintenance cost of the module is increased. Therefore, an adaptation method capable of realizing automatic discovery, intelligent identification, secure access and dynamic capacity arrangement of modules is needed, so that the openness, flexibility and intelligence level of the intelligent fusion terminal are improved. Disclosure of Invention The application aims to provide a dynamic adaptation method for a multi-mode function module of an intelligent fusion terminal, which aims to overcome the defects of the existing intelligent fusion terminal module adaptation technology and solve the problems of difficult recognition of an external module, low software interface adaptation efficiency, wrong communication protocol and function application call and repeated invalid interaction. In order to solve the technical problems, the application provides a dynamic adaptation method of an intelligent fusion terminal multi-mode function module, which comprises the following steps: step S1, deploying a function module adaptation component in an intelligent fusion terminal, wherein the function module adaptation component acquires and generates a function module function list set from a master station Establishing a module function classification set for the function module function list setEstablishing a communication protocol set for an external extension function module communication protocolAcquiring an intelligent fusion terminal application software list setEstablishing a knowledge base foundation for dynamic adaptation; step S2, dynamically and continuously acquiring the state of the expansion interface of the hardware equipment, and identifying the driving type of the interaction interface of the module group ; S3, the intelligent fusion terminal and the external extension function module develop protocol session according to the communication protocol setMatching different types of data interface protocols, classifying set by module functionIdentifying the attribution classification set type of the external expansion function module for searching the library; Step S4, collecting the list of the function modules according to the function types Performing function identification for the search library, and matching the type of the return