An interactive control method
By actively connecting to the ACS and adjusting the heartbeat message period, the problem of the ACS being unable to connect to the CPE in reverse was solved, achieving efficient transmission of configuration parameters and acquisition of information, and reducing the processing pressure on the ACS.
Patent Information
- Application Number
- CN202510667996.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2026-11-24
AI Technical Summary
ACS cannot effectively connect to CPE in reverse, resulting in the inability to send configuration parameters to CPE or obtain CPE parameters in a timely manner.
The first ACS actively connects to the target CPE. If no response is received, it marks the CPE as offline and awaits diagnosis, and sends an operation request to shorten the heartbeat message cycle. The second ACS updates the information and adjusts the heartbeat frequency to ensure that the ACS can accurately identify and process CPE services.
It improves the interaction efficiency between ACS and CPE, ensures that ACS can connect and process CPE configuration parameters and information in a timely manner, reduces the impact of heartbeat messages on routine services, and provides a convenient management mechanism.
Smart Images

Figure CN123164147A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to an interactive control method. Background Technology
[0002] The TR069 protocol is a communication protocol between Customer Premises Equipment (CPE) and an Auto Configuration Server (ACS). The CPE can be a router, Optical Network Unit (ONU), or gateway, among other things. The CPE can perform initialization and operational management actions based on the TR069 protocol, such as service activation, function configuration, file upload / download, and system testing. The ACS can connect to the CPE in reverse to send configuration parameters or actively retrieve CPE parameters.
[0003] When the ACS (Access Controller) makes a reverse connection to the CPE (Customer Premises Equipment), the ACS typically sends an HTTP GET request to the CPE, and the CPE responds to the HTTP GET request. If the ACS fails to send the HTTP GET request to the CPE or if the CPE malfunctions in responding to the HTTP GET request, the ACS will be unable to make the reverse connection to the CPE, thus preventing the ACS from sending configuration parameters to the CPE. Summary of the Invention
[0004] Some embodiments provide an interactive control method to ensure that the ACS can connect to the CPE in reverse, enabling the ACS to send configuration parameters to the CPE in a timely manner or actively obtain CPE parameters, etc.
[0005] In some embodiments, an interactive control method is provided, the method being used for a first ACS and a second ACS, the method comprising:
[0006] In response to a first operation command from the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE.
[0007] If the first ACS does not receive a response from the target CPE within a preset time, the first ACS will mark the offline setting status of the target CPE as offline pending diagnosis status.
[0008] When the first ACS receives a heartbeat message sent by the target CPE based on a first preset period, if the offline setting status of the target CPE is offline pending diagnosis status, a first operation request is sent to the target CPE; wherein, the first operation request includes a second preset period and the address of the second ACS, the second preset period and the address of the second ACS are used to instruct the target CPE to send a heartbeat message to the second ACS based on the second preset period, and the second preset period is shorter than the first preset period;
[0009] When the second ACS receives the heartbeat message of the target CPE, the second ACS obtains the information of the target CPE from the heartbeat message to update the information of the target CPE;
[0010] In response to a second operation command from the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE based on the updated information of the target CPE.
[0011] One of the above technical solutions has the following advantages or beneficial effects: When it is necessary to send configuration parameters to or obtain target CPE parameters, the operator can operate the front-end page of the first ACS to generate a first operation command, causing the first ACS to actively connect to the target CPE. When the first ACS receives a heartbeat message from the target CPE, if the target CPE's offline setting status is offline pending diagnosis, in response to receiving the heartbeat message, the first ACS sends a first operation request to the target CPE. The first operation request instructs the target CPE to send heartbeat messages to the second ACS at a second preset period. The second preset period is shorter than the first preset period, thus reducing the frequency of heartbeat message transmission by the target CPE, making the target CPE send heartbeat messages more frequently. After the first ACS sends the first operation request to the target CPE, the second ACS will receive the heartbeat message sent by the target CPE after a certain period of time. When the second ACS receives a heartbeat message from the target CPE, it can obtain the target CPE's information. The second ACS updates the target CPE information, ensuring that in subsequent interactions, the ACS can more accurately identify and process services related to the target CPE. When the first ACS receives a second operation instruction to send configuration parameters to or retrieve target CPE parameters, it will proactively connect to the target CPE based on the updated information. If the first ACS fails to connect to the target CPE, the frequency of heartbeat messages sent by the target CPE to the second ACS can be adjusted, making the target CPE send heartbeat messages to the second ACS more frequently, thus ensuring that the first ACS can reconnect to the target CPE.
[0012] In some embodiments, an interactive control method is provided, which, in response to a second operation command from the first ACS to actively connect to the target CPE, further includes:
[0013] The second ACS marks the offline setup status of the target CPE as offline operable;
[0014] When the second ACS receives the heartbeat message from the target CPE, if the offline setting status of the target CPE is offline operable, the second ACS sends a second operation request to the target CPE; wherein, the second operation request includes a third preset period, the third preset period is used to instruct the target CPE to send a heartbeat message to the second ACS based on the third preset period, and the third preset period is shorter than the second preset period.
[0015] One of the above technical solutions has the following advantages or beneficial effects: When the second ACS receives a heartbeat message from the target CPE, the second ACS marks the target CPE's offline setting status as offline operable. When the second ACS receives a heartbeat message from the target CPE, if the target CPE's offline setting status is offline operable, the second ACS sends a second operation request to the target CPE. The second operation request instructs the target CPE to send heartbeat messages to the second ACS at a third preset period. The third preset period is shorter than the second preset period, thereby reducing the period at which the target CPE sends heartbeat messages, making the target CPE send heartbeat messages more frequently. The target CPE sends heartbeat messages with a further shortened period to the second ACS, so that the second ACS can take on the responsibility of receiving and processing the frequently sent heartbeat messages from the target CPE, which can further reduce the impact of the target CPE's frequent heartbeat message sending on the first ACS's processing of routine services. The target CPE sends heartbeat messages at shorter intervals, enabling the target CPE to interact with the second ACS more frequently. When the first ACS receives the second operation command, it is easier to ensure that the first ACS can actively connect to the target CPE based on the second operation command, so that the first ACS can send configuration parameters to the target CPE or obtain target CPE parameters, etc.
[0016] In some embodiments, an interactive control method is provided, which further includes, after the second ACS receives the heartbeat message from the target CPE:
[0017] When the second ACS receives the heartbeat message from the target CPE, the second ACS marks the offline setting status of the target CPE as offline in operation status;
[0018] When the target CPE is set to offline operation, the second ACS displays the target CPE's information in the active device list at the front end of the first ACS. The active device list is used to store CPE information marked as offline operation by the second ACS.
[0019] One of the above technical solutions has the following advantages or beneficial effects: Based on the second preset period and the address of the second ACS in the received first operation request, the target CPE sends a heartbeat message to the second ACS for the first time. After a second preset period, the target CPE sends a heartbeat message to the target CPE again. When the second ACS receives the heartbeat message from the target CPE again, it marks the target CPE's offline setting status as offline-in-operation. After setting the target CPE's offline setting status to offline-in-operation, the second ACS can display the target CPE's information in the active device list at the front end of the first ACS. Displaying the target CPE's information through the active device list at the front end of the first ACS can remind staff, making it easier for them to remember that they actively connected to the target CPE before sending configuration parameters or obtaining target CPE parameters. If they still need to send configuration parameters or obtain target CPE parameters, they can continue the operation directly, providing convenience for staff.
[0020] In some embodiments, an interactive control method is provided, wherein after the second ACS marks the offline setting status of the target CPE as an offline operable status, the method includes:
[0021] The second ACS adds the target CPE's information to the active state buffer;
[0022] During the aging period of the active state buffer, if the second ACS receives a heartbeat message from the target CPE, it refreshes the information of the target CPE.
[0023] If the second ACS does not receive the heartbeat message of the target CPE during the aging period of the active state buffer, the information of the target CPE in the active state buffer is deleted.
[0024] One of the above technical solutions has the following advantages or beneficial effects: After the second ACS marks the offline setting status of the target CPE as offline operable, the second ACS adds the target CPE's SN information to the active status buffer. If the second ACS receives a heartbeat message from the target CPE, the second ACS refreshes the target CPE's information to restart the preset timer. If the second ACS does not receive a heartbeat message from the target CPE within the aging period of the active status buffer, the second ACS deletes the target CPE's information from the active status buffer. Storing the information of the target CPE marked as offline operable in the active status buffer facilitates the management of the target CPE marked as offline operable through the active status buffer, thereby enabling staff to manage the target CPE in an orderly manner.
[0025] In some embodiments, an interactive control method is provided, wherein after the second ACS marks the offline setting status of the target CPE as offline in operation, the method further includes:
[0026] The second ACS adds the information of the target CPE to the operation mapping buffer;
[0027] When the aging time of the operation mapping buffer is reached or the second ACS receives an instruction to exit the offline operation state of the target CPE, the second ACS updates the offline setting state of the target CPE to the offline operable state, sets the heartbeat cycle of the target CPE to the second preset cycle, and deletes the information of the target CPE in the operation mapping buffer.
[0028] When the second ACS receives the heartbeat message from the target CPE, the second ACS sends a third operation request to the target CPE; wherein, the third operation request includes a second preset period, so that the target CPE sends a heartbeat message to the second ACS based on the second preset period.
[0029] One of the above technical solutions has the following advantages or beneficial effects: After the second ACS marks the offline setting status of the target CPE as offline operational, the second ACS adds the target CPE's SN information to the operation mapping buffer. When the aging time or preset time of the operation mapping buffer is reached, or when the second ACS receives an instruction to exit the target CPE's offline operational status, the second ACS can update the target CPE's offline setting status to offline operational status, set the target CPE's heartbeat cycle to a second preset cycle, and delete the corresponding target CPE information from the operation mapping buffer. Thus, both automatic and manual exit from the target CPE's offline operational status can be achieved. After updating the target CPE's offline setting status to offline operational status, when the second ACS receives the target CPE's heartbeat message again, the second ACS sends a third operation request to the target CPE. The third operation request instructs the target CPE to send heartbeat messages to the second ACS at a second preset cycle. By reducing the frequency of heartbeat messages sent from the target CPE to the second ACS, the pressure on the second ACS can be reduced.
[0030] In some embodiments, an interactive control method is provided, the method further comprising:
[0031] When the second ACS receives an instruction to exit the offline operable state of the target CPE, the second ACS sets the heartbeat cycle of the target CPE to a first preset cycle;
[0032] When the second ACS receives the heartbeat message from the target CPE, the second ACS sends a fourth operation request to the target CPE; wherein, the fourth operation request includes a first preset period and the address of the first ACS, so that the target CPE sends a heartbeat message to the first ACS based on the first preset period.
[0033] One of the above technical solutions has the following advantages or beneficial effects: If the second ACS receives an instruction to exit the offline operable state of the target CPE, the second ACS can set the heartbeat period of the target CPE to a first preset period. In this way, the second ACS adjusts the heartbeat period of the target CPE to the first preset period to reduce the frequency of heartbeat messages sent by the target CPE. After the second ACS sets the heartbeat period of the target CPE to the first preset period, when the second ACS receives a heartbeat message from the target CPE, the second ACS sends a fourth operation request to the target CPE. The fourth operation request instructs the target CPE to send heartbeat messages to the first ACS at a period of the first preset period. This restores the period at which the target CPE sends heartbeat messages to the first ACS, and allows the first ACS to continue receiving heartbeat messages sent by the target CPE.
[0034] In some embodiments, an interactive control method is provided, wherein after the second ACS receives an instruction to exit the offline operable state of the target CPE, the method further includes:
[0035] The second ACS updates the offline setting status of the target CPE to a non-offline diagnostic status and deletes the target CPE's information from the active status cache.
[0036] One of the above technical solutions has the following advantages or beneficial effects: If the second ACS receives an instruction to exit the offline operable state of the target CPE, the second ACS can update the offline setting state of the target CPE to the non-offline diagnostic state. In this way, automatic exit from the offline operable state of the target CPE can be achieved.
[0037] In some embodiments, a server is provided, including a first ACS and a second ACS, wherein the first ACS and the second ACS are connected to a target CPE; wherein the first ACS and the second ACS are configured to:
[0038] In response to a first operation command from the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE;
[0039] If the first ACS does not receive a response from the target CPE within a preset time, the first ACS will mark the offline setting status of the target CPE as offline pending diagnosis status.
[0040] When the first ACS receives a heartbeat message sent by the target CPE based on a first preset period, if the offline setting status of the target CPE is offline pending diagnosis status, a first operation request is sent to the target CPE; wherein, the first operation request includes a second preset period and the address of the second ACS, the second preset period and the address of the second ACS are used to instruct the target CPE to send a heartbeat message to the second ACS based on the second preset period, and the second preset period is shorter than the first preset period;
[0041] When the second ACS receives the heartbeat message of the target CPE, the second ACS obtains the information of the target CPE from the heartbeat message to update the information of the target CPE;
[0042] In response to a second operation command from the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE based on the updated information of the target CPE.
[0043] One of the above technical solutions has the following advantages or beneficial effects: The server includes a first ACS and a second ACS. The server adopts a microservice architecture, which can distribute the ACS's business to the first ACS and the second ACS to reduce the pressure on the ACS. When it is necessary to send configuration parameters to or obtain target CPE parameters, the staff can operate the front-end page of the first ACS to generate a first operation command, causing the first ACS to actively connect to the target CPE. When the first ACS receives a heartbeat message from the target CPE, if the target CPE's offline setting status is offline pending diagnosis, in response to receiving the heartbeat message, the first ACS sends a first operation request to the target CPE. The first operation request is used to instruct the target CPE to send heartbeat messages to the second ACS at a second preset period. The second preset period is shorter than the first preset period, and the second preset period can be 20 minutes or 10 minutes, thus reducing the period at which the target CPE sends heartbeat messages, making the target CPE send heartbeat messages more frequently. After the first ACS sends a first operation request to the target CPE, the second ACS will receive a heartbeat message from the target CPE after a certain period of time. Upon receiving the heartbeat message, the second ACS can obtain information about the target CPE. Updating this information ensures that the second ACS can more accurately identify and process services related to the target CPE in subsequent interactions. When the first ACS receives a second operation instruction to send configuration parameters to or retrieve parameters from the target CPE, it will proactively connect to the target CPE based on the updated information. If the first ACS fails to connect to the target CPE, the frequency of heartbeat messages sent by the target CPE to the second ACS can be adjusted to ensure the first ACS can reconnect to the target CPE more frequently.
[0044] In some embodiments, a server is provided, wherein the second ACS is further configured to:
[0045] The second ACS marks the offline setup status of the target CPE as offline operable;
[0046] When the second ACS receives the heartbeat message from the target CPE, if the offline setting status of the target CPE is offline operable, the second ACS sends a second operation request to the target CPE; wherein, the second operation request includes a third preset period, the third preset period is used to instruct the target CPE to send a heartbeat message to the second ACS based on the third preset period, and the third preset period is shorter than the second preset period.
[0047] One of the above technical solutions has the following advantages or beneficial effects: When the second ACS receives a heartbeat message from the target CPE, the second ACS marks the target CPE's offline setting status as offline operable. When the second ACS receives a heartbeat message from the target CPE, if the target CPE's offline setting status is offline operable, the second ACS sends a second operation request to the target CPE. The second operation request instructs the target CPE to send heartbeat messages to the second ACS at a third preset period. The third preset period is shorter than the second preset period, thereby reducing the period at which the target CPE sends heartbeat messages, making the target CPE send heartbeat messages more frequently. The target CPE sends heartbeat messages with a further shortened period to the second ACS, so that the second ACS can take on the responsibility of receiving and processing the frequently sent heartbeat messages from the target CPE, which can further reduce the impact of the target CPE's frequent heartbeat message sending on the first ACS's processing of routine services. The target CPE sends heartbeat messages at shorter intervals, enabling the target CPE to interact with the second ACS more frequently. When the first ACS receives the second operation command, it is easier to ensure that the first ACS can actively connect to the target CPE based on the second operation command, so that the first ACS can send configuration parameters to the target CPE or obtain target CPE parameters, etc.
[0048] In some embodiments, a server is provided, wherein the second ACS is further configured to:
[0049] When the second ACS receives the heartbeat message from the target CPE, the second ACS marks the offline setting status of the target CPE as offline in operation status;
[0050] When the target CPE is set to offline operation, the second ACS displays the target CPE's information in the active device list at the front end of the ACS. The active device list is used to store CPE information marked as offline operation by the second ACS.
[0051] One of the above technical solutions has the following advantages or beneficial effects: Based on the second preset period and the address of the second ACS in the received first operation request, the target CPE sends a heartbeat message to the second ACS for the first time. After a second preset period, the target CPE sends a heartbeat message to the target CPE again. When the second ACS receives the heartbeat message from the target CPE again, it marks the target CPE's offline setting status as offline-in-operation. After setting the target CPE's offline setting status to offline-in-operation, the second ACS can display the target CPE's information in the active device list at the front end of the first ACS. Displaying the target CPE's information through the active device list at the front end of the first ACS can remind staff, making it easier for them to remember that they actively connected to the target CPE before sending configuration parameters or obtaining target CPE parameters. If they still need to send configuration parameters or obtain target CPE parameters, they can continue the operation directly, providing convenience for staff. Attached Figure Description
[0052] To more clearly illustrate the technical solutions in this disclosure, the accompanying drawings used in some embodiments of this disclosure will be briefly described below. Obviously, the drawings described below are only drawings of some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings. In addition, the drawings described below can be regarded as schematic diagrams and are not intended to limit the actual size of the product, the actual flow of the method, the actual timing of the signals, etc. involved in the embodiments of this disclosure.
[0053] Figure 1 This is a diagram illustrating an application scenario of an auto-configuration server according to some embodiments;
[0054] Figure 2 This is an automatic configuration server and user-side device interaction control method according to some embodiments;
[0055] Figure 3 This is another method for automatically configuring the interaction between the server and the user-side device, according to some embodiments;
[0056] Figure 4 Here is a flowchart of an interactive control method according to some embodiments;
[0057] Figure 5 Here is a flowchart of yet another interactive control method according to some embodiments;
[0058] Figure 6 Here is a flowchart of another interactive control method according to some embodiments;
[0059] Figure 7Here is a flowchart of another interactive control method according to some embodiments;
[0060] Figure 8 Here is a flowchart of another interactive control method according to some embodiments;
[0061] Figure 9 Here is a flowchart of another interactive control method according to some embodiments;
[0062] Figure 10 This is a structural diagram of a server according to some embodiments. Detailed Implementation
[0063] The following description, in conjunction with the accompanying drawings, provides a clear and detailed account of some embodiments of this disclosure. However, the described embodiments are merely some, and not all, of the embodiments described herein. All other embodiments obtained by those skilled in the art based on the embodiments provided herein are within the scope of protection of this disclosure.
[0064] Unless the context otherwise requires, throughout the specification and claims, the term "comprising" is interpreted as open and inclusive, meaning "including, but not limited to"; the terms "first" and "second" should not be construed as indicating or implying relative importance or indicating an upper limit on the number; the term "multiple" means two or more; the term "connection" should be interpreted broadly, for example, "connection" can be a fixed connection, a detachable connection, or an integral part, and can be a direct connection or an indirect connection through an intermediate medium; the use of the terms "applicable to" or "configured to" implies open and inclusive language, which does not exclude applicability to or configuration to devices performing additional tasks or steps; descriptions such as "parallel," "perpendicular," "identical," "consistent," and "aligned" are not limited to absolute mathematical theoretical relationships, but also include acceptable error ranges arising in practice, and differences based on the same design concept but due to manufacturing reasons.
[0065] Figure 1 This is a diagram illustrating an application scenario of an auto-configuration server according to some embodiments. For example... Figure 1As shown, the ACS100 connects to the first optical line terminal (OLT) 200a, the second OLT 200b, etc. The first OLT 200a connects to CPE 200a-1 and CPE 200a-2, etc., which are located within the same local area network (LAN). The second OLT 200b connects to CPE 200b-1 and CPE 200b-2, etc., which are also located within the same LAN. CPE 200a-1, CPE 200a-2, CPE 200b-1, and CPE 200b-2 can be routers, ONUs, or gateways, etc.
[0066] Figure 2 This is an automatic configuration server and user-side device interaction control method according to some embodiments. For example... Figure 2 As shown, in some embodiments, when the ACS needs to actively send TR069 management parameters, such as to send configuration parameters or obtain target CPE parameters, the ACS will actively initiate a connection to the target CPE, which can be any of the CPEs mentioned above.
[0067] In some embodiments, when the ACS receives an operation instruction that requires sending configuration parameters to or retrieving target CPE parameters, the specific operations are as follows: Step 1, the ACS sends an HTTP Get request to the target CPE to enable the ACS to reconnect to the target CPE; the target CPE receives the HTTP Get request sent by the ACS and disconnects the session with the ACS in response to the request; Step 2, based on the received HTTP Get request, the target CPE initiates an HTTP(s) Post request to the ACS, and the ACS replies to the HTTP(s) Post request to prompt the target CPE to continue the session; the target CPE sends a blank message to the ACS to enable the ACS to send configuration parameters or issue an instruction to retrieve target CPE parameters. If a failure occurs in Step 1, the ACS will not receive response information such as the HTTP(s) Post request initiated by the target CPE to the ACS within a preset time, making it impossible for the ACS to reconnect to the target CPE, thereby preventing the ACS from sending configuration parameters to or retrieving target CPE parameters.
[0068] In some embodiments, the ACS includes a first ACS and a second ACS, which have different addresses, such as different URLs. The ACS uses a microservice architecture, which distributes the workload of the ACS across the first and second ACS to reduce the load on the ACS. For example, the first ACS handles routine system tasks, such as sending configuration parameters to or retrieving parameters from the CPE; the second ACS handles newly added auxiliary tasks, such as offline diagnostic tasks.
[0069] Figure 3 This is another method for automatically configuring the interaction control between the server and the user-side device, according to some embodiments. For example... Figure 3 As shown, in some embodiments, the first ACS and the second ACS are used to interactively control the target CPE so that the ACS can connect to the CPE in reverse, enabling the ACS to send configuration parameters to the CPE in a timely manner or actively obtain CPE parameters, etc.
[0070] In some embodiments, this disclosure provides an interactive control method, wherein the executing entity of the interactive control method is a first ACS and a second ACS. Figure 4 This is a flowchart of an interactive control method according to some embodiments. Figure 4 As shown, in some embodiments, the interactive control method includes:
[0071] S100: In response to a first operation command from the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE.
[0072] In some embodiments, the target CPE can send a heartbeat message to the first ACS. The first ACS determines that the hardware connection between the target CPE and the ACS is normal upon receiving the heartbeat message, i.e., the first ACS determines that the target CPE is online upon receiving the heartbeat message. For example, the target CPE can periodically send heartbeat messages to the first ACS, with the period being a first preset period, such as one day. If the first ACS receives at least one heartbeat message from the target CPE within two consecutive periods, it considers the hardware connection between the target CPE and the ACS to be normal.
[0073] The first operation instruction is used to instruct the first ACS to send an active connection to the target CPE. For example, the first ACS sends an HTTP GET request to the target CPE. In some embodiments, when it is necessary to send configuration parameters to the target CPE or obtain target CPE parameters, the operator can operate the front-end page of the first ACS to generate the first operation instruction, causing the first ACS to actively connect to the target CPE.
[0074] S200: If the first ACS does not receive a response from the target CPE within a preset time, the first ACS marks the offline setting status of the target CPE as an offline pending diagnosis status.
[0075] When the first ACS fails to actively connect to the target CPE, it will be unable to receive any response from the target CPE within a preset time. If the first ACS does not receive a response from the target CPE within the preset time, it will mark the target CPE's offline setup status as "offline pending diagnosis." The offline setup status can include multiple states, such as "offline pending diagnosis," to distinguish different states of the corresponding target CPE. The "offline pending diagnosis" status indicates that the corresponding target CPE has failed to be actively connected to by the first ACS.
[0076] In some embodiments, the device information table in the ACS data includes the offline setting status of the CPE, which includes non-offline diagnostic status, offline pending diagnostic status, offline operable status, and offline operational status. The default or initial offline setting status of the CPE is non-offline diagnostic status. For example, offline setting status = 0 indicates non-offline diagnostic status, offline setting status = 1 indicates offline pending diagnostic status, offline setting status = 2 indicates offline operable status, and offline setting status = 3 indicates offline operational status.
[0077] S300: When the first ACS receives a heartbeat message sent by the target CPE based on a first preset period, if the offline setting status of the target CPE is offline pending diagnosis status, a first operation request is sent to the target CPE; wherein, the first operation request includes a second preset period and the address of the second ACS, the second preset period and the address of the second ACS are used to instruct the target CPE to send a heartbeat message to the second ACS based on the second preset period, and the second preset period is shorter than the first preset period.
[0078] When the first ACS receives a heartbeat message from the target CPE, if the target CPE's offline setting status is "offline pending diagnosis," the first ACS sends a first operation request to the target CPE in response to receiving the heartbeat message. The first operation request instructs the target CPE to send heartbeat messages to the second ACS at a second preset period. For example, the first operation request includes the second preset period and the address of the second ACS. The target CPE can send heartbeat messages to the second ACS at the second preset period based on the second preset period and the address of the second ACS.
[0079] The second preset period is shorter than the first preset period. The second preset period can be 20 minutes or 10 minutes. This reduces the period during which the target CPE sends heartbeat messages, causing the target CPE to send heartbeat messages more frequently. The target CPE sends the heartbeat messages with the shortened period to the second ACS, so that the second ACS can receive and process the frequently sent heartbeat messages from the target CPE, thus reducing the impact of the frequent heartbeat message sending by the target CPE on the first ACS's processing of routine business.
[0080] In some embodiments, after the target CPE receives a first operation request from the first ACS, the target CPE parses the first operation request to obtain the address of the second preset period and the second ACS. After waiting for the second preset period, the target CPE sends a heartbeat message to the second ACS.
[0081] S400: When the second ACS receives the heartbeat message of the target CPE, the second ACS obtains the information of the target CPE from the heartbeat message to update the information of the target CPE.
[0082] After the first ACS sends a first operation request to the target CPE, the second ACS will receive a heartbeat message from the target CPE after a certain period of time. Upon receiving the heartbeat message, the second ACS can obtain information about the target CPE. For example, when the second ACS receives the heartbeat message, it can extract the target CPE's information from the message and update information in its ACS database, such as the target CPE's virtual IP address, based on this information.
[0083] The second ACS updates the target CPE information, ensuring that the ACS can more accurately identify and process services related to the target CPE during subsequent interactions. Because the first and second ACSs have a certain functional division of labor, the second ACS's update of the target CPE information also provides the first ACS with more accurate and comprehensive data support when processing routine services, making the entire interactive control process more efficient and stable.
[0084] S500: In response to the second operation instruction of the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE based on the updated target CPE information.
[0085] When the first ACS receives another operation instruction to send configuration parameters to the target CPE or to obtain target CPE parameters, in order to distinguish this operation instruction from the first operation instruction, this operation instruction is referred to as the second operation instruction. In response to the second operation instruction, the first ACS will actively connect to the target CPE based on the updated target CPE information.
[0086] When the first ACS fails to actively connect to the target CPE, the frequency of the target CPE sending heartbeat messages to the second ACS is adjusted, so that the target CPE sends heartbeat messages to the second ACS more frequently.
[0087] Figure 5 This is a flowchart of yet another interactive control method according to some embodiments. For example... Figure 5 As shown, in some embodiments, prior to a second operation command from the first ACS to actively connect to the target CPE, the method further includes:
[0088] S600: The second ACS marks the offline setup status of the target CPE as an offline operable status.
[0089] In some embodiments, when the second ACS receives a heartbeat message from the target CPE, the second ACS marks the target CPE's offline setup status as offline operable. For example, the target CPE sends a heartbeat message to the second ACS for the first time based on the second preset period and the address of the second ACS in the received first operation request; when the second ACS receives the heartbeat message from the target CPE, the second ACS marks the target CPE's offline setup status as offline operable.
[0090] S700: When the second ACS receives the heartbeat message from the target CPE, if the offline setting status of the target CPE is offline operable, the second ACS sends a second operation request to the target CPE; wherein, the second operation request includes a third preset period, the third preset period is used to instruct the target CPE to send a heartbeat message to the second ACS based on the third preset period, and the third preset period is shorter than the second preset period.
[0091] In some embodiments, when the second ACS receives a heartbeat message from the target CPE, if the target CPE's offline setup state is offline operable, the second ACS sends a second operation request to the target CPE. The second operation request instructs the target CPE to send a jump message to the second ACS at a third preset period. For example, the second operation request includes the third preset period. The target CPE periodically sends jump messages to the second ACS at the third preset period.
[0092] The third preset period is shorter than the second preset period. This third preset period can be 1 minute or 2 minutes, further reducing the period at which the target CPE sends heartbeat messages, allowing the target CPE to send heartbeat messages more frequently. The target CPE sends these heartbeat messages with the further shortened period to the second ACS, enabling the second ACS to receive and process the frequently sent heartbeat messages, thus further reducing the impact of the target CPE's frequent heartbeat message sending on the first ACS's routine business processing. The shorter heartbeat message sending period allows the target CPE to interact with the second ACS more frequently. When the first ACS receives the second operation command, it is easier to ensure that the first ACS can actively connect to the target CPE based on the second operation command, enabling the first ACS to send configuration parameters to the target CPE or obtain target CPE parameters, etc.
[0093] In some embodiments, after the target CPE receives the second operation request sent by the first ACS, the target CPE parses the second operation request to obtain a third preset period. After waiting for the third preset period, the target CPE sends a heartbeat message to the second ACS.
[0094] Figure 6 This is a flowchart of yet another interactive control method according to some embodiments. For example... Figure 6 As shown, in some embodiments, after the second ACS receives the heartbeat message from the target CPE, the method further includes:
[0095] S800: When the second ACS receives the heartbeat message of the target CPE, the second ACS marks the offline setting status of the target CPE as offline in operation status.
[0096] In some embodiments, the target CPE sends a heartbeat message to the second ACS for the first time based on the second preset period and the address of the second ACS in the received first operation request. After the second preset period, the target CPE sends a heartbeat message to the target CPE again. When the second ACS receives the heartbeat message sent by the target CPE again, the second ACS marks the offline setting status of the target CPE as offline in operation status.
[0097] S900: When the offline setting status of the target CPE is offline in operation, the second ACS displays the information of the target CPE in the active device list at the front end of the first ACS; the active device list is used to store CPE information marked as offline in operation by the second ACS.
[0098] The active device list at the first ACS front end stores CPE information marked as offline but operational by the second ACS. This allows staff to quickly identify which CPEs are offline but operational, facilitating resource allocation and task scheduling. The active device list enables staff to intuitively manage target CPEs, such as quickly launching frequently used operations directly from the list, improving work efficiency. Furthermore, the list allows for rapid querying and verification of target CPE information, ensuring accuracy and completeness, and facilitating more complex device management and maintenance later.
[0099] In some embodiments, after setting the offline status of the target CPE to offline operation status, the second ACS can display the target CPE information in the active device list of the first ACS front end. Displaying the target CPE information through the active device list of the first ACS front end can remind the staff and make it easy for them to remember that they actively connected to the target CPE before sending configuration parameters or obtaining target CPE parameters. If they still need to send configuration parameters to the target CPE or obtain target CPE parameters, they can continue the operation directly, which provides convenience for the staff.
[0100] Figure 7 This is a flowchart of another interactive control method according to some embodiments. Figure 7 As shown, in some embodiments, after the second ACS marks the offline setup status of the target CPE as an offline operable status, the method includes:
[0101] S1000: The second ACS adds the information of the target CPE to the active state cache.
[0102] In some embodiments, the ACS database includes an active state cache, which stores CPE information marked as offline operational, such as the CPE's serial number (SN). For example, the active state cache may store CPE information marked as offline operational for a preset period of time; when the preset period is reached, the corresponding CPE information in the active state cache will disappear. Alternatively, the duration for which the active state cache stores CPE information marked as offline operational may be the aging period of the active state cache.
[0103] In some embodiments, after the second ACS marks the offline setup status of the target CPE as offline operable, the second ACS adds the SN information of the target CPE to the active status cache.
[0104] S1100: During the aging period of the active state buffer, if the second ACS receives the heartbeat message of the target CPE, it refreshes the information of the target CPE.
[0105] If the second ACS receives a heartbeat message from the target CPE within a preset time, the second ACS refreshes the target CPE's information to restart the preset timer. For example, if the second ACS receives a heartbeat message from the target CPE within the aging period of the active state buffer, the second ACS refreshes the target CPE's information to achieve the purpose of re-storing the target CPE information in the active state buffer.
[0106] S1200: If the second ACS does not receive the heartbeat message of the target CPE during the aging period of the active state buffer, the information of the target CPE in the active state buffer is deleted.
[0107] If the second ACS does not receive a heartbeat message from the target CPE within a preset time, the second ACS will delete the target CPE's information from the active state buffer. For example, if the second ACS does not receive a heartbeat message from the target CPE within the aging period of the active state buffer, the second ACS will delete the target CPE's information from the active state buffer.
[0108] In this way, the information of the target CPE marked as offline and operable is stored in the active state cache, which makes it easier to manage the target CPE marked as offline and operable through the active state cache, thereby enabling staff to manage the target CPE in an orderly manner.
[0109] Figure 8 This is a flowchart of another interactive control method according to some embodiments. Figure 8 As shown, in some embodiments, after the second ACS marks the offline setup status of the target CPE as offline in operation, the method includes:
[0110] S1300: The second ACS adds the information of the target CPE to the operation mapping buffer.
[0111] In some embodiments, the ACS database includes an operation mapping cache. The operation mapping cache can store CPE information marked as offline and in an operational state, such as the CPE's serial number (SN). For example, the operation mapping cache can store CPE information marked as offline and in an operational state for a preset period of time; when the preset period is reached, the corresponding CPE information in the operation mapping cache will disappear; or the duration for which the operation mapping cache stores CPE information marked as offline and in an operational state can be considered the aging period of the operation mapping cache.
[0112] In some embodiments, after the second ACS marks the offline setting status of the target CPE as offline in operation, the second ACS adds the SN information of the target CPE to the operation mapping buffer.
[0113] S1400: When the aging time of the operation mapping buffer is reached or the second ACS receives an instruction to exit the target CPE offline operation state, the second ACS updates the offline setting state of the target CPE to the offline operable state, sets the heartbeat cycle of the target CPE to the second preset cycle, and deletes the information of the target CPE in the operation mapping buffer.
[0114] In some embodiments, when the aging time or preset time of the operation mapping buffer is reached, the second ACS can update the offline setting status of the target CPE to an offline operable status.
[0115] In some embodiments, when the aging time or preset time of the operation mapping buffer is reached, the second ACS can set the heartbeat cycle of the target CPE to a second preset cycle.
[0116] In some embodiments, when the aging time or preset time of the operation mapping cache is reached, the second ACS may delete the information of the corresponding target CPE in the operation mapping cache.
[0117] In some embodiments, during the aging period of the operation mapping buffer, if the second ACS receives an instruction to exit the target CPE offline operation state, the second ACS can update the offline setting state of the target CPE to the offline operable state.
[0118] In some embodiments, if the second ACS receives an instruction to exit the target CPE from the offline operating state during the aging period of the operation mapping buffer, the second ACS can set the heartbeat period of the target CPE to a second preset period.
[0119] In some embodiments, during the aging period of the operation mapping buffer, if the second ACS receives an instruction to exit the target CPE offline operation state, the second ACS may delete the information of the corresponding target CPE in the operation mapping buffer.
[0120] Thus, based on the above operating methods, it is possible to automatically exit the offline operating state of the target CPE, or to manually exit the offline operating state of the target CPE.
[0121] S1500: When the second ACS receives the heartbeat message from the target CPE, the second ACS sends a third operation request to the target CPE; wherein, the third operation request includes a second preset period, so that the target CPE sends a heartbeat message to the second ACS based on the second preset period.
[0122] In some embodiments, after the offline setting status of the target CPE is updated to an offline operable status, when the second ACS receives the heartbeat message from the target CPE again, the second ACS sends a third operation request to the target CPE. The third operation request instructs the target CPE to send heartbeat messages to the second ACS at a second preset period. Exemplarily, the third operation request includes the second preset period. The target CPE can send heartbeat messages to the second ACS based on the second preset period. Of course, in some embodiments, the third operation request does not only include the second preset period, but may also include a fourth preset period, which is longer than the third preset period, to extend the period at which the target CPE sends heartbeat messages to the second ACS, reducing the frequency of heartbeat message transmission from the target CPE to the second ACS, thereby reducing the load on the second ACS.
[0123] Figure 9 This is a flowchart of another interactive control method according to some embodiments. Figure 9 As shown, in some embodiments, the interactive control method further includes:
[0124] S1600: When the second ACS receives an instruction to exit the offline operable state of the target CPE, the second ACS sets the heartbeat cycle of the target CPE to a first preset cycle.
[0125] In some embodiments, if the second ACS receives an instruction to exit the offline operational state of the target CPE, the second ACS can set the heartbeat cycle of the target CPE to a first preset cycle. Thus, the second ACS adjusts the heartbeat cycle of the target CPE to the first preset cycle to reduce the frequency at which the target CPE sends heartbeat messages.
[0126] In some embodiments, if the second ACS receives an instruction to exit the offline operational state of the target CPE, the second ACS can update the offline setting status of the target CPE to a non-offline diagnostic state. This enables automatic exit from the offline operational state of the target CPE.
[0127] In some embodiments, if the second ACS receives an instruction to exit the offline operational state of the target CPE, the second ACS may delete the information of the target CPE in the active state cache.
[0128] S1700: When the second ACS receives the heartbeat message from the target CPE, the second ACS sends a fourth operation request to the target CPE; wherein, the fourth operation request includes a first preset period and the address of the first ACS, so that the target CPE sends a heartbeat message to the first ACS based on the first preset period.
[0129] In some embodiments, after the second ACS sets the heartbeat period of the target CPE to a first preset period, when the second ACS receives a heartbeat message from the target CPE, the second ACS sends a fourth operation request to the target CPE. The fourth operation request instructs the target CPE to send heartbeat messages to the first ACS at a period of the first preset period. Exemplarily, the fourth operation request includes the first preset period and the address of the first ACS. The target CPE can then send heartbeat messages to the first ACS at the first preset period based on the first preset period and the address of the first ACS. This restores the period at which the target CPE sends heartbeat messages to the first preset period, allowing the first ACS to continue receiving heartbeat messages from the target CPE.
[0130] In some embodiments, after the target CPE receives the fourth operation request sent by the second ACS, the target CPE parses the fourth operation request to obtain the first preset period and the address of the first ACS. After waiting for the first preset period, the target CPE sends a heartbeat message to the first ACS.
[0131] Based on the interactive control method provided in the above embodiments, a server is also provided in some embodiments. Figure 10 This is a structural diagram of a server according to some embodiments. Figure 10 As shown, in some embodiments, the server includes a first ACS and a second ACS, and the first ACS and the second ACS are connected to the target CPE via a network. The configurations of the first ACS and the second ACS are as follows:
[0132] In response to a first operation command from the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE;
[0133] If the first ACS does not receive a response from the target CPE within a preset time, the first ACS will mark the offline setting status of the target CPE as offline pending diagnosis status.
[0134] When the first ACS receives a heartbeat message sent by the target CPE based on a first preset period, if the offline setting status of the target CPE is offline pending diagnosis status, a first operation request is sent to the target CPE; wherein, the first operation request includes a second preset period and the address of the second ACS, the second preset period and the address of the second ACS are used to instruct the target CPE to send a heartbeat message to the second ACS based on the second preset period, and the second preset period is shorter than the first preset period;
[0135] When the second ACS receives the heartbeat message of the target CPE, the second ACS obtains the information of the target CPE from the heartbeat message to update the information of the target CPE;
[0136] In response to a second operation command from the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE based on the updated information of the target CPE.
[0137] In some embodiments, the second ACS is further configured to: mark the offline setup status of the target CPE as an offline operable status;
[0138] When the second ACS receives the heartbeat message from the target CPE, if the offline setting status of the target CPE is offline operable, the second ACS sends a second operation request to the target CPE; wherein, the second operation request includes a third preset period, the third preset period is used to instruct the target CPE to send a heartbeat message to the second ACS based on the third preset period, and the third preset period is shorter than the second preset period.
[0139] In some embodiments, the second ACS is further configured to: when the second ACS receives a heartbeat message from the target CPE, the second ACS marks the offline setup status of the target CPE as an offline operational status;
[0140] When the target CPE is set to offline operation, the second ACS displays the target CPE's information in the active device list at the front end of the ACS. The active device list is used to store CPE information marked as offline operation by the second ACS.
[0141] In some embodiments, the second ACS is further configured to add the information of the target CPE to the active state cache;
[0142] During the aging period of the active state buffer, if the second ACS receives a heartbeat message from the target CPE, it refreshes the information of the target CPE.
[0143] If the second ACS does not receive the heartbeat message of the target CPE during the aging period of the active state buffer, the information of the target CPE in the active state buffer is deleted.
[0144] In some embodiments, the second ACS is further configured to add the information of the target CPE to the operation mapping buffer;
[0145] When the aging time of the operation mapping buffer is reached or the second ACS receives an instruction to exit the offline operation state of the target CPE, the second ACS updates the offline setting state of the target CPE to the offline operable state, sets the heartbeat cycle of the target CPE to the second preset cycle, and deletes the information of the target CPE in the operation mapping buffer.
[0146] When the second ACS receives the heartbeat message from the target CPE, the second ACS sends a third operation request to the target CPE; wherein, the third operation request includes a second preset period, so that the target CPE sends a heartbeat message to the second ACS based on the second preset period.
[0147] In some embodiments, the second ACS is further configured to: when the second ACS receives an instruction to exit the offline operable state of the target CPE, the second ACS sets the heartbeat cycle of the target CPE to a first preset cycle;
[0148] When the second ACS receives the heartbeat message from the target CPE, the second ACS sends a fourth operation request to the target CPE; wherein, the fourth operation request includes a first preset period and the address of the first ACS, so that the target CPE sends a heartbeat message to the first ACS based on the first preset period.
[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit them. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure.
Claims
1. An interactive control method, characterized in that, The method is used for a first ACS and a second ACS, and the method includes: In response to a first operation command from the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE. If the first ACS does not receive a response from the target CPE within a preset time, the first ACS will mark the offline setting status of the target CPE as offline pending diagnosis status. When the first ACS receives a heartbeat message sent by the target CPE based on a first preset period, if the offline setting status of the target CPE is offline pending diagnosis status, a first operation request is sent to the target CPE; wherein, the first operation request includes a second preset period and the address of the second ACS, the second preset period and the address of the second ACS are used to instruct the target CPE to send a heartbeat message to the second ACS based on the second preset period, and the second preset period is shorter than the first preset period; When the second ACS receives the heartbeat message of the target CPE, the second ACS obtains the information of the target CPE from the heartbeat message to update the information of the target CPE; In response to a second operation command from the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE based on the updated information of the target CPE.
2. The interactive control method according to claim 1, characterized in that, Prior to the second operational instruction from the first ACS to actively connect to the target CPE, the method further includes: The second ACS marks the offline setup status of the target CPE as offline operable; When the second ACS receives the heartbeat message from the target CPE, if the offline setting status of the target CPE is offline operable, the second ACS sends a second operation request to the target CPE; wherein, the second operation request includes a third preset period, the third preset period is used to instruct the target CPE to send a heartbeat message to the second ACS based on the third preset period, and the third preset period is shorter than the second preset period.
3. The interactive control method according to claim 2, characterized in that, After the second ACS receives the heartbeat message from the target CPE, the method further includes: When the second ACS receives the heartbeat message from the target CPE, the second ACS marks the offline setting status of the target CPE as offline in operation status; When the target CPE is set to offline operation, the second ACS displays the target CPE's information in the active device list at the front end of the first ACS. The active device list is used to store CPE information marked as offline operation by the second ACS.
4. The interactive control method according to claim 2, characterized in that, After the second ACS marks the offline setup status of the target CPE as offline operable, the method includes: The second ACS adds the target CPE's information to the active state buffer; During the aging period of the active state buffer, if the second ACS receives a heartbeat message from the target CPE, it refreshes the information of the target CPE. If the second ACS does not receive the heartbeat message of the target CPE during the aging period of the active state buffer, the information of the target CPE in the active state buffer is deleted.
5. The interactive control method according to claim 3, characterized in that, After the second ACS marks the offline setting status of the target CPE as offline in operation, the method further includes: The second ACS adds the information of the target CPE to the operation mapping buffer; When the aging time of the operation mapping buffer is reached or the second ACS receives an instruction to exit the offline operation state of the target CPE, the second ACS updates the offline setting state of the target CPE to the offline operable state, sets the heartbeat cycle of the target CPE to the second preset cycle, and deletes the information of the target CPE in the operation mapping buffer. When the second ACS receives the heartbeat message from the target CPE, the second ACS sends a third operation request to the target CPE; wherein, the third operation request includes a second preset period, so that the target CPE sends a heartbeat message to the second ACS based on the second preset period.
6. The interactive control method according to claim 5, characterized in that, The method further includes: When the second ACS receives an instruction to exit the offline operable state of the target CPE, the second ACS sets the heartbeat cycle of the target CPE to a first preset cycle; When the second ACS receives the heartbeat message from the target CPE, the second ACS sends a fourth operation request to the target CPE; wherein, the fourth operation request includes a first preset period and the address of the first ACS, so that the target CPE sends a heartbeat message to the first ACS based on the first preset period.
7. The interactive control method according to claim 6, characterized in that, After the second ACS receives an instruction to exit the offline operational state of the target CPE, the method further includes: The second ACS updates the offline setting status of the target CPE to a non-offline diagnostic status and deletes the target CPE's information from the active status cache.
8. A server, characterized in that, This includes a first ACS and a second ACS, which are connected to a target CPE; wherein the first ACS and the second ACS are configured as follows: In response to a first operation command from the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE; If the first ACS does not receive a response from the target CPE within a preset time, the first ACS will mark the offline setting status of the target CPE as offline pending diagnosis status. When the first ACS receives a heartbeat message sent by the target CPE based on a first preset period, if the offline setting status of the target CPE is offline pending diagnosis status, a first operation request is sent to the target CPE; wherein, the first operation request includes a second preset period and the address of the second ACS, the second preset period and the address of the second ACS are used to instruct the target CPE to send a heartbeat message to the second ACS based on the second preset period, and the second preset period is shorter than the first preset period; When the second ACS receives the heartbeat message of the target CPE, the second ACS obtains the information of the target CPE from the heartbeat message to update the information of the target CPE; In response to a second operation command from the first ACS to actively connect to the target CPE, the first ACS actively connects to the target CPE based on the updated information of the target CPE.
9. The server according to claim 8, characterized in that, The second ACS is also configured as follows: The second ACS marks the offline setup status of the target CPE as offline operable; When the second ACS receives the heartbeat message from the target CPE, if the offline setting status of the target CPE is offline operable, the second ACS sends a second operation request to the target CPE; wherein, the second operation request includes a third preset period, the third preset period is used to instruct the target CPE to send a heartbeat message to the second ACS based on the third preset period, and the third preset period is shorter than the second preset period.
10. The server according to claim 8, characterized in that, The second ACS is also configured as follows: When the second ACS receives the heartbeat message from the target CPE, the second ACS marks the offline setting status of the target CPE as offline in operation status; When the target CPE is set to offline operation, the second ACS displays the target CPE's information in the active device list at the front end of the ACS. The active device list is used to store CPE information marked as offline operation by the second ACS.
