CN114090122A - Method and device for configuring CPE by applet, computer equipment and storage medium - Google Patents

Method and device for configuring CPE by applet, computer equipment and storage medium Download PDF

Info

Publication number
CN114090122A
CN114090122A CN202111369099.9A CN202111369099A CN114090122A CN 114090122 A CN114090122 A CN 114090122A CN 202111369099 A CN202111369099 A CN 202111369099A CN 114090122 A CN114090122 A CN 114090122A
Authority
CN
China
Prior art keywords
cpe
terminal
applet
cache
maintenance interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111369099.9A
Other languages
Chinese (zh)
Other versions
CN114090122B (en
Inventor
向杰
刘浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Tongze Kangwei Technology Co ltd
Original Assignee
Guangzhou Tongze Kangwei Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Tongze Kangwei Intelligent Technology Co ltd filed Critical Guangzhou Tongze Kangwei Intelligent Technology Co ltd
Priority to CN202111369099.9A priority Critical patent/CN114090122B/en
Publication of CN114090122A publication Critical patent/CN114090122A/en
Application granted granted Critical
Publication of CN114090122B publication Critical patent/CN114090122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords

Abstract

The embodiment of the invention discloses a method and a device for configuring CPE by an applet, computer equipment and a storage medium. The method comprises the following steps: acquiring scanning information; calling an interface of the WeChat applet to judge whether the cache of the terminal has the related information of the CPE equipment; if the cache of the terminal has the relevant information of the CPE equipment, acquiring a gateway maintenance interface link URL of the CPE equipment; jumping to a login page of the WeChat applet for a user to input an account and a password for login; when the terminal logs in successfully, a communication channel between the WeChat applet and the CPE equipment is constructed; and acquiring a configuration page according to the communication channel and presenting the configuration page. The method of the embodiment of the invention adopts a control mode of the WeChat applet to realize the configuration of the CPE equipment without downloading and installing, does not occupy excessive memory space and is simple and convenient to operate.

Description

Method and device for configuring CPE by applet, computer equipment and storage medium
Technical Field
The invention relates to a CPE equipment configuration method, in particular to a method, a device, computer equipment and a storage medium for configuring CPE by an applet.
Background
The CPE (Customer premises Equipment) is a mobile signal access device that receives a mobile signal and forwards the mobile signal as a wireless WIFI signal, and is also a device that converts a high-speed 4G or 5G signal into a WIFI signal, and the number of mobile terminals capable of accessing the internet at the same time is also large.
The mode of configuration CPE in the reality is basically all through WEB page or APP, WEB page is last except function commonly used has many other function not commonly used in addition, make WEB end function complicated, be unfavorable for user's use, and need use the computer, if do not use the computer, and it is very inconvenient to operate WEB page on the cell-phone, if adopt APP configuration mode, need download installation special APP again, and the basic use APP probability is not many at ordinary times, seriously occupy the memory space of cell-phone, influence the functioning speed of cell-phone.
Therefore, it is necessary to design a new method, which does not need to download and install when configuring the CPE device, does not occupy too much memory space, and is simple and convenient to operate.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method, a device, computer equipment and a storage medium for configuring CPE by an applet.
In order to achieve the purpose, the invention adopts the following technical scheme: a method of an applet configuring a CPE, comprising:
acquiring scanning information;
calling an interface of the WeChat applet to judge whether the cache of the terminal has the related information of the CPE equipment;
if the cache of the terminal has the relevant information of the CPE, acquiring a gateway maintenance interface link URL of the CPE;
jumping to a login page of the WeChat applet for a user to input an account and a password for login;
when the terminal logs in successfully, a communication channel between the WeChat applet and the CPE equipment is constructed;
and acquiring a configuration page according to the communication channel and presenting the configuration page.
The further technical scheme is as follows: the step of judging whether the cache of the terminal has the relevant information of the CPE equipment or not by the interface for calling the WeChat applet comprises the following steps:
calling an official open interface of the WeChat applet to judge whether a gateway maintenance interface link URL exists in a cache of the terminal;
if the gateway maintenance interface link URL exists in the cache of the terminal, determining that the cache of the terminal contains the related information of the CPE equipment;
and if the gateway maintenance interface link URL does not exist in the cache of the terminal, determining that the cache of the terminal does not have the related information of the CPE equipment.
The further technical scheme is as follows: the obtaining of the gateway maintenance interface link URL of the CPE device includes:
and extracting the URL of the gateway maintenance interface from the cache of the terminal.
The further technical scheme is as follows: after the interface for calling the wechat applet judges whether the cache of the terminal has the related information of the CPE device, the method further includes:
and if the cache of the terminal does not contain the related information of the CPE equipment, generating prompt information, displaying the prompt information so that a user can input a gateway maintenance interface link URL, and executing the jump to a login page of the wechat applet so that the user can input an account and a password for login.
The further technical scheme is as follows: the step of jumping to a login page of the WeChat applet for a user to input an account and a password for login comprises the following steps:
judging whether the gateway maintenance interface link URL can be communicated with CPE equipment or not by using an interface of a WeChat small program;
if the gateway maintenance interface link URL can be communicated with CPE equipment, storing the gateway maintenance interface link URL into a cache;
jumping to a login page of the WeChat applet for a user to input an account and a password for login;
and if the gateway maintenance interface link URL cannot communicate with the CPE equipment, generating prompt information, displaying the prompt information so that a user can input the gateway maintenance interface link URL, and executing the interface using the micro-message applet to judge whether the gateway maintenance interface link URL can communicate with the CPE equipment.
The further technical scheme is as follows: the using the interface of the WeChat applet to determine whether the gateway maintenance interface Link URL is capable of communicating with CPE devices includes:
using the gateway maintenance interface to link the URL splicing request address by utilizing an interface of the WeChat applet;
sending a request instruction to the request address;
judging whether response information of the request address can be acquired or not;
if the response information of the request address cannot be acquired, determining that the gateway maintenance interface link URL cannot communicate with CPE equipment;
and if the response information of the request address can be acquired, determining that the gateway maintenance interface link URL can be communicated with CPE equipment.
The further technical scheme is as follows: when the terminal logs in successfully, a communication channel between the WeChat applet and the CPE equipment is constructed, and the method comprises the following steps:
and when the terminal is successfully logged in, constructing a communication channel between the WeChat applet and the CPE equipment by using the CGI program.
The invention also provides a device for configuring the CPE by the applet, which comprises the following steps:
an information acquisition unit for acquiring scan information;
the judging unit is used for calling an interface of the WeChat applet to judge whether the cache of the terminal has the related information of the CPE equipment;
a URL obtaining unit, configured to obtain a gateway maintenance interface link URL of a CPE device if relevant information of the CPE device is stored in a cache of the terminal;
the jumping unit is used for jumping to a login page of the WeChat applet so that a user can input an account and a password to log in;
the building unit is used for building a communication channel between the WeChat applet and the CPE equipment when the terminal is successfully logged in;
and the page acquisition unit is used for acquiring a configuration page according to the communication channel and presenting the configuration page.
The invention also provides a computer device, which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor executes the computer program to realize the method.
The invention also provides a storage medium storing a computer program which, when executed by a processor, is operable to carry out the method as described above.
Compared with the prior art, the invention has the beneficial effects that: the method comprises the steps of judging whether the cache of the terminal has the related information of the CPE equipment or not by calling a WeChat small program interface scanned by the terminal, logging in under the condition that a gateway maintenance interface links with a URL, acquiring a configuration page, and presenting the configuration page, so that the configuration of the CPE equipment can be carried out; when the cache gateway maintenance interface link URL is not available, the cache gateway maintenance interface link URL can be acquired through a manual input mode, downloading and installation are not needed when CPE equipment configuration is achieved through a control mode of a WeChat applet, excessive memory space is not occupied, and operation is simple and convenient.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic application scenario diagram of a method for configuring a CPE by an applet according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for configuring a CPE by an applet according to an embodiment of the present invention;
fig. 3 is a schematic sub-flow diagram of a method for configuring a CPE by an applet according to an embodiment of the present invention;
fig. 4 is a schematic sub-flow diagram of a method for configuring a CPE by an applet according to an embodiment of the present invention;
fig. 5 is a schematic sub-flow diagram of a method for configuring a CPE by an applet according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of an apparatus for configuring a CPE by an applet, provided by an embodiment of the present invention;
fig. 7 is a schematic block diagram of a determining unit of an apparatus for configuring a CPE by an applet according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a jumping unit of an apparatus for an applet configuring a CPE according to an embodiment of the present invention;
fig. 9 is a schematic block diagram of a communication determining subunit of an apparatus for applet configuring a CPE according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a method for configuring a CPE by an applet according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of a method for configuring a CPE by an applet according to an embodiment of the present invention. The method for configuring the CPE by the small program is applied to the terminal, the terminal and the CPE equipment carry out data interaction, the terminal and the CPE equipment are connected through the small program of the WeChat, and the mobile phone WeChat can be opened at any time to enter the small program to check and set parameters of the CPE equipment. The CPE equipment is provided with an open application program interface which is used for calling the WeChat small program to acquire the capability reading and set the relevant parameters of the CPE equipment, and the data format transmitted between the WeChat small program and the CPE equipment is the json format.
Fig. 2 is a flowchart illustrating a method for configuring a CPE by an applet according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S170.
And S110, acquiring scanning information.
In this embodiment, the scanning information includes related information of the user, such as an identification number of the terminal, and Wifi information to which the terminal is connected.
A user obtains a WeChat applet by scanning the applet code located on the CPE device; after the WeChat applet is opened, the user can scan the WiFi two-dimensional code on the CPE through the applet to connect the WiFi network, and can also manually input the WiFi account password for connection.
S120, calling an interface of the wechat applet to judge whether the cache of the terminal has the related information of the CPE equipment.
In this embodiment, the related information refers to a gateway maintenance interface link URL of the CPE device, and the terminal may control and configure the CPE device through the gateway maintenance interface link URL.
In an embodiment, referring to fig. 3, the step S120 may include steps S121 to S123.
S121, calling an official open interface of the WeChat applet to judge whether a gateway maintenance interface link URL exists in a cache of the terminal;
s122, if the gateway maintenance interface link URL exists in the cache of the terminal, determining that the cache of the terminal contains the related information of the CPE equipment;
and S123, if the gateway maintenance interface link URL does not exist in the cache of the terminal, determining that the cache of the terminal does not have the related information of the CPE equipment.
And the WeChat applet calls an official open interface wx of the WeChat applet, setStoragSync judges whether a gateway maintenance interface link URL exists in a local mobile phone cache.
S130, if the cache of the terminal has the relevant information of the CPE equipment, acquiring a gateway maintenance interface link URL of the CPE equipment.
In this embodiment, the gateway maintenance interface link URL is extracted from the cache of the terminal.
And S140, jumping to a login page of the WeChat applet for a user to input an account and a password for login.
In an embodiment, referring to fig. 4, the step S140 may include steps S141 to S144.
And S141, judging whether the gateway maintenance interface link URL can communicate with CPE equipment or not by using an interface of the WeChat applet.
In an embodiment, referring to fig. 5, the step S141 may include steps S1411 to S1415.
S1411, using the gateway maintenance interface to link with a URL splicing request address by using an interface of the WeChat applet;
s1412, sending a request instruction to the request address;
s1413, judging whether response information of the request address can be acquired or not;
s1414, if the response information of the request address cannot be obtained, determining that the gateway maintenance interface link URL cannot communicate with CPE equipment;
s1415, if the response information of the request address can be acquired, determining that the gateway maintenance interface link URL can communicate with CPE equipment.
Verifying whether the URL can be communicated with CPE equipment or not by using a WeChat small program official open interface wx.request, specifically, requesting a certain interface by using the URL splicing request address, if the URL can normally obtain data, indicating that the URL is successfully verified, if the URL is wrongly reported, the URL fails to be verified, and if the URL is successfully verified, the URL can be communicated with the CPE equipment; if the URL cannot communicate with the CPE equipment, prompting a user that the URL is incorrect and the URL needs to be input again, wherein the correct URL can be seen on a name plate of the CPE equipment or viewed on a webpage end of the CPE equipment, and continuously verifying the URL after the URL is input; if the URL can communicate with the CPE device, the correct URL is saved to the handset cache, after which the user is not required to repeatedly enter the URL, either without modifying the URL or without clearing the applet cache.
S142, if the gateway maintenance interface link URL can be communicated with CPE equipment, storing the gateway maintenance interface link URL into a cache;
s143, jumping to a login page of the WeChat applet for a user to input an account and a password for login;
and S144, if the gateway maintenance interface link URL cannot communicate with the CPE equipment, generating prompt information, displaying the prompt information so that a user can input the gateway maintenance interface link URL, and executing the step S141.
Specifically, the wechat applet initiates point-to-point communication with the CPE equipment and skips to a login page, a correct account password is input, the account password is consistent with a WEB page end, the initial account password can be found on a CPE nameplate, and then a parameter configuration page of the CPE can be skipped.
S150, when the terminal logs in successfully, a communication channel between the WeChat small program and the CPE equipment is constructed.
In this embodiment, the communication channel refers to a channel for data transmission between the terminal and the CPE device.
Specifically, when the terminal login is successful, a communication channel between the WeChat applet and the CPE device is constructed by using the CGI program.
The CGI (Common Gateway Interface) program is a program running in the CPE and can acquire CPE parameter data and generate a networkNetwork interfaces are for example:https://192.168.0.1/cgi-bin/ http.cgithe function is set for the CPE parameters such as wireless network parameters, TR069 parameters, black and white lists and the like of the CPE, or parameters are read such as the model, compiling time, running time, CPU related information, a wireless network connection list and the like of the CPE, the interface is set or read successfully, true is returned in the success field, otherwise false is returned, so that the WeChat small program judges whether the function is set or read successfully. During the process of using the network interface, the wechat applet also needs to monitor the change of the current mobile phone network, if the mobile phone wireless network is closed or disconnected with the CPE equipment network, the user needs to be prompted to reconnect, and in the applet UI interface, the format check and the type limitation of each CPE equipment parameter field are also needed, for example, an input box is used for an IP address, a select selection box is used for a network mode, and the like.
And S160, acquiring a configuration page according to the communication channel, and presenting the configuration page.
S170, if no information related to the CPE equipment exists in the cache of the terminal, generating prompt information, displaying the prompt information so that a user can input a gateway maintenance interface link URL, and executing the step S140.
If the local mobile phone cache contains the information, the user does not need to input a gateway maintenance interface link URL to directly jump to a login page of the applet, and the user can log in to perform the related maintenance on the CPE equipment by inputting an account password. If the information does not contain the information, prompt information for prompting the manual income of the user needs to be generated, the user manually inputs a gateway maintenance interface link URL, and the user can skip to log in after the URL is verified to be passed. The WeChat small program initiates point-to-point communication with the CPE, acquires the related capability of the configurable interface and the related capability of the readable interface after login is successful, displays the related configuration interface according to the related capability of the configurable interface, and displays related information on the configuration interface according to the related capability of the readable interface.
CPE configuration based on WeChat small program can replace traditional WEB end and APP end, and the same function of WEB and APP end is realized; and the relevant configuration can be completed only by scanning the two-dimensional codes and inputting the correct gateway maintenance interface link URL of the CPE and logging in, so that the user operation is simpler and more convenient. Because the WeChat small program does not need to be downloaded and installed, the small program occupies little memory space of a mobile phone of a user, some common function configurations are placed on the small program, the small program is a light application which is light and generally accepted by the user at present, and through the light application, the user can communicate with CPE equipment and realize related configuration only by scanning two-dimensional codes, so that the user operation is simpler and more convenient.
According to the method for configuring the CPE by the small program, whether the relevant information of the CPE equipment exists in the cache of the terminal is judged by calling the WeChat small program interface scanned by the terminal, and the CPE equipment can be configured by logging in, acquiring the configuration page and presenting the configuration page under the condition that the gateway maintenance interface links the URL; when the cache gateway maintenance interface link URL is not available, the cache gateway maintenance interface link URL can be acquired through a manual input mode, downloading and installation are not needed when CPE equipment configuration is achieved through a control mode of a WeChat applet, excessive memory space is not occupied, and operation is simple and convenient.
Fig. 6 is a schematic block diagram of an apparatus 300 for configuring a CPE by an applet according to an embodiment of the present invention. As shown in fig. 6, the present invention also provides an apparatus 300 for configuring CPE by an applet, corresponding to the above method for configuring CPE by an applet. The applet configuring the apparatus 300 of the CPE comprises means for performing the above method of the applet configuring the CPE, which may be configured in a server. Specifically, referring to fig. 6, the apparatus 300 for configuring CPE by applet includes an information obtaining unit 301, a determining unit 302, a URL obtaining unit 303, a jumping unit 304, a constructing unit 305, and a page obtaining unit 306.
An information acquisition unit 301 configured to acquire scan information; a determining unit 302, configured to call an interface of the wechat applet to determine whether there is information related to the CPE device in a cache of the terminal; a URL obtaining unit 303, configured to obtain a gateway maintenance interface link URL of a CPE device if the cache of the terminal has information related to the CPE device; the jumping unit 304 is used for jumping to a login page of the wechat applet so that a user can input an account and a password for login; a constructing unit 305, configured to construct a communication channel between the wechat applet and the CPE device when the terminal logs in successfully; a page obtaining unit 306, configured to obtain a configuration page according to the communication channel, and present the configuration page.
In an embodiment, the applet configures the CPE device 300 further comprising an information prompting unit 307.
And an information prompting unit 307, configured to generate a prompting message if the cache of the terminal does not have the relevant information of the CPE device, and display the prompting message, so that the user inputs a gateway maintenance interface link URL, and executes the jump to the login page of the wechat applet, so that the user inputs an account and a password for login.
In an embodiment, as shown in fig. 7, the judging unit 302 includes a URL judging subunit 3021, a first determining subunit 3022, and a second determining subunit 3023.
A URL determining subunit 3021, configured to call an official open interface of the wechat applet, to determine whether a gateway maintenance interface link URL exists in the cache of the terminal; a first determining subunit 3022, configured to determine that the cache of the terminal has the relevant information of the CPE device if the cache of the terminal has the gateway maintenance interface link URL; a second determining subunit 3023, configured to determine that the cache of the terminal does not have the relevant information of the CPE device if the gateway maintenance interface link URL does not exist in the cache of the terminal.
In an embodiment, the URL obtaining unit 303 is configured to extract a gateway maintenance interface link URL from a cache of the terminal.
In an embodiment, as shown in fig. 8, the jumping unit 304 includes a communication determining subunit 3041, a storing subunit 3042, a page jumping subunit 3043, and an input information generating subunit 3044.
A communication determining subunit 3041, configured to determine, by using an interface of a wechat applet, whether the gateway maintenance interface link URL can communicate with a CPE device; a storing subunit 3042, configured to store the gateway maintenance interface link URL into a cache if the gateway maintenance interface link URL can communicate with a CPE device; a page jump rotor unit 3043, configured to jump to a login page of the WeChat applet, so that the user inputs an account and a password for login; an input information generating subunit 3044, configured to generate a prompt message if the gateway maintenance interface link URL cannot communicate with the CPE device, and display the prompt message, so that a user inputs the gateway maintenance interface link URL, and executes the interface using the wechat applet to determine whether the gateway maintenance interface link URL can communicate with the CPE device.
In an embodiment, as shown in fig. 9, the communication determining subunit 3041 includes an address splicing module 30411, an instruction sending module 30412, a response determining module 30413, a third determining module 30414, and a fourth determining module 30415.
An address splicing module 30411, configured to link, by using an interface of the wechat applet, the URL splicing request address using the gateway maintenance interface; an instruction sending module 30412, configured to send a request instruction to the request address; a response determining module 30413, configured to determine whether response information of the request address can be acquired; a third determining module 30414, configured to determine that the gateway maintenance interface link URL cannot communicate with the CPE device if the response information of the request address cannot be acquired; a fourth determining module 30415, configured to determine that the gateway maintenance interface link URL can communicate with the CPE device if the response information of the request address can be obtained.
In an embodiment, the constructing unit 305 is configured to use the CGI program to construct a communication channel between the wechat applet and the CPE device when the terminal login is successful.
It should be noted that, as can be clearly understood by those skilled in the art, the foregoing applet configuring apparatus 300 and the specific implementation process of each unit of the CPE may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The apparatus 300 for applet configuring CPE may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, wherein the server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 10, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 comprise program instructions that, when executed, cause the processor 502 to perform a method of applet configuration of a CPE.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when executed by the processor 502, the computer program 5032 causes the processor 502 to perform an applet configured method for configuring a CPE.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration relevant to the present teachings and is not intended to limit the computing device 500 to which the present teachings may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
acquiring scanning information; calling an interface of the WeChat applet to judge whether the cache of the terminal has the related information of the CPE equipment; if the cache of the terminal has the relevant information of the CPE equipment, acquiring a gateway maintenance interface link URL of the CPE equipment; jumping to a login page of the WeChat applet for a user to input an account and a password for login; when the terminal logs in successfully, a communication channel between the WeChat applet and the CPE equipment is constructed; and acquiring a configuration page according to the communication channel and presenting the configuration page.
In an embodiment, when the processor 502 implements the step of determining whether the cache of the terminal has the information related to the CPE device through the interface for calling the wechat applet, the following steps are specifically implemented:
calling an official open interface of the WeChat applet to judge whether a gateway maintenance interface link URL exists in a cache of the terminal; if the cache of the terminal has the gateway maintenance interface link URL, determining that the cache of the terminal has the related information of the CPE equipment; and if the gateway maintenance interface link URL does not exist in the cache of the terminal, determining that the cache of the terminal does not have the related information of the CPE equipment.
In an embodiment, when the processor 502 implements the step of obtaining the gateway maintenance interface link URL of the CPE device, the following steps are specifically implemented:
and extracting the URL of the gateway maintenance interface from the cache of the terminal.
In an embodiment, after the step of implementing the interface for calling the wechat applet to determine whether the cache of the terminal has the information related to the CPE device, the processor 502 further implements the following steps:
and if the cache of the terminal does not contain the related information of the CPE equipment, generating prompt information, displaying the prompt information so that a user can input a gateway maintenance interface link URL, and executing the jump to a login page of the wechat applet so that the user can input an account and a password for login.
In an embodiment, when the processor 502 implements the jump to the login page of the wechat applet for the user to input an account and a password for performing the login step, the following steps are specifically implemented:
judging whether the gateway maintenance interface link URL can communicate with CPE equipment or not by using an interface of a WeChat applet; if the gateway maintenance interface link URL can be communicated with CPE equipment, storing the gateway maintenance interface link URL into a cache; jumping to a login page of the WeChat applet for a user to input an account and a password for login; and if the gateway maintenance interface link URL cannot communicate with the CPE equipment, generating prompt information, displaying the prompt information so that a user can input the gateway maintenance interface link URL, and executing the interface using the micro-message applet to judge whether the gateway maintenance interface link URL can communicate with the CPE equipment.
In an embodiment, when the step of determining whether the gateway maintenance interface link URL can communicate with the CPE device by using the interface of the wechat applet is implemented by the processor 502, the following steps are specifically implemented:
linking the URL splicing request address by using the gateway maintenance interface through an interface of the WeChat small program; sending a request instruction to the request address; judging whether response information of the request address can be acquired or not; if the response information of the request address cannot be acquired, determining that the gateway maintenance interface link URL cannot communicate with CPE equipment; and if the response information of the request address can be acquired, determining that the gateway maintenance interface link URL can be communicated with CPE equipment.
In an embodiment, when implementing the step of constructing a communication channel between the wechat applet and the CPE device when the terminal logs in successfully, the processor 502 specifically implements the following steps:
and when the terminal is successfully logged in, constructing a communication channel between the WeChat applet and the CPE equipment by using the CGI program.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program, when executed by a processor, causes the processor to perform the steps of:
acquiring scanning information; calling an interface of the WeChat applet to judge whether the cache of the terminal has the related information of the CPE equipment; if the cache of the terminal has the relevant information of the CPE, acquiring a gateway maintenance interface link URL of the CPE; jumping to a login page of the WeChat applet for a user to input an account and a password for login; when the terminal logs in successfully, a communication channel between the WeChat applet and the CPE equipment is constructed; and acquiring a configuration page according to the communication channel and presenting the configuration page.
In an embodiment, when the processor executes the computer program to implement the step of determining whether the cache of the terminal has the information related to the CPE device by using the interface for calling the wechat applet, the following steps are specifically implemented:
calling an official open interface of the WeChat applet to judge whether a gateway maintenance interface link URL exists in a cache of the terminal; if the gateway maintenance interface link URL exists in the cache of the terminal, determining that the cache of the terminal contains the related information of the CPE equipment; and if the gateway maintenance interface link URL does not exist in the cache of the terminal, determining that the cache of the terminal does not have the related information of the CPE equipment.
In an embodiment, when the processor executes the computer program to implement the step of obtaining the gateway maintenance interface link URL of the CPE device, the following steps are specifically implemented:
and extracting the URL of the gateway maintenance interface from the cache of the terminal.
In an embodiment, after the step of executing the computer program to enable the interface calling the wechat applet to determine whether the cache of the terminal has the information related to the CPE device, the processor further implements the following steps:
and if the cache of the terminal does not contain the related information of the CPE equipment, generating prompt information, displaying the prompt information so that a user can input a gateway maintenance interface link URL, and executing the jump to a login page of the wechat applet so that the user can input an account and a password for login.
In an embodiment, when the processor executes the computer program to implement the login page jumping to the WeChat applet for a user to input an account and a password to perform a login step, the following steps are specifically implemented:
judging whether the gateway maintenance interface link URL can communicate with CPE equipment or not by using an interface of a WeChat applet;
if the gateway maintenance interface link URL can be communicated with CPE equipment, storing the gateway maintenance interface link URL into a cache; jumping to a login page of the WeChat small program, so that a user can input an account and a password to log in; if the gateway maintenance interface link URL cannot communicate with the CPE equipment, prompt information is generated and displayed so that a user can input the gateway maintenance interface link URL and the interface using the wechat applet is executed to judge whether the gateway maintenance interface link URL can communicate with the CPE equipment.
In an embodiment, when the processor executes the computer program to implement the step of determining whether the gateway maintenance interface link URL can communicate with the CPE device using the interface of the wechat applet, the processor specifically implements the following steps:
using the gateway maintenance interface to link the URL splicing request address by utilizing an interface of the WeChat applet; sending a request instruction to the request address; judging whether response information of the request address can be acquired or not; if the response information of the request address cannot be acquired, determining that the gateway maintenance interface link URL cannot communicate with CPE equipment; and if the response information of the request address can be acquired, determining that the gateway maintenance interface link URL can be communicated with CPE equipment.
In an embodiment, when the processor executes the computer program to implement the step of constructing a communication channel between the wechat applet and the CPE device when the terminal logs in successfully, the following steps are specifically implemented:
and when the terminal is successfully logged in, constructing a communication channel between the WeChat applet and the CPE equipment by using the CGI program.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for an applet to configure a CPE, comprising:
acquiring scanning information;
calling an interface of the WeChat applet to judge whether the cache of the terminal has the related information of the CPE equipment;
if the cache of the terminal has the relevant information of the CPE equipment, acquiring a gateway maintenance interface link URL of the CPE equipment;
jumping to a login page of the WeChat applet for a user to input an account and a password for login;
when the terminal logs in successfully, a communication channel between the WeChat applet and the CPE equipment is constructed;
and acquiring a configuration page according to the communication channel and presenting the configuration page.
2. The method for configuring CPE according to claim 1, wherein the step of determining whether the buffer of the terminal has information related to the CPE device by the interface calling the wechat applet comprises:
calling an official open interface of the WeChat applet to judge whether a gateway maintenance interface link URL exists in a cache of the terminal;
if the gateway maintenance interface link URL exists in the cache of the terminal, determining that the cache of the terminal contains the related information of the CPE equipment;
and if the gateway maintenance interface link URL does not exist in the cache of the terminal, determining that the cache of the terminal does not have the related information of the CPE equipment.
3. The applet configuration CPE method according to claim 1 characterized in that the obtaining of the gateway maintenance interface link URL of the CPE device comprises:
and extracting the URL of the gateway maintenance interface from the cache of the terminal.
4. The method for configuring CPE according to claim 1, wherein after the interface calling the wechat applet determines whether the cache of the terminal has the information related to the CPE device, the method further comprises:
and if the cache of the terminal does not contain the related information of the CPE equipment, generating prompt information, displaying the prompt information so that a user can input a gateway maintenance interface link URL, and executing the jump to a login page of the wechat applet so that the user can input an account and a password for login.
5. The applet configuration CPE method according to claim 1, characterized in that the jumping to a login page of the WeChat applet for a user to enter an account and a password for logging in comprises:
judging whether the gateway maintenance interface link URL can communicate with CPE equipment or not by using an interface of a WeChat applet;
if the gateway maintenance interface link URL can be communicated with CPE equipment, storing the gateway maintenance interface link URL into a cache;
jumping to a login page of the WeChat small program, so that a user can input an account and a password to log in;
and if the gateway maintenance interface link URL cannot communicate with the CPE equipment, generating prompt information, displaying the prompt information so that a user can input the gateway maintenance interface link URL, and executing the interface using the micro-message applet to judge whether the gateway maintenance interface link URL can communicate with the CPE equipment.
6. The method of applet configuration CPE according to claim 5 characterized in that the determining with the interface of the applet whether the gateway maintenance interface link URL can communicate with the CPE device comprises:
using the gateway maintenance interface to link the URL splicing request address by utilizing an interface of the WeChat applet;
sending a request instruction to the request address;
judging whether response information of the request address can be acquired or not;
if the response information of the request address cannot be acquired, determining that the gateway maintenance interface link URL cannot communicate with CPE equipment;
and if the response information of the request address can be acquired, determining that the gateway maintenance interface link URL can be communicated with CPE equipment.
7. The applet configuration CPE method according to claim 1 characterized in that the building of a communication channel between the applet and the CPE device when the terminal login is successful comprises:
and when the terminal is successfully logged in, constructing a communication channel between the WeChat applet and the CPE equipment by using the CGI program.
8. An apparatus for an applet to configure a CPE, comprising:
an information acquisition unit for acquiring scan information;
the judging unit is used for calling an interface of the WeChat applet to judge whether the cache of the terminal has the related information of the CPE equipment;
a URL obtaining unit, configured to obtain a gateway maintenance interface link URL of a CPE device if relevant information of the CPE device is stored in a cache of the terminal;
the jumping unit is used for jumping to a login page of the WeChat applet so that a user can input an account and a password to log in;
the building unit is used for building a communication channel between the WeChat applet and the CPE equipment when the terminal is successfully logged in;
and the page acquisition unit is used for acquiring a configuration page according to the communication channel and presenting the configuration page.
9. A computer device, characterized in that the computer device comprises a memory, on which a computer program is stored, and a processor, which when executing the computer program implements the method according to any of claims 1 to 7.
10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
CN202111369099.9A 2021-11-12 2021-11-12 Method, device, computer equipment and storage medium for configuring CPE by applet Active CN114090122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111369099.9A CN114090122B (en) 2021-11-12 2021-11-12 Method, device, computer equipment and storage medium for configuring CPE by applet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111369099.9A CN114090122B (en) 2021-11-12 2021-11-12 Method, device, computer equipment and storage medium for configuring CPE by applet

Publications (2)

Publication Number Publication Date
CN114090122A true CN114090122A (en) 2022-02-25
CN114090122B CN114090122B (en) 2023-05-23

Family

ID=80301698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111369099.9A Active CN114090122B (en) 2021-11-12 2021-11-12 Method, device, computer equipment and storage medium for configuring CPE by applet

Country Status (1)

Country Link
CN (1) CN114090122B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334064A (en) * 2022-07-26 2022-11-11 广州通则康威智能科技有限公司 Configuration system generation method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5946684A (en) * 1997-02-18 1999-08-31 Ameritech Corporation Method and system for providing computer-network related information about a calling party
CN1957629A (en) * 2004-05-19 2007-05-02 瑞士电信流动电话公司 Method and system for automatic call forwarding
CN101069402A (en) * 2004-10-26 2007-11-07 意大利电信股份公司 Method and system for transparently authenticating a mobile user to access web services
CN101617302A (en) * 2006-11-30 2009-12-30 威瑞森商务金融管理公司 Application service invocation
CN101714168A (en) * 2009-11-24 2010-05-26 北京雷霆万钧网络科技有限责任公司 User request information response-based memory allocation method and system
CN102216912A (en) * 2011-05-28 2011-10-12 华为终端有限公司 Configuring method and apparatus for memory capacity
CN102985915A (en) * 2010-05-10 2013-03-20 网际网路控制架构网络有限公司 Control system user interface
US20160100199A1 (en) * 2014-10-01 2016-04-07 Charter Communications Operating, Llc System and method for controlling hotel cpe via personal smart device
CN109995755A (en) * 2019-02-20 2019-07-09 深圳点猫科技有限公司 A kind of control method and device of the logging state based on small routine framework
CN111405595A (en) * 2020-03-20 2020-07-10 太仓市同维电子有限公司 Router configuration and maintenance method based on WeChat small program
CN111885185A (en) * 2020-07-29 2020-11-03 中国联合网络通信集团有限公司 Resource scheduling method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5946684A (en) * 1997-02-18 1999-08-31 Ameritech Corporation Method and system for providing computer-network related information about a calling party
CN1957629A (en) * 2004-05-19 2007-05-02 瑞士电信流动电话公司 Method and system for automatic call forwarding
CN101069402A (en) * 2004-10-26 2007-11-07 意大利电信股份公司 Method and system for transparently authenticating a mobile user to access web services
CN101617302A (en) * 2006-11-30 2009-12-30 威瑞森商务金融管理公司 Application service invocation
CN101714168A (en) * 2009-11-24 2010-05-26 北京雷霆万钧网络科技有限责任公司 User request information response-based memory allocation method and system
CN102985915A (en) * 2010-05-10 2013-03-20 网际网路控制架构网络有限公司 Control system user interface
CN102216912A (en) * 2011-05-28 2011-10-12 华为终端有限公司 Configuring method and apparatus for memory capacity
US20160100199A1 (en) * 2014-10-01 2016-04-07 Charter Communications Operating, Llc System and method for controlling hotel cpe via personal smart device
CN109995755A (en) * 2019-02-20 2019-07-09 深圳点猫科技有限公司 A kind of control method and device of the logging state based on small routine framework
CN111405595A (en) * 2020-03-20 2020-07-10 太仓市同维电子有限公司 Router configuration and maintenance method based on WeChat small program
CN111885185A (en) * 2020-07-29 2020-11-03 中国联合网络通信集团有限公司 Resource scheduling method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334064A (en) * 2022-07-26 2022-11-11 广州通则康威智能科技有限公司 Configuration system generation method and device
CN115334064B (en) * 2022-07-26 2023-06-13 广州通则康威智能科技有限公司 Method and device for generating configuration system

Also Published As

Publication number Publication date
CN114090122B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
US8271948B2 (en) Subscriber identity module (SIM) application toolkit test method and system
CN110297671A (en) Client plug-in implementation method, device, computer equipment and storage medium
US10491459B1 (en) Systems and methods for on-device adaptive self-executing diagnostics tool
US20190278689A1 (en) System to determine performance based on entropy values
CN110598868A (en) Machine learning model building method and device and related equipment
CN108959605A (en) For the screenshot method of webpage, device, computer equipment and storage medium
CN111427552A (en) Front-end component development method and device, computer equipment and storage medium
CN105205001A (en) Testing method, device and system for game program
KR20080070842A (en) Integrated mobile diagnostics and electronic customer care test script with browser
CN114090122A (en) Method and device for configuring CPE by applet, computer equipment and storage medium
JP4440185B2 (en) Scenario editing apparatus, pseudo base station test system, pseudo terminal test system, scenario editing method and test processing method, and storage medium storing computer-readable program and program
CN107203397B (en) Method and device for running mobile application
CN105278928A (en) IVR external interface configuration method and IVR external interface configuration device
CN111158987A (en) Health check method and device of micro-service architecture
CN108848077A (en) The login method and device of application program
CN110825649A (en) Application testing method, device, equipment and storage medium
CN115495068A (en) VUE page generation method and device
CN109918287A (en) APP upgrading test method, apparatus, computer equipment and storage medium
CN115190057A (en) Automatic testing method and device and electronic equipment
KR102115908B1 (en) User equipment and control method thereof
CN108471635B (en) Method and apparatus for connecting wireless access points
US10291498B1 (en) Mobile communication device diagnostic client and error remediation sharing
CN111026650B (en) Method and device for testing software, storage medium and electronic equipment
JP7385245B2 (en) Information processing device, information processing system, and information processing program
KR100538127B1 (en) Method and apparatus for monitoring effective quality in numerous areas

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 510000 room 1301, No. 37, Jinlong street, Xiangjiang financial and business center, Nansha District, Guangzhou City, Guangdong Province (office only)

Patentee after: Guangzhou Tongze Kangwei Technology Co.,Ltd.

Address before: 510000 room 1301, No. 37, Jinlong street, Xiangjiang financial and business center, Nansha District, Guangzhou City, Guangdong Province (office only)

Patentee before: Guangzhou Tongze Kangwei Intelligent Technology Co.,Ltd.