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

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

Info

Publication number
CN114090122B
CN114090122B CN202111369099.9A CN202111369099A CN114090122B CN 114090122 B CN114090122 B CN 114090122B CN 202111369099 A CN202111369099 A CN 202111369099A CN 114090122 B CN114090122 B CN 114090122B
Authority
CN
China
Prior art keywords
cpe
terminal
link url
applet
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.)
Active
Application number
CN202111369099.9A
Other languages
Chinese (zh)
Other versions
CN114090122A (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, a device, computer equipment and a storage medium for configuring CPE by an applet. The method comprises the following steps: acquiring scanning information; calling an interface of a WeChat applet to judge whether related information of CPE equipment exists in a cache of the terminal; if the relevant information of the CPE equipment exists in the cache of the terminal, acquiring a gateway maintenance interface link URL of the CPE equipment; jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login; when the terminal login is successful, 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 the control mode of the WeChat applet to realize the configuration of CPE equipment without downloading and installation, does not occupy excessive memory space and has simple and convenient operation.

Description

Method, device, computer equipment and storage medium for configuring CPE by applet
Technical Field
The present invention relates to a CPE device configuration method, and more particularly, to a method, apparatus, computer device, and storage medium for configuring CPE by an applet.
Background
The CPE (customer premise equipment ) is a mobile signal access device that receives a mobile signal and forwards the mobile signal as a WIFI signal, and is also a device that converts a high-speed 4G or 5G signal into a WIFI signal, and can support a large number of mobile terminals that are simultaneously connected to the internet.
In reality, the CPE is configured by a WEB page or an APP, and the WEB page has many other unusual functions besides the usual functions, so that the WEB page has complex functions, is unfavorable for the use of users, and needs to be used for a computer.
Therefore, a new method is needed to be designed, downloading and installation are not needed when the configuration of the CPE equipment is realized, excessive memory space is not occupied, and the operation is simple and convenient.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a method, a device, computer equipment and a storage medium for configuring CPE by an applet.
In order to achieve the above purpose, the present invention adopts the following technical scheme: a method for applet configuration of CPE comprising:
acquiring scanning information;
calling an interface of a WeChat applet to judge whether related information of CPE equipment exists in a cache of the terminal;
if the relevant information of the CPE equipment exists in the cache of the terminal, acquiring a gateway maintenance interface link URL of the CPE equipment;
jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login;
when the terminal login is successful, 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 interface for calling the WeChat applet judges whether the cache of the terminal has relevant information of the CPE equipment or not, and the interface comprises the following steps:
calling an official open interface of a 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 related information of the CPE equipment exists in the cache of the terminal;
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 the gateway maintenance interface link URL of the CPE device includes:
and extracting the gateway maintenance interface link URL 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 relevant information of the CPE equipment, the method further comprises the following steps:
if the cache of the terminal does not have the related information of the CPE equipment, generating prompt information, displaying the prompt information for a user to input a gateway to maintain an interface link URL, and executing the login page which jumps to the WeChat applet for the user to input an account and a password for login.
The further technical scheme is as follows: the jump to the login page of the WeChat applet for the user to input account and password for login comprises the following steps:
judging whether the gateway maintenance interface link URL can be communicated with the CPE equipment or not by using an interface of a WeChat applet;
if the gateway maintenance interface link URL can be communicated with the CPE equipment, storing the gateway maintenance interface link URL into a cache;
jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login;
if the gateway maintenance interface link URL cannot be communicated with the CPE equipment, generating prompt information, displaying the prompt information, inputting the gateway maintenance interface link URL by a user, and executing the interface using the WeChat applet to judge whether the gateway maintenance interface link URL can be communicated with the CPE equipment.
The further technical scheme is as follows: the interface using the WeChat applet determining whether the gateway maintenance interface link URL can communicate with CPE equipment includes:
using the gateway maintenance interface to link the URL splice request address by using the 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 can not be obtained, determining that the gateway maintenance interface link URL can not be communicated with the CPE equipment;
if the response information of the request address can be obtained, the gateway maintenance interface link URL is determined to be capable of communicating with the CPE equipment.
The further technical scheme is as follows: when the terminal login is successful, 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, a communication channel between the micro-letter applet and the CPE equipment is constructed by using the CGI program.
The invention also provides an apparatus for configuring CPE by small program, comprising:
an information acquisition unit configured to acquire scan information;
the judging unit is used for calling an interface of the WeChat applet to judge whether the cache of the terminal has relevant information of the CPE equipment or not;
the URL acquisition unit is used for acquiring a gateway maintenance interface link URL of the CPE equipment if the relevant information of the CPE equipment exists in the cache of the terminal;
the jump unit is used for jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login;
the construction unit is used for constructing a communication channel between the WeChat applet and the CPE equipment when the terminal login is successful;
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 stores a computer program, and the processor realizes the method when executing the computer program.
The present invention also provides a storage medium storing a computer program which, when executed by a processor, performs the above-described method.
Compared with the prior art, the invention has the beneficial effects that: the invention judges whether the cache of the terminal has relevant information of the CPE equipment by calling a WeChat applet interface scanned by the terminal, logs in under the condition of having a gateway maintenance interface link URL, acquires a configuration page, and presents the configuration page, so that the configuration of the CPE equipment can be carried out; when the cache gateway is not used for maintaining the interface link URL, the URL can be obtained through a manual input mode, downloading and installation are not needed when CPE equipment configuration is realized by adopting a control mode of a WeChat applet, excessive memory space is not occupied, and the operation is simple and convenient.
The invention is further described below with reference to the drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a method for configuring CPE by an applet according to an embodiment of the present invention;
fig. 2 is a flow chart of a method for configuring CPE by using an applet according to an embodiment of the present invention;
fig. 3 is a schematic sub-flowchart of a method for configuring CPE by using an applet according to an embodiment of the present invention;
fig. 4 is a schematic sub-flowchart of a method for configuring CPE by using an applet according to an embodiment of the present invention;
fig. 5 is a schematic sub-flowchart of a method for configuring CPE by using an applet according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of an apparatus for applet configuration CPE provided by an embodiment of the present invention;
fig. 7 is a schematic block diagram of a judging unit of an apparatus for configuring CPE by an applet according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a jump unit of an apparatus for applet configuration CPE provided by an embodiment of the present invention;
FIG. 9 is a schematic block diagram of a communication judgment subunit of an apparatus for applet configuration CPE according to an embodiment of the present invention;
fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "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 of the invention. As used in this specification 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 the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a method for configuring CPE by an applet according to an embodiment of the present invention. Fig. 2 is a schematic flow chart of a method for configuring CPE by an applet according to an embodiment of the present invention. The method for configuring the CPE by the applet is applied to the terminal, the terminal performs data interaction with the CPE equipment, the terminal is connected with the CPE equipment through the WeChat applet, and the mobile phone WeChat can be opened at any time to enter the applet 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 a micro-letter applet to acquire the capability reading and set the related parameters of the CPE equipment, and the data format transmitted between the micro-letter applet and the CPE equipment is json format.
Fig. 2 is a flow chart of a method for configuring 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.
S110, acquiring scanning information.
In this embodiment, the scan information includes related information of the user, such as an identification number of the terminal, and Wifi information of the terminal connection.
The user obtains the WeChat applet by scanning the applet code on the CPE equipment; after the WeChat applet is opened, a user can scan the WiFi two-dimensional code on the CPE through the applet to connect with the WiFi network, and can also manually input the WiFi account password connection.
S120, calling an interface of the WeChat applet to judge whether the cache of the terminal has relevant 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 the CPE device and configure the CPE device through the gateway maintenance interface link URL.
In one embodiment, referring to fig. 3, the step S120 may include steps S121 to S123.
S121, an official open interface of a micro-letter applet is called to judge whether a gateway maintenance interface link URL exists in a cache of the terminal;
s122, if gateway maintenance interface link URL exists in the cache of the terminal, determining that related information of CPE equipment exists in the cache of the terminal;
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.
The WeChat applet invokes the official open interface wx.setStorageSync of the WeChat applet to determine if a gateway maintenance interface link URL exists in the local handset cache.
And S130, if the relevant information of the CPE equipment exists in the cache of the terminal, 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.
S140, jumping to a login page of the WeChat applet so that a user can input an account and a password to log in.
In one embodiment, referring to fig. 4, the step S140 may include steps S141 to S144.
S141, judging whether the gateway maintenance interface link URL can be communicated with the CPE equipment by using an interface of the WeChat applet.
In one embodiment, referring to fig. 5, the step S141 may include steps S1411 to S1415.
S1411, using an interface of a WeChat applet to link a URL splicing request address by using the gateway maintenance interface;
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 can not be obtained, determining that the gateway maintenance interface link URL can not be communicated with the CPE equipment;
s1415, if the response information of the request address can be obtained, determining that the gateway maintenance interface link URL can be communicated with the CPE equipment.
Verifying whether the URL can be communicated with the CPE equipment by using a WeChat applet official open interface wx.request, specifically, requesting a certain interface by using the URL splice request address, if the data can be normally obtained, indicating that the URL verification is successful, if the error is reported, the verification fails, and the verification success is that the URL can be communicated with the CPE equipment; if the URL cannot be communicated with the CPE equipment, prompting that the URL is incorrect, and re-inputting the URL is needed, wherein the correct URL can be seen on a nameplate of the CPE equipment or a webpage end of the CPE equipment, and continuing to verify the URL after inputting the URL; if the URL can be communicated to the CPE device, the correct URL is saved in the handset cache, and then 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 the CPE equipment, storing the gateway maintenance interface link URL into a cache;
s143, jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login;
s144, if the gateway maintenance interface link URL cannot communicate with the CPE equipment, generating prompt information, displaying the prompt information, inputting the gateway maintenance interface link URL by a user, and executing the step S141.
Specifically, the WeChat applet will initiate peer-to-peer communication with the CPE device and jump to the login page, input the correct account number and password, the account number and password are consistent with the WEB page end, the initial account number and password can be found on the CPE nameplate, i.e. jump to the parameter configuration page of the CPE.
And S150, when the terminal login is successful, constructing a communication channel between the WeChat applet and the CPE equipment.
In this embodiment, the communication channel refers to a channel for the terminal to perform data transmission with the CPE device.
Specifically, when the terminal login is successful, a communication channel between the WeChat applet and the CPE equipment is constructed by using the CGI program.
The CGI (common gateway interface ) program is a program running in the CPE device that can obtain CPE parameter data and generate a network interface such as:https://192.168.0.1/cgi-bin/ http.cgithe method is characterized in that the micro-letter applet is used for calling the micro-letter applet, the micro-letter applet sends a json data packet to the interface through an official open interface wx.request, the interface can communicate with CPE equipment, the CGI program can distinguish different functions according to cmd fields in the json data packet, different function methods in the CGI program are set and called, the method fields distinguish whether the functions are setting parameters of the CPE such as wireless network parameters, TR069 parameters, black-white lists and the like of the CPE, or reading parameters such as model numbers, compiling time, running time, CPU related information, wireless network connection lists and the like of the CPE equipment, the interface is set or read successfully, the true is returned in the success field, otherwise the false is returned, so that the micro-letter applet judges whether the functions are set or notThe reading is successful. In the process of using the network interface, the WeChat applet should monitor the change of the current mobile phone network, if the mobile phone wireless network is closed or disconnected from the CPE device network, the user is prompted to reconnect, in the applet UI interface, the format check and the type limitation of each CPE device parameter field should be also handled, for example, the IP address should use an input box, the network mode should use a select box, etc.
S160, acquiring a configuration page according to the communication channel, and presenting the configuration page.
S170, if the cache of the terminal does not have the related information of the CPE equipment, generating prompt information, displaying the prompt information, enabling the user to 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 relevant maintenance on the CPE equipment by inputting an account number and a password. If the information is not contained, prompting information for prompting the user to manually enter is required to be generated, the user manually inputs a gateway maintenance interface link URL, and the URL verification is passed, so that the skip login can be realized. And the WeChat applet initiates point-to-point communication with the CPE, acquires the correlation capability of the settable interface and the correlation capability of the readable interface after successful login, displays the relevant configuration interface according to the correlation capability of the settable interface, and displays relevant information on the configuration interface according to the correlation capability of the readable interface.
CPE configuration based on WeChat applet can replace the traditional WEB terminal and APP terminal, and the same functions of the WEB and APP terminals are realized; the related configuration can be completed by only scanning two-dimension codes and inputting the correct gateway maintenance interface link URL of the CPE equipment and logging in, so that the user operation is simpler and more convenient. Because the WeChat applet does not need to be downloaded and installed, the memory space of the mobile phone of the user is occupied, and some common functions are allocated on the applet, the applet is a lightweight light application which is generally accepted by the user at present, and through the light application, the communication with CPE equipment can be realized by only scanning two-dimension codes, so that the operation of the user is simpler and more convenient.
According to the method for configuring the CPE by the applet, whether the cache of the terminal has relevant information of the CPE equipment is judged by calling the WeChat applet interface scanned by the terminal, the login is carried out under the condition that a gateway maintenance interface link URL exists, a configuration page is obtained, the configuration page is presented, and the configuration of the CPE equipment can be carried out; when the cache gateway is not used for maintaining the interface link URL, the URL can be obtained through a manual input mode, downloading and installation are not needed when CPE equipment configuration is realized by adopting a control mode of a WeChat applet, excessive memory space is not occupied, and the operation is simple and convenient.
Fig. 6 is a schematic block diagram of an apparatus 300 for applet configuration CPE provided by an embodiment of the present invention. As shown in fig. 6, the present invention also provides an apparatus 300 for configuring CPE by the applet, corresponding to the above method for configuring CPE by the applet. The apparatus 300 of the applet configuring the CPE, which may be configured in a server, comprises means for performing the method of applet configuring the CPE described above. Specifically, referring to fig. 6, the apparatus 300 for configuring CPE by the applet includes an information acquisition unit 301, a judgment unit 302, a URL acquisition unit 303, a jump unit 304, a construction unit 305, and a page acquisition unit 306.
An information acquisition unit 301 for acquiring scan information; a judging unit 302, configured to invoke an interface of the WeChat applet to judge whether the cache of the terminal has information about the CPE device; a URL obtaining unit 303, configured to obtain a gateway maintenance interface link URL of the CPE device if relevant information of the CPE device is in a cache of the terminal; the jump unit 304 is used for jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login; a construction unit 305, configured to construct a communication channel between the micro-letter applet and the CPE device when the terminal login is successful; and the page acquisition unit 306 is configured to acquire a configuration page according to the communication channel, and present the configuration page.
In an embodiment, the apparatus 300 for applet configuration CPE further comprises an information prompt unit 307.
The information prompting unit 307 is configured to generate a prompting message if the cache of the terminal has no information related to the CPE device, and display the prompting message, so that the user can input the gateway to maintain the interface link URL, and execute the login page that jumps to the WeChat applet, so that the user can input the account and the password to log in.
In one embodiment, as shown in fig. 7, the determining unit 302 includes a URL determining subunit 3021, a first determining subunit 3022, and a second determining subunit 3023.
A URL determining subunit 3021, configured to invoke 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 relevant information of the CPE device exists in the buffer of the terminal if the gateway maintenance interface link URL exists in the buffer of the terminal; a second determining subunit 3023, configured to determine that the cache of the terminal has no information related to 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 one embodiment, as shown in fig. 8, the jumping unit 304 includes a communication judging subunit 3041, a storing subunit 3042, a page jumping subunit 3043, and an input information generating subunit 3044.
A communication judging subunit 3041, configured to judge whether the gateway maintenance interface link URL can communicate with the CPE device using an interface of the WeChat applet; a storage subunit 3042, configured to store the gateway maintenance interface link URL into a cache if the gateway maintenance interface link URL can communicate with the CPE device; the page jump rotor unit 3043 is used for jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login; and the input information generating subunit 3044 is 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 the user can input the gateway maintenance interface link URL, and execute 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 judging subunit 3041 includes an address splicing module 3041, an instruction sending module 30112, a response judging module 3043, a third determining module 30414, and a fourth determining module 30115.
An address splicing module 3041, configured to link, by using an interface of the WeChat applet, a URL splice request address using the gateway maintenance interface; an instruction sending module 30512, configured to send a request instruction to the request address; a response judgment module 3043, configured to judge 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 30414, 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 a CGI program to construct a communication channel between the micro-letter applet and the CPE device when the terminal login is successful.
It should be noted that, as will be clearly understood by those skilled in the art, the specific implementation process of the apparatus 300 and the units of the CPE configured by the applet may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, the description is omitted here.
The apparatus 300 for applet configuration CPE described above 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, where the server may be a stand-alone server or may be a server cluster formed by a plurality of servers.
With reference 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 program 5032 includes program instructions that, when executed, cause the processor 502 to perform a method of applet configuration of the 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 a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a method for applet configuration CPE.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device 500 to which the present application is applied, and that a particular computer device 500 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to execute a computer program 5032 stored in a memory to implement the steps of:
acquiring scanning information; calling an interface of a WeChat applet to judge whether related information of CPE equipment exists in a cache of the terminal; if the relevant information of the CPE equipment exists in the cache of the terminal, acquiring a gateway maintenance interface link URL of the CPE equipment; jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login; when the terminal login is successful, 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 buffer of the terminal has information about the CPE device by using the interface that invokes the micro letter applet, the following steps are specifically implemented:
calling an official open interface of a 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 related information of the CPE equipment exists in the cache of the terminal; 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 step of obtaining the gateway maintenance interface link URL of the CPE device is implemented by the processor 502, the following steps are specifically implemented:
and extracting the gateway maintenance interface link URL from the cache of the terminal.
In an embodiment, after implementing the step of determining whether the buffer of the terminal has information about the CPE device by using the interface that invokes the micro letter applet, the processor 502 further implements the following steps:
if the cache of the terminal does not have the related information of the CPE equipment, generating prompt information, displaying the prompt information for a user to input a gateway to maintain an interface link URL, and executing the login page which jumps to the WeChat applet for the user to input an account and a password for login.
In one embodiment, when the processor 502 implements the login page for jumping to the WeChat applet to allow the user to input an account and a password for login, the following steps are specifically implemented:
judging whether the gateway maintenance interface link URL can be communicated with the CPE equipment or not by using an interface of a WeChat applet; if the gateway maintenance interface link URL can be communicated with the CPE equipment, storing the gateway maintenance interface link URL into a cache; jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login; if the gateway maintenance interface link URL cannot be communicated with the CPE equipment, generating prompt information, displaying the prompt information, inputting the gateway maintenance interface link URL by a user, and executing the interface using the WeChat applet to judge whether the gateway maintenance interface link URL can be communicated with the CPE equipment.
In one embodiment, when the interface using the WeChat applet determines whether the gateway maintenance interface link URL can communicate with the CPE device, the processor 502 specifically performs the following steps:
using the gateway maintenance interface to link the URL splice request address by using the 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 can not be obtained, determining that the gateway maintenance interface link URL can not be communicated with the CPE equipment; if the response information of the request address can be obtained, the gateway maintenance interface link URL is determined to be capable of communicating with the CPE equipment.
In an embodiment, when implementing the step of establishing a communication channel between the mini-letter applet and the CPE device when the terminal login is successful, the processor 502 specifically implements the following steps:
and when the terminal is successfully logged in, a communication channel between the micro-letter applet and the CPE equipment is constructed by using the CGI program.
It should be appreciated that in embodiments of the present application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program comprises program instructions, and the computer program can 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 which, when executed by a processor, causes the processor to perform the steps of:
acquiring scanning information; calling an interface of a WeChat applet to judge whether related information of CPE equipment exists in a cache of the terminal; if the relevant information of the CPE equipment exists in the cache of the terminal, acquiring a gateway maintenance interface link URL of the CPE equipment; jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login; when the terminal login is successful, 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 buffer memory of the terminal has relevant information of the CPE device by using the interface of the calling micro letter applet, the processor specifically implements the following steps:
calling an official open interface of a 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 related information of the CPE equipment exists in the cache of the terminal; 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 one 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 method specifically includes the following steps:
and extracting the gateway maintenance interface link URL from the cache of the terminal.
In an embodiment, after the step of executing the computer program to implement the step of determining whether the buffer memory of the terminal has information about the CPE device by using the interface of the calling micro letter applet, the processor further implements the following steps:
if the cache of the terminal does not have the related information of the CPE equipment, generating prompt information, displaying the prompt information for a user to input a gateway to maintain an interface link URL, and executing the login page which jumps to the WeChat applet for the user to input an account and a password for login.
In one embodiment, when the processor executes the computer program to implement the login page of the jump to WeChat applet, the processor implements the following steps for the user to input an account and a password to perform the login step:
judging whether the gateway maintenance interface link URL can be communicated with the CPE equipment or not by using an interface of a WeChat applet;
if the gateway maintenance interface link URL can be communicated with the CPE equipment, storing the gateway maintenance interface link URL into a cache; jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login; if the gateway maintenance interface link URL cannot be communicated with the CPE equipment, generating prompt information, displaying the prompt information, inputting the gateway maintenance interface link URL by a user, and executing the interface using the WeChat applet to judge whether the gateway maintenance interface link URL can be communicated with the CPE equipment.
In one 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 mini-letter applet, the method specifically includes the steps of:
using the gateway maintenance interface to link the URL splice request address by using the 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 can not be obtained, determining that the gateway maintenance interface link URL can not be communicated with the CPE equipment; if the response information of the request address can be obtained, the gateway maintenance interface link URL is determined to be capable of communicating with the CPE equipment.
In one embodiment, the processor, when executing the computer program to implement the step of constructing a communication channel between the WeChat applet and the CPE device when the terminal login is successful, specifically implements the following steps:
and when the terminal is successfully logged in, a communication channel between the micro-letter applet and the CPE equipment is constructed by using the CGI program.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the 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 solution. 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 several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above 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, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
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 combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform 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 certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (7)

1. A method for applet configuration of a CPE, comprising:
acquiring scanning information;
calling an interface of a WeChat applet to judge whether related information of CPE equipment exists in a cache of the terminal;
if the relevant information of the CPE equipment exists in the cache of the terminal, acquiring a gateway maintenance interface link URL of the CPE equipment;
jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login;
when the terminal login is successful, a communication channel between the WeChat applet and the CPE equipment is constructed;
acquiring a configuration page according to the communication channel, and presenting the configuration page;
the interface for calling the WeChat applet judges whether the cache of the terminal has relevant information of the CPE equipment or not, and the interface comprises the following steps:
calling an official open interface of a 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 related information of the CPE equipment exists in the cache of the terminal;
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 jump to the login page of the WeChat applet for the user to input account and password for login comprises the following steps:
judging whether the gateway maintenance interface link URL can be communicated with the CPE equipment or not by using an interface of a WeChat applet;
if the gateway maintenance interface link URL can be communicated with the CPE equipment, storing the gateway maintenance interface link URL into a cache;
jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login;
if the gateway maintenance interface link URL cannot be communicated with the CPE equipment, generating prompt information, displaying the prompt information, inputting the gateway maintenance interface link URL by a user, and executing the interface using the WeChat applet to judge whether the gateway maintenance interface link URL can be communicated with the CPE equipment;
the interface using the WeChat applet determining whether the gateway maintenance interface link URL can communicate with CPE equipment includes:
using the gateway maintenance interface to link the URL splice request address by using the 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 can not be obtained, determining that the gateway maintenance interface link URL can not be communicated with the CPE equipment;
if the response information of the request address can be obtained, the gateway maintenance interface link URL is determined to be capable of communicating with the CPE equipment.
2. The method of applet configuration CPE of claim 1, wherein the obtaining a gateway maintenance interface link URL of the CPE device comprises:
and extracting the gateway maintenance interface link URL from the cache of the terminal.
3. The method for configuring CPE according to claim 1, wherein after the interface for calling the micro-letter applet determines whether the cache of the terminal has information about the CPE device, the method further comprises:
if the cache of the terminal does not have the related information of the CPE equipment, generating prompt information, displaying the prompt information for a user to input a gateway to maintain an interface link URL, and executing the login page which jumps to the WeChat applet for the user to input an account and a password for login.
4. The method for configuring a CPE according to claim 1, wherein the constructing a communication channel between a micro-letter applet and the CPE device when the terminal login is successful comprises:
and when the terminal is successfully logged in, a communication channel between the micro-letter applet and the CPE equipment is constructed by using the CGI program.
5. An apparatus for applet configuration CPE, comprising:
an information acquisition unit configured to acquire scan information;
the judging unit is used for calling an interface of the WeChat applet to judge whether the cache of the terminal has relevant information of the CPE equipment or not;
the URL acquisition unit is used for acquiring a gateway maintenance interface link URL of the CPE equipment if the relevant information of the CPE equipment exists in the cache of the terminal;
the jump unit is used for jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login;
the construction unit is used for constructing a communication channel between the WeChat applet and the CPE equipment when the terminal login is successful;
the page acquisition unit is used for acquiring a configuration page according to the communication channel and presenting the configuration page;
the judging unit comprises a URL judging subunit, a first determining subunit and a second determining subunit;
the URL judging subunit is used for 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; a first determining subunit, configured to determine that relevant information of the CPE device exists in the buffer of the terminal if the gateway maintenance interface link URL exists in the buffer of the terminal; a second determining subunit, configured to determine that there is no relevant information of the CPE device in the buffer of the terminal if there is no gateway maintenance interface link URL in the buffer of the terminal;
the jump unit comprises a communication judging subunit, a storage subunit, a page jump subunit and an input information generating subunit;
a communication judging subunit, configured to judge whether the gateway maintenance interface link URL can communicate with the CPE device using an interface of the WeChat applet; a storage subunit, configured to store the gateway maintenance interface link URL into a cache if the gateway maintenance interface link URL is capable of communicating with the CPE device; the page jump rotor unit is used for jumping to a login page of the WeChat applet so as to enable a user to input an account and a password for login; an input information generating subunit, 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 execute the interface using the WeChat applet to determine whether the gateway maintenance interface link URL can communicate with the CPE device;
the communication judging subunit comprises an address splicing module, an instruction sending module, a response judging module, a third determining module and a fourth determining module;
the address splicing module is used for linking the URL splicing request address by using the gateway maintenance interface through the interface of the WeChat applet; the instruction sending module is used for sending a request instruction to the request address; the response judging module is used for judging whether the response information of the request address can be acquired or not; a third determining module, 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 obtained; and the fourth determining module is used for determining that the gateway maintenance interface link URL can be communicated with the CPE equipment if the response information of the request address can be obtained.
6. A computer device, characterized in that it 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-4.
7. A storage medium storing a computer program which, when executed by a processor, performs the method of any one of claims 1 to 4.
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 CN114090122A (en) 2022-02-25
CN114090122B true 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)

