CN110460474A - The configuration method and device of functions of the equipments, storage medium, electronic equipment - Google Patents
The configuration method and device of functions of the equipments, storage medium, electronic equipment Download PDFInfo
- Publication number
- CN110460474A CN110460474A CN201910763071.XA CN201910763071A CN110460474A CN 110460474 A CN110460474 A CN 110460474A CN 201910763071 A CN201910763071 A CN 201910763071A CN 110460474 A CN110460474 A CN 110460474A
- Authority
- CN
- China
- Prior art keywords
- configuration
- wireless
- case
- equipment
- cpe
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides the configuration method and device, storage medium, electronic equipment of a kind of functions of the equipments.The configuration method of functions of the equipments is applied to the end PC, which comprises when physical connection has been established with equipment to be configured, establishes the communication connection with the equipment to be configured;Obtain configuration use-case corresponding with the equipment to be configured;The configuration use-case is used to configure the function of the equipment to be configured;The configuration use-case is executed, the function of the equipment to be configured is configured.The configuration method of the functions of the equipments improves the efficiency of functions of the equipments configuration.
Description
Technical field
This application involves automatic fields, and the configuration method and device, storage in particular to a kind of functions of the equipments are situated between
Matter, electronic equipment.
Background technique
Gateway product needs to carry out in R&D process the configuration of function, and traditional configuration process generally uses human configuration
Mode, i.e., be manually operated by user, each gateway product configured.The mode of this human configuration, the work of user
Amount is big, labor intensive.And by user's manual configuration, it is easy to appear since user experience is insufficient or fault causes to match
Mistake is set, also needs to re-start configuration at this time, waste time.
As it can be seen that traditional human configuration method heavy workload, labor intensive, efficiency are lower.
Summary of the invention
The configuration method and device, storage medium, electronics for being designed to provide a kind of functions of the equipments of the embodiment of the present application
Equipment, to improve the efficiency of functions of the equipments configuration.
In a first aspect, the embodiment of the present application provides a kind of configuration method of functions of the equipments, it is applied to the end PC, the method packet
It includes:
When physical connection has been established with equipment to be configured, the communication connection with the equipment to be configured is established;Obtain with
The corresponding configuration use-case of the equipment to be configured;The configuration use-case is used to configure the function of the equipment to be configured;Execute institute
Configuration use-case is stated, the function of the equipment to be configured is configured.
In the embodiment of the present application, the end PC is set on the basis of establishing physical connection with equipment to be configured with to be configured
It is standby to establish communication connection, then the function of equipment to be configured is configured by executing configuration use-case.Compared to the prior art, should
The configuration process of configuration method does not need user's participation, configures use-case by executing, can carry out to the function of equipment to be configured
Configuration, needs to carry out the configuration of what function, just obtains the configuration use-case for function.Whole process is simple and quick,
Substantially increase the efficiency of functions of the equipments configuration.
As a kind of possible implementation, the equipment to be configured is wireless CPE, is obtained and the equipment pair to be configured
The configuration use-case answered, comprising:
Obtain the configuration use-case for configuring the wireless SSID value of the wireless CPE, wherein the configuration wireless SSID value
Including reading the wireless SSID value and the modification wireless SSID value;It is corresponding, execute the configuration use-case, to it is described to
Configuration equipment is configured, comprising: reads the initial wireless SSID value of the wireless CPE;Call configuration script will be described first
The wireless SSID value to begin is revised as preset value.
It in the embodiment of the present application, can by reading initial wireless SSID value wireless SSID value initial with this is modified
Complete the configuration of the SSID value of equipment to be configured.
As a kind of possible implementation, the configuration use-case is being executed, the function of the equipment to be configured is being carried out
With postponing, the method also includes: it obtains and configures the corresponding inspection use-case of function that use-case is configured with described;Execute the inspection
Look into use-case, check the equipment to be configured function whether configuration successful.
In the embodiment of the present application, configuration use-case is being executed, that is, is completing to postpone matching for equipment to be configured, can also passes through
Inspection use-case corresponding with the function of configuration checks the function of configuration, configuration successful is checked whether, to increase equipment
The accuracy of functional configuration.
As a kind of possible implementation, the equipment to be configured is wireless CPE, and the configuration use-case is for configuring institute
The wireless SSID value of wireless CPE is stated, inspection use-case corresponding with the function that the configuration use-case is configured is obtained, comprising:
Obtain for check the wireless SSID value whether the inspection use-case of configuration successful;It is corresponding, execute the inspection
Use-case, check the equipment to be configured function whether configuration successful, comprising: pass through the radio configuration page of the wireless CPE
Or serial ports accesses the wireless CPE;Determine whether the modified wireless SSID value is the preset value, if modified
The wireless SSID value is the preset value, determines the functional configuration success of the wireless CPE.
In the embodiment of the present application, it for wireless CPE, after the configuration for completing wireless SSID value, checks wireless
SSID value whether configuration successful, increase the accuracy of wireless CPE configuration.
As a kind of possible implementation, the configuration use-case is being executed, the equipment to be configured is being carried out with postponing,
The method also includes: the resource generated during executing the configuration use-case is cleared up, the resource includes process, file
And caching.
It in the embodiment of the present application, may many processes of pull-up, many files of access, life due in the process of implementation
At temporary file, using memory cache etc., these resources may committed memory, influence the efficiency of other use-cases execution, cleaning
Fall these resources, and then avoids having an impact execution use-case next time.
As a kind of possible implementation, the equipment to be configured is wireless CPE, is established and the equipment to be configured
Communication connection, comprising:
Static WAN connection is configured by the wireless connection of the wireless CPE, and the gateway of the wireless CPE is directed toward
Itself corresponding network interface card;The server path for configuring the wireless CPE is the path of itself corresponding server.
In the embodiment of the present application, the radio connection by the wireless CPE of setting and specified network interface card connection type, can
The network connection of wireless CPE Yu the end PC are established, then the server path by configuring wireless CPE can make the wireless end CPE and PC
It realizes data interaction, and then realizes communication connection.
As a kind of possible implementation, the equipment to be configured is wireless CPE, is obtained and the equipment pair to be configured
The configuration use-case answered, comprising:
Obtain the configuration use-case of the wireless connection password for configuring the wireless CPE;It is corresponding, it executes the configuration and uses
Example, configures the equipment to be configured, comprising: reads the initial wireless connection password of the wireless CPE;Call configuration foot
The initial wireless connection password is revised as preset password by this.
In the embodiment of the present application, can also the wireless connection password to wireless CPE configure, and then can be quick
Complete the configuration of the wireless connection password of wireless CPE.
Second aspect, the embodiment of the present application provide a kind of device of functions of the equipments configuration, described device include for realizing
The functional module of method described in first aspect and first aspect any one possible implementation.
The third aspect, the embodiment of the present application provide a kind of readable storage medium storing program for executing, meter are stored on the readable storage medium storing program for executing
Calculation machine program, such as first aspect and first aspect are executed when the computer program is run by computer, and any one is possible
The step of method described in implementation.
Fourth aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: memory and processor, the memory
It is connected with the processor;The memory is for storing program;The processor calls the journey being stored in the memory
Sequence, to execute the method as described in first aspect and first aspect any one possible implementation.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application will make below to required in the embodiment of the present application
Attached drawing is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore should not be seen
Work is the restriction to range, for those of ordinary skill in the art, without creative efforts, can be with
Other relevant attached drawings are obtained according to these attached drawings.
Fig. 1 is Configuration Framework schematic diagram provided by the embodiments of the present application.
Fig. 2 is the flow chart of the configuration method of functions of the equipments provided by the embodiments of the present application.
Fig. 3 is the application flow schematic diagram of the configuration method of functions of the equipments provided by the embodiments of the present application.
Fig. 4 is the functional block diagram of the configuration device of functions of the equipments provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application is described.
The configuration method of functions of the equipments provided by the embodiments of the present application is applied to PC (personal computer, individual's meter
Calculation machine) it holds, PC herein can be the electronic equipments such as desktop computer, all-in-one machine, laptop or tablet computer.On the end PC
Implement configuration method provided by the present application, needs first to build corresponding system framework based on the end PC, in the embodiment of the present application
Using Robot Framework automated test frame, before introducing the frame, first lay down a definition to some nouns.
CPE: full name in English is Customer Premise Equipment, and Chinese is customer premises equipment, practical
It is a kind of movable signal access device for receiving movable signal and being transferred with wireless WIFI signal, it is also a kind of by high speed
The equipment that 4G 5G signal is converted into WiFi signal can support the mobile terminal quantity surfed the Internet simultaneously also more.
Robot Framework: being the Function Test Automation frame that a python writes.Have good expansible
Property, it supports crucial word drive, a plurality of types of clients or interface can be tested simultaneously, distributed testing can be carried out and held
Row.It is mainly used for many Acceptance Tests of round and Acceptance Test driving exploitation.
Selenium: being a tool for web application test.Selenium test runs directly in browser
In, just as real user in operation.The browser of support includes (7,8,9,10,11) IE, Mozilla Firefox,
Safari, Google Chrome, Opera etc., the Selenium in the embodiment of the present application are one in Robot Framework
A plug-in unit.
TR069: full name is Report -069 Technical, is (to be renamed as Broadband later by DSL Forum
Forum technical standard formulation group), which is woven in, delivers disclosure in May, 2004, ties up to CWMP (CPE WAN Management
Protocol, CPE wide area network management agreement) on develop one long-range control user's terminal device communications protocol.
ACS:Auto-Configuration Server (ACS) Automatic Configuration Server, in TR-069 protocol network framework
In be responsible for terminal device CPE is managed.Interface between ACS and CPE is southbound interface, the interface between ACS and management system
For northbound interface.
LibreACS: being the ac server of a open source, operates in Linux (operating system).
Next Fig. 1 is please referred to, Fig. 1 is configuration system framework figure provided by the embodiments of the present application, as shown in Figure 1, this is matched
The system of setting is based primarily upon the end PC and is built, and LibreACS server is installed on the end PC, is equivalent to and is mounted with one on the end PC
A operating system, which can be a software, be also possible to an individual operating platform or it is other can be real
The software form of existing ACS service.In addition to installation LibreACS server, also need that Selenium test library is installed on the end PC,
Required use-case is tested for storing.It further include equipment to be configured in the configuration system, by the end PC in addition to the end PC
Configuration method provided by execution the embodiment of the present application, which can be realized, automatically configures equipment to be configured.Configuration shown in FIG. 1
System is equivalent to a kind of Robot Framework test frame, the application using Robot Framework test frame realize to
Configure automatically configuring for the function of equipment.
Embodiment in addition to installing LibreACS server directly on the end PC, can not also install on the end PC
LibreACS server only installs a corresponding platform on the end PC, and LibreACS server is separately provided, the platform with
LibreACS server can be B-S connection, and perhaps C-S connection i.e. client is connect or browser and clothes with server communication
The form of business device communication connection.The platform then can be software, browser etc..
It is appreciated that if it is the embodiment for installing LibreACS server on the end PC, it can be with for the end PC
It is done directly relevant operation;If only installing a corresponding platform on the end PC, when carrying out relevant operation, pass through
It is interacted between the platform and server and relevant operation can be completed.
It next referring to figure 2., is the configuration method of the functions of the equipments provided by the embodiments of the present application applied to the end PC
Flow chart, as described in Figure 2, which includes:
Step 101: when physical connection has been established with equipment to be configured, establishing the communication connection with equipment to be configured.
Step 102: obtaining configuration use-case corresponding with equipment to be configured.Configuration use-case is used to configure the function of equipment to be configured
Energy.
Step 103: executing configuration use-case, the function of equipment to be configured is configured.
In the embodiment of the present application, the end PC is set on the basis of establishing physical connection with equipment to be configured with to be configured
It is standby to establish communication connection, then the function of equipment to be configured is configured by executing configuration use-case.Compared to the prior art, should
The configuration process of configuration method does not need user's participation, configures use-case by executing, can carry out to the function of equipment to be configured
Configuration, needs to carry out the configuration of what function, just obtains the configuration use-case for function.Whole process is simple and quick,
Substantially increase the efficiency of functions of the equipments configuration.
For equipment to be configured, refer to the hardware for being physically located at client layer.In the embodiment of the present application, this to be configured sets
It is standby to can be various wireless cpe devices, such as wireless router, modem, wireless aps (Access Point, access point)
(being commonly called as hot spot) etc..
Wherein, in a step 101, it is to be understood that in order to configure the end PC to equipment to be configured, the end PC with to
It needs first to establish physical connection between configuration equipment.A kind of optional embodiment: two wired network adapters of installation on the end PC, one
It opens wired network adapter and is connected to LAN (Local Area Network, local area network) interface of wireless CPE, and the wired network adapter is set
It is set to automatic acquisition IP (Internet Protocol, network protocol).The direct-connected LibreACS server of another wired network adapter
Eth1 (network interface card 1), wired network adapter IP are arranged fixed and LibreACS server same network segment and are not provided with gateway.
For step 101, a kind of optional embodiment, step 101 includes: to configure the wireless connection of wireless CPE to
Static WAN (Wide Area Network, wide area network) connection, and the gateway of wireless CPE is directed toward itself corresponding network interface card;
The server path for configuring wireless CPE is the path of itself corresponding server.
Wherein, by the wireless connection of wireless CPE be configured to static WAN connection belong to wireless CPE routine configuration, make nothing
Line CPE can be located in same domain with LibreACS server.The gateway of wireless CPE is directed toward itself corresponding network interface card, such as
The gateway of wireless CPE is directed toward to the eth0 of LibreACS server, and by its server path (namely URL (Uniform
Resource Locator, uniform resource locator)) it is set as the road of the corresponding server in the end PC (LibreACS server)
Diameter is the path LibreACS server reported in order to make wireless CPE, is equivalent to and takes wireless CPE and LibreACS
Business device binding, CPE wireless in this way could be managed by LibreACS server, to carry out subsequent configuration.
After completing step 101, it is equivalent to the URL for completing that the TR069 active reporting that wireless CPE is arranged is LibreACS
And correct user name password, i.e., the end relevant information PC of wireless CPE can be directly obtained.Wherein, correct user name
Password is the authentication username and password of configuration when installing LibreACS, and the configuration of wireless CPE must be that the certification is used
Name in an account book and password just can connect to LibreACS, i.e., the correct user name password be user name corresponding with LibreACS and
Password.
It should be noted that since Robot Framework frame is a kind of distributed test frame, the end PC
Multiple equipment to be configured can be configured, for an end PC, usually can simultaneously with 2-3 equipment to be configured into
Row connection, to be configured.If an end PC will configure multiple equipment to be configured, then the end PC is according to step 101
It establishes the mode of connection and each equipment to be configured establishes connection, but the mistake of connection or the configuration of each equipment to be configured
Journey be all it is independent, will not influence each other.In practical operation, can be numbered for each equipment to be configured, according to number
It is sequentially connected with or configures.
For step 102, the function that use-case is used to configure equipment to be configured is configured.Configuration use-case can be understood as configuration journey
Sequence, in the operating system on the end PC, running the configurator can call LibreACS server to carry out relevant configuration behaviour
Make.The configuration use-case, which can be programmer, to be finished be stored in test library in advance, and the use stored in Selenium is also possible to
Example, is directly used in the function of configuring equipment to be configured.Different configuration use-cases correspond to different configuration features, it should be noted that
Be, function described in the embodiment of the present application be meant to is exactly to carry out phase to some parameters or the method for operation of wireless CPE
Configuration of pass, such as value, wireless cipher, channel etc..It is appreciated that postponed in these parameters of completion or matching for the method for operation,
Also just configuration is completed for the parameter or the corresponding function of the method for operation.For example, it is assumed that equipment to be configured is router, the function of configuration
It can be to be wirelessly connected password, in completion wireless connection password with postponing, user can be connected by the wireless connection password
Wireless network corresponding to router.So to the configuration of the function of wireless CPE be substantially to the parameter of wireless CPE or
The essential informations such as the method for operation are configured.
It for step 103, executes configuration use-case and is configured, it will be understood that configuration use-case is configurator, on the end PC
The process of operating system program is equivalent to and configures use-case executing, and after the process configured is then running configuration program
As a result, i.e. on an operating system made by processing.
In conjunction with step 102 and step 103, relevant introduction next is made to the execution of configuration use-case and configuration use-case.
The first configuration use-case: the configuration of wireless SSID (Service Set Identifier, service set identifier) value
Use-case.Step 102 includes: the configuration use-case obtained for configuring the wireless SSID value of wireless CPE, wherein configures wireless SSID
Value includes reading wireless SSID value and the wireless SSID value of modification.Corresponding, step 103 includes: the initial of the wireless CPE of reading
Wireless SSID value;Call configuration script that initial wireless SSID value is revised as preset value.
Each wireless CPE is corresponding with a wireless SSID value, in configuration use-case, defines each wireless CPE setting
Wireless SSID value.When executing configuration use-case, the end PC first reads an initial wireless SSID value from wireless CPE, should
Initial wireless SSID value may be the value of a default, it is also possible to not set mistake, specifically it is worth there is no one, only generation
The table position is wireless SSID value.After reading initial SSID value, regardless of the value is default value or null value, all repaired
It is changed to value defined in configuration use-case.If initial wireless SSID value is X, the value that configuration use-case defines is Y, is executing configuration
After use-case, the wireless SSID value of this is wireless CPE is modified to Y from X.
It wherein, in modified values, is realized by configuration script.For configuration script, it will be understood that be equivalent to one
Configuration tool, the modification that can be worth by the configuration script.In the embodiment of the present application, which can be
SetParameterValues in JavaScript foot.After the configuration script modifies wireless SSID value, the wireless SSID of modification
Value comes into force.
In addition, when running program, being substantially in practical application, general realize each step by program
For LibreACS (operating system) in the operation directly configured, the result of program operation is exactly that LibreACS is called to go to complete
The operation of configuration, such as when the configuration script wireless SSID value of modification, configurator calls the pipe of selenium access LibreACS
The page is managed, dynamic modifies the Configuration scripts of LibreACS, then perform script, makes CPE configuration take-effective.It is subsequent
Other configurations use-case implementation procedure be also similarly, in practical application, on the end PC only need run be stored in advance or
The program that scene is write, LibreACS carry out relevant operation, complete the configuration of the various functions of equipment.
Second of configuration use-case: it is wirelessly connected password.Step 102 includes: the wireless connection obtained for configuring wireless CPE
The configuration use-case of password.Step 103 includes: to read the initial wireless connection password of wireless CPE;Call configuration script by initial nothing
Line connection password is revised as preset password.
Each wireless CPE is corresponding with a wireless connection password, in configuration use-case, defines each wireless CPE and sets
The wireless connection password set.When executing configuration use-case, it is close that the end PC first reads an initial wireless connection from wireless CPE
Code, the initial wireless connection password may be the password of a default, it is also possible to not set mistake, it is specific there is no one
Password, only represent the position be wirelessly connected password.After reading initial wireless connection password, regardless of the password is silent
Recognize password or null password, is all revised as wireless connection password defined in configuration use-case.Such as initial wireless connection
Password is 00000000, and the value that configuration use-case defines is 88888888, and after executing configuration use-case, this is wireless, and the wireless of CPE connects
It connects password and is modified to 88888888 from 00000000.
It wherein, when modification is wirelessly connected password, is realized by configuration script.For configuration script, both may be used
With modified values, wireless cipher can also be modified.In the embodiment of the present application, the configuration script that modification is wirelessly connected password can also be with
It is the SetParameterValues in JavaScript foot.The configuration script modification be wirelessly connected password after, modification it is wireless
Connection password comes into force.
In addition to both configure use-case, can also be for example for configuring the configuration use-case for the channel being wirelessly connected;For
Configure the configuration use-case of mode etc. being wirelessly connected.Two kinds of configurations that the implementation procedure and previous embodiment of other use-cases are introduced
Use-case is similar, i.e., first obtains or read the initial configuration on wireless CPE, then repair according still further to what configuration use-case defined
Change, is finally completed the configuration of function.
In addition, an equipment to be configured can correspond to multiple configuration use-cases, it is assumed that have multiple configuration use-cases, can successively hold
The each configuration use-case of row, such as being currently configured use-case is the wireless SSID value of configuration, next configuration use-case is that configuration is wirelessly connected
Password.The execution sequence of each configuration use-case, which can be, to conform to the principle of simplicity to difficulty, and the simple or difficult time executed by use-case is commented
Sentence, the time that simpler use-case executes is shorter, and the time that the use-case being more difficult to executes is longer;It is also possible to each configuration use-case
Carry out the sequence of random alignment.
After step 103, that is, configuration use-case is executed, completed to the function of equipment to be configured with postponing, in order to improve
The accuracy of functions of the equipments configuration, can also by check with the corresponding inspection use-case of configuration use-case the function of configuration,
Configuration successful is checked whether, to increase the accuracy of functions of the equipments configuration.Therefore, after step 103, which is also wrapped
It includes: obtaining inspection use-case corresponding with the function that configuration use-case is configured;It executes and checks use-case, check the function of equipment to be configured
Whether configuration successful.
For the first configuration use-case that the embodiment of the present application is introduced, wireless SSID value configures use-case, obtains and configure
The corresponding inspection use-case of the function that use-case is configured, comprising: obtain for check wireless SSID value whether the inspection of configuration successful
Use-case;It is corresponding, execute check use-case, check equipment to be configured function whether configuration successful, comprising: pass through wireless CPE
The radio configuration page or serial ports access wireless CPE;Determine whether modified wireless SSID value is preset value, if after modification
Wireless SSID value be preset value, determine the wireless SSID value configuration successful of wireless CPE.
Wherein, after wireless CPE is accessed by the radio configuration page or serial ports, it can be seen that LibreACS setting
Wireless SSID value, such as the wireless SSID of LibreACS setting CPE is guest_ssid, then accesses the radio configuration page of CPE,
The SSID for seeing wireless management, should also be guest_ssid.If what is be accessed is not the value of setting, it was demonstrated that be not configured to
Function, it may be necessary to reconfigure, if what is be accessed is the value of setting, it was demonstrated that configuration successful.It can also log in CPE's by serial ports
After order, corresponding viewing command is issued, such as wl show ssid (checking wireless SSID), checks whether the SSID of display is it
The value of preceding configuration.
For second of configuration use-case provided by the embodiment of the present application, it is wirelessly connected password and configures use-case, obtain and match
Set the corresponding inspection use-case of function that use-case is configured, comprising: obtain for checks wireless connection password whether configuration successful
Check use-case;It is corresponding, execute check use-case, check equipment to be configured function whether configuration successful, comprising: by wireless
The radio configuration page or serial ports of CPE accesses wireless CPE;Determine whether modified wireless connection password is preset password,
If modified wireless connection password is preset password, the wireless connection password configuration successful of wireless CPE is determined.
Wherein, after wireless CPE is accessed by the radio configuration page or serial ports, it can be seen that LibreACS setting
It is wirelessly connected password, such as the wireless connection password of LibreACS setting CPE is 88888888, then accesses the radio configuration of CPE
The page, it is seen that the wireless connection password of wireless management should also be 88888888.If what is be accessed is not the password of setting, card
It is bright to be not configured to function, it may be necessary to reconfigure, if what is be accessed is the password of setting, it was demonstrated that configuration successful.It can also lead to
After crossing the order that serial ports logs in CPE, corresponding viewing command is issued, as wl show wifi password (checks wireless connection
Password), check whether the wireless connection password of display is the password configured before.
In addition to checking after configuration the function of configuration, each configuration use-case is being executed, or executed
All configuration use-cases, or executed with after the corresponding inspection use-case of configuration use-case, in order to guarantee other processes on the end PC
It can be normally carried out, can be recycled to resource caused by use-case is executed.Therefore, after step 103, configuration method is also wrapped
It includes: clearing up the resource generated during executing and configuring use-case, resource includes process, file and caching.Certainly, in addition to clear
The resource generated during reason configuration use-case, can also clear up the resource generated during executing and checking use-case.It is holding
During row, the meeting many processes of pull-up access many files, generate temporary file, and using memory cache etc., these resources may
Meeting committed memory, influences the efficiency of other use-cases execution, these resources is cleaned up, and avoids generating execution use-case next time
It influences.
Configuration method provided by the embodiment of the present application is introduced in order to clearer, next to the configuration method in reality
Implementing procedure in makees illustrative introduce.
The first application flow, specifically includes the following steps: 1, each set according to test environment schematic (such as Fig. 1) connection
It is standby, Robot Framework is installed, and the library Selenium is installed on the end PC.2, the network interface card 1 at the end PC is arranged with obtaining IP automatically
Location, and connect the LAN mouth of CPE.3, start LibreACS TR069 server on LibreACS, fixed IP, gateway is arranged in eth0
It is directed toward the WAN IP of CPE.4, fixed IP:200.200.200.10 is arranged in the network interface card 2 at the end PC, and is not provided with gateway, LibreACS
Eth1 fixed IP, 200.200.200.20 are set, and be not provided with gateway.5, start LibreACS TR069 clothes on LibreACS
Business device.6, Robot Framework automatic configuration program is run on the end PC, static static state WAN connection, net is arranged in control CPE
Close the eth0 for being directed toward LibreACS.7, automatic configuration program starts to read the value of node and setting, is arranged by Selenium
The Configuration scripts of LibreACS is SetParameterValues, and node be the node of reading use-case, is worth and is
The value of use-case setting, then it is that CPE is issued and configured and come into force, then passes through the page, serial ports etc. that LibreACS, which is arranged, by Selenium
Mode accesses CPE, and whether the configuration for checking that LibreACS is issued comes into force, and records test result, is recycled next time.8, all
After use-case has executed, the end PC stops configuration, recycles test resource.
Second of application flow is referring to figure 3. that the process of second of application flow provided by the embodiments of the present application is illustrated
Figure, as shown in figure 3, the process includes:
Step S001: user connects equipment according to topological diagram, is configured equipment CPE and powers on, and starts LibreACS.
Step S002: being initially configured, and the WAN that automatic configuration program configures CPE is static state, and gateway is directed toward LibreACS.
Step S003: the URL that automatic configuration program configures the TR069 of CPE is directed toward LibreACS, and waiting has reported for the first time
At.
Step S004: the value var_n for reading and needing the node node_n checked and needing to check is begun stepping through.
Step S005: use-case calls Selenium keyword, opens the LibreACS page, and modifies LibreACS execution
The JavaScript script that RPC is called is SetParameterValues, and node is that node_n value is var_n.
Step S006: after setting perform script, Selenium clicks the Opposite direction connection for executing LibreACS.Wherein, it operates
LibreACS executes the Opposite direction connection to CPE, and the Javascript script execution for exactly allowing front to configure in LibreACS is held
Capable target object is exactly CPE, it may be assumed that the purpose of Opposite direction connection is exactly to allow LibreACS to issue to be configured to CPE.
Step S007: LibreACS is waited to execute completion.
Step S008: by the page or the methods of telnet or serial ports, CPE is accessed, checks whether and is arranged successfully.
Step S009: record check terminates and Resource recovery if recycling and completing as a result, recycled next time.
The process applied from both can be seen that configuration method provided by the embodiment of the present application and be fundamentally based on PC
End and equipment to be configured, build the system framework of an automatic configuration, can carry out the functional configuration of equipment, reuse
This set system framework is replaced traditional manual configuration method, is configured to equipment to be configured, and functions of the equipments configuration is improved
Efficiency.
Based on the same inventive concept, referring to figure 4., a kind of configuration device of functions of the equipments is also provided in the embodiment of the present application
200, it is applied to the end PC, which includes: link block 201, obtains module 202 and configuration module 203.
Link block 201, for when physical connection has been established with equipment to be configured, establishing and the equipment to be configured
Communication connection;Module 202 is obtained, for obtaining configuration use-case corresponding with the equipment to be configured;The configuration use-case is used for
Configure the function of the equipment to be configured;Configuration module 203, for executing the configuration use-case, to the equipment to be configured
Function is configured.
Optionally, it obtains module 202 and is also used to obtain and configure the corresponding inspection use-case of the function that is configured of use-case with described.
Configuration module 203 is also used to execute the inspection use-case, check the equipment to be configured function whether configuration successful.
Optionally, the configuration use that module 202 is also used to obtain the wireless SSID value for configuring the wireless CPE is obtained
Example, wherein the configuration wireless SSID value includes reading the wireless SSID value and the modification wireless SSID value.Configure mould
Block 203 is also used to read the initial wireless SSID value of the wireless CPE;Call configuration script by the initial wireless SSID
Value is revised as preset value.
Optionally, obtain module 202 be also used to obtain for check the wireless SSID value whether the inspection of configuration successful
Use-case.Configuration module 203 is also used to access the wireless CPE by the radio configuration page or serial ports of the wireless CPE;Really
Whether the fixed modified wireless SSID value is the preset value, if the modified wireless SSID value is described default
Value, determines the wireless SSID value configuration successful of the wireless CPE.
Optionally, configuration device 200 further includes cleaning modul, and cleaning modul, which is used to clear up, is executing the configuration use-case
The resource generated in the process, the resource include process, file and caching.
Optionally, link block 201 is also used to: static WAN connection is configured by the wireless connection of the wireless CPE, with
And the gateway of the wireless CPE is directed toward itself corresponding network interface card;The server path of the wireless CPE is configured as itself correspondence
Server path.
Optionally, the configuration use for the wireless connection password that module 202 is also used to obtain for configuring the wireless CPE is obtained
Example.Configuration module 203 is also used to read the initial wireless connection password of the wireless CPE;Call configuration script will be described initial
It is wirelessly connected password and is revised as preset password.
Each embodiment and specific example in configuration method in previous embodiment are equally applicable to the device of Fig. 4, lead to
The aforementioned detailed description to configuration method is crossed, those skilled in the art are clear that the implementation of the configuration device in Fig. 4
Method, so this will not be detailed here in order to illustrate the succinct of book.
Based on the same inventive concept, the embodiment of the present application also provides a kind of readable storage medium storing program for executing, this is computer-readable to be deposited
Computer program is stored on storage media, which executes the configuration of any of the above-described embodiment when being run by computer
Step in method.
It may include: memory and processor for PC described in previous embodiment, memory and processor connect
It connects;Memory is for storing program;Processor calls the program being stored in memory, and is provided with executing the embodiment of the present application
Configuration method.
Memory can include but is not limited to RAM (Random Access Memory, random access memory), ROM
(Read Only Memory, read-only memory), (Programmable Read-Only Memory, may be programmed read-only deposit to PROM
Reservoir), EPROM (Erasable Programmable Read-Only Memory, erasable read-only memory), EEPROM
(Electric Erasable Programmable Read-Only Memory, electricallyerasable ROM (EEROM)) etc..
In the embodiment of the present application, after being mounted with Selenium test library, each test case in the test library (is surveyed
Examination program) it has been stored in the memory at the end PC, so that processor is called.
Processor can be a kind of IC chip, have signal handling capacity.Above-mentioned processor can be general place
Manage device, including CPU (Central Processing Unit, central processing unit), NP (Network Processor, at network
Manage device) etc.;Can also be digital signal processor, specific integrated circuit, ready-made programmable gate array or other programmable patrol
Collect device, discrete gate or transistor logic, discrete hardware components.It may be implemented or executes in the embodiment of the present application
Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint
What conventional processor etc..
For example, processor executes step 103, executes configuration use-case, configures to the function of equipment to be configured, example
Such as, running configuration program is run by processor, and processor running configuration program could generate configuration result.For another example configuration foot
This modified values is substantially comparable to that a processing has been descended to order to processor, and then processor goes to modify again.Although existing
It is mounted with Configuration Framework and configuration operating system on the end PC, but is all finally to be gone to execute by processor.
In embodiment provided herein, it should be understood that disclosed device and method, it can be by others side
Formula is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only one kind are patrolled
Function division is collected, there may be another division manner in actual implementation, in another example, multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some communication interfaces, device or unit
It connects, can be electrical property, mechanical or other forms.
In addition, unit may or may not be physically separated as illustrated by the separation member, as unit
The component of display may or may not be physical unit, it can and it is in one place, or may be distributed over more
In a network unit.Some or all of unit therein can be selected to realize this embodiment scheme according to the actual needs
Purpose.
Furthermore each functional module in each embodiment of the application can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
Herein, relational terms such as first and second and the like be used merely to by an entity or operation with it is another
One entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this reality
Relationship or sequence.
The above description is only an example of the present application, the protection scope being not intended to limit this application, for ability
For the technical staff in domain, various changes and changes are possible in this application.Within the spirit and principles of this application, made
Any modification, equivalent substitution, improvement and etc. should be included within the scope of protection of this application.
Claims (10)
1. a kind of configuration method of functions of the equipments, which is characterized in that be applied to the end PC, which comprises
When physical connection has been established with equipment to be configured, the communication connection with the equipment to be configured is established;
Obtain configuration use-case corresponding with the equipment to be configured;The configuration use-case is used to configure the function of the equipment to be configured
Energy;
The configuration use-case is executed, the function of the equipment to be configured is configured.
2. the method according to claim 1, wherein the equipment to be configured be wireless CPE, obtain with it is described to
Configure the corresponding configuration use-case of equipment, comprising:
Obtain the configuration use-case for configuring the wireless SSID value of the wireless CPE, wherein configuring the wireless SSID value includes
Read the wireless SSID value and the modification wireless SSID value;
It is corresponding, the configuration use-case is executed, the equipment to be configured is configured, comprising:
Read the initial wireless SSID value of the wireless CPE;
Call configuration script that the initial wireless SSID value is revised as preset value.
3. the method according to claim 1, wherein executing the configuration use-case, to the equipment to be configured
Function carry out with postponing, the method also includes:
Obtain inspection use-case corresponding with the function that the configuration use-case is configured;
Execute the inspection use-case, with check the equipment to be configured function whether configuration successful.
4. according to the method described in claim 3, it is characterized in that, the equipment to be configured is wireless CPE, the configuration use-case
For configuring the wireless SSID value of the wireless CPE, obtains and configures the corresponding inspection use-case of function that use-case is configured with described,
Include:
Obtain for check the wireless SSID value whether the inspection use-case of configuration successful;
It is corresponding, execute the inspection use-case, check the equipment to be configured function whether configuration successful, comprising:
The wireless CPE is accessed by the radio configuration page or serial ports of the wireless CPE;
Determine whether the modified wireless SSID value is preset value, if the modified wireless SSID value is described default
Value, determines the wireless SSID value configuration successful of the wireless CPE.
5. the method according to claim 1, wherein executing the configuration use-case, to the equipment to be configured
Match and postpones, the method also includes:
The resource generated during executing the configuration use-case is cleared up, the resource includes process, file and caching.
6. the method according to claim 1, wherein the equipment to be configured be wireless CPE, establish with it is described to
Configure the communication connection of equipment, comprising:
Static WAN connection is configured by the wireless connection of the wireless CPE, and the gateway of the wireless CPE is directed toward itself
Corresponding network interface card;
The server path for configuring the wireless CPE is the path of itself corresponding server.
7. the method according to claim 1, wherein the equipment to be configured be wireless CPE, obtain with it is described to
Configure the corresponding configuration use-case of equipment, comprising:
Obtain the configuration use-case of the wireless connection password for configuring the wireless CPE;
It is corresponding, the configuration use-case is executed, the equipment to be configured is configured, comprising:
Read the initial wireless connection password of the wireless CPE;
Call configuration script that the initial wireless connection password is revised as preset password.
8. a kind of configuration device of functions of the equipments, which is characterized in that be applied to the end PC, described device includes:
Link block, for establishing the communication link with the equipment to be configured when physical connection has been established with equipment to be configured
It connects;
Module is obtained, for obtaining configuration use-case corresponding with the equipment to be configured;The configuration use-case is described for configuring
The function of equipment to be configured;
Configuration module configures the function of the equipment to be configured for executing the configuration use-case.
9. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the calculating on the readable storage medium storing program for executing
It executes when machine program is run by computer such as the step in any the method for claim 1-7.
10. a kind of electronic equipment characterized by comprising memory and processor, the memory and the processor connect
It connects;
The memory is for storing program;
The processor calls the program being stored in the memory, to execute as of any of claims 1-7
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910763071.XA CN110460474B (en) | 2019-08-14 | 2019-08-14 | Method and device for configuring device functions, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910763071.XA CN110460474B (en) | 2019-08-14 | 2019-08-14 | Method and device for configuring device functions, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110460474A true CN110460474A (en) | 2019-11-15 |
CN110460474B CN110460474B (en) | 2022-12-23 |
Family
ID=68487390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910763071.XA Active CN110460474B (en) | 2019-08-14 | 2019-08-14 | Method and device for configuring device functions, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110460474B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110830330A (en) * | 2019-12-06 | 2020-02-21 | 浙江中控技术股份有限公司 | Firewall testing method, device and system |
CN111984964A (en) * | 2020-08-20 | 2020-11-24 | 成都安恒信息技术有限公司 | Selenium-based web application encryption method |
CN114244756A (en) * | 2021-12-16 | 2022-03-25 | 浪潮通信信息***有限公司 | Method and system for automatically identifying home broadband CPE (customer premises equipment) model for remote monitoring |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101102230A (en) * | 2007-08-09 | 2008-01-09 | 中兴通讯股份有限公司 | A method for implementing automatic configuration of integrated access device |
CN101795205A (en) * | 2009-12-22 | 2010-08-04 | 中兴通讯股份有限公司 | Method and system for upgrading terminal |
CN103559114A (en) * | 2013-11-12 | 2014-02-05 | 福建联迪商用设备有限公司 | Embedded module driving functional testing system and method |
CN105099817A (en) * | 2015-07-14 | 2015-11-25 | 上海斐讯数据通信技术有限公司 | Remote management automation test method |
CN107171854A (en) * | 2017-06-19 | 2017-09-15 | 深圳市共进电子股份有限公司 | A kind of method that independent wide area network server is simulated in automatic test |
CN107368423A (en) * | 2017-08-08 | 2017-11-21 | 携程计算机技术(上海)有限公司 | Interface automatic configuration system and the automatized script processing method carried out wherein |
-
2019
- 2019-08-14 CN CN201910763071.XA patent/CN110460474B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101102230A (en) * | 2007-08-09 | 2008-01-09 | 中兴通讯股份有限公司 | A method for implementing automatic configuration of integrated access device |
CN101795205A (en) * | 2009-12-22 | 2010-08-04 | 中兴通讯股份有限公司 | Method and system for upgrading terminal |
CN103559114A (en) * | 2013-11-12 | 2014-02-05 | 福建联迪商用设备有限公司 | Embedded module driving functional testing system and method |
CN105099817A (en) * | 2015-07-14 | 2015-11-25 | 上海斐讯数据通信技术有限公司 | Remote management automation test method |
CN107171854A (en) * | 2017-06-19 | 2017-09-15 | 深圳市共进电子股份有限公司 | A kind of method that independent wide area network server is simulated in automatic test |
CN107368423A (en) * | 2017-08-08 | 2017-11-21 | 携程计算机技术(上海)有限公司 | Interface automatic configuration system and the automatized script processing method carried out wherein |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110830330A (en) * | 2019-12-06 | 2020-02-21 | 浙江中控技术股份有限公司 | Firewall testing method, device and system |
CN111984964A (en) * | 2020-08-20 | 2020-11-24 | 成都安恒信息技术有限公司 | Selenium-based web application encryption method |
CN111984964B (en) * | 2020-08-20 | 2024-02-02 | 成都安恒信息技术有限公司 | Selenium-based web application decryption method |
CN114244756A (en) * | 2021-12-16 | 2022-03-25 | 浪潮通信信息***有限公司 | Method and system for automatically identifying home broadband CPE (customer premises equipment) model for remote monitoring |
Also Published As
Publication number | Publication date |
---|---|
CN110460474B (en) | 2022-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110460474A (en) | The configuration method and device of functions of the equipments, storage medium, electronic equipment | |
US20120253728A1 (en) | Method and system for intelligent automated testing in a multi-vendor, multi-protocol heterogeneous environment | |
CN104065528A (en) | Method And Apparatus For Analyzing And Verifying Functionality Of Multiple Network Devices | |
CN109039788B (en) | Port configuration method and device of network equipment and storage medium | |
CN107483243A (en) | A kind of automatic deployment method and equipment of OpenStack platforms | |
US7908519B2 (en) | Trouble emulator for a rules-based diagnostic system | |
CN107979489A (en) | Integrated access equipment configuration monitoring method | |
CN106776346B (en) | Test method and device of CCMTS (China center testing System) equipment | |
Mazin et al. | Performance analysis on network automation interaction with network devices using python | |
CN107566513B (en) | Test equipment DOS environmental data acquisition method and system | |
CN106792784B (en) | A kind of method, server and system carrying out data check in server side | |
CN105515804A (en) | Apparatus and method for fixing client system errors | |
CN106649019A (en) | Test method for overall automatic PCIE communication quality based on serial port | |
CN110198222A (en) | A kind of distribution power automation terminal plug and play test method and test main website | |
CN108540344A (en) | A kind of router upgrade test method and system | |
CN109286692A (en) | A kind of method of configuration server IPMI static ip address | |
CN116629173A (en) | Verification method and device of network chip, computer equipment and storage medium | |
CN114071391B (en) | Content charging test method, management device, terminal device and storage medium | |
CN105827462A (en) | Method and tool for detecting network device | |
KR101862617B1 (en) | System of testing iot sensor for power facility management | |
CN104394042A (en) | Upgrading method for ONU (Optical Network Unit) testing system by MIB (Management Information Base) | |
US10116491B1 (en) | Network cabling verification | |
CN111082984A (en) | Method and device for simulating login of network equipment to carry out command line interaction | |
CN114553685B (en) | Method for testing router broadband access | |
CN104954203B (en) | Support the DSL product automations detecting system and method for IPv6 agreements |
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 |