Information determination method, device, equipment and storage medium
By querying the path information corresponding to the service identifier in the digital home management platform and determining the acquisition method, the problem of repeated acquisition of information by each service submodule is solved, the information acquisition efficiency is improved and the number of interactions with the CPE is reduced.
Patent Information
- Application Number
- CN202111121090.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-24
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2041-09-24
AI Technical Summary
In the digital home management platform, when each service submodule obtains information from the client terminal device CPE through the TR069 protocol, the information acquisition efficiency is low because the information of each service submodule is not shared, resulting in repeated acquisition.
By acquiring a pending request carrying a service identifier, checking whether the first path information has path information corresponding to the service identifier, determining the target acquisition method (acquiring from the CPE or obtaining from the first path information), and determining the target path information based on the target acquisition method.
This improves the efficiency of information acquisition, reduces the number of interactions with the CPE, and avoids the process of obtaining target path information from the CPE every time.
Smart Images

Figure CN115865794B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to information determination technology in the computer field, and in particular to an information determination method, device, equipment and storage medium. Background Art
[0002] With the rapid development of the Internet, the digital home management platform communicates with the customer premise equipment (CPE) through the TR069 protocol. There are multiple business sub-modules on the digital home management platform, and each business sub-module is independent of each other. Each business sub-module obtains the required information from the CPE through the TR069 protocol. However, the information obtained by each business sub-module from the CPE is not shared with other business sub-modules, resulting in different business sub-modules needing to obtain information from the CPE separately when obtaining information, resulting in low efficiency in obtaining information. Summary of the invention
[0003] In order to solve the above technical problems, the embodiments of the present application hope to provide an information determination method, device, equipment and storage medium, which solve the problem of low efficiency in obtaining information and improve the efficiency of obtaining information.
[0004] The technical solution of this application is implemented as follows:
[0005] A method for determining information, the method comprising:
[0006] Get pending requests with business identifiers;
[0007] Based on the request to be processed, query whether the first path information has path information corresponding to the service identifier, and obtain a query result;
[0008] Based on the query result, determine a target acquisition method for acquiring the path information corresponding to the service identifier; wherein the target acquisition method indicates whether to acquire the path information from a customer terminal device CPE;
[0009] Based on the target acquisition method, target path information is determined.
[0010] In the above solution, determining a target acquisition method for acquiring path information corresponding to the service identifier based on the query result includes:
[0011] In the case where the query result indicates that the first path information contains path information corresponding to the service identifier, determining that the target acquisition method is a first acquisition method; wherein the first acquisition method indicates that the path information is acquired from the first path information;
[0012] In the above solution, the determining of target path information based on the target acquisition method includes:
[0013] Based on the first acquisition method, acquiring second path information from the first path information;
[0014] The target path information is determined based on the second path information.
[0015] In the above solution, determining a target acquisition method for acquiring path information corresponding to the service identifier based on the query result includes:
[0016] In a case where the query result indicates that the first path information does not have path information corresponding to the service identifier, determining that the target acquisition method is a second acquisition method; wherein the second acquisition method indicates acquiring path information from the CPE;
[0017] In the above solution, the determining of target path information based on the target acquisition method includes:
[0018] Based on the service identifier, generating query information carrying the service identifier;
[0019] Sending the query information to the CPE through a target operation interface; wherein the query information is used to instruct the CPE to query the second path information based on the service identifier;
[0020] Receive the second path information sent by the CPE, and determine the target path information based on the second path information.
[0021] In the above solution, determining the target path information based on the second path information includes:
[0022] In a case where the request to be processed has a filtering identifier, filtering the second path information to obtain third path information, and determining the target path information based on the third path information and the type of the request to be processed;
[0023] When the request to be processed does not contain the filter identifier, the second path information is used as the target path information.
[0024] In the above solution, the determining the target path information based on the third path information and the type of the request to be processed includes:
[0025] determining the type of the pending request;
[0026] In the case where the type of the request to be processed is the first type, an execution request is generated based on the third path information and the target modification parameter, and the execution request is sent to the CPE through the target operation interface; wherein the execution request carries the third path information and the target modification parameter; the execution request is used to instruct the CPE to modify its own operating parameters based on the third path information and the target modification parameter to obtain the target path information;
[0027] Receive the target path information sent by the CPE.
[0028] In the above solution, the determining the target path information based on the third path information and the type of the request to be processed includes:
[0029] When the type of the request to be processed is the second type, the third path information is used as the target path information.
[0030] In the above solution, the querying whether the first path information contains path information corresponding to the service identifier, before obtaining the query result, includes:
[0031] Generate a pending business based on the pending request;
[0032] When the processing mode of the pending service is asynchronous, an asynchronous notification listener of the pending service is set, and the pending service is monitored through the asynchronous notification listener;
[0033] The to-be-processed business is added to a business queue, and the business identifier is determined from the to-be-processed business.
[0034] In the above scheme, the method further comprises:
[0035] Set the target storage space;
[0036] Receiving, through the target operation interface, first path information for the historical request sent by the CPE;
[0037] The historical request and the first path information are stored in the target storage space.
[0038] An information determination device, the device comprising:
[0039] An acquisition unit, used for acquiring a pending request carrying a service identifier;
[0040] A query unit, configured to query, based on the request to be processed, whether the first path information contains path information corresponding to the service identifier, and obtain a query result;
[0041] A determination unit, configured to determine, based on the query result, a target acquisition method for acquiring the path information corresponding to the service identifier; wherein the target acquisition method indicates whether the path information is acquired from a customer terminal device CPE;
[0042] The determining unit is further configured to determine target path information based on the target acquisition method.
[0043] An information determination device, the device comprising: a processor, a memory, and a communication bus;
[0044] The communication bus is used to realize the communication connection between the processor and the memory;
[0045] The processor is used to execute the information determination program stored in the memory to implement the following steps:
[0046] Get pending requests with business identifiers;
[0047] Based on the request to be processed, query whether the first path information has path information corresponding to the service identifier, and obtain a query result;
[0048] Based on the query result, determine a target acquisition method for acquiring the path information corresponding to the service identifier; wherein the target acquisition method indicates whether to acquire the path information from a customer terminal device CPE;
[0049] Based on the target acquisition method, target path information is determined.
[0050] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned information determination method.
[0051] The information determination method, apparatus, device and storage medium provided in the embodiments of the present application obtain a pending request carrying a service identifier; based on the pending request, query whether the first path information contains path information corresponding to the service identifier to obtain a query result; based on the query result, determine a target acquisition method for obtaining the path information corresponding to the service identifier; wherein the target acquisition method represents whether the path information is obtained from a customer terminal device CPE; based on the target acquisition method, determine the target path information; in this way, according to the service identifier, it is possible to query whether the first path information contains path information corresponding to the service identifier, determine the target acquisition method, and further determine the target path information according to the target acquisition method, without the need to obtain the target path information from the CPE every time as in the related technology, thereby improving the efficiency of determining the target path information. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A flowchart of an information determination method provided in an embodiment of the present application;
[0053] Figure 2 A schematic diagram of the internal structure of a digital home management platform provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of the structure of a TR069 node tree of a gateway device provided in an embodiment of the present application;
[0055] Figure 4 A schematic diagram of the interaction process between a digital home management platform and a gateway device provided in an embodiment of the present application;
[0056] Figure 5 A flowchart of another information determination method provided in an embodiment of the present application;
[0057] Figure 6 A flowchart of another information determination method provided in an embodiment of the present application;
[0058] Figure 7 A module schematic diagram of a TR069 operation interface of a digital home management platform provided in an embodiment of the present application;
[0059] Figure 8 A flowchart of another information determination method provided in an embodiment of the present application;
[0060] Fig. 9 A schematic diagram of the structure of an information determination device provided in an embodiment of the present application;
[0061] Fig.10 A schematic diagram of the structure of an information determination device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0063] The present application embodiment provides an information determination method, which is applied to an information determination device, such as Figure 1 As shown, the method comprises the following steps:
[0064] Step 101: Obtain a pending request carrying a service identifier.
[0065] Among them, the information determination device manages the customer terminal device through the TR069 protocol.
[0066] It should be noted that the information determination device can be a resource management service (RMS) platform, which can also be called a digital home management platform, and the client terminal device can be a gateway device. The gateway device can use the TR069 protocol to register with the digital home management platform. After being authenticated by the digital home management platform, the digital home platform can use the TR069 protocol to set the relevant parameters of the gateway device (such as the Internet account and password of the gateway device). The digital home management platform can manage the gateway device through the TR069 protocol. In other embodiments of the present application, the information determination device can be used as a digital home management platform and the client terminal device as a gateway device for explanation.
[0067] In an embodiment of the present application, the digital home management platform may include two modules, namely a business module and a processing module, wherein the processing module is encapsulated in the target operation interface of the digital home management platform. Among them, the business module includes multiple business sub-modules, and the services involved in the multiple business sub-modules include but are not limited to work order services, batch collection services, and batch upgrade services. Among them, the business sub-module can generate pending requests for different services for the business, and transmit the pending requests to the target operation interface in the digital home management platform, so that the pending requests can be processed by the processing module in the target operation interface. Among them, the target operation interface is an interface set on the digital home management platform for communicating with the gateway device; the digital home management platform and the gateway device communicate through the TR069 protocol; the digital home management platform can communicate with at least one gateway device.
[0068] Among them, the target operation interface can be a TR069 operation interface.
[0069] like Figure 2 As shown, it is a structural diagram of the digital home management platform. The digital home management platform includes at least but not limited to a work order business sub-module, a batch collection business sub-module and a batch upgrade business sub-module. These business sub-modules are connected to the TR069 operation interface, and the TR069 operation interface is also connected to the gateway device. The TR069 operation interface can receive the pending requests sent by each business sub-module, and determine whether it is necessary to determine the target path information from the gateway device based on the pending requests.
[0070] It should be noted that the TR069 protocol is technically an exchange protocol dedicated to device management. The TR069 protocol abstracts the various parameters of a gateway device into a TR069 node tree. The digital home management platform operates the TR069 node tree of a gateway device through the TR069 protocol.
[0071] like Figure 3As shown in FIG. 1 , it is a TR069 node tree of a gateway device (also referred to as an Internet gateway device). In the related art, when a service submodule on a digital home management platform wants to query the parameters of a certain node on the TR069 node tree, the method adopted is to query and traverse each node one by one. The digital home management platform must exchange messages with the gateway device multiple times. The digital home management platform and the gateway device query and traverse the TR069 node tree of the gateway device one by one in a question-and-answer manner, such as Figure 4 As shown, the digital home management platform needs to initiate a request to query the gateway device. The Internet gateway device can return the path between the non-root node and the root node of the Internet gateway device in the TR069 node tree. In a feasible implementation, the identifier of the gateway device (the identifier of the root node) is InternetGatewayDevice, and the request to query the gateway device can be a request carrying InternetGatewayDevice. Then the query result returned by the gateway device can be InternetGatewayDevice.WANDevice (the path composed of the node identifiers of the root node and the first child node of the root node) and InternetGatewayDevice.DeviceSummary (the path composed of the node identifiers of the root node and the second child node of the root node). The digital home management platform can query the child nodes of InternetGatewayDevice.WANDevice again based on the returned results, and traverse in sequence until the target node (i.e., the target leaf node) is queried. When querying a non-existent node, the Internet gateway device will directly report an error. There are many services in the digital home management platform, and each service queries its own information from the node tree of the Internet gateway device, and ends the service after the query. The node queries that have intersections between services are not shared, resulting in low efficiency in obtaining information. Among them, DeviceSummary refers to the device summary; WANDevice refers to the wide area network device.
[0072] In an embodiment of the present application, when the target node on the node tree of the Internet gateway device is queried after the digital home management platform establishes the first connection with the Internet gateway device, the node tree of the Internet gateway device can be traversed in a question-and-answer manner in the relevant technology until the target node is determined, and the path formed between each node traversed in the node tree and the root node is stored so that other services can share the previously queried path. Among them, the target node can be a leaf node in the node tree, and when storing, not only the path from the root node to the leaf node can be stored, but also the path value of the path can be stored, and the path value refers to the parameter of the leaf node; the target node can also be a non-leaf node in the node tree, so when storing, the path from the root node to the non-leaf node can be stored.
[0073] In a feasible implementation, ABCD is a path traversed in the node tree, A is the root node, D is the leaf node in the node tree, and the path value can be the information of the D node, which can also be called the parameter of the D node. Then, when storing, the paths of "AB", "ABC" and "ABCD" and the parameters of the D node can be stored.
[0074] Step 102: Based on the request to be processed, query whether the first path information contains path information corresponding to the service identifier, and obtain a query result.
[0075] The first path information may be historical path information corresponding to historical services.
[0076] In an embodiment of the present application, the first path information includes a path and a path value, wherein the first path information has a corresponding service identifier, and the service identifier of the request to be processed can be matched with the service identifier of the first path information to obtain a matching result; if the service identifier of the request to be processed matches the service identifier of the first path information, the query result indicates that the first path information contains path information that matches the service identifier; if the service identifier of the request to be processed does not match the service identifier of the first path information, the query result indicates that the first path information does not contain path information that matches the service identifier.
[0077] It should be noted that only the path formed from the root node to the leaf node in the first path information has a path value, and other paths do not have a path value. In other words, the path information matching the service identifier can be a path and the path value of the path, or a path.
[0078] Step 103: Based on the query result, determine a target acquisition method for acquiring path information corresponding to the service identifier.
[0079] The target acquisition method indicates whether to acquire the path information from the customer terminal equipment CPE. The target acquisition method may include acquiring the path information from the CPE or acquiring the path information from the first path information.
[0080] In the embodiment of the present application, if the query result shows that the first path information contains path information matching the service identifier, then the path information can be directly obtained from the first path information without obtaining the path information from the CPE. If the query result shows that the first path information does not contain path information, then the path information needs to be obtained from the CPE.
[0081] Step 104: Determine target path information based on the target acquisition method.
[0082] In an embodiment of the present application, the information determination device may obtain path information according to a target acquisition method, and then determine the target path information according to the obtained path information.
[0083] The information determination method provided in the embodiment of the present application obtains a pending request carrying a service identifier; based on the pending request, queries whether the first path information contains path information corresponding to the service identifier to obtain a query result; based on the query result, determines a target acquisition method for obtaining the path information corresponding to the service identifier; wherein the target acquisition method represents whether the path information is obtained from a customer terminal device CPE; based on the target acquisition method, determines the target path information; in this way, it is possible to query whether the first path information contains path information corresponding to the service identifier based on the service identifier, determine the target acquisition method, and further determine the target path information based on the target acquisition method, without the need to obtain the target path information from the CPE every time as in the related technology, thereby improving the efficiency of determining the target path information.
[0084] Based on the above embodiments, the present application provides an information determination method, referring to Figure 5 As shown, the method comprises the following steps:
[0085] Step 201: The information determination device obtains a pending request carrying a service identifier.
[0086] In an embodiment of the present application, the pending request may be generated by a business module on the digital home management platform, and then the pending request is transmitted to the TR069 operation interface on the digital home management platform so that the pending request can be processed through the TR069 operation interface.
[0087] Step 202: The information determination device generates a pending service based on the pending request.
[0088] In an embodiment of the present application, the TR069 operation interface of the digital home management platform can receive pending requests transmitted by the service module and convert the pending requests into pending services.
[0089] It should be noted that the pending request may be a request carrying a business statement generated by a business module of the digital home management platform, and the pending business may be generated according to the business statement; wherein the business statement carries a business identifier; the business statement is a special statement customized by the business module; the business statement may include a query statement and a parameter setting statement; in a feasible implementation, the query statement may be "InternetGatewayDevice.WANDevice.{i}.WANConnectionDevice.{i}.state", and the return result for the query statement may be:
[0090] InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.state=A
[0091] InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.state=B
[0092] InternetGatewayDevice.WANDevice.2.WANConnectionDevice.1.state=C
[0093] InternetGatewayDevice.WANDevice.2.WANConnectionDevice.2.state=D
[0094] The returned result indicates all node paths in the TR069 node tree of the CPE queried for the query statement, where "A", "B", "C" and "D" are all path values. WANConnectionDevice refers to a wide area network connection device.
[0095] In the embodiment of the present application, whether it is a query statement or a parameter setting statement, the processing module in the TR069 operation interface of the information determination device can also perform multiple queries on the query statement or the parameter setting statement, and store the query result of each time, and the method for obtaining each query result includes obtaining it from the gateway device side or obtaining it from the first path information; in a feasible implementation method, if the query statement is "InternetGatewayDevice.WANDevice.{i}.WANConnectionDevice.{i}.state", where "i" is a variable, the processing module can first query the child node of "InternetGatewayDevice" to obtain the first query result ("InternetGatewayDevice.WANDevice" and "InternetGatewayDevice.DeviceSummary"), and for the first query result, "InternetGatewayDevice.WAN ConnectionDevice" can be queried again. Device.{i}", the second query result (InternetGatewayDevice.WANDevice.1 and InternetGatewayDevice.WANDevice.2) can be obtained. For the second query result, "InternetGatewayDevice.WAN Device.1" and "InternetGatewayDevice.WAN Device.2" can be queried again to obtain a third return result with multiple paths to be queried. The multiple paths to be queried can be:
[0096] InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.state
[0097] InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.state
[0098] InternetGatewayDevice.WANDevice.2.WANConnectionDevice.1.state
[0099] InternetGatewayDevice.WANDevice.2.WANConnectionDevice.2.state
[0100] The path value of each path to be queried can be queried according to the path to be queried, and each path to be queried and the path value of each path to be queried are used as the return result for the query statement.
[0101] Step 203: When the processing mode of the pending service is asynchronous, the information determining device sets an asynchronous notification listener for the pending service, and monitors the pending service through the asynchronous notification listener.
[0102] The processing method of the pending business may be determined by the pending request, and the pending request carries a target processing method, which includes asynchronous processing or synchronous processing.
[0103] In an embodiment of the present application, when it is determined that the processing method of the pending business is asynchronous, an asynchronous listener corresponding to the pending business can be set so that the asynchronous listener can monitor the processing process of the pending business and the return result (processing result) of the pending business. By asynchronously notifying the listener to monitor the pending business, the thread resources of the digital home management platform are no longer occupied, thereby avoiding wasting a large amount of thread resources.
[0104] Step 204: The information determination device adds the pending service to the service queue and determines the service identifier from the pending service.
[0105] In an embodiment of the present application, when the processing method of the pending business is asynchronous, the pending business is monitored through an asynchronous notification listener and the pending business is added to the business queue. When the processing method of the pending business is non-asynchronous (synchronous), the pending business can be directly added to the business queue.
[0106] It should be noted that when adding a pending business to a business queue, the business identifier of the pending business can be extracted so that the pending business can be processed later according to the business identifier.
[0107] In one possible implementation, Figure 6As shown, the information determination device receives the pending request transmitted by its own business sub-module, which can also be called an operation request, and parses the statement in the pending request to determine whether the statement in the pending request carries a filter identifier. If it carries a filter identifier, a path filter can be set, and a pending business is created for the pending request. If it does not carry a filter identifier, a pending business is directly created for the pending request. After creating the pending business, the processing method of the pending business is determined. When the processing method of the pending business is asynchronous, an asynchronous notification listener corresponding to the pending business can be set to monitor the processing process and processing results of the pending business, and put the pending business into the task queue for execution. When the processing method of the pending business is non-asynchronous, the pending business is directly put into the task queue for execution.
[0108] Step 205: The information determination device queries whether the first path information contains path information corresponding to the service identifier, and obtains a query result.
[0109] The first path information may be a service return result of a historical service, and each piece of path information has a corresponding service identifier.
[0110] In an embodiment of the present application, the business identifier of the request to be processed can be matched with the business identifier of the first path information. If the business identifier of the request to be processed does not match the business identifier of the first path information, the query result indicates that the first path information does not have path information corresponding to the business identifier. If the business identifier of the request to be processed matches the business identifier of the first path information, the query result indicates that the first path information has path information corresponding to the business identifier.
[0111] It should be noted that the first path information can also be stored in the information determination device in the form of a node tree. That is to say, a TR069 node tree can be established in the information determination device based on the service return results of historical services. Then, in subsequent inquiries, the path information corresponding to the service identifier can be first queried in the TR069 node tree in the information determination device.
[0112] Step 206: When the query result indicates that the first path information contains path information corresponding to the service identifier, the information determination device determines that the target acquisition mode is the first acquisition mode.
[0113] The first acquisition method represents acquiring the path information from the first path information.
[0114] In an embodiment of the present application, when the query result indicates that the first path information contains path information corresponding to the service identifier, it can be determined that the path information is obtained from the first path information without interacting with the CPE to obtain the path information, thereby improving the efficiency of determining the path information.
[0115] Step 207: The information determination device obtains the second path information from the first path information based on the first acquisition method.
[0116] The second path information may be path information corresponding to the service identifier.
[0117] In the embodiment of the present application, the first path information can be screened based on the service identifier, and the second path information corresponding to the service identifier in the request to be processed can be obtained from the first path.
[0118] In an embodiment of the present application, the information determination device may perform a single query on the service identifier to obtain the second path information, or may perform multiple queries on the service identifier to obtain the second path information.
[0119] In a feasible implementation, a query may be performed on the service identifier, and path information corresponding to the service identifier may be queried from the first path information, and the path information corresponding to the service identifier may be used as the second path information.
[0120] In another feasible implementation, the information determination device can also perform multiple queries on the service identifier to obtain the second path information. If the "service identifier" is "{internet}", that is, the service needs to query the path representing the "network" and the "network path value (network status)", then when initiating the query, the child nodes of the root node of the TR069 node tree can be queried first. If the first path information contains the child nodes of the root node of the TR069 node tree, the path formed by the root node and the child nodes of the root node in the TR069 node tree is returned, and according to the returned result, the child nodes of the child nodes of the root node are queried again until the child nodes of the child nodes of the root node are found in the first path. The information queries the path with the service identifier "{internet}", and queries the path value of the path of "{internet}" based on the path of "{internet}" (wherein the path of "{internet}" is the path from the root node to the leaf node in the node tree, and the leaf node represents the node of the internet, and the path value of the path of "{internet}" refers to the parameter of "representing the node of the internet"). If the first path information does not contain the child node of the root node of the TR069 node tree, the child node of the root node of the TR069 node tree can be obtained from the gateway device. That is to say, in the embodiment of the present application, the target node and the path value of the target node can also be obtained by traversing the nodes in the TR069 node tree (where the target node is a leaf node in the node tree), but it is necessary to first query whether the first path information has the path information for this query during the traversal. If so, the path information is obtained from the first path information, and the query can be continued according to the path information until the second path information corresponding to the service identifier is queried. In the case where the path information for this query is in the first path information, it is not necessary to obtain the path information from the gateway device side, which reduces the number of interactions with the gateway device and improves the efficiency of obtaining information. Among them, multiple first path information can form a node tree.
[0121] Step 208: The information determination device determines target path information based on the second path information.
[0122] In an embodiment of the present application, the second path information may be screened to obtain target path information, the second path information may be used as target path information, and new path information may be obtained based on the second path information and used as target path information.
[0123] Step 209: When the query result indicates that the first path information does not contain path information corresponding to the service identifier, the information determination device determines that the target acquisition method is the second acquisition method.
[0124] The second acquisition method represents acquiring the path information from the CPE.
[0125] In the embodiment of the present application, if the query result indicates that the first path information does not contain path information corresponding to the service identifier, the path information can be obtained from the CPE by interacting with the CPE.
[0126] It should be noted that the path information is obtained from the CPE only when the first path information does not contain the path information corresponding to the service identifier of the request to be processed, which improves the efficiency of obtaining the path information and further improves the efficiency of determining the target path information.
[0127] Step 210: The information determination device generates query information carrying the service identifier based on the service identifier.
[0128] In an embodiment of the present application, the processing module in the target operation interface can generate query information carrying the service identifier according to the service identifier, so as to determine the target path information according to the query information.
[0129] Step 211: The information determination device sends query information to the CPE via the target operation interface.
[0130] The query information is used to instruct the CPE to query the second path information based on the service identifier.
[0131] In an embodiment of the present application, query information is sent to the CPE through the target operation interface, so that after receiving the query information, the CPE queries the node information on its own TR069 node tree according to the service identifier in the query information, obtains the second path information corresponding to the service identifier, and sends the second path information to the information determination device.
[0132] Step 212: The information determination device receives the second path information sent by the CPE, and determines the target path information based on the second path information.
[0133] In an embodiment of the present application, the information determination device receives the second path information sent by the CPE, and determines the target path information according to the second path information.
[0134] Among them, determining the target path information based on the second path information in step 208 and step 212 can be implemented by a1 and a2:
[0135] a1. When the request to be processed has a filtering identifier, the information determination device filters the second path information to obtain the third path information, and determines the target path information based on the third path information and the type of the request to be processed.
[0136] In an embodiment of the present application, if the request to be processed has a filter identifier, the second path information can be filtered based on the filter identifier to obtain the third path information, and the target path information is determined based on the third path information and the type of the request to be processed. The third path information is the path information corresponding to the filter identifier in the second path information. In a feasible implementation, if the service identifier in the request to be processed can be a filter identifier "{internet}" with a network, the second path information can be:
[0137] InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.state=A
[0138] InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.state=B
[0139] InternetGatewayDevice.WANDevice.2.WANConnectionDevice.1.state=C
[0140] InternetGatewayDevice.WANDevice.2.WANConnectionDevice.2.state=D
[0141] Among them, "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.state=A" is used as an example for explanation, "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1" is the path, and "A" is the path value. Each path has a path identifier, and each path identifier can be matched with a filter identifier to determine the path corresponding to the filter identifier, and then the path value is determined according to the path; it should be noted that the path formed by the root node and the leaf node in the node tree has a corresponding path value, and the path value is a parameter of the leaf node; the path formed by the root node and the non-leaf node does not have a path value, wherein the leaf node refers to a node in the node tree that does not have a child node.
[0142] In the embodiment of the present application, the processing module of the TR069 operation interface of the digital home management platform includes multiple processing sub-modules, such as Figure 7As shown, multiple processing submodules may include a statement parsing module, a path caching module, a TR069 message creation module, a TR069 message queue module, a TR069 message execution module and a TR069 message monitoring module; wherein the statement parsing module is used to parse the business statement in the pending request, obtain the parsing result, and send the parsing result to the TR069 message creation module, so that the TR069 message creation module creates the pending business according to the parsing result, and determines the processing method of the pending business. When it is determined that the processing method of the pending business is asynchronous, the TR069 message monitoring module is used to create an asynchronous notification listener to monitor the pending business, and the pending business is placed in the TR069 message execution module for execution.
[0143] The determination of the target path information based on the third path information and the type of the request to be processed in step a1 can also be implemented by steps b1-4:
[0144] b1. The information determination device determines the type of request to be processed.
[0145] The types of requests to be processed include a first type and a second type.
[0146] It should be noted that the first type indicates that the pending request is a setting request, which specifically requires modifying the parameters of a node in the node tree of the gateway device, and the second type indicates that the pending request is a query request, which specifically requires querying the parameters of a node in the node tree of the gateway device. The type of the pending request can be determined by the service identifier carried in the pending request.
[0147] b2. When the type of the request to be processed is the first type, the information determining device generates an execution request based on the third path information and the target modification parameter, and sends the execution request to the CPE through the target operation interface.
[0148] The execution request carries the third path information and the target modification parameter; the execution request is used to instruct the CPE to modify its own operating parameters based on the third path information and the target modification parameter to obtain the target path information.
[0149] In an embodiment of the present application, if the type of the pending request represents that the pending request is a setting request, the path can be obtained from the third path information based on the third path information, and an execution request can be generated based on the path and the target modification parameters carried in the pending request, and the execution request can be sent to the CPE through the target operation interface, so that after the CPE receives the execution request, it determines the corresponding target node in the path according to the execution request, modifies the parameters of the target node according to the target modification parameters, obtains the target path information, and sends the target path information to the information determination device.
[0150] b3. The information determination device receives the target path information sent by the CPE.
[0151] In an embodiment of the present application, the information determination device can receive the target path information sent by the CPE through the target operation interface, and update the path information corresponding to the service identifier in the first path information based on the target path information; the target path information can also be stored according to time.
[0152] b4. When the type of the request to be processed is the second type, the information determination device uses the third path information as the target path information.
[0153] In the embodiment of the present application, when the type of the request to be processed indicates that the request to be processed is a query request, the third path information obtained by the query can be used as the target path information.
[0154] a2. When the request to be processed does not have a filtering identifier, the information determination device uses the second path information as the target path information.
[0155] When the request to be processed does not have a filtering identifier, the second path information can be directly used as the target path information, that is, the second path information can be used as the return result of the request to be processed.
[0156] Based on the foregoing embodiment, in other embodiments of the present application, the information determination method may further include the following steps:
[0157] Step 213: The information determines that the device sets the target storage space.
[0158] In an embodiment of the present application, after the CPE and the information determination device establish a communication connection for the first time, a target storage space can be set to store the path information obtained from the CPE.
[0159] It should be noted that the path information stored in the target storage space is time-effective, and the information determination device can update the path information stored in the target storage space according to a preset period.
[0160] Step 214: The information determination device receives the first path information for the historical request sent by the CPE through the target operation interface.
[0161] The historical request is a historical request initiated by a service submodule in the information determination device, and the first path information may be path information obtained by the information determination device from the CPE for the historical request.
[0162] Step 215: The information determination device stores the historical request and the first path information into the target storage space.
[0163] In an embodiment of the present application, the information determination device may store both the first historical request and the first path information in a target storage space according to the service identifier of the historical request for subsequent query.
[0164] like Figure 8 As shown, in an embodiment of the present application, when the CPE and the information determination device establish communication for the first time, if a CPE response is received, it is determined that the connection between the CPE and the information determination device is successful, and if no CPE response is received, it is determined that the connection between the CPE and the information determination device fails; when the CPE and the information determination device establish a communication connection, it is determined whether the CPE and the information determination device are connected for the first time. If it is the first time, a path cache space is set in the path cache module of the TR069 operation interface, and then the task to be processed is obtained from the TR069 task queue, and the target path information of the task to be processed is determined by the processing module in the TR069 operation interface; if there is a filtering identifier in the task to be processed, the filtering condition is determined according to the filtering identifier, and it is determined from the first path information whether there is path information corresponding to the filtering identifier. If there is no filtering identifier in the task to be processed, it is determined from the first path information whether there is path information corresponding to the service identifier, and then the target path information is determined according to the path information determined from the first path information, and the target path information is used as the return result of the task to be executed. If the path information is not determined from the first path information, query information is sent to the CPE to subsequently determine the target path information.
[0165] The information determination method provided in the embodiment of the present application can query whether the first path information contains path information corresponding to the service identifier according to the service identifier, and determine whether to obtain the path information from the CPE according to the query result, and further determine the target path information. It is not necessary to obtain the target path information from the CPE every time as in the related technology, thereby improving the efficiency of determining the target path information and reducing the number of interactions with the CPE.
[0166] Based on the above embodiments, the present invention provides an information determination device, which can be applied to Figure 1 and Figure 5 In the information determination method provided in the corresponding embodiment, Fig. 9 As shown, the information determination device 3 includes:
[0167] An acquisition unit 31 is used to acquire a pending request carrying a service identifier;
[0168] A query unit 32, configured to query whether the first path information has path information corresponding to the service identifier based on the request to be processed, and obtain a query result;
[0169] A determination unit 33 is used to determine a target acquisition method for acquiring path information corresponding to the service identifier based on the query result; wherein the target acquisition method indicates whether to acquire the path information from a customer terminal device CPE;
[0170] The determination unit 33 is further configured to determine target path information based on the target acquisition method.
[0171] In the embodiment of the present application, the determining unit 33 is further configured to perform the following steps:
[0172] When the query result indicates that the first path information contains path information corresponding to the service identifier, the target acquisition method is determined to be the first acquisition method; wherein the first acquisition method indicates acquiring the path information from the first path information.
[0173] In the embodiment of the present application, the determining unit 33 is further configured to perform the following steps:
[0174] Based on the first acquisition method, acquiring the second path information from the first path information;
[0175] The target path information is determined based on the second path information.
[0176] In the embodiment of the present application, the determining unit 33 is further configured to perform the following steps:
[0177] When the query result indicates that the first path information does not contain path information corresponding to the service identifier, the target acquisition method is determined to be the second acquisition method; wherein the second acquisition method indicates acquiring the path information from the CPE.
[0178] In the embodiment of the present application, the determining unit 33 is further configured to perform the following steps:
[0179] Based on the business identifier, generate query information carrying the business identifier;
[0180] Sending query information to the CPE through the target operation interface; wherein the query information is used to instruct the CPE to query the second path information based on the service identifier;
[0181] The second path information sent by the CPE is received, and the target path information is determined based on the second path information.
[0182] In the embodiment of the present application, the determining unit 33 is further configured to perform the following steps:
[0183] In the case where the request to be processed has a filtering identifier, filtering the second path information to obtain third path information, and determining the target path information based on the third path information and the type of the request to be processed;
[0184] When the request to be processed does not contain a filtering identifier, the second path information is used as the target path information.
[0185] In the embodiment of the present application, the determining unit 33 is further configured to perform the following steps:
[0186] Determine the type of pending request;
[0187] In the case where the type of the request to be processed is the first type, an execution request is generated based on the third path information and the target modification parameter, and the execution request is sent to the CPE through the target operation interface; wherein the execution request carries the third path information and the target modification parameter; the execution request is used to instruct the CPE to modify its own operating parameters based on the third path information and the target modification parameter to obtain the target path information;
[0188] Receive the target path information sent by the CPE.
[0189] In the embodiment of the present application, the determining unit 33 is further configured to perform the following steps:
[0190] When the type of the request to be processed is the second type, the third path information is used as the target path information.
[0191] In the embodiment of the present application, the determining unit 33 is further configured to perform the following steps:
[0192] Generate pending business based on pending requests;
[0193] When the processing mode of the pending business is asynchronous, an asynchronous notification listener of the pending business is set, and the pending business is monitored through the asynchronous notification listener;
[0194] Add the pending business to the business queue, and determine the business identifier from the pending business.
[0195] In the embodiment of the present application, the determining unit 33 is further configured to perform the following steps:
[0196] Set the target storage space;
[0197] Receiving first path information for the historical request sent by the CPE through the target operation interface;
[0198] The historical request and the first path information are stored in the target storage space.
[0199] It should be noted that the interaction process between the various units in the embodiment of the present application can refer to Figure 1 and Figure 5 The implementation process of the information determination method provided by the corresponding embodiment will not be repeated here.
[0200] The information determination device provided in the embodiment of the present application can query whether the first path information contains path information corresponding to the service identifier according to the service identifier, and determine whether to obtain the path information from the CPE according to the query result, and further determine the target path information. There is no need to obtain the target path information from the CPE every time as in the related technology, which improves the efficiency of determining the target path information and avoids wasting a lot of system resources.
[0201] Based on the above embodiments, the embodiments of the present application provide an information determination device, which can be applied to Figure 1 and Figure 5 In the information determination method provided in the corresponding embodiment, refer to Fig.10 As shown, the information determination device 4 includes: a memory 41, a processor 42 and a communication bus 43;
[0202] The communication bus 43 is used to realize the communication connection between the processor 42 and the memory 41;
[0203] The processor 42 is used to execute the information determination program stored in the memory 41 to implement the following steps:
[0204] Get pending requests with business identifiers;
[0205] Based on the request to be processed, query whether the first path information has path information corresponding to the service identifier, and obtain a query result;
[0206] Based on the query result, determine a target acquisition method for acquiring path information corresponding to the service identifier; wherein the target acquisition method indicates whether the path information is acquired from a customer terminal device CPE;
[0207] Based on the target acquisition method, the target path information is determined.
[0208] In other embodiments of the present application, the processor 42 is used to execute the target acquisition method for obtaining the path information corresponding to the service identifier based on the query result in the memory 41, so as to implement the following steps:
[0209] When the query result indicates that the first path information contains path information corresponding to the service identifier, the target acquisition method is determined to be the first acquisition method; wherein the first acquisition method indicates acquiring the path information from the first path information.
[0210] In other embodiments of the present application, the processor 42 is used to execute the target acquisition method in the memory 41 to determine the target path information to implement the following steps:
[0211] Based on the first acquisition method, acquiring the second path information from the first path information;
[0212] The target path information is determined based on the second path information.
[0213] In other embodiments of the present application, the processor 42 is used to execute the target acquisition method for obtaining the path information corresponding to the service identifier based on the query result in the memory 41, so as to implement the following steps:
[0214] When the query result indicates that the first path information does not contain path information corresponding to the service identifier, the target acquisition method is determined to be the second acquisition method; wherein the second acquisition method indicates acquiring the path information from the CPE.
[0215] In other embodiments of the present application, the processor 42 is used to execute the target acquisition method in the memory 41 to determine the target path information to implement the following steps:
[0216] Based on the business identifier, generate query information carrying the business identifier;
[0217] Sending query information to the CPE through the target operation interface; wherein the query information is used to instruct the CPE to query the second path information based on the service identifier;
[0218] The second path information sent by the CPE is received, and the target path information is determined based on the second path information.
[0219] In other embodiments of the present application, the processor 42 is used to execute the determination of the target path information based on the second path information in the memory 41 to implement the following steps:
[0220] In the case where the request to be processed has a filtering identifier, filtering the second path information to obtain third path information, and determining the target path information based on the third path information and the type of the request to be processed;
[0221] When the request to be processed does not contain a filtering identifier, the second path information is used as the target path information.
[0222] In other embodiments of the present application, the processor 42 is used to execute the memory 41 to determine the target path information based on the third path information and the request to be processed, so as to implement the following steps:
[0223] Determine the type of pending request;
[0224] In the case where the type of the request to be processed is the first type, an execution request is generated based on the third path information and the target modification parameter, and the execution request is sent to the CPE through the target operation interface; wherein the execution request carries the third path information and the target modification parameter; the execution request is used to instruct the CPE to modify its own operating parameters based on the third path information and the target modification parameter to obtain the target path information;
[0225] Receive the target path information sent by the CPE.
[0226] In other embodiments of the present application, the processor 42 is used to execute the process of determining the target path information based on the third path information and the type of the request to be processed in the memory 41 to implement the following steps:
[0227] When the type of the request to be processed is the second type, the third path information is used as the target path information.
[0228] In other embodiments of the present application, the processor 42 is used to execute the information determination program in the memory 41 to implement the following steps:
[0229] Generate pending business based on pending requests;
[0230] When the processing mode of the pending business is asynchronous, an asynchronous notification listener of the pending business is set, and the pending business is monitored through the asynchronous notification listener;
[0231] Add the pending business to the business queue, and determine the business identifier from the pending business.
[0232] In other embodiments of the present application, the processor 42 is used to execute the information determination program in the memory 41 to implement the following steps:
[0233] Set the target storage space;
[0234] Receiving first path information for the historical request sent by the CPE through the target operation interface;
[0235] The historical request and the first path information are stored in the target storage space.
[0236] It should be noted that the specific implementation process of the steps executed by the processor 42 in the embodiment of the present application can refer to Figure 1 and Figure 5 The implementation process of the information determination method provided in the corresponding embodiment will not be repeated here.
[0237] The information determination device provided in the embodiment of the present application can query whether the first path information contains path information corresponding to the service identifier according to the service identifier, and determine whether to obtain the path information from the CPE according to the query result, and further determine the target path information. There is no need to obtain the target path information from the CPE every time as in the related technology, thereby improving the efficiency of determining the target path information.
[0238] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figure 1 and Figure 5 The corresponding embodiments provide information to determine the steps in the method.
[0239] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0240] It should be noted that the above-mentioned computer-readable storage medium can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) and other memories; it can also be various electronic devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0241] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0242] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0243] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0244] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0245] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0246] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0247] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for determining information, characterized in that: Applied to an information determination device, the information determination device is used to manage a customer terminal device CPE, the method comprising: Obtain a pending request carrying a service identifier; the pending request is generated by a service module in the information determination device; based on the pending request, query whether the first path information has path information corresponding to the service identifier, and obtain a query result; Based on the query result, determine a target acquisition method for acquiring the path information corresponding to the service identifier; wherein the target acquisition method indicates whether to acquire the path information from a customer terminal device CPE; Based on the target acquisition method, target path information is determined; wherein, based on the target acquisition method, second path information is determined; when there is a filter identifier in the pending request, the second path information is filtered to obtain third path information, and the target path information is determined based on the third path information and the type of the pending request; when the pending request does not have the filter identifier, the second path information is used as the target path information.
2. The method according to claim 1, characterized in that The determining, based on the query result, a target acquisition method for acquiring the path information corresponding to the service identifier includes: In the case where the query result indicates that the first path information contains path information corresponding to the service identifier, determining that the target acquisition method is a first acquisition method; wherein the first acquisition method indicates that the path information is acquired from the first path information; Accordingly, determining the target path information based on the target acquisition method includes: Based on the first acquisition method, acquiring second path information from the first path information; The target path information is determined based on the second path information.
3. The method according to claim 1, characterized in that The determining, based on the query result, a target acquisition method for acquiring the path information corresponding to the service identifier includes: In a case where the query result indicates that the first path information does not have path information corresponding to the service identifier, determining that the target acquisition method is a second acquisition method; wherein the second acquisition method indicates acquiring path information from the CPE; Accordingly, determining the target path information based on the target acquisition method includes: Based on the service identifier, generating query information carrying the service identifier; Sending the query information to the CPE through a target operation interface; wherein the query information is used to instruct the CPE to query the second path information based on the service identifier; Receive the second path information sent by the CPE, and determine the target path information based on the second path information.
4. The method according to claim 2 or 3, characterized in that: The determining the target path information based on the third path information and the type of the request to be processed includes: determining the type of the pending request; In the case where the type of the request to be processed is the first type, an execution request is generated based on the third path information and the target modification parameter, and the execution request is sent to the CPE through the target operation interface; wherein the execution request carries the third path information and the target modification parameter; the execution request is used to instruct the CPE to modify its own operating parameters based on the third path information and the target modification parameter to obtain the target path information; Receive the target path information sent by the CPE.
5. The method according to claim 2 or 3, characterized in that: The determining the target path information based on the third path information and the type of the request to be processed includes: When the type of the request to be processed is the second type, the third path information is used as the target path information.
6. The method according to claim 1, characterized in that The querying whether the first path information contains path information corresponding to the service identifier, before obtaining the query result, includes: Generate a pending business based on the pending request; When the processing mode of the pending service is asynchronous, an asynchronous notification listener of the pending service is set, and the pending service is monitored through the asynchronous notification listener; The to-be-processed business is added to a business queue, and the business identifier is determined from the to-be-processed business.
7. The method according to claim 1, characterized in that The method further comprises: Set the target storage space; Receiving, through the target operation interface, first path information for the historical request sent by the CPE; The historical request and the first path information are stored in the target storage space.
8. An information determination device, characterized in that: Applied to an information determination device, the information determination device is used to manage a customer terminal device CPE, the device comprises: An acquisition unit, configured to acquire a pending request carrying a service identifier; the pending request is generated by a service module in the information determination device; A query unit, configured to query, based on the request to be processed, whether the first path information contains path information corresponding to the service identifier, and obtain a query result; A determination unit, configured to determine, based on the query result, a target acquisition method for acquiring the path information corresponding to the service identifier; wherein the target acquisition method indicates whether the path information is acquired from a customer terminal device CPE; The determination unit is further used to determine the target path information based on the target acquisition method; wherein, based on the target acquisition method, the second path information is determined; when there is a filtering identifier in the pending request, the second path information is filtered to obtain the third path information, and the target path information is determined based on the third path information and the type of the pending request; when the pending request does not have the filtering identifier, the second path information is used as the target path information.
9. An information determination device, characterized in that The information determination device is used to manage customer terminal equipment CPE, and the device includes: a processor, a memory and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the information determination program stored in the memory to implement the following steps: Obtaining a pending request carrying a service identifier; the pending request is generated by a service module in the information determination device; Based on the request to be processed, query whether the first path information has path information corresponding to the service identifier, and obtain a query result; Based on the query result, determine a target acquisition method for acquiring the path information corresponding to the service identifier; wherein the target acquisition method indicates whether to acquire the path information from a customer terminal device CPE; Based on the target acquisition method, target path information is determined; wherein, based on the target acquisition method, second path information is determined; when there is a filter identifier in the pending request, the second path information is filtered to obtain third path information, and the target path information is determined based on the third path information and the type of the pending request; when the pending request does not have the filter identifier, the second path information is used as the target path information.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the information determination method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method, device and processing system for capturing and reporting the information of instance labels
CN101753428A
Communication network, device and control method
WO2015113279A1