CN106713004A - Router adaptation method and system - Google Patents

Router adaptation method and system Download PDF

Info

Publication number
CN106713004A
CN106713004A CN201610545957.3A CN201610545957A CN106713004A CN 106713004 A CN106713004 A CN 106713004A CN 201610545957 A CN201610545957 A CN 201610545957A CN 106713004 A CN106713004 A CN 106713004A
Authority
CN
China
Prior art keywords
adaptation
router
template
identification information
adaptation template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610545957.3A
Other languages
Chinese (zh)
Other versions
CN106713004B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610545957.3A priority Critical patent/CN106713004B/en
Publication of CN106713004A publication Critical patent/CN106713004A/en
Application granted granted Critical
Publication of CN106713004B publication Critical patent/CN106713004B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a router adaptation method, which comprises the steps of: acquiring identification information of routers to be adapted, wherein the identification information comprises model information; generating an adaptation template of the routers; acquiring the adaptation template corresponding to the identification information according to the identification information, wherein the adaptation template is a common execution script of the routers of different models; and adapting the routers to be adapted according to the adaptation template. Since the common execution script of the routers of different models is obtained to serve as the adaptation template, the batch adaptation of the routers of different models can be realized by means of the adaptation template. The router adaptation method based on the adaptation template can complete the compatibility and adaptation of most of the router models with less template development, thereby being capable of greatly improving the development efficiency, saving the development cost and shortening the development cycle.

Description

