Gateway device remote control method and related equipment
By activating the target API interface of the gateway device when the ACS server is disconnected from the gateway device, the problem of not being able to enable the remote access control function when disconnected is solved, and the recovery of remote control is achieved, improving the problem resolution efficiency and saving operation and maintenance costs.
Patent Information
- Application Number
- CN202310134046.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2043-02-17
AI Technical Summary
When the ACS server is disconnected from the gateway device, the lack of a method to enable the remote access control function of the gateway device, which causes the operation and maintenance personnel to be unable to perform remote control, increasing the problem handling time and operation and maintenance costs.
By obtaining the connection status between the ACS server and the gateway device, when the connection cannot be connected, the call relationship between the target API interface of the gateway device and the remote access control function is activated to enable the remote access control function.
When the ACS server is disconnected from the gateway device, the remote access function is enabled through the target API interface, and the remote control and management capabilities of the device are regained, which improves problem solving efficiency and saves maintenance costs.
Smart Images

Figure CN116112345B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of gateway control, and in particular to a gateway device remote control method and related devices. Background Art
[0002] When using a gateway device, users may encounter some problems, such as forgetting the password, being unable to connect to WiFi, unstable network, etc. At this time, the operation and maintenance personnel generally have two ways to solve the user problem: (1) remotely access the control gateway device to solve the problem; (2) go to the site to locate and solve the problem. Because the first method is more convenient and efficient, and saves operation and maintenance costs, the second method is only used for particularly serious problems and individual problems that are difficult to solve. For security reasons, the remote access function of general gateway devices is disabled by default. If you want to remotely access the gateway device, you need to enable this function first. The common method to enable the remote access function of the gateway device is: the operation and maintenance personnel access the ACS server (Auto-Configuration Server), enable the remote access function of the gateway device through the ACS server control, and then control the gateway device through the remote access function to solve the problem.
[0003] However, when a router device is disconnected due to a fault (cannot connect to the ACS), the device operation and maintenance personnel cannot enable the device remote access function through the ACS control, and cannot remotely access the device, thus losing the ability to remotely control and manage the device. They can only perform on-site repairs, which will inevitably increase problem handling time and increase operation and maintenance costs. Summary of the invention
[0004] In view of the above problems, the present invention provides a gateway device remote control method and related devices, the main purpose of which is to solve the problem of lack of a remote access control function for enabling the gateway device when the ACS server is disconnected from the gateway device.
[0005] In order to solve at least one of the above technical problems, in a first aspect, the present invention provides a gateway device remote control method, the method comprising:
[0006] Get the connection status between the ACS server and the above gateway device;
[0007] When the connection status between the ACS server and the gateway device is unavailable, the calling relationship between the target API interface of the gateway device and the remote access control function is activated.
[0008] Optionally, the above method further includes:
[0009] Receive a remote access control request sent by an access terminal;
[0010] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated and the remote access control request matches the target API interface, the remote access control function is called through the target API interface.
[0011] Optionally, the above method further includes:
[0012] Get the URL field of the above remote access control request;
[0013] In the case where the URL field matches the target URL field, determining that the remote access control request matches the target API interface, wherein the target URL field is associated with the target API interface;
[0014] Optionally, the above method further includes:
[0015] Obtain the IP address of the above remote access control request;
[0016] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated, the remote access control request matches the target API interface, and the IP address of the remote access control request matches the preset whitelist, the remote access control function is called through the target API interface.
[0017] Optionally, the above method further includes:
[0018] The timing starts after the calling relationship between the target API interface of the above gateway device and the remote access control function is activated;
[0019] When the timing reaches the preset start time, the calling relationship between the target API interface of the above-mentioned gateway device and the remote access control function is automatically closed.
[0020] Optionally, the above method further includes:
[0021] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated, monitoring the connection status between the ACS server and the gateway device;
[0022] When the connection state between the ACS server and the gateway device is restored, the calling relationship between the target API interface of the gateway device and the remote access control function is automatically closed.
[0023] Optionally, the above method further includes:
[0024] When the target access end successfully calls the remote access control function through the target API interface, monitoring the target API interface of the gateway device;
[0025] In the case of monitoring a remote access control request sent by the second access terminal, obtaining the IP address of the second access terminal;
[0026] Sending the IP address of the second access terminal to the target access terminal;
[0027] In the case that the target access terminal allows the second access terminal to access, the gateway device is controlled to enable a remote access function to the second access terminal.
[0028] In a second aspect, an embodiment of the present invention further provides a gateway device remote control device, comprising:
[0029] An acquisition unit, used to acquire the connection status between the ACS server and the above gateway device;
[0030] An activation unit, used for activating the calling relationship between the target API interface of the gateway device and the remote access control function when the connection status between the ACS server and the gateway device is unavailable;
[0031] Receive a remote access control request sent by an access terminal;
[0032] In a case where a calling relationship between a target API interface of the gateway device and a remote access control function is activated and the remote access control request matches the target API interface, calling the remote access control function through the target API interface;
[0033] Also includes:
[0034] Obtaining the URL field of the remote access control request;
[0035] In the case where the URL field matches the target URL field, determining that the remote access control request matches the target API interface, wherein the target URL field is associated with the target API interface;
[0036] Also includes:
[0037] Obtaining the IP address of the remote access control request;
[0038] In the case where the calling relationship between the target API interface of the gateway device and the remote access control function is activated, the remote access control request matches the target API interface, and the IP address of the remote access control request matches a preset whitelist, calling the remote access control function through the target API interface;
[0039] Also includes:
[0040] In the case where the target access end successfully calls the remote access control function through the target API interface, monitoring the target API interface of the gateway device;
[0041] In the case of monitoring a remote access control request sent by a second access terminal, obtaining an IP address of the second access terminal;
[0042] Sending the IP address of the second access terminal to the target access terminal;
[0043] In a case where the target access terminal allows the second access terminal to access, the gateway device is controlled to enable a remote access function for the second access terminal.
[0044] In order to achieve the above object, according to the third aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the steps of the above gateway device remote control method are implemented.
[0045] In order to achieve the above-mentioned purpose, according to the fourth aspect of the present invention, there is provided an electronic device, comprising at least one processor and at least one memory connected to the above-mentioned processor; wherein the above-mentioned processor is used to call the program instructions in the above-mentioned memory to execute the steps of the above-mentioned gateway device remote control method.
[0046] Through the above technical scheme, the gateway device remote control method and related equipment provided by the present invention are for the problem of lack of a method for enabling the remote access control function of the gateway device when the ACS server and the gateway device are disconnected. The present invention obtains the connection status between the ACS server and the above gateway device; when the connection status between the above ACS server and the above gateway device is unable to connect, activates the calling relationship between the target API interface of the above gateway device and the remote access control function. In the above scheme, based on the common method of enabling the remote access function through the ACS server, an alternative scheme, namely the above target API interface, is provided for the situation that when the device is disconnected (cannot connect to the ACS) and the remote access function cannot be enabled through the ACS server. Through the target API interface, the remote access function of the disconnected device can be effectively enabled while ensuring the safety of the device, and the remote control management capability of the device can be regained, helping operation and maintenance personnel to efficiently analyze, locate, and solve user problems, avoiding on-site inspection and problem solving, improving problem solving efficiency, and saving maintenance costs.
[0047] Correspondingly, the gateway device remote control apparatus, device and computer-readable storage medium provided by the embodiments of the present invention also have the above-mentioned technical effects.
[0048] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0050] Figure 1 A schematic diagram of a flow chart of a gateway device remote control method provided by an embodiment of the present invention is shown;
[0051] Figure 2 A schematic block diagram showing the composition of a gateway device remote control device provided by an embodiment of the present invention is shown;
[0052] Figure 3 A schematic block diagram showing the composition of a gateway device remotely controlling an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0053] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0054] In order to solve the problem that when the ACS server is disconnected from the gateway device, there is a lack of a remote access control function for opening the gateway device, the embodiment of the present invention provides a gateway device remote control method, such as Figure 1 As shown, the method includes:
[0055] S101, obtaining the connection status between the ACS server and the above gateway device;
[0056] Exemplarily, an ACS server (Auto-Configuration Server) is responsible for managing the terminal device CPE in the TR-069 protocol network architecture. The interface between the ACS and the CPE is a southbound interface, and the interface between the ACS and the management system is a northbound interface. In the present invention, the above-mentioned gateway device is the above-mentioned terminal device CPE. When the connection status between the ACS server and the above-mentioned gateway device is normal, a more secure access to the ACS server is used to control the remote access function of the device.
[0057] S102: When the connection status between the ACS server and the gateway device is unavailable, activate the calling relationship between the target API interface of the gateway device and the remote access control function.
[0058] Exemplarily, the present invention is a backup method for restarting the present solution when a gateway device such as a router is disconnected (cannot connect to the ACS) and the remote access function of the device cannot be enabled, that is, when the ACS server loses the ability to remotely control and manage the device: the target API interface activates the calling relationship between the target API interface of the above-mentioned gateway device and the remote access control function, thereby increasing the consideration and response to abnormal situations while ensuring the security of the gateway device. Through this alternative solution, the remote access function of the disconnected gateway device can be safely and effectively enabled, and the remote control and management capability of the gateway device can be regained.
[0059] By means of the above technical scheme, the gateway device remote control method provided by the present invention solves the problem of lacking a method for enabling the remote access control function of the gateway device when the ACS server and the gateway device are disconnected. The present invention obtains the connection status between the ACS server and the above gateway device; when the connection status between the above ACS server and the above gateway device is that the connection cannot be made, the target API interface of the above gateway device is activated to establish a calling relationship between the remote access control function. In the above scheme, based on the common method of enabling the remote access function through the ACS server, an alternative scheme, namely the above target API interface, is provided for the situation that the remote access function cannot be enabled through the ACS server when the device is disconnected (cannot connect to the ACS). Through the target API interface, the remote access function of the disconnected device can be effectively enabled while ensuring the safety of the device, and the remote control management capability of the device can be regained, helping operation and maintenance personnel to efficiently analyze, locate, and solve user problems, avoiding on-site inspections and problem solving, improving problem solving efficiency, and saving maintenance costs.
[0060] In one embodiment, the method further includes:
[0061] Receive a remote access control request sent by an access terminal;
[0062] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated and the remote access control request matches the target API interface, the remote access control function is called through the target API interface.
[0063] Exemplarily, when the remote access function is turned off, the gateway device will perform security filtering checks on HTTP / HTTPS requests received on the WAN side (external network), and only allow API requests to enable the remote access control function to be processed and responded to, and other requests will not be processed. The gateway device receives the remote access control request sent by the access end (i.e., the maintenance end), and calls the remote access control function through the target API interface when the remote access control request matches the target API interface. Thus, the remote access function of the unmanaged device can be effectively enabled through the alternative solution while ensuring the security of the device.
[0064] In one embodiment, the method further includes:
[0065] Get the URL field of the above remote access control request;
[0066] In the case where the URL field matches the target URL field, determining that the remote access control request matches the target API interface, wherein the target URL field is associated with the target API interface;
[0067] Exemplarily, the access terminal sends a remote access control request to the above-mentioned gateway device through the HTTP or HTTPS protocol based on the browser. After receiving the request, the gateway device first determines whether the remote access function of the gateway device has been turned on. If it is confirmed that it is not turned on, the next step can be carried out to check the URL field of the request. If the URL field matches, it is determined that the above-mentioned remote access control request sent by the above-mentioned access terminal matches the above-mentioned target API interface, and the operation that the above-mentioned access terminal wants to perform is to turn on the remote access control function of the above-mentioned gateway device; if the URL field does not match, it is determined that the above-mentioned remote access control request sent by the above-mentioned access terminal does not match the above-mentioned target API interface, and the operation that the above-mentioned access terminal wants to perform is not to turn on the remote access control function of the above-mentioned gateway device but other functions.
[0068] In one embodiment, the method further includes:
[0069] Obtain the IP address of the above remote access control request;
[0070] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated, the remote access control request matches the target API interface, and the IP address of the remote access control request matches the preset whitelist, the remote access control function is called through the target API interface.
[0071] For example, to avoid access requests from some malicious IPs, this solution adds an IP whitelist check to check whether the browser IP that sends the remote access control request is an IP in the whitelist of the operation and maintenance personnel. Only IPs in the whitelist are allowed to enable the remote access function. Therefore, the remote access control function of the gateway device can be called only when the remote access control request matches the target API interface and the IP address matches the preset whitelist.
[0072] In one embodiment, the method further includes:
[0073] The timing starts after the calling relationship between the target API interface of the above gateway device and the remote access control function is activated;
[0074] When the timing reaches the preset start time, the calling relationship between the target API interface of the above-mentioned gateway device and the remote access control function is automatically closed.
[0075] Exemplarily, because in this scheme, after the remote access control function of the gateway device is turned on, the general setting is that any subsequent access terminal can remotely access the gateway device, and the security of the gateway device is relatively low, so this method also adds a process of automatically turning off the remote access function, that is, automatically turning off the remote access control function of the gateway device after the remote access function is turned on for a period of time, thereby ensuring the security of the device in the default or non-maintenance state and preventing it from being attacked by the external network.
[0076] In one embodiment, the method further includes:
[0077] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated, monitoring the connection status between the ACS server and the gateway device;
[0078] When the connection state between the ACS server and the gateway device is restored, the calling relationship between the target API interface of the gateway device and the remote access control function is automatically closed.
[0079] Exemplarily, the method of enabling the remote access function through ACS is the safest, and the target API interface is an alternative solution. Therefore, this method monitors the connection status between the above-mentioned ACS server and the above-mentioned gateway device in real time. If the connection status between the ACS server and the above-mentioned gateway device is restored, the calling relationship between the target API interface of the above-mentioned gateway device and the remote access control function is automatically closed, and a safer access to the ACS server is used again to control the remote access function of the device.
[0080] In one embodiment, the method further includes:
[0081] When the target access end successfully calls the remote access control function through the target API interface, monitoring the target API interface of the gateway device;
[0082] In the case of monitoring a remote access control request sent by the second access terminal, obtaining the IP address of the second access terminal;
[0083] Sending the IP address of the second access terminal to the target access terminal;
[0084] In the case that the target access terminal allows the second access terminal to access, the gateway device is controlled to enable a remote access function to the second access terminal.
[0085] Exemplarily, in response to the problem that after the remote access control function of the gateway device is turned on, the general setting is that any subsequent access terminal can remotely access the gateway device, and the security of the gateway device is low, by real-time monitoring the target API interface of the gateway device, if a target access terminal has turned on the remote access function of the gateway device, the second access terminal that subsequently sends a remote access control request is verified. The verification method is to determine whether the second access terminal can continue to access the gateway device based on the determination result of the target access terminal. Because the target access terminal matches the remote access control request with the target API interface and the IP address with the preset whitelist, both of which are met, its security is the highest, so the determination authority for the second access terminal is given to the target access terminal.
[0086] Exemplarily, the specific implementation steps of this method may be:
[0087] 1. The access end sends the above remote access control request based on the browser through HTTP or HTTPS protocol.
[0088] 2. When the gateway device receives the above remote access control request, it first determines whether the remote access function of the gateway device is enabled. If not, it performs a matching check on the URL field of the request. If it is not an API interface request to enable the remote access function, it intercepts the request; if it is an API interface request to enable the remote access function, it proceeds to the next step of this solution.
[0089] 3. Check whether the router is connected to the ACS server successfully. If the connection is successful, it returns failure and the connection is unsuccessful, and proceed to the next step of this solution.
[0090] 4. Check the IP address of the access end that sends the access request. If it is not in the whitelist, it returns failure. If it is in the whitelist, enable the remote access function of the device.
[0091] 5. For security reasons, after enabling the remote access function of the device in step 4, enable the timer to automatically turn off the remote access function after 3600 seconds.
[0092] Furthermore, as a response to the above Figure 1 In order to realize the method shown in the figure, the embodiment of the present invention also provides a gateway device remote control device for controlling the above Figure 1 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 2 As shown, the device includes: an acquisition unit 21 and an activation unit 22, wherein
[0093] An acquisition unit 21 is used to acquire the connection status between the ACS server and the gateway device;
[0094] The activation unit 22 is used to activate the calling relationship between the target API interface of the gateway device and the remote access control function when the connection status between the ACS server and the gateway device is unavailable.
[0095] Exemplarily, the above unit is also used for:
[0096] Receive a remote access control request sent by an access terminal;
[0097] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated and the remote access control request matches the target API interface, the remote access control function is called through the target API interface.
[0098] Exemplarily, the above unit is also used for:
[0099] Get the URL field of the above remote access control request;
[0100] In the case where the URL field matches the target URL field, determining that the remote access control request matches the target API interface, wherein the target URL field is associated with the target API interface;
[0101] Exemplarily, the above unit is also used for:
[0102] Obtain the IP address of the above remote access control request;
[0103] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated, the remote access control request matches the target API interface, and the IP address of the remote access control request matches the preset whitelist, the remote access control function is called through the target API interface.
[0104] Exemplarily, the above unit is also used for:
[0105] The timing starts after the calling relationship between the target API interface of the above gateway device and the remote access control function is activated;
[0106] When the timing reaches the preset start time, the calling relationship between the target API interface of the above-mentioned gateway device and the remote access control function is automatically closed.
[0107] Exemplarily, the above unit is also used for:
[0108] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated, monitoring the connection status between the ACS server and the gateway device;
[0109] When the connection state between the ACS server and the gateway device is restored, the calling relationship between the target API interface of the gateway device and the remote access control function is automatically closed.
[0110] Exemplarily, the above unit is also used for:
[0111] When the target access end successfully calls the remote access control function through the target API interface, monitoring the target API interface of the gateway device;
[0112] In the case of monitoring a remote access control request sent by the second access terminal, obtaining the IP address of the second access terminal;
[0113] Sending the IP address of the second access terminal to the target access terminal;
[0114] In the case that the target access terminal allows the second access terminal to access, the gateway device is controlled to enable a remote access function to the second access terminal.
[0115] By means of the above technical scheme, the gateway device remote control device provided by the present invention solves the problem of lacking a method for activating the remote access control function of the gateway device when the ACS server and the gateway device are disconnected. The present invention obtains the connection status between the ACS server and the above gateway device; when the connection status between the above ACS server and the above gateway device is that the connection cannot be connected, the target API interface of the above gateway device is activated to establish a calling relationship between the remote access control function. In the above scheme, based on the common method of activating the remote access function through the ACS server, an alternative scheme, namely the above target API interface, is provided for the situation that the remote access function cannot be activated through the ACS server when the device is disconnected (cannot connect to the ACS). Through the target API interface, the remote access function of the disconnected device can be effectively activated while ensuring the safety of the device, and the remote control management capability of the device can be regained, helping operation and maintenance personnel to efficiently analyze, locate, and solve user problems, avoiding on-site inspection and problem solving, improving problem solving efficiency, and saving maintenance costs.
[0116] The processor includes a kernel, and the kernel calls the corresponding program unit from the memory. One or more kernels can be set, and a gateway device remote control method is implemented by adjusting kernel parameters, which can solve the problem of lacking a remote access control function for opening the gateway device when the ACS server and the gateway device are disconnected.
[0117] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, and when the program is executed by a processor, the remote control method of the gateway device is implemented.
[0118] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the gateway device remote control method is executed when the program is run.
[0119] An embodiment of the present invention provides an electronic device, the electronic device comprising at least one processor and at least one memory connected to the processor; wherein the processor is used to call program instructions in the memory to execute the gateway device remote control method as described above
[0120] An embodiment of the present invention provides an electronic device 30, such as Figure 3As shown, the electronic device includes at least one processor 301, and at least one memory 302 and a bus 303 connected to the processor; wherein the processor 301 and the memory 302 communicate with each other through the bus 303; the processor 301 is used to call the program instructions in the memory to execute the above-mentioned gateway device remote control method.
[0121] The intelligent electronic devices in this article can be PCs, PADs, mobile phones, etc.
[0122] The present application also provides a computer program product, which, when executed on a process management electronic device, is suitable for executing a program for initializing the following method steps:
[0123] Get the connection status between the ACS server and the above gateway device;
[0124] When the connection status between the ACS server and the gateway device is unavailable, the calling relationship between the target API interface of the gateway device and the remote access control function is activated.
[0125] Furthermore, the above method also includes:
[0126] Receive a remote access control request sent by an access terminal;
[0127] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated and the remote access control request matches the target API interface, the remote access control function is called through the target API interface.
[0128] Furthermore, the above method also includes:
[0129] Get the URL field of the above remote access control request;
[0130] In the case where the URL field matches the target URL field, determining that the remote access control request matches the target API interface, wherein the target URL field is associated with the target API interface;
[0131] Furthermore, the above method also includes:
[0132] Obtain the IP address of the above remote access control request;
[0133] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated, the remote access control request matches the target API interface, and the IP address of the remote access control request matches the preset whitelist, the remote access control function is called through the target API interface.
[0134] Furthermore, the above method also includes:
[0135] The timing starts after the calling relationship between the target API interface of the above gateway device and the remote access control function is activated;
[0136] When the timing reaches the preset start time, the calling relationship between the target API interface of the above-mentioned gateway device and the remote access control function is automatically closed.
[0137] Furthermore, the above method also includes:
[0138] When the calling relationship between the target API interface of the gateway device and the remote access control function is activated, monitoring the connection status between the ACS server and the gateway device;
[0139] When the connection state between the ACS server and the gateway device is restored, the calling relationship between the target API interface of the gateway device and the remote access control function is automatically closed.
[0140] Furthermore, the above method also includes:
[0141] When the target access end successfully calls the remote access control function through the target API interface, monitoring the target API interface of the gateway device;
[0142] In the case of monitoring a remote access control request sent by the second access terminal, obtaining the IP address of the second access terminal;
[0143] Sending the IP address of the second access terminal to the target access terminal;
[0144] In the case that the target access terminal allows the second access terminal to access, the gateway device is controlled to enable a remote access function to the second access terminal.
[0145] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0146] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0147] 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 block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks 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 computer, 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.
[0148] 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 including 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.
[0149] 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.
[0150] The present application also provides a computer program product, which includes computer software instructions. When the computer software instructions are executed on a processing device, the processing device is caused to execute the following Figure 1 This corresponds to the flow of control of the memory in the embodiment.
[0151] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0152] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0153] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0154] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0155] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0156] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0157] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A gateway device remote control method, characterized in that: include: Obtaining the connection status between the ACS server and the gateway device; When the connection status between the ACS server and the gateway device is unavailable, activating the calling relationship between the target API interface of the gateway device and the remote access control function; Also includes: Receive a remote access control request sent by an access terminal; In a case where a calling relationship between a target API interface of the gateway device and a remote access control function is activated and the remote access control request matches the target API interface, calling the remote access control function through the target API interface; Also includes: Obtaining the URL field of the remote access control request; In the case where the URL field matches the target URL field, determining that the remote access control request matches the target API interface, wherein the target URL field is associated with the target API interface; Also includes: Obtaining the IP address of the remote access control request; In the case where the calling relationship between the target API interface of the gateway device and the remote access control function is activated, the remote access control request matches the target API interface, and the IP address of the remote access control request matches a preset whitelist, calling the remote access control function through the target API interface; Also includes: In the case where the target access end successfully calls the remote access control function through the target API interface, monitoring the target API interface of the gateway device; In the case of monitoring a remote access control request sent by a second access terminal, obtaining an IP address of the second access terminal; Sending the IP address of the second access terminal to the target access terminal; In a case where the target access terminal allows the second access terminal to access, the gateway device is controlled to enable a remote access function for the second access terminal.
2. The method according to claim 1, characterized in that: Also includes: The timing starts after the calling relationship between the target API interface of the gateway device and the remote access control function is activated; When the timing reaches the preset opening time, the calling relationship between the target API interface of the gateway device and the remote access control function is automatically closed.
3. The method according to claim 1, characterized in that Also includes: When the calling relationship between the target API interface of the gateway device and the remote access control function is activated, monitoring the connection status between the ACS server and the gateway device; When the connection state between the ACS server and the gateway device is restored, the calling relationship between the target API interface of the gateway device and the remote access control function is automatically closed.
4. A gateway device remote control device, characterized in that: An acquiring unit, used for acquiring the connection status between the ACS server and the gateway device; An activation unit, configured to activate a calling relationship between a target API interface of the gateway device and a remote access control function when the connection status between the ACS server and the gateway device is unavailable for connection; Receive a remote access control request sent by an access terminal; In a case where a calling relationship between a target API interface of the gateway device and a remote access control function is activated and the remote access control request matches the target API interface, calling the remote access control function through the target API interface; Also includes: Obtaining the URL field of the remote access control request; In the case where the URL field matches the target URL field, determining that the remote access control request matches the target API interface, wherein the target URL field is associated with the target API interface; Also includes: Obtaining the IP address of the remote access control request; In the case where the calling relationship between the target API interface of the gateway device and the remote access control function is activated, the remote access control request matches the target API interface, and the IP address of the remote access control request matches a preset whitelist, calling the remote access control function through the target API interface; Also includes: In the case where the target access end successfully calls the remote access control function through the target API interface, monitoring the target API interface of the gateway device; In the case of monitoring a remote access control request sent by a second access terminal, obtaining an IP address of the second access terminal; Sending the IP address of the second access terminal to the target access terminal; In a case where the target access terminal allows the second access terminal to access, the gateway device is controlled to enable a remote access function for the second access terminal.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the steps of the gateway device remote control method according to any one of claims 1 to 3 are implemented.
6. An electronic device, characterized in that: The electronic device includes at least one processor and at least one memory connected to the processor; wherein the processor is used to call program instructions in the memory to execute the steps of the gateway device remote control method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Wireless access gateway system and application method
CN108092884A
Remote terminal management method and device, computer equipment and storage medium
CN113783961A