Families Citing this family (1)

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

Citations (10)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160100199A1 (en) * 2014-10-01 2016-04-07 Charter Communications Operating, Llc System and method for controlling hotel cpe via personal smart device

Patent Citations (10)

* 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
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

Also Published As

Publication number Publication date
CN114090122A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN105512881B (en) A kind of method and terminal for completing payment based on two dimensional code
US20180114225A1 (en) Method, apparatus and system for voice verification
CN103368913A (en) Account login method, apparatus and system, and network server
EP2632199A1 (en) Service deliver platform based application test method and service deliver platform
US11683296B2 (en) Headless browser system with virtual API
CN112615753B (en) Link abnormity tracking method, first node, second node and link
CN105101122A (en) Verification code inputting method and device
US20120191775A1 (en) System and Method for Improved SAP Communications
CN114090122B (en) Method, device, computer equipment and storage medium for configuring CPE by applet
CN110110544A (en) Android intelligent terminal method for secret protection and device
US20140172532A1 (en) Optimal utilization of coupons
CN108990047B (en) Test method, device and medium for subscription relationship management data preparation platform
CN105205001A (en) Testing method, device and system for game program
CN112489325B (en) Display code broadcasting equipment, account binding and payment service processing method and device
CN104869135B (en) The method and terminal of data interaction
CN111092904B (en) Network connection method and device
EP3496016A1 (en) Method and system for reading information codes
CN111953668B (en) Network security information processing method and device
CN108848077A (en) The login method and device of application program
CN113709740A (en) Method and system for displaying account information on authorized login page
CN108282783B (en) Public wifi authentication method, device, user terminal and storage medium
CN111049795B (en) Method and device for detecting sensitive data unencrypted vulnerability of distributed Web application
CN108574658A (en) A kind of application login method and its equipment
CN113242551A (en) Mobile banking login verification method and device
CN113434234A (en) Page jump method, device, computer readable storage medium and processor

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

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.

CP01 Change in the name or title of a patent holder