A kind of router adaptation method and system
Technical field
The present invention relates to Internet technical field, more particularly to a kind of router adaptation method and system.
Background technology
There are many technical schemes in routing management solution field, typical technical scheme such as 360 is free WiFi, its routing management goes to be adapted to single route one by one in the way of being achieved in that to be adapted to by single model Device, the brand and model supported at present is all little, and to increase the development cost and equipment cost of adaptation model newly All very high, the construction cycle is also very long.
The cell phone platform APP of routing management function can be realized two categories below:The first kind is only adapted to this product Router device model under board.The routing device model of other brands cannot be adapted to.Equations of The Second Kind can realize across Brand router adaptation is supported, but model a small amount of under the only compatible a small amount of brand of adaptation, and be achieved in that with Go to be adapted to one by one in the way of single model is adapted to.
Using the technical scheme of the adaptation mode of model one by one as shown in figure 1, comprising the following steps:
Start single model adaptation router administration function;
Obtain the perform script of the associative operation of router administration function pages under the model;
Perform script is encapsulated into terminal device to go to perform;
User is triggered using router administration function in terminal device and performs associated script;
Perform script controls router device, completes control router operation;
Terminal device realizes routing management function.
It is obvious that being adapted to the technical scheme of mode using model one by one, development cost and equipment cost are all very high, Construction cycle is also very long.
The content of the invention
In order to solve the above-mentioned technical problem, the invention provides a kind of router adaptation method and system, can The common perform script of router of different model is obtained as adaptation template, can be realized by being adapted to template To the batch adaptation of different model router.
What the present invention was realized in:
A kind of router adaptation method, including:
Obtain the identification information of router to be adapted to;The identification information includes type information;
Generate the adaptation template of router;
Adaptation template corresponding to the identification information is obtained according to the identification information;
Adaptation router is treated according to the adaptation template to be adapted to;
The adaptation template of the generation router includes:
Obtain the adaptation script of the router of multiple different models;
According to the common perform script of the router for being adapted to script acquisition different model;
The common adaptation template of router according to the common perform script generation different model.
Present invention also offers a kind of router adaption system, including:
Identification information acquisition module, the identification information for obtaining router to be adapted to;The identification information bag Include type information;
Adaptation template generation module, the adaptation template for generating router;
The adaptation template generation module includes:
Many script acquiring units, obtain the adaptation script of the router of multiple different models;
Common script acquiring unit, the router for obtaining different model according to the adaptation script is common Perform script;
Adaptation template generation unit, the router for generating different model according to the common perform script Common adaptation template;
Adaptation template acquisition module, for obtaining adaptation mould corresponding to the identification information according to the identification information Plate;
Adaptation module, is adapted to for treating adaptation router according to the adaptation template.
Implement the present invention, have the advantages that:
The method of the present invention, obtains the identification information of router to be adapted to;The identification information is believed including model Breath;Generate the adaptation template of router;Then corresponding suitable of the identification information is obtained according to the identification information With template;The adaptation template is the common perform script of the router of different model;Finally according to described suitable Adaptation router is treated with template to be adapted to.The present invention provides a kind of compatible different brands router model Terminal solution, because the common perform script of the router for obtaining different model is used as adaptation template, leads to Crossing adaptation template can realize being adapted to the batch of different model router.Compared to pressing for other like products Model is adapted to mode, and the router based on adaptation template of the invention is adapted to mode only with less template development Just can complete the compatible of most router models and be adapted to such that it is able to be greatly enhanced development efficiency, Save development cost, shorten the construction cycle.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art and advantage, below will The accompanying drawing to be used needed for embodiment or description of the prior art is briefly described, it should be apparent that, under Accompanying drawing in the description of face is only some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the adaptation method of router in the prior art;
Fig. 2 is the hardware block diagram of the terminal of router adaptation method according to embodiments of the present invention;
Fig. 3 is the flow chart of router adaptation method according to embodiments of the present invention;
Fig. 4 is the flow chart of the adaptation template step of generation router according to embodiments of the present invention;
Fig. 5 is the common perform script of router of the according to embodiments of the present invention 2 acquisition different models for providing The flow chart of step;
Fig. 6 is the schematic diagram of the according to embodiments of the present invention 2 router adaption systems for providing;
Fig. 7 is the schematic diagram of the according to embodiments of the present invention 2 common script acquiring units for providing;
Fig. 8 is the structured flowchart of terminal according to embodiments of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, implement below in conjunction with the present invention Accompanying drawing in example, is clearly and completely described, it is clear that institute to the technical scheme in the embodiment of the present invention The embodiment of description is only the embodiment of a part of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the institute that those of ordinary skill in the art are obtained under the premise of creative work is not made There is other embodiment, should all belong to the scope of protection of the invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " second " etc. is for distinguishing similar object, without for describing specific order or precedence. It should be appreciated that the data for so using can be exchanged in the appropriate case, so as to reality of the invention described herein Applying example can be implemented with the order in addition to those for illustrating herein or describing.Additionally, term " including " " having " and their any deformation, it is intended that covering is non-exclusive to be included, for example, containing The process of series of steps or unit, method, system, product or equipment be not necessarily limited to clearly to list that A little steps or unit, but may include not list clearly or for these processes, method, product or Other intrinsic steps of equipment or unit.
Embodiment 1:
According to embodiments of the present invention, there is provided a kind of embodiment of router adaptation method, it is necessary to explanation, Can be in the such as one group computer system of computer executable instructions the step of the flow of accompanying drawing is illustrated Perform, and, although logical order is shown in flow charts, but in some cases, can be with not The order being same as herein performs shown or described step.
The embodiment of the method that the embodiment of the present application one is provided can be in mobile terminal, terminal or class As perform in arithmetic unit.As a example by running on computer terminals, Fig. 2 is according to embodiments of the present invention Router adaptation method terminal hardware block diagram.As shown in Fig. 2 terminal 100 Can include that (processor 102 can be included but not for one or more (one is only shown in figure) processors 102 Be limited to the processing unit of Micro-processor MCV or PLD FPGA etc.), for data storage Memory 104 and the transmitting device 106 for communication function.It will appreciated by the skilled person that Structure shown in Fig. 2 is only to illustrate, and it does not cause to limit to the structure of above-mentioned electronic installation.For example, meter Calculation machine terminal 100 may also include components more more than shown in Fig. 2 or less, or with Fig. 2 institutes Show different configurations.
Memory 104 can be used to store the software program and module of application software, such as in the embodiment of the present invention The corresponding programmed instruction/module of router adaptation method, processor 102 by run storage in memory 104 Interior software program and module, so as to perform various function application and data processing, that is, realize above-mentioned Router adaptation method.Memory 104 may include high speed random access memory, may also include non-volatile memories Device, such as one or more magnetic storage device, flash memory or other non-volatile solid state memories. In some examples, memory 104 can further include the memory remotely located relative to processor 102, These remote memories can be by network connection to terminal 10.The example of above-mentioned network include but not It is limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network instantiation May include the wireless network that the communication providerses of terminal 100 are provided.In an example, transmission dress Putting 106 includes a network adapter (Network Interface Controller, referred to as NIC), and it can It is connected with other network equipments so as to be communicated with internet by base station.In an example, transmit Device 106 can be radio frequency (Radio Frequency, referred to as RF) module, and it is used for by wireless parties Formula is communicated with internet.
Under above-mentioned running environment, this application provides router adaptation method as shown in Figure 3.The method In can apply to intelligent terminal, by the computing device in intelligent terminal, intelligent terminal Can be smart mobile phone, panel computer etc..At least one application program is installed in intelligent terminal, this The species of inventive embodiments not defining application, can be system class application program, or software Class application program.
Fig. 3 is the flow chart of router adaptation method according to embodiments of the present invention.As shown in figure 3, the road Comprised the following steps by a kind of optional scheme of device adaptation method:
Step S101, obtains the identification information of router to be adapted to;The identification information includes type information.
The router being presently using is from different production firms, such as 360, TP-link, Tenda, China For etc., and the version of the equipment of same manufacturer production is also different, therefore each router has oneself only One identification information, including brand and version number, for being different from other routers.
In the information of specific acquisition router feature page, the type information of router must be determined first, it The route of router to be adapted to specifically which version of which manufacturer could be determined according to the type information afterwards Device, and then could be to the router of multiple models generation adaptation template.So automatic identification router and obtaining Device type information is the basis for realizing the embodiment of the present invention.
Specifically, step S101 can by intelligent terminal access router obtain router brand, Model.
Batch matches all-router for convenience, and the embodiment of the present invention can safeguard all known routers Attribute information, the attribute information is including the type information of router, condition code information etc..This feature code letter Cease for router is peculiar and the information of unique mark router.The attribute information of the router passes through condition code The form storage of table is terminal device is local or cloud server.The generation of this feature code table can use as follows Mode realize, including:Obtain the type information of different model router and the condition code of the router;Will The type information and described document information binding storage form router feature code table in tables of data.Wherein, The condition code of the type information and corresponding router that obtain different model router can be by automatic or manual Form is obtained, and the specific embodiment of the present invention is not limited to this, and any one can be obtained in the prior art The method for taking router model information and condition code, in may be incorporated for the embodiment of the present invention.
When after terminal device is local or cloud server sets and maintains the feature code table of the router, eventually End equipment is local or cloud server can preserve an adaptation script, and the function of the adaptation script is according to road By the page info of device, specific router model information is accurately recognized.
The adaptation template of step S102, generation router.
It should be noted that step S102, that is, the adaptation template step for generating router is not necessarily intended in step After S101, as long as the adaptation template that router was generated before step S103 is applied to the present invention.
It should be noted that the model of router is although numerous, but may be deposited between multiple different models In identical perform script, generating adaptation template by common perform script can realize to Multiple Type The batch adaptation of router.
As shown in figure 4, step S102 includes:
The adaptation script of step S201, the router of the multiple different models of acquisition.
Wherein, the adaptation script for obtaining the router of different model can use any one side of the prior art Formula is obtained, and can automatically be obtained according to pre-defined algorithm, it is also possible to rule of thumb accumulate artificial acquisition, specifically The embodiment of the present invention is not limited to this.
Step S202, the common perform script of router that different model is obtained according to the adaptation script.
Step S203, according to the common adaptation mould of the router of the common perform script generation different model Plate.
In a kind of optional implementation method, as shown in figure 5, step 202 includes:
Step S301, analyze respectively every kind of model router institute's functional page, obtain each page Page elements;
Step S301, from obtain different model page elements in extract common page feature;
Step S303, common template page feature is generated according to the page feature.
In a kind of optional implementation method, step S203 includes:
Corresponding functional interface is packaged into according to the template page feature described in every kind of function, various differences are obtained The adaptation template of the router of model, the template page feature of the router identical function of difference adaptation template is taken out As and be packaged into unified functional interface.
The step of below by taking the router of TP-LINK brands as an example to the adaptation template for generating router, enters to advance One step explanation.As shown in Table 1, the router for having 12 models under TP-LINK brands only has three adaptation moulds Plate.It can be seen that, it is only necessary to three exploitations of template are completed, without being developed one by one to this 12 models And adaptation, accomplish efficient lifting development efficiency and relatively low development cost.
The acquisition process of specific adaptation template is exactly, by the script to individual router, to obtain wherein General character show that template adaptation possesses the result of feasibility.Adaptation template with TP-LINK brand templates one is Example, early stage is in analysis model TL-WR842N, TL-WR740N, TL-WR742N, TL-WR845N Etc. model router script when, it is found that these scripts are completely the same, thus confirming can be by same Individual calligraphy or painting model script completes the adaptation of the router of multiple models.
Table one
Further, as a kind of optional implementation method, after step S203, also include:
Step S204, the identification information of adaptation template router corresponding with the adaptation template is associated.
Specifically, by the associated bag of identification information of adaptation template router corresponding with the adaptation template Include:The identification information of several corresponding routers of each adaptation template is associated and stored in tables of data In, form adaptation template corresponding table.Obtain after after the identification information of adaptation router, search and be adapted to template pair Answering table can just obtain the adaptation template of router to be adapted to.
After the adaptation template based on above-mentioned method generation router, when being preserved to it, can be by It is local that it is stored in terminal device, it is also possible to saves it in cloud server, the specific embodiment of the present invention This is not limited.Though save it in where, its storage when can safeguard an adaptation for router Template form, the adaptation template of type information and router in the form at least including router.Work as acquisition After after the type information of adaptation router, the difference of the storage location of router adaptation template, Ke Yitong Cross following mode and obtain the corresponding adaptation template of the model.Specifically include:
When the adaptation template of router be merely stored in terminal device it is local when, can be locally stored from terminal device Adaptation template according to the type information obtain described in router to be adapted to adaptation template.
When the adaptation template of router is merely stored in cloud server, can be from the suitable of cloud server storage With in template according to the type information obtain described in router to be adapted to adaptation template.
When the adaptation template of router is to store in local terminal side, server beyond the clouds is stored again, and And two ends storage content for script it is consistent when, then terminal device is inquired about according to the type information and is locally stored Whether there is the corresponding adaptation template of the type information in adaptation template, if not existing locally, from high in the clouds clothes Business device storage adaptation template according to the type information acquisition described in router to be adapted to adaptation template; If locally existing, in the adaptation template being locally stored from terminal device according to the type information is obtained The adaptation template of router to be adapted to.
Wherein, when in the adaptation template being locally stored from terminal device according to the type information obtain described in treat When being adapted to the adaptation template of router, specially:Terminal device is inquired about according to the type information to be locally stored Router adaptation pin, obtain the adaptation template of the corresponding router of router to be adapted to.
Wherein, when in the adaptation template stored from cloud server according to the type information obtain described in wait to fit During adaptation template with router, specially:Terminal device sends to cloud server and obtains the suitable of router Request message with template, carries the type information of router in the request message;Cloud server is received To after the request message, according to the road that the type information inquiry cloud server included in the request message is stored By the adaptation template of device, the adaptation script of the corresponding router of router to be adapted to, and the road that will be obtained are obtained The terminal device of request is sent to by the adaptation template of device.
Step S103, adaptation template corresponding to the identification information is obtained according to the identification information.
Because the model of router is corresponding with identification information, in the adaptation template of the router of generation different model Afterwards, as long as obtaining the type information of router, it becomes possible to find corresponding adaptation template.
Step S104, treats adaptation router and is adapted to according to the adaptation template.
After obtaining adaptation template, it becomes possible to treat adaptation router according to the adaptation template and be adapted to.Tool For body, the adaptation procedure of step S104 includes:
Adaptation template is encapsulated into terminal device;
User is in terminal device triggering adaptation template;User can be by using the routing management in terminal device Function triggers adaptation template;
Adaptation template contral routing device is controlled to router, so as to realize terminal device to router Management function.
The function of the routing management of terminal device includes:
1. trusted devices list:Show that each router connects device name, the equipment MAC of equipment in list Address, equipment network speed etc..
2. blacklist:The list of devices function being denied access in router.Including adding blacklist and deletion Blacklist is operated.
3. WiFi is hidden:Cancellation broadcast capability in router, can realize hiding WiFi by the setting Get up, and then realize that other users cannot find, realization is avoided by the function of the purpose of loiter network.
4. restarter:Script is controlled to realize restarting router device by router.
5. WiFi titles are changed:Script is controlled to realize the function of the name modifications of WiFi by router.
6. WiFi passwords are changed:Script is controlled to realize the work(for changing the connection password of WiFi by router Energy.
Wherein, the process that adaptation template is encapsulated into terminal device is included:When need obtain the predetermined work(of router During the relevant information of energy, it is only necessary to call corresponding interface, it is possible to realize the function of specifying, corresponding function Incoming the spreading out of of involved specific data is to interact realization by the parameter and return value in interface.Specifically Realization is exactly the respective page that corresponding function interface requests router in template is adapted to described in application call, The page info for analyzing the respective page parses corresponding relevant information, the correlation that will be parsed Information returns to calling layer as return value with set form;I.e. using the logic inside script to predetermined function The page carries out parsing and obtains data, and the data that will be parsed return to caller.Such as wireless messages, its Corresponding function interface is get_wan_info, calls interface get_wan_info just can obtain wirelessly when implementing The relevant information such as title, password and wireless cipher cipher mode.
In addition, the adaptation template of the router in order to ensure generation is not plagiarized, the suitable of good router is being write After with template, the adaptation template to router is encrypted.Wherein, carried out in the adaptation script to router The algorithm embodiment of the present invention of encryption is not limited to this, user be embodied the embodiment of the present invention when, Can set according to demand.
After the adaptation template to router is encrypted, terminal device obtains the adaptation template of encryption, needs Adaptation template that will be first to encrypting is decrypted.Wherein, specific decryption can be carried out according to the algorithm of encryption, Pin is in this regard, the embodiment of the present invention is also not limited.
Implement the present invention, have the advantages that:
The method of the present invention, obtains the identification information of router to be adapted to;The identification information is believed including model Breath;Generate the adaptation template of router;Then corresponding suitable of the identification information is obtained according to the identification information With template;The adaptation template is the common perform script of the router of different model;Finally according to described suitable Adaptation router is treated with template to be adapted to.The present invention provides a kind of compatible different brands router model Terminal solution, because the common perform script of the router for obtaining different model is used as adaptation template, leads to Crossing adaptation template can realize being adapted to the batch of different model router.Compared to pressing for other like products Model is adapted to mode, and the router based on adaptation template of the invention is adapted to mode only with less template development Just can complete the compatible of most router models and be adapted to such that it is able to be greatly enhanced development efficiency, Save development cost, shorten the construction cycle.
Embodiment 2
According to embodiments of the present invention, a kind of system for implementing above-mentioned router adaptation method is additionally provided. Fig. 6 is the schematic diagram of router adaption system according to a first embodiment of the present invention, as shown in fig. 6, this is System includes:Identification information acquisition module, adaptation template generation module, adaptation template acquisition module and adaptation mould Block;
Identification information acquisition module, the identification information for obtaining router to be adapted to;The identification information bag Include type information;
The adaptation template generation module includes:
Many script acquiring units, obtain the adaptation script of the router of multiple different models;
Common script acquiring unit, the router for obtaining different model according to the adaptation script is common Perform script;
Adaptation template generation unit, the router for generating different model according to the common perform script Common adaptation template;
Adaptation template acquisition module, for obtaining adaptation mould corresponding to the identification information according to the identification information Plate;The adaptation template is the common perform script of the router of different model;
Adaptation module, is adapted to for treating adaptation router according to the adaptation template.
In the system of the router adaptation of the embodiment, identification information acquisition module can be used for performing the present invention Step S101 in embodiment, adaptation template generation module can be used for performing the step in the embodiment of the present invention S102, adaptation template acquisition module can be used for performing the step S103 in the embodiment of the present invention, adaptation module Can be used for performing the step S104 in the embodiment of the present invention.
Used as a kind of optional embodiment, system also includes relating module, for being adapted to described template and being somebody's turn to do The identification information of the corresponding router of adaptation template is associated.
As a kind of optional embodiment, as shown in fig. 7, the common script acquiring unit includes:
Page elements acquisition subelement, institute's functional page of the router for analyzing every kind of model respectively, Obtain the page elements of each page;
Page feature extraction subelement, for extracting common page from the page elements of the different model for obtaining Region feature;
Template page feature generates subelement, special for generating common template page according to the page feature Levy.
Used as a kind of optional embodiment, the adaptation template generation unit is further used for:
Corresponding functional interface is packaged into according to the template page feature described in every kind of function, various differences are obtained The adaptation template of the router of model, the template page feature of the router identical function of difference adaptation template is taken out As and be packaged into unified functional interface.
Used as a kind of optional embodiment, the adaptation template acquisition module is further used for:
Adaptation route is treated in the adaptation template being locally stored from terminal device according to the identification information is obtained The adaptation template of device;
Or from cloud server storage adaptation template according to the identification information obtain described in road to be adapted to By the adaptation template of device;
Or according to whether there is in the adaptation template that the identification information-enquiry terminal device is locally stored Adaptation template corresponding to identification information, if not existing, according to institute from the adaptation template of cloud server storage The adaptation template that identification information obtains the router to be adapted to is stated, if being locally stored from terminal device in the presence of if Adaptation template according to the identification information obtain described in router to be adapted to adaptation template.
Used as a kind of optional embodiment, system also includes encrypting module, for the suitable of the router to generating It is encrypted with template, the adaptation template of the router encrypted.
Embodiment 3
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, it is above-mentioned to deposit Storage media can be used for preserving the program code performed by a kind of router adaptation method of above-described embodiment.
Alternatively, in the present embodiment, above-mentioned storage medium may be located at multiple networks of computer network and set At least one of standby network equipment.
Alternatively, in the present embodiment, storage medium is arranged to storage for performing the program of following steps Code:
The first step, obtains the identification information of router to be adapted to;The identification information includes type information;
Second step, generates the adaptation template of router;
The adaptation template of the generation router includes:
Obtain the adaptation script of the router of multiple different models;
According to the common perform script of the router for being adapted to script acquisition different model;
The common adaptation template of router according to the common perform script generation different model;
3rd step, adaptation template corresponding to the identification information is obtained according to the identification information;
4th step, treats adaptation router and is adapted to according to the adaptation template.
Alternatively, the common perform script of the router according to the adaptation script acquisition different model, Including:
Institute's functional page of the router of every kind of model is analyzed respectively, obtains the page elements of each page;
Common page feature is extracted from the page elements of the different model for obtaining;
Common template page feature is generated according to the page feature.
Alternatively, the common perform script of the router according to the adaptation script acquisition different model, Including:
Corresponding functional interface is packaged into according to the template page feature described in every kind of function, various differences are obtained The adaptation template of the router of model, the template page feature of the router identical function of difference adaptation template is taken out As and be packaged into unified functional interface.
Alternatively, storage medium is also configured to storage for performing the program code of following steps:Will be described The identification information of adaptation template router corresponding with the adaptation template is associated.
Alternatively, storage medium is also configured to storage for performing the program code of following steps:From terminal In the adaptation template that equipment is locally stored according to the identification information obtain described in router to be adapted to adaptation mould Plate;
Or from cloud server storage adaptation template according to the identification information obtain described in road to be adapted to By the adaptation template of device;
Or according to whether there is in the adaptation template that the identification information-enquiry terminal device is locally stored Adaptation template corresponding to identification information, if not existing, according to institute from the adaptation template of cloud server storage The adaptation template that identification information obtains the router to be adapted to is stated, if being locally stored from terminal device in the presence of if Adaptation template according to the identification information obtain described in router to be adapted to adaptation template.
Alternatively, storage medium is also configured to storage for performing the program code of following steps:To generation The adaptation template of router be encrypted, the adaptation template of the router encrypted.
Alternatively, in the present embodiment, above-mentioned storage medium can be included but is not limited to:USB flash disk, read-only deposit Reservoir (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
Embodiment 4
Embodiments of the invention also provide a kind of terminal, and the terminal can be terminal Any one computer terminal in group.Alternatively, in the present embodiment, above computer terminal Could alternatively be the terminal devices such as mobile terminal.
Alternatively, in the present embodiment, above computer terminal may be located at multiple networks of computer network At least one of equipment network equipment.
Alternatively, Fig. 8 is the structured flowchart of terminal according to embodiments of the present invention.As shown in figure 8, Terminal A can include:One or more (one is only shown in figure) processors 101, storage Device 103 and transmitting device 105.
Wherein, memory 103 can be used to store software program and module, such as short in the embodiment of the present invention Corresponding programmed instruction/the module of method and apparatus of text classification, processor 101 is by running storage in storage Software program and module in device 103, so as to perform various function application and data processing, that is, realize Above-mentioned short text classification.Memory 103 may include high speed random access memory, can also include non-volatile Memory, such as one or more magnetic storage device, flash memory or other non-volatile solid state memories. In some instances, memory 103 can further include the memory remotely located relative to processor 101, These remote memories can be by network connection to terminal A.The example of above-mentioned network include but not It is limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 105 is used to that data to be received or sent via a network.Above-mentioned network tool Body example may include cable network and wireless network.In an example, transmitting device 105 includes a net Network adapter, it can be connected so that can be with internet or local by netting twine and other network equipments with router Net is communicated.In an example, transmitting device 105 is radio-frequency module, and it is used for wirelessly Communicated with internet.
Wherein, specifically, memory 103 be used to storing the information of deliberate action condition and default access user, And application program.
Processor 101 can call the information and application program of the storage of memory 103 by transmitting device, with Perform following step:
Optionally, above-mentioned processor 101 can also carry out the program code of following steps:
Obtain the identification information of router to be adapted to;The identification information includes type information;
Generate the adaptation template of router;
Adaptation template corresponding to the identification information is obtained according to the identification information;
Adaptation router is treated according to the adaptation template to be adapted to;
The adaptation template of the generation router includes:
Obtain the adaptation script of the router of multiple different models;
According to the common perform script of the router for being adapted to script acquisition different model;
The common adaptation template of router according to the common perform script generation different model.
Alternatively, the specific example in the present embodiment may be referred to above-described embodiment 1 to being retouched in embodiment 3 The example stated, the present embodiment will not be repeated here.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
If integrated unit in above-described embodiment is to realize in the form of SFU software functional unit and as independent Production marketing or when using, can store in the storage medium that above computer can read.Based on such Understand, part or the technology that technical scheme substantially contributes to prior art in other words The all or part of scheme can be embodied in the form of software product, and computer software product storage exists In storage medium, including some instructions are used to so that one or more computer equipment (can for personal computer, Server or the network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, certain embodiment In do not have describe in detail part, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, can pass through Other modes are realized.Wherein, device embodiment described above be only it is schematical, such as it is described The division of unit, only a kind of division of logic function, can there is other dividing mode when actually realizing, Such as multiple units or component can combine or be desirably integrated into another system, or some features can be neglected Slightly, or do not perform.It is another, shown or discussed coupling or direct-coupling or communication link each other Connecing can be that the INDIRECT COUPLING or communication connection of unit or module can be electrical or it by some interfaces Its form.
It is described as separating component illustrate unit can be or may not be it is physically separate, as The part that unit shows can be or may not be physical location, you can with positioned at a place, or Can also be distributed on multiple NEs.Can select according to the actual needs therein some or all of Unit realizes the purpose of this embodiment scheme.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, Can also be that unit is individually physically present, it is also possible to which two or more units are integrated in a unit In.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ SFU software functional unit Form is realized.
The above is only the preferred embodiment of the present invention, it is noted that common for the art For technical staff, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, These improvements and modifications also should be regarded as protection scope of the present invention.
The above is the preferred embodiment of the present invention, it is noted that for the common skill of the art For art personnel, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, this A little improvements and modifications are also considered as protection scope of the present invention.

Claims (12)

1. a kind of router adaptation method, it is characterised in that including:
Obtain the identification information of router to be adapted to;The identification information includes type information;
Generate the adaptation template of router;
Adaptation template corresponding to the identification information is obtained according to the identification information;
Adaptation router is treated according to the adaptation template to be adapted to;
The adaptation template of the generation router includes:
Obtain the adaptation script of the router of multiple different models;
According to the common perform script of the router for being adapted to script acquisition different model;
The common adaptation template of router according to the common perform script generation different model.
2. router adaptation method according to claim 1, it is characterised in that described according to described common With perform script generation different model the common adaptation template of router after, also include:
The identification information of adaptation template router corresponding with the adaptation template is associated.
3. router adaptation method according to claim 1, it is characterised in that described according to described suitable The common perform script of router with script acquisition different model, including:
Institute's functional page of the router of every kind of model is analyzed respectively, obtains the page elements of each page;
Common page feature is extracted from the page elements of the different model for obtaining;
Common template page feature is generated according to the page feature.
4. router adaptation method according to claim 1, it is characterised in that described according to described suitable The common perform script of router with script acquisition different model, including:
Corresponding functional interface is packaged into according to the template page feature described in every kind of function, various differences are obtained The adaptation template of the router of model, the template page feature of the router identical function of difference adaptation template is taken out As and be packaged into unified functional interface.
5. router adaptation method according to claim 1, it is characterised in that described according to the mark Adaptation template corresponding to the knowledge acquisition of information identification information, including:
Adaptation route is treated in the adaptation template being locally stored from terminal device according to the identification information is obtained The adaptation template of device;
Or from cloud server storage adaptation template according to the identification information obtain described in road to be adapted to By the adaptation template of device;
Or according to whether there is in the adaptation template that the identification information-enquiry terminal device is locally stored Adaptation template corresponding to identification information, if not existing, according to institute from the adaptation template of cloud server storage The adaptation template that identification information obtains the router to be adapted to is stated, if being locally stored from terminal device in the presence of if Adaptation template according to the identification information obtain described in router to be adapted to adaptation template.
6. router adaptation method according to claim 1, it is characterised in that in generation router After adaptation template, also include:The adaptation template of the router to generating is encrypted, the road encrypted By the adaptation template of device.
7. a kind of router adaption system, it is characterised in that including:
Identification information acquisition module, the identification information for obtaining router to be adapted to;The identification information bag Include type information;
Adaptation template generation module, the adaptation template for generating router;
The adaptation template generation module includes:
Many script acquiring units, obtain the adaptation script of the router of multiple different models;
Common script acquiring unit, the router for obtaining different model according to the adaptation script is common Perform script;
Adaptation template generation unit, the router for generating different model according to the common perform script Common adaptation template;
Adaptation template acquisition module, for obtaining adaptation mould corresponding to the identification information according to the identification information Plate;
Adaptation module, is adapted to for treating adaptation router according to the adaptation template.
8. router adaption system according to claim 7, it is characterised in that also including relating module, For the identification information of adaptation template router corresponding with the adaptation template to be associated.
9. router adaption system according to claim 7, it is characterised in that the common script is obtained Taking unit includes:
Page elements acquisition subelement, institute's functional page of the router for analyzing every kind of model respectively, Obtain the page elements of each page;
Page feature extraction subelement, for extracting common page from the page elements of the different model for obtaining Region feature;
Template page feature generates subelement, special for generating common template page according to the page feature Levy.
10. router adaption system according to claim 7, it is characterised in that the adaptation template Generation unit is further used for:
Corresponding functional interface is packaged into according to the template page feature described in every kind of function, various differences are obtained The adaptation template of the router of model, the template page feature of the router identical function of difference adaptation template is taken out As and be packaged into unified functional interface.
11. router adaption systems according to claim 7, it is characterised in that the adaptation template Acquisition module is further used for:
Adaptation route is treated in the adaptation template being locally stored from terminal device according to the identification information is obtained The adaptation template of device;
Or from cloud server storage adaptation template according to the identification information obtain described in road to be adapted to By the adaptation template of device;
Or according to whether there is in the adaptation template that the identification information-enquiry terminal device is locally stored Adaptation template corresponding to identification information, if not existing, according to institute from the adaptation template of cloud server storage The adaptation template that identification information obtains the router to be adapted to is stated, if being locally stored from terminal device in the presence of if Adaptation template according to the identification information obtain described in router to be adapted to adaptation template.
12. router adaption systems according to claim 7, it is characterised in that also including encryption mould Block, the adaptation template for the router to generating is encrypted, the adaptation template of the router encrypted.
CN201610545957.3A 2016-07-12 2016-07-12 Router adaptation method and system Active CN106713004B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610545957.3A CN106713004B (en) 2016-07-12 2016-07-12 Router adaptation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610545957.3A CN106713004B (en) 2016-07-12 2016-07-12 Router adaptation method and system

Publications (2)

Publication Number Publication Date
CN106713004A true CN106713004A (en) 2017-05-24
CN106713004B CN106713004B (en) 2022-02-18

Family

ID=58940327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610545957.3A Active CN106713004B (en) 2016-07-12 2016-07-12 Router adaptation method and system

Country Status (1)

Country Link
CN (1) CN106713004B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864152A (en) * 2017-12-08 2018-03-30 武汉虹信技术服务有限责任公司 A kind of method that wisdom building multi-protocols adaptation engineering template is rapidly completed using VBA
CN109396117A (en) * 2018-09-18 2019-03-01 镇江长悦光电科技有限公司 A kind of control method, cleaning equipment and the storage medium of laser cleaning equipment
CN110392375A (en) * 2018-04-18 2019-10-29 腾讯科技(深圳)有限公司 WiFi network channel amending method, terminal, server and storage medium
CN113434215A (en) * 2021-06-28 2021-09-24 青岛海尔科技有限公司 Information loading method and device, storage medium and processor
CN114827001A (en) * 2022-03-29 2022-07-29 惠州高盛达科技有限公司 Compatible method and system for router management and application
CN114866469A (en) * 2022-07-11 2022-08-05 佛山赛思禅科技有限公司 Method and system for realizing multi-identification router architecture supporting parallel forwarding
CN115766429A (en) * 2022-11-04 2023-03-07 珠海格力电器股份有限公司 Matching method and device of system and edge computing gateway

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2547448A1 (en) * 2006-05-23 2007-11-23 Net-Conex Developments, Inc. System and method for configuring a router
US20090310512A1 (en) * 2008-06-16 2009-12-17 Subhabrata Sen Method and apparatus for creating router configuration
US20110066753A1 (en) * 2009-06-11 2011-03-17 Brocade Communications Systems, Inc. Virtual router redundancy for server virtualization
US20120102226A1 (en) * 2010-10-20 2012-04-26 Microsoft Corporation Application specific web request routing
US20120207169A1 (en) * 2011-02-15 2012-08-16 Extreme Networks, Inc. Method of providing virtual router functionality
CN102904970A (en) * 2012-11-21 2013-01-30 成都市迅电网络技术有限公司 Method and system for automatically controlling router
CN103532751A (en) * 2013-10-09 2014-01-22 北京奇虎科技有限公司 Management method and device for network access equipment
CN104301139A (en) * 2014-09-28 2015-01-21 北京奇虎科技有限公司 Router adaptation method and device and terminal device
CN104781774A (en) * 2012-09-12 2015-07-15 格林伊登美国控股有限责任公司 System and method for dynamic configuration of contact centers via templates
CN105357289A (en) * 2015-10-23 2016-02-24 上海斐讯数据通信技术有限公司 Configuration method of router and generation method and system of software mirror image document
CN105515848A (en) * 2015-12-01 2016-04-20 上海斐讯数据通信技术有限公司 Router configuration method and router configuration device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2547448A1 (en) * 2006-05-23 2007-11-23 Net-Conex Developments, Inc. System and method for configuring a router
US20090310512A1 (en) * 2008-06-16 2009-12-17 Subhabrata Sen Method and apparatus for creating router configuration
US20110066753A1 (en) * 2009-06-11 2011-03-17 Brocade Communications Systems, Inc. Virtual router redundancy for server virtualization
US20120102226A1 (en) * 2010-10-20 2012-04-26 Microsoft Corporation Application specific web request routing
US20120207169A1 (en) * 2011-02-15 2012-08-16 Extreme Networks, Inc. Method of providing virtual router functionality
CN104781774A (en) * 2012-09-12 2015-07-15 格林伊登美国控股有限责任公司 System and method for dynamic configuration of contact centers via templates
CN102904970A (en) * 2012-11-21 2013-01-30 成都市迅电网络技术有限公司 Method and system for automatically controlling router
CN103532751A (en) * 2013-10-09 2014-01-22 北京奇虎科技有限公司 Management method and device for network access equipment
CN104301139A (en) * 2014-09-28 2015-01-21 北京奇虎科技有限公司 Router adaptation method and device and terminal device
CN105357289A (en) * 2015-10-23 2016-02-24 上海斐讯数据通信技术有限公司 Configuration method of router and generation method and system of software mirror image document
CN105515848A (en) * 2015-12-01 2016-04-20 上海斐讯数据通信技术有限公司 Router configuration method and router configuration device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864152A (en) * 2017-12-08 2018-03-30 武汉虹信技术服务有限责任公司 A kind of method that wisdom building multi-protocols adaptation engineering template is rapidly completed using VBA
CN107864152B (en) * 2017-12-08 2020-04-28 武汉虹信技术服务有限责任公司 Method for rapidly completing intelligent building multi-protocol adaptation engineering template by using VBA
CN110392375A (en) * 2018-04-18 2019-10-29 腾讯科技(深圳)有限公司 WiFi network channel amending method, terminal, server and storage medium
CN110392375B (en) * 2018-04-18 2022-02-22 腾讯科技(深圳)有限公司 WiFi network channel modification method, terminal, server and storage medium
CN109396117A (en) * 2018-09-18 2019-03-01 镇江长悦光电科技有限公司 A kind of control method, cleaning equipment and the storage medium of laser cleaning equipment
CN113434215A (en) * 2021-06-28 2021-09-24 青岛海尔科技有限公司 Information loading method and device, storage medium and processor
CN113434215B (en) * 2021-06-28 2023-06-16 青岛海尔科技有限公司 Information loading method and device, storage medium and processor
CN114827001A (en) * 2022-03-29 2022-07-29 惠州高盛达科技有限公司 Compatible method and system for router management and application
CN114866469A (en) * 2022-07-11 2022-08-05 佛山赛思禅科技有限公司 Method and system for realizing multi-identification router architecture supporting parallel forwarding
CN115766429A (en) * 2022-11-04 2023-03-07 珠海格力电器股份有限公司 Matching method and device of system and edge computing gateway

Also Published As

Publication number Publication date
CN106713004B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN106713004A (en) Router adaptation method and system
US10374952B2 (en) Method for increasing layer-3 longest prefix match scale
CN102752137B (en) The apparatus and method of virtual machine network parameter are initiatively set
CN102724079B (en) Method and system for auxiliary configuration of Ethernet equipment
CN103068009B (en) A kind of method of Quick network finding, system and mobile terminal
CN107580083A (en) A kind of method and system of container IP address distribution
CN104301139B (en) Router adaptation method, device and terminal device
CN107592367A (en) Resource share method, device and the computer-readable recording medium of home appliance
CN104852990A (en) Information processing method and intelligent household control system
CN105893097A (en) Method and device for processing option information of BIOS (basic input output system)
CN106972974A (en) The Web network management systems and its terminal authentication method of a kind of electric power LTE wireless terminals
CN108255936A (en) A kind of edit methods of webpage, system and editing machine
CN108021400A (en) Data processing method and device, computer-readable storage medium and equipment
CN105049546B (en) A kind of Dynamic Host Configuration Protocol server is the method and device of client distribution IP address
CN104915252B (en) A kind of process port management means and method
CN108089910A (en) The method and apparatus for configuring virtual machine IP address
CN106878052A (en) A kind of customer shift method and device
CN107733785A (en) A kind of multiple terminals chat message synchronization removal method and device
CN108337243A (en) Message forwarding method, device and forwarding unit
CN106537962B (en) Wireless network configuration, access and access method, device and equipment
CN104780157B (en) Intelligent routing and the authentication management method based on Intelligent routing
CN101464892A (en) Login method and device for dynamic database
CN107623662A (en) The control method of access, device and system
CN106254575B (en) A kind of method and apparatus of determining user identifier
US20230037602A1 (en) Information processing method and apparatus, node device, server and storage medium

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