Method, system and readable storage medium for automatically establishing a tr069 data model
By automatically recording and processing error information through CPE, and creating missing TR069 nodes or parameters, the difficulties in on-site debugging for equipment manufacturers when developing TR069 data models are solved, achieving an efficient automatic creation process and reducing costs and time investment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2026-03-31
AI Technical Summary
In existing technologies, equipment manufacturers need to rely on repeated on-site debugging when developing the TR069 data model, which leads to high manpower and time costs, and the equipment cannot be successfully connected to ACS.
The CPE automatically records error information, extracts missing TR069 nodes or parameter paths, automatically creates and develops new nodes or parameters until registration is successful, thus automatically establishing the TR069 data model.
This improved the development efficiency of the TR069 data model, reduced manpower and time costs, and ensured that the equipment could be quickly and successfully integrated with ACS.
Smart Images

Figure CN120034446B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network communication technology, and more specifically, to a method, system, and readable storage medium for automatically establishing a TR069 data model. Background Technology
[0002] TR069 technology is widely used in network deployments both domestically and internationally. Different broadband network operators define their data models differently, extending standard protocols beyond standard models such as TR098, TR181, and TR143 to meet their specific needs. Even within the same operator, data models may vary across different countries, provinces, or regions. These variations present numerous technical challenges for system manufacturers that automatically build TR069 data models during early stages such as centralized procurement and network access testing. These challenges include difficulties registering with the operator's ACS platform, failing to fully receive configurations from the platform, and being unable to display specified parameter information on the platform.
[0003] Typically, equipment manufacturers develop TR069 functions based on data model designs using standard documentation. If expansion of the data model is required, development documentation must be obtained from the operator, and software development must proceed accordingly. However, in some cases, equipment manufacturers lack complete documentation, leading to significant time and manpower expenditure in the early development phase for debugging on the operator's platform, meticulously connecting relevant nodes and parameters one by one. This can present numerous technical challenges and may even prevent the equipment from successfully interfacing with the ACS.
[0004] Taking ACS CPE parameter settings as an example, such as Figure 1 As shown, the traditional ACS CPE configuration process generally consists of six steps:
[0005] Step 1: The CPE sends an Inform message to initiate the registration process with the ACS;
[0006] Step 2: The ACS and CPE initiate authentication requests to each other;
[0007] Step 3: After successful authentication, ACS begins sending configurations to CPE;
[0008] Step 4: The CPE checks if it has received an error message. If no error occurs, continue to the following steps; if an error occurs, skip to step 6.
[0009] Step 5: After all configurations have been distributed, ACS confirms successful CPE registration and ends the process;
[0010] Step 6: ACS determines that CPE registration has failed and ends the process.
[0011] In the above process, if any error occurs in steps two or three, the registration process will be terminated, and the CPE device will not be able to work properly on the ACS platform, and various network services will not be able to provide services to users.
[0012] However, existing technologies rely on repeated on-site debugging. Therefore, designing a method to automatically build a TR069 data model is a technical problem that urgently needs to be solved in this field. Summary of the Invention
[0013] To address the problem of existing technologies relying on repeated on-site debugging, this invention provides a method, system, and readable storage medium for automatically establishing TR069 data models. These features improve the development efficiency of systems that automatically establish TR069 data models and reduce the input of manpower and time costs.
[0014] To achieve the above-mentioned objectives of this invention, the technical solution adopted is as follows:
[0015] A method for automatically building a TR069 data model includes the following steps:
[0016] S1. The CPE device implementing the solution initiates the TR069 data model registration process to the ACS automatic configuration server;
[0017] S2. CPE checks whether an error message has been received. If it exists, it automatically saves the error message containing the error code; otherwise, it jumps to step S8.
[0018] S3. Extract the path of the missing TR069 node or parameter from the error message;
[0019] S4, CPE disconnects from ACS;
[0020] S5. Automatically create new TR069 nodes or parameters corresponding to the missing paths based on the extracted paths;
[0021] S6. Re-initiate the registration process until no errors are returned;
[0022] S7. Develop new functionalities for nodes or parameters and apply the configurations issued by ACS.
[0023] S8 and ACS confirm successful CPE registration and establish the TR069 data model.
[0024] Preferably, the CPE (Content Premises Equipment) initiates the TR069 data model registration process to the ACS (Automatic Configuration Server), with the following steps:
[0025] CPE sends an Inform message to ACS via HTTP protocol;
[0026] The ACS and CPE initiate authentication requests to each other;
[0027] After successful authentication, ACS begins sending configurations to CPE.
[0028] Furthermore, the CPE automatically saves error information including error codes. The specific steps are as follows:
[0029] During the ACS configuration distribution process, SOAP format messages containing error codes are captured in real time.
[0030] Store the SOAP formatted message in either a local database or a log file.
[0031] Furthermore, the specific steps for extracting the path of the missing TR069 node or parameter from the error information are as follows:
[0032] Parse the error return codes in the stored SOAP format messages;
[0033] Locate the complete path of missing nodes or parameters by matching the XML structure using either regular expressions or a parser.
[0034] Furthermore, the specific steps for automatically creating new TR069 nodes or parameters corresponding to the missing paths based on the extracted paths include:
[0035] Based on the extracted path, an XML template conforming to 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 CPE's registration status after each automatic creation of a new node or parameter;
[0039] Re-execute the Inform message sending, authentication, and configuration distribution process.
[0040] Furthermore, the functional development of new nodes or parameters includes:
[0041] To match the new node with the corresponding parameters in the device CPE configuration file, if the parameter exists, then interface with the read / write interface of that parameter; if the parameter does not exist, then add the parameter in the device CPE configuration file and interface with the read / write interface of the new parameter.
[0042] Verify the compatibility of the newly added node with the ACS platform.
[0043] A system for automatically building a TR069 data model includes a communication module, an error handling module, a loop control module, and a configuration activation module.
[0044] The communication module is used to initiate the TR069 data model registration process from the implementation device CPE to the automatic configuration server ACS, and to control the connection between the CPE and the ACS;
[0045] The error handling module is used by the CPE to check whether an error message has been received. If an error message is received, it automatically saves the error message containing the error code, as well as the path to extract the missing TR069 node or parameter from the error message.
[0046] The configuration activation module is used to automatically create missing TR069 nodes or parameters based on the parsing results, and to develop the functionality of new nodes or parameters, and to activate the configuration issued by ACS.
[0047] The loop control module is used to control the repeated execution of the registration process until no errors are returned.
[0048] Preferably, the configuration activation module further includes:
[0049] The XML template generation unit is used to generate XML fragments that conform to the TR069 specification based on the path.
[0050] A dynamic insertion unit is used to integrate the XML fragment into the device's existing data model.
[0051] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the method for automatically building the TR069 data model.
[0052] The beneficial effects of this invention are as follows:
[0053] This invention discloses a method for automatically establishing a TR069 data model. During the interaction between the ACS and CPE, the CPE automatically records error information, lists missing TR069 nodes or parameters based on the error information, and automatically adds them to the data model. Then, the newly added nodes or parameters are functionally developed to activate the configuration issued by the ACS or provide the parameter values that need to be read. Thus, this invention solves the problems of difficulty in communicating between the TR069 data model and the ACS, and long development cycles. Using this method, the development efficiency of the system for automatically establishing the TR069 data model can be improved, the input of manpower and time costs can be reduced, and the product can be quickly launched to the market. Attached Figure Description
[0054] Figure 1This is a schematic diagram of the traditional ACS configuration CPE process.
[0055] Figure 2 This is a flowchart illustrating the method for automatically building the TR069 data model.
[0056] Figure 3 This is a system block diagram of the method for automatically building the TR069 data model. Detailed Implementation
[0057] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments.
[0058] Example 1
[0059] like Figure 2 As shown, a method for automatically building a TR069 data model includes the following steps:
[0060] S1. The CPE device implementing the solution initiates the TR069 data model registration process to the ACS automatic configuration server;
[0061] S2. CPE checks whether an error message has been received. If it exists, it automatically saves the error message containing the error code; otherwise, it jumps to step S8.
[0062] S3. Extract the path of the missing TR069 node or parameter from the error message;
[0063] S4, CPE disconnects from ACS;
[0064] S5. Automatically create new TR069 nodes or parameters corresponding to the missing paths based on the extracted paths;
[0065] S6. Re-initiate the registration process until no errors are returned;
[0066] S7. Develop new functionalities for nodes or parameters and apply the configurations issued by ACS.
[0067] S8 and ACS confirm successful CPE registration and establish the TR069 data model.
[0068] In this embodiment, as shown in Table 1, the development method of the TR069 data model proposed in this invention is compared with the traditional method:
[0069] Table 1
[0070]
[0071] Example 2
[0072] In one specific embodiment, the CPE (Content Premises Equipment) initiates a registration process for the TR069 data model with the Auto Configuration Server (ACS). The specific steps are as follows:
[0073] CPE sends an Inform message to ACS via HTTP protocol;
[0074] The ACS and CPE initiate authentication requests to each other;
[0075] After successful authentication, ACS begins sending configurations to CPE.
[0076] In one specific embodiment, the CPE automatically saves error information containing error codes, and the specific steps are as follows:
[0077] During the ACS configuration distribution process, SOAP format messages containing error codes are captured in real time.
[0078] Store the SOAP formatted message in either a local database or a log file.
[0079] In one specific embodiment, the specific steps for extracting the path of the missing TR069 node or parameter from the error information are as follows:
[0080] Parse the error return codes in the stored SOAP format messages;
[0081] Locate the complete path of missing nodes or parameters by matching the XML structure using either regular expressions or a parser.
[0082] In one specific embodiment, the steps for automatically creating a new TR069 node or parameter corresponding to the missing path based on the extracted path include:
[0083] Based on the extracted path, an XML template conforming to 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 one specific embodiment, the process of re-initiating registration includes:
[0086] Reset the CPE's registration status after each automatic creation of a new node or parameter;
[0087] Re-execute the Inform message sending, authentication, and configuration distribution process.
[0088] In one specific embodiment, the functional development of adding new nodes or parameters includes:
[0089] To match the new node with the corresponding parameters in the device CPE configuration file, if the parameter exists, then interface with the read / write interface of that parameter; if the parameter does not exist, then add the parameter in the device CPE configuration file and interface with the read / write interface of the new parameter.
[0090] Verify the compatibility of the newly added node with the ACS platform.
[0091] In one specific embodiment, the method sets a maximum iteration threshold during the cyclic registration process. If registration is still unsuccessful 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 complete the communication debugging with ACS with reduced manual intervention.
[0093] Example 3
[0094] A system for automatically building a TR069 data model includes a communication module, an error handling module, a loop control module, and a configuration activation module.
[0095] The communication module is used to initiate the TR069 data model registration process from the implementation device CPE to the automatic configuration server ACS, and to control the connection between the CPE and the ACS;
[0096] The error handling module is used by the CPE to check whether an error message has been received. If an error message is received, it automatically saves the error message containing the error code, as well as the path to extract the missing TR069 node or parameter from the error message.
[0097] The configuration activation module is used to automatically create missing TR069 nodes or parameters based on the parsing results, and to develop the functionality of new nodes or parameters, and to activate the configuration issued by ACS.
[0098] The loop control module is used to control the repeated execution of the registration process until no errors are returned.
[0099] In one specific embodiment, the configuration activation module further includes:
[0100] The XML template generation unit is used to generate XML fragments that conform to the TR069 specification based on the path.
[0101] A dynamic insertion unit is used to integrate the XML fragment into the device's existing data model.
[0102] Example 4
[0103] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the method for automatically building the TR069 data model.
[0104] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the implementation of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the claims of the present invention.
Claims
1. A method of automatically establishing a TR069 data model, characterized by, The method comprises the following steps: S1, initiating a registration process of a TR069 data model by a scheme implementation device CPE to an automatic configuration server ACS; S2, checking whether error information is received by the CPE, if the error information exists, automatically saving error information containing error codes, otherwise, jumping to step S8; wherein the CPE automatically saves error information containing error codes, and the specific steps are as follows: In the configuration process of the ACS, a SOAP format message containing error codes is captured in real time; The SOAP format message is stored in any one of a local database or a log file; S3, extracting a missing TR069 node or parameter path from the error information, and the specific steps are as follows: Analyzing the error return code in the stored SOAP format message; Locating the complete path of the missing node or parameter by any one of a regular expression or a syntax analyzer matching the XML structure; S4, disconnecting the CPE from the ACS; S5, automatically creating a new TR069 node or parameter corresponding to the missing path according to the extracted path; S6, reinitiating the registration process until no error is returned; S7, developing the functionality of the new node or parameter, and making the configuration issued by the ACS effective; S8, confirming the CPE registration success by the ACS, and establishing the TR069 data model.
2. The method for automatically establishing a TR069 data model according to claim 1, wherein, The method comprises the following steps: The CPE sends an Inform message to the ACS through an HTTP protocol; The ACS and the CPE initiate authentication requests to each other; After the authentication is passed, the ACS starts to issue configurations to the CPE.
3. The method for automatically establishing a TR069 data model of claim 1, wherein, The specific steps of automatically creating a new TR069 node or parameter corresponding to the missing path according to the extracted path comprise: Based on the extracted path, an XML template conforming to the TR069 data model specification is generated; The XML template is dynamically inserted into the existing TR069 data model of the CPE.
4. The method for automatically establishing a TR069 data model of claim 1, wherein, The reinitiated registration process comprises: After automatically creating a new node or parameter each time, resetting the registration state of the CPE; Re-executing the Inform message sending, authentication and configuration issuing process.
5. The method for automatically establishing a TR069 data model of claim 1, wherein, The functional development of the new node or parameter comprises: Matching the corresponding parameter in the device CPE configuration file for the new node, if the parameter exists, connecting with the read-write interface of the parameter, if the parameter does not exist, adding the parameter in the device CPE configuration file, and connecting with the read-write interface of the new parameter; Verifying the compatibility of the new node with the ACS platform.
6. A system for automatically establishing a TR069 data model, the system comprising: The method comprises a communication module, an error processing module, a loop control module and a configuration validation module: The communication module is used for initiating a registration process of a TR069 data model by a scheme implementation device CPE to an automatic configuration server ACS, and controlling the connection between the CPE and the ACS; The error processing module is used for checking whether error information is received by the CPE, if the error information exists, automatically saving error information containing error codes, and extracting a missing TR069 node or parameter path from the error information; The configuration validation module is configured to automatically create the missing TR069 nodes or parameters according to the analysis result, and to develop the functions of the new nodes or parameters, and to validate the configuration issued by the ACS; The cycle control module is configured to control repeated execution of the registration process until no error is returned.
7. The system for automatically establishing a TR069 data model of claim 6, wherein, The configuration validation module further comprises: An XML template generation unit configured to generate XML fragments conforming to the TR069 specification based on the paths; A dynamic insertion unit configured to integrate the XML fragments into the existing data model of the device.
8. A computer-readable storage medium, characterized in that, A computer program is stored, and when the program is executed by a processor, a method for automatically establishing a TR069 data model is implemented.
Citation Information
Patent Citations
CPE and ACS remote configuration method, device and system
CN108282363A
Cloud management method of box-type switch, switch, server and platform
CN110213340A