Method and system for automatically establishing TR069 data model and readable storage medium
Through CPE, error information is automatically recorded and missing nodes or parameter paths are extracted, and data models are automatically created and added, which solves the problem of relying on field debugging in the existing technology, and improves the development efficiency and communication capabilities of the TR069 data model.
Patent Information
- Application Number
- CN202510178785.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2045-02-18
AI Technical Summary
The prior art relies on repeated debugging on the spot when automatically establishing the TR069 data model, resulting in low development efficiency, high labor and time costs, and the equipment cannot be successfully connected to the ACS.
Automatically record error information through CPE, extract the missing TR069 nodes or parameter paths, automatically create and add data models, restart the registration process until there is no error, and functional development of new nodes or parameters.
The system development efficiency of automatically establishing the TR069 data model is improved, and the investment in manpower and time costs is reduced, and the problems of difficulty in connecting the TR069 data model and ACS and long development cycle are solved.
Smart Images

Figure CN120034446A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and more specifically, to a method, a system, and a readable storage medium for automatically establishing a TR069 data model. Background Art
[0002] TR069 technology is widely used in network deployment at home and abroad. Different broadband network operators have different definitions of data models. In addition to implementing standard data models such as TR098, TR181 and TR143, they will also expand the standard protocol according to their own needs. Even the same operator may design data models differently in different countries, provinces, cities or regions. These differences will cause system manufacturers who automatically establish TR069 data models to encounter many technical problems in communication testing in the early stages of centralized procurement and network access testing, such as the inability to register on the operator's ACS platform, the inability to fully receive the configuration issued by the platform, or the inability to display the specified parameter information on the platform.
[0003] Usually, the TR069 functions developed by equipment manufacturers are designed according to the standard documents for data model design. If the data model needs to be expanded, the development documents must be obtained from the operator, and then the software development is carried out according to the documents. However, in some cases, the equipment manufacturer does not have complete relevant documents, which leads to the need to spend a certain amount of manpower and time in the early development stage to debug on the operator's platform and connect the relevant nodes or parameters one by one. Many technical problems may be encountered, and even the equipment cannot be successfully connected with the ACS.
[0004] Take ACS setting CPE parameters as an example. Figure 1 As shown in the figure, the traditional ACS configuration CPE process is roughly divided into six steps:
[0005] Step 1: The CPE sends an Inform message to initiate the registration process to the ACS.
[0006] Step 2: ACS and CPE initiate authentication requests to each other;
[0007] Step 3: After authentication, ACS starts to send configuration to CPE;
[0008] Step 4: CPE checks whether it receives error information. If no error occurs, it continues with the following steps; if an error occurs, it jumps to step 6;
[0009] Step 5: After all configurations are delivered, the ACS confirms that the CPE registration is successful and the process ends;
[0010] Step 6: ACS determines that CPE registration fails and ends the process.
[0011] In the above process, if any error occurs in step 2 or step 3, the registration process will be terminated, so that the CPE device cannot work normally on the ACS platform and various network services cannot provide services to users.
[0012] However, the prior art has the problem of relying on repeated on-site debugging. Therefore, how to design a method for automatically establishing a TR069 data model is a technical problem that urgently needs to be solved in the field of this technology. Summary of the invention
[0013] In order to solve the problem that the prior art relies on repeated on-site debugging, the present invention provides a method, system, and readable storage medium for automatically establishing a TR069 data model, which has the characteristics of improving the development efficiency of the system for automatically establishing a TR069 data model and reducing its investment in manpower and time costs.
[0014] In order to achieve the above-mentioned purpose of the present invention, the technical scheme adopted is as follows:
[0015] A method for automatically establishing a TR069 data model comprises the following steps:
[0016] S1. The solution implementation device CPE initiates the registration process of the TR069 data model to the automatic configuration server ACS;
[0017] S2. CPE checks whether error information is received. If so, it automatically saves the error information including the error code. Otherwise, it jumps to step S8.
[0018] S3. Extract the missing TR069 node or parameter path from the error message;
[0019] S4. CPE disconnects from ACS.
[0020] S5. Automatically create a new TR069 node or parameter corresponding to the missing path according to the extracted path;
[0021] S6. Re-initiate the registration process until no error is returned;
[0022] S7. Develop the functionality of new nodes or parameters to validate the configuration issued by ACS.
[0023] S8. ACS confirms that CPE registration is successful and the TR069 data model is established.
[0024] Preferably, the solution implementation device CPE initiates a registration process of the TR069 data model to the automatic configuration server ACS, and the specific steps are:
[0025] The CPE sends an Inform message to the ACS through the HTTP protocol.
[0026] ACS and CPE initiate authentication requests to each other;
[0027] After authentication is successful, the ACS starts delivering configurations to the CPE.
[0028] Furthermore, the CPE automatically saves the error information including the error code. The specific steps are as follows:
[0029] During the configuration delivery process of ACS, SOAP format messages containing error codes are captured in real time.
[0030] The message in the SOAP format is stored in either a local database or a log file.
[0031] Furthermore, the specific steps of extracting the path of the missing TR069 node or parameter from the error message are:
[0032] Parse the error return code in the stored SOAP format message;
[0033] Either by matching the XML structure with a regular expression or with a parser, locate the complete path to the missing node or parameter.
[0034] Furthermore, the specific steps of automatically creating a new TR069 node or parameter corresponding to the missing path according to the extracted path include:
[0035] Based on the extracted path, an XML template that complies with the TR069 data model specification is generated;
[0036] The XML template is dynamically inserted into the existing TR069 data model of the CPE.
[0037] Furthermore, the process of re-initiating registration includes:
[0038] Reset the registration status of the CPE after each automatic creation of a new node or parameter;
[0039] Re-execute the Inform message sending, authentication, and configuration delivery process.
[0040] Furthermore, the functional development of newly added nodes or parameters includes:
[0041] Match the corresponding parameters in the device CPE configuration file for the newly added node. If the parameter exists, connect to the read and write interface of the parameter; if the parameter does not exist, add the parameter to the device CPE configuration file and connect to the read and write interface of the newly added parameter;
[0042] Verify the compatibility of the newly added node with the ACS platform.
[0043] A system for automatically establishing a TR069 data model includes a communication module, an error handling module, a loop control module, and a configuration validation module:
[0044] The communication module is used to initiate a registration process of a TR069 data model to an automatic configuration server ACS through a solution implementation device CPE, and to control the connection between the CPE and the ACS;
[0045] The error handling module is used for the CPE to check whether an error message is received, and if so, automatically save the error message including the error code, and extract the missing TR069 node or parameter path from the error message;
[0046] The configuration validation module is used to automatically create missing TR069 nodes or parameters according to the parsing results, and to perform functional development on new nodes or parameters to validate the configuration issued by the ACS;
[0047] The loop control module is used to control the repeated execution of the registration process until there is no error return.
[0048] Preferably, the configuration validation module further includes:
[0049] An XML template generation unit, used for generating an XML fragment conforming to the TR069 specification based on a path;
[0050] A dynamic insertion unit is used to integrate the XML fragment into an existing data model of the device.
[0051] A computer-readable storage medium stores a computer program, and when the program is executed by a processor, the method for automatically establishing a TR069 data model is implemented.
[0052] The beneficial effects of the present invention are as follows:
[0053] The present invention discloses a method for automatically establishing a TR069 data model. In the interaction process between an ACS and a CPE, the CPE automatically records error information, lists missing TR069 nodes or parameters according to the error information, and automatically adds a data model. Then, function development is performed on the newly added nodes or parameters, and the configuration sent by the ACS is effective, or parameter values to be read are provided. Thus, the present invention solves the problems of difficulty in communicating between the TR069 data model and the ACS, long development cycle, etc. By using this method, the development efficiency of a system for automatically establishing a TR069 data model can be improved, the investment of manpower and time costs can be reduced, and the product can be quickly put on the market. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1This is a schematic diagram of the traditional ACS configuration CPE process.
[0055] Figure 2 It is a flowchart of a method for automatically establishing a TR069 data model.
[0056] Figure 3 It is a system block diagram of a method for automatically establishing a TR069 data model. DETAILED DESCRIPTION
[0057] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0058] Example 1
[0059] like Figure 2 As shown, a method for automatically establishing a TR069 data model comprises the following steps:
[0060] S1. The solution implementation device CPE initiates the registration process of the TR069 data model to the automatic configuration server ACS;
[0061] S2. CPE checks whether error information is received. If so, it automatically saves the error information including the error code. Otherwise, it jumps to step S8.
[0062] S3. Extract the missing TR069 node or parameter path from the error message;
[0063] S4. CPE disconnects from ACS.
[0064] S5. Automatically create a new TR069 node or parameter corresponding to the missing path according to the extracted path;
[0065] S6. Re-initiate the registration process until no error is returned;
[0066] S7. Develop the functionality of new nodes or parameters to validate the configuration issued by ACS.
[0067] S8. ACS confirms that CPE registration is successful and the TR069 data model is established.
[0068] In this embodiment, as shown in Table 1, the TR069 data model development method proposed by the present invention is compared with the traditional method:
[0069] Table 1
[0070]
[0071] Example 2
[0072] In a specific embodiment, the solution implementation device CPE initiates a registration process of the TR069 data model to the automatic configuration server ACS, and the specific steps are:
[0073] The CPE sends an Inform message to the ACS through the HTTP protocol.
[0074] ACS and CPE initiate authentication requests to each other;
[0075] After authentication is successful, the ACS starts delivering configurations to the CPE.
[0076] In a specific embodiment, the CPE automatically saves the error information including the error code, and the specific steps are:
[0077] During the configuration delivery process of ACS, SOAP format messages containing error codes are captured in real time.
[0078] The message in the SOAP format is stored in either a local database or a log file.
[0079] In a specific embodiment, the specific steps of extracting the path of the missing TR069 node or parameter from the error information are:
[0080] Parse the error return code in the stored SOAP format message;
[0081] Either by matching the XML structure with a regular expression or with a parser, locate the complete path to the missing node or parameter.
[0082] In a specific embodiment, the specific steps of automatically creating a new TR069 node or parameter corresponding to the missing path according to the extracted path include:
[0083] Based on the extracted path, an XML template that complies with the TR069 data model specification is generated;
[0084] The XML template is dynamically inserted into the existing TR069 data model of the CPE.
[0085] In a specific embodiment, the process of re-initiating registration includes:
[0086] Reset the registration status of the CPE after each automatic creation of a new node or parameter;
[0087] Re-execute the Inform message sending, authentication, and configuration delivery process.
[0088] In a specific embodiment, the functional development of the newly added nodes or parameters includes:
[0089] Match the corresponding parameters in the device CPE configuration file for the newly added node. If the parameter exists, connect to the read and write interface of the parameter; if the parameter does not exist, add the parameter to the device CPE configuration file and connect to the read and write interface of the newly added parameter;
[0090] Verify the compatibility of the newly added node with the ACS platform.
[0091] In a specific embodiment, the method sets a maximum iteration number threshold during the cyclic registration process, and if the registration is not successful after reaching the threshold, a manual intervention reminder is triggered.
[0092] In this embodiment, compared with the traditional method, an automatic error correction function is added on the basis of error checking, so as to achieve communication debugging with the ACS with reduced manual intervention.
[0093] Example 3
[0094] A system for automatically establishing a TR069 data model includes a communication module, an error handling module, a loop control module, and a configuration validation module:
[0095] The communication module is used to initiate a registration process of a TR069 data model to an automatic configuration server ACS through a solution implementation device CPE, and to control the connection between the CPE and the ACS;
[0096] The error handling module is used for the CPE to check whether an error message is received, and if so, automatically save the error message including the error code, and extract the missing TR069 node or parameter path from the error message;
[0097] The configuration validation module is used to automatically create missing TR069 nodes or parameters according to the parsing results, and to perform functional development on new nodes or parameters to validate the configuration issued by the ACS;
[0098] The loop control module is used to control the repeated execution of the registration process until there is no error return.
[0099] In a specific embodiment, the configuration validation module further includes:
[0100] An XML template generation unit, used for generating an XML fragment conforming to the TR069 specification based on a path;
[0101] A dynamic insertion unit is used to integrate the XML fragment into an existing data model of the device.
[0102] Example 4
[0103] A computer-readable storage medium stores a computer program, and when the program is executed by a processor, the method for automatically establishing a TR069 data model is implemented.
[0104] Obviously, the above embodiments of the present invention are only examples for clearly explaining the present invention, and are not intended to limit the implementation methods of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention shall be included in the protection scope of the claims of the present invention.
Claims
1. A method for automatically establishing a TR069 data model, characterized in that: The following steps are involved: S1. The solution implementation device CPE initiates the registration process of the TR069 data model to the automatic configuration server ACS; S2. CPE checks whether error information is received. If so, it automatically saves the error information including the error code. Otherwise, it jumps to step S8. S3. Extract the missing TR069 node or parameter path from the error message; S4. CPE disconnects from ACS. S5. Automatically create a new TR069 node or parameter corresponding to the missing path according to the extracted path; S6. Re-initiate the registration process until no error is returned; S7. Develop the functionality of new nodes or parameters to validate the configuration issued by ACS. S8. ACS confirms that CPE registration is successful and the TR069 data model is established.
2. The method for automatically establishing a TR069 data model according to claim 1, characterized in that: The CPE initiates the registration process of the TR069 data model to the automatic configuration server ACS through the solution implementation device. The specific steps are as follows: The CPE sends an Inform message to the ACS through the HTTP protocol. ACS and CPE initiate authentication requests to each other; After authentication is successful, the ACS starts delivering configurations to the CPE.
3. The method for automatically establishing a TR069 data model according to claim 2, characterized in that: The CPE automatically saves the error information including the error code. The specific steps are as follows: During the configuration delivery process of ACS, SOAP format messages containing error codes are captured in real time. The message in the SOAP format is stored in either a local database or a log file.
4. The method for automatically establishing a TR069 data model according to claim 3, characterized in that: The specific steps of extracting the path of the missing TR069 node or parameter from the error message are: Parse the error return code in the stored SOAP format message; Either by matching the XML structure with a regular expression or with a parser, locate the complete path to the missing node or parameter.
5. The method for automatically establishing a TR069 data model according to claim 1, characterized in that: The specific steps of automatically creating a new TR069 node or parameter corresponding to the missing path according to the extracted path include: generating an XML template that complies with the TR069 data model specification based on the extracted path; The XML template is dynamically inserted into the existing TR069 data model of the CPE.
6. The method for automatically establishing a TR069 data model according to claim 1, characterized in that: The process of re-initiating registration includes: Reset the registration status of the CPE after each automatic creation of a new node or parameter; Re-execute the Inform message sending, authentication, and configuration delivery process.
7. The method for automatically establishing a TR069 data model according to claim 1, characterized in that: Functional development of new nodes or parameters includes: Match the corresponding parameters in the device CPE configuration file for the newly added node. If the parameter exists, connect to the read and write interface of the parameter; if the parameter does not exist, add the parameter to the device CPE configuration file and connect to the read and write interface of the newly added parameter; Verify the compatibility of the newly added node with the ACS platform.
8. A system for automatically establishing a TR069 data model, characterized in that: Including communication module, error handling module, loop control module, and configuration validation module: The communication module is used to initiate a registration process of a TR069 data model to an automatic configuration server ACS through a solution implementation device CPE, and to control the connection between the CPE and the ACS; The error handling module is used for the CPE to check whether an error message is received, and if so, automatically save the error message including the error code, and extract the missing TR069 node or parameter path from the error message; The configuration validation module is used to automatically create missing TR069 nodes or parameters according to the parsing results, and to perform functional development on new nodes or parameters to validate the configuration issued by the ACS; The loop control module is used to control the repeated execution of the registration process until there is no error return.
9. The system for automatically establishing a TR069 data model according to claim 8, characterized in that: The configuration validation module further includes: An XML template generation unit, used for generating an XML fragment conforming to the TR069 specification based on a path; A dynamic insertion unit is used to integrate the XML fragment into an existing data model of the device.
10. A computer-readable storage medium, characterized in that: A computer program is stored, and when the program is executed by a processor, the method for automatically establishing a TR069 data model as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
CPE and ACS remote configuration method, device and system
CN108282363A
Method and device for acquiring state of customer premise equipment and automatic configuration server
CN108881343A
Cloud management method of box-type switch, switch, server and platform
CN110213340A
Performance parameter monitoring method based on TR069 protocol
CN112564976A
Method for realizing interaction between APK and ACS by packaging TR069 message
CN112910884A