CN108322339A - A kind of method for configuring routers and system based on light wave - Google Patents

A kind of method for configuring routers and system based on light wave Download PDF

Info

Publication number
CN108322339A
CN108322339A CN201810071979.XA CN201810071979A CN108322339A CN 108322339 A CN108322339 A CN 108322339A CN 201810071979 A CN201810071979 A CN 201810071979A CN 108322339 A CN108322339 A CN 108322339A
Authority
CN
China
Prior art keywords
light wave
configuration
router
script
terminal
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.)
Pending
Application number
CN201810071979.XA
Other languages
Chinese (zh)
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.)
Shanghai Kangfei Information Technology Co Ltd
Original Assignee
Shanghai Kangfei Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Kangfei Information Technology Co Ltd filed Critical Shanghai Kangfei Information Technology Co Ltd
Priority to CN201810071979.XA priority Critical patent/CN108322339A/en
Publication of CN108322339A publication Critical patent/CN108322339A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles

Abstract

The present invention provides a kind of method for configuring routers and system based on light wave, method include:S100 first terminals obtain light wave configuration script;First terminal described in S200 runs the light wave configuration script, the lightwave signal of the corresponding light wave configuration script of transmitting to router;Router described in S300 receives the lightwave signal, and according to lightwave signal configuration-direct corresponding with the light wave configuration mapping relations table search stored in advance, corresponding configuration is carried out according to the configuration-direct.The present invention realizes the purpose that Remote configuration router quickly, is easily realized by light wave.

Description

A kind of method for configuring routers and system based on light wave
Technical field
The present invention relates to wireless communication technology field, espespecially a kind of method for configuring routers and system based on light wave.
Background technology
The case where router (Router) is the equipment for connecting each LAN, wide area network in internet, it can be according to channel Routing is automatically selected and set, with optimal path, signal is sent by tandem.
Router has been widely used for all trades and professions at present, and every household has to WIFI and wireless router at present Demand, router has become a requirement, and the function of present router is more and more extensive, before putting into formal use It is also required to do some basic configurations, such as the setting of password, the setting etc. of network access, and some old men of family etc. are not It smoothly can correctly use very much.
Invention content
The object of the present invention is to provide a kind of method for configuring routers and system based on light wave is realized fast by light wave Speed, the purpose for easily realizing Remote configuration router.
Technical solution provided by the invention is as follows:
The present invention provides a kind of method for configuring routers based on light wave, including step:S100 first terminals obtain light wave Configuration script;First terminal described in S200 runs the light wave configuration script, the light wave of the corresponding light wave configuration script of transmitting Signal is to router;Router described in S300 receives the lightwave signal, according to the lightwave signal and the light wave that stores in advance The corresponding configuration-direct of mapping relations table search is configured, corresponding configuration is carried out according to the configuration-direct.
Further, include step before the S100:S010 scripts generate equipment and obtain configuration requirement, are matched according to described It sets requirement and obtains corresponding configuration-direct;Script described in S020 generates what equipment stored in advance according to the configuration-direct and Qi Nei The light wave configures mapping table, generates the light wave configuration script;The light wave configuration mapping table includes that configuration refers to Enable the correspondence with light wave configuration script;Script described in S030 generates equipment and sends the light wave configuration script to described first Terminal;Wherein, it includes second terminal and/or server that the script, which generates equipment,;The second terminal corresponds to for configuration personnel Terminal;The configuration requirement is the configuration requirement of the router user and/or the configuration personnel.
Further, the S200 includes step:First terminal described in S210 parses the light wave configuration script, obtains pair The light wave configuration code answered;First terminal described in S220 emits the corresponding lightwave signal of the light wave configuration code.
Further, the S300 includes step:Router described in S310 converts the lightwave signal as electric signal;S320 The router analyzes the electric signal, and light wave configuration code is obtained according to the electric signal;Router described in S330 is according to institute It states light wave configuration code and searches light wave configuration mapping table, obtain corresponding configuration-direct;The light wave configures mapping relations Table further includes the correspondence of the light wave configuration code and the configuration-direct;Router described in S340 refers to according to the configuration Order is configured accordingly.
Further, include step after the S100, before S200:First terminal described in S110 obtains current environment Luminance information, and with the distance between router information;Whether first terminal described in S120 judges the range information More than pre-determined distance value;If so, entering step S160;Otherwise, S130 is entered step;First terminal described in S130 judges described bright Spend whether information is more than or equal to predetermined luminance value;If so, entering step S140;Otherwise, S150 is entered step;First described in S140 Terminal tunes up the light wave brightness value of light wave transmitting, until being more than the predetermined luminance value;First terminal described in S150 keeps current The light wave brightness value of light wave transmitting is constant;First terminal described in S160 generates prompt message, prompts user close to the router, And return to step S110.
The configuration of routers system based on light wave that the present invention also provides a kind of, which is characterized in that including:First terminal and road By device;The first terminal includes:First acquisition module obtains light wave configuration script;Module is run, the light wave configuration is run Script;Light wave transmitting module, the lightwave signal of the corresponding light wave configuration script of transmitting to router;The router includes: First storage module, storage light wave configure mapping table;Light wave receiving module receives the lightwave signal;Control module, root The lightwave signal received according to the light wave receiving module configures mapping relations with the light wave that first storage module stores in advance The corresponding configuration-direct of table search carries out corresponding configuration according to the configuration-direct.
Further, further include:Script generates equipment;The script generates equipment:Second storage module stores institute State light wave configuration mapping table;Second acquisition module obtains configuration requirement, corresponding configuration is obtained according to the configuration requirement Instruction;Script generation module, the configuration-direct and the second storage module obtained according to second acquisition module store up in advance The light wave configuration mapping table deposited, generates the light wave configuration script;The light wave configuration mapping table includes institute State the correspondence of configuration-direct and the light wave configuration script;Sending module sends the light wave configuration script to described One terminal;Wherein, it includes second terminal and/or server that the script, which generates equipment,;The second terminal is configuration personnel couple The terminal answered;The configuration requirement is the configuration requirement of the router user and/or the configuration personnel.
Further, the operation module includes:Resolution unit parses the light wave configuration script, obtains corresponding light Wave configuration code;The light wave transmitting module emits the corresponding lightwave signal of the light wave configuration code.
Further, the control module includes:Converting unit converts the light wave that the light wave receiving module receives Signal is electric signal;Analytic unit analyzes the electric signal, and light wave configuration code is obtained according to the electric signal;Searching unit, Light wave is searched according to the light wave configuration code and configures mapping table, obtains corresponding configuration-direct;The light wave configuration is reflected Penetrate the correspondence that relation table further includes the light wave configuration code and the configuration-direct;Execution unit, according to the configuration Instruction is configured accordingly.
Further, the first terminal further includes:Third acquisition module obtains the luminance information of current environment, and The distance between router information;First judgment module, judges whether the range information is more than pre-determined distance value;Letter Generation module is ceased, when first judgment module judges that the range information is more than the pre-determined distance value, generates prompt letter Breath prompts user close to the router;The third acquisition module generates the prompt message in described information generation module Afterwards, continue to judge;Second judgment module, when first judgment module judges the range information less than or equal to described pre- If when distance value, judging whether the luminance information is more than or equal to predetermined luminance value;Adjustment module, when second judgment module When judging that the luminance information is more than or equal to predetermined luminance value, the light wave brightness value of light wave transmitting is tuned up, until more than described pre- If brightness value;The adjustment module is kept when second judgment module judges that the luminance information is less than predetermined luminance value The light wave brightness value of current light wave transmitting is constant.
A kind of method for configuring routers and system based on light wave provided through the invention, can bring following at least one Kind advantageous effect:
1) present invention obtains light wave configuration script, emits lightwave signal to control terminal according to light wave configuration script so that Router receives light-wave information to configure router, more facilitates, is facilitated much to router for router user Configure the configuration that router is rapidly completed in uncomprehending unprofessional user.
2) present invention generates equipment generation light wave configuration script by configuring personnel using script, and is uploaded to first eventually End can be remotely, quickly the configuration that router is completed in unprofessional user's cooperation, not need professional user and take a significant amount of time Guidance configuration operating process, that reduces professional user instructs time and the learning time of unprofessional user, substantially increases profession The usage experience of user and unprofessional user.
3) present invention detection luminance information and range information, by judging that luminance information and range information are grasped accordingly Make, the interference of external environment can be reduced convenient for router, convenient for router more accurately according to light-wave information to router It is configured accordingly.
Description of the drawings
Below by a manner of clearly understandable, preferred embodiment is described with reference to the drawings, to a kind of routing based on light wave Above-mentioned characteristic, technical characteristic, advantage and its realization method of device configuration method and system are further described.
Fig. 1 is a kind of flow chart of one embodiment of the method for configuring routers based on light wave of the present invention;
Fig. 2 is a kind of flow chart of another embodiment of the method for configuring routers based on light wave of the present invention;
Fig. 3 is a kind of structural schematic diagram of one embodiment of the configuration of routers system based on light wave of the present invention;
Fig. 4 is a kind of structural schematic diagram of another embodiment of the configuration of routers system based on light wave of the present invention.
Specific implementation mode
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, control is illustrated below The specific implementation mode of the present invention.It should be evident that drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically shown in each figure, they are not represented Its practical structures as product.In addition, so that simplified form is easy to understand, there is identical structure or function in some figures Component only symbolically depicts one of those, or has only marked one of those.Herein, "one" is not only indicated " only this ", can also indicate the situation of " more than one ".
A kind of one embodiment of the method for configuring routers based on light wave of the present invention, as shown in Figure 1, including:
S100 first terminals obtain light wave configuration script;
First terminal described in S200 runs the light wave configuration script, the light wave letter of the corresponding light wave configuration script of transmitting Number to router;
Router described in S300 receives the lightwave signal, is reflected with the light wave configuration stored in advance according to the lightwave signal The corresponding configuration-direct of relationship table search is penetrated, corresponding configuration is carried out according to the configuration-direct.
Specifically, in the present embodiment, first terminal can be the terminal of any router user, such as router owner Terminal, the terminal of the kith and kin of router owner, which can also be first terminal, to be server or configures the terminal that personnel specify, very It extremely can be the terminal that router owner authorizes configuration permission.Router user obtains light wave by the first terminal of itself and matches Script is set, the light wave configuration script backstage of acquisition is controlled APP by router and run by first terminal, router control APP makes the flash lamps such as the flashlight carried on first terminal carry out ON/OFF flash transmission lightwave signal, and first terminal is close Router so that the lightwave signal of router short distance reception first terminal transmitting is matched since router stores light wave in advance Mapping table is set, and light wave configuration mapping table has the correspondence between lightwave signal and configuration-direct, therefore, road The light wave configuration mapping table stored according to lightwave signal and in advance by device finds corresponding configuration-direct, and router is with regard to root It is investigated that the configuration-direct found carries out corresponding configuration operation to router.The present invention facilitate much to configuration of routers not The unprofessional user of solution so that the configuration of router is rapidly completed in unprofessional user, is remotely, quickly non-by professional user Professional user, which cooperates, completes the configuration of router, does not need professional user and takes a significant amount of time guidance configuration operating process, reduces Professional user's instructs time and the learning time of unprofessional user, substantially increases the use of professional user and unprofessional user Experience.
A kind of another embodiment of the method for configuring routers based on light wave of the present invention, as shown in Fig. 2, including:
S010 scripts generate equipment and obtain configuration requirement, and corresponding configuration-direct is obtained according to the configuration requirement;
Script described in S020 generates equipment and configures mapping according to the light wave that the configuration-direct and Qi Nei store in advance Relation table generates the light wave configuration script;The light wave configuration mapping table includes configuration-direct and light wave configuration script Correspondence;
Script described in S030 generates equipment and sends the light wave configuration script to the first terminal;
Specifically, in the present embodiment, it includes second terminal and/or server that script, which generates equipment,;Second terminal is configuration The corresponding terminal of personnel;Configuration requirement is router user and/or configures the configuration requirement of personnel.Configuration personnel can be road Can also be the kith and kin for understanding configuration of routers of router user by the contact staff of the affiliated company of device.
When script generate equipment be second terminal when, can directly be inputted in second terminal by configuration personnel oneself or The configuration requirement of router user, the mode of input can be configuration personnel manually as needed in the configuration of routers page A pair of of a various functions carry out that setting is selected to obtain on (the router WEB configuration pages or router control APP configure the page) Configuration requirement can also be that configuration personnel directly input configuration requirement in input frame, and second terminal can be with according to configuration requirement Corresponding configuration-direct is obtained, then second terminal is carried out according to the light wave configuration mapping table and configuration-direct that store in advance Corresponding light wave configuration script is generated, second terminal sends the light wave configuration script generated to first terminal.
When script generate equipment be server when, can by configure personnel on server (PC as server) or The configuration requirement of oneself or router user is inputted on the input unit being connect with server, server is according to configuration requirement Can obtain corresponding configuration-direct, then server according to store in advance light wave configuration mapping table and configuration-direct into Row generates corresponding light wave configuration script, and server sends the light wave configuration script generated to first terminal.
When it is second terminal and server that script, which generates equipment simultaneously, light wave configuration script is sent extremely referring to aforesaid way First terminal, the light wave configuration that first terminal receives the light wave configuration script of second terminal transmission at the same time and server is sent When script, any light wave configuration script is selected to carry out according to the demand of the corresponding router user of first terminal corresponding Configuration.
S100 first terminals obtain light wave configuration script;
First terminal described in S110 obtains the luminance information of current environment, and with the distance between router letter Breath;
First terminal described in S120 judges whether the range information is more than pre-determined distance value;If so, entering step S160; Otherwise, S130 is entered step;
First terminal described in S130 judges whether the luminance information is more than or equal to predetermined luminance value;If so, entering step S140;Otherwise, S150 is entered step;
First terminal described in S140 tunes up the light wave brightness value of light wave transmitting, until being more than the predetermined luminance value;
First terminal described in S150 keeps the light wave brightness value of current light wave transmitting constant;
First terminal described in S160 generates prompt message, prompts user close to the router, and return to step S110;
Specifically, in the present embodiment, after first terminal gets light wave configuration script, the bright of the current environment of surrounding is detected Degree obtains luminance information, can detect to obtain luminance information by optical sensor device, and detect between router and first terminal Range information, range information can by the signal strength of the information exchange between router and first terminal calculate obtain, Can be that other modes obtain, first terminal detects after obtaining luminance information and range information, and first terminal first determines whether distance Whether information is more than pre-determined distance value, judges whether range information is more than the purpose of pre-determined distance value, not just to avoid The light wave that first terminal causes router that cannot effectively receive first terminal transmitting apart from router more than pre-determined distance value is believed Number, also for avoiding other users from disguising oneself as router user, router is illegally configured, the safety of router is promoted Purpose.In addition, in order to avoid the illegal one's share of expenses for a joint undertaking in part steals light wave configuration script, the terminal operating light wave configuration script of itself is used And emit the lightwave signal for corresponding to light wave configuration script, it needs script to generate equipment and the light wave configuration script of transmission is added Close, first terminal receives encrypted light wave configuration script and is decrypted to obtain light wave configuration script, further promotes routing The safety that device is configured by light wave.
When first terminal judges that the distance between itself and router information are more than pre-determined distance value, prompt letter is generated Breath prompts user close to the router, until the distance between first terminal and router are less than or equal to pre-determined distance value Only.
When first terminal judge the distance between itself and router information be less than or equal to pre-determined distance value when, further into Row judges whether luminance information is more than predetermined luminance value:
If it is greater than either illustrating higher (the daytime strong or night lamp of light of current environment brightness equal to predetermined luminance value In the case that light is opened), since brightness value is excessive, the brightness value of the lightwave signal of first terminal generation is caused to be less than predetermined luminance When value, router can not effectively identify the lightwave signal of first terminal transmitting, and first terminal just controls the flashlight of itself at this time The light-emitting components such as equal flash lamps tune up current light wave transmitting brightness, until the brightness value of the lightwave signal of first terminal transmitting is big Until predetermined luminance value, the light-emitting component of first terminal is tuned up in brightness value to more than the laggard line flicker of predetermined luminance value emits Light wave, the lightwave signal that first terminal emits when being identified convenient for router.
If it is less than equal to predetermined luminance value, illustrate current environment brightness it is relatively low (daytime the weak or night light of light not In the case of opening), first terminal just controls the light-emitting components such as the flash lamps such as the flashlight of itself and opens or close at this time, with Current light wave transmitting brightness carries out flash transmission and emits light wave, the light wave letter that first terminal emits when being identified convenient for router Number.
It effectively identifies that lightwave signal is first terminal transmitting for the ease of router, needs the head in light wave configuration script Portion is programmed into identification code, i.e., after first terminal gets light wave configuration script, is identified first according to the head of light wave configuration script Code transmitting lightwave signal, the head identification code representative are first terminal transmitting lightwave signals.In order to make it easy to understand, it is illustrative, Assuming that it is ADSL that first terminal, which needs to configure network access, it is assumed that 1 represents bright, and 0 represents and goes out, it is bright once or to go out be 1 Second time, it is assumed that the corresponding configuration-direct of network access is bright three seconds → go out three seconds, the corresponding configuration-directs of ADSL be it is bright once → go out, in order to avoid obtaining other interference light waves, head identification code is set as 101010 herein, then the light wave configuration generated The code of script is made of head identification code+configuration-direct, i.e., code is " 101010 "+" 111000 "+" 10 ", i.e. first terminal " bright → to go out → bright → → bright → go out of going out " first, explanation are that first terminal is emitting lightwave signal, and it is " bright → bright → bright to continue transmitting → going out → goes out → goes out " illustrate the network access that router needs to configure, continue to emit the online side that " bright → to go out " illustrates router Formula is ADSL modes.
First terminal described in S210 parses the light wave configuration script, obtains corresponding light wave configuration code;
First terminal described in S220 emits the corresponding lightwave signal of the light wave configuration code according to current light wave brightness value;
Specifically, in the present embodiment, configuration information includes that (PPOE, ADSL dialing obtain, are quiet network access information automatically The network accesses such as state IP), the radio configuration information password of wireless WIFI network (SSID name of wireless WIFI network), transmitting In power information, channel selection information any one or it is a variety of.After first terminal gets light wave configuration script, to light wave Configuration script is parsed, parsing obtain corresponding configuration-direct therein, the corresponding configuration-direct be with letter, number, Meet etc. what mode formed, different corresponding configuration-directs correspond to different route configuration informations, also correspond to different Lightwave signal, first terminal parse light wave configuration script, obtain corresponding configuration-direct, emit institute according to current light wave brightness value State the corresponding lightwave signal of light wave configuration code so that router direct basis light wave carries out the configuration of control router, is not required to It wants to network between first terminal and router, it is only necessary to the light wave reception device unlatching of router is simultaneously working properly, and first The light wave emitter unlatching of terminal is simultaneously working properly, accordingly even when being router just manufacture or factory reset Afterwards, it does not need consumed flow when router user is configured by terminal when the initial online of progress configures to configure, less yet It needs router user to log in the configuration of routers page to carry out being manually entered configuration, does not need router user and understand routing Device Configuration knowledge energy is quick, convenient, is simply configured to router, promotes user experience.
Router described in S310 converts the lightwave signal as electric signal;
Router described in S320 analyzes the electric signal, and light wave configuration code is obtained according to the electric signal;
Router described in S330 searches light wave according to the light wave configuration code and configures mapping table, obtains corresponding match Set instruction;The light wave configuration mapping table includes the correspondence of the light wave configuration code and the configuration-direct;
Router described in S340 is configured accordingly according to the configuration-direct;
Specifically, in the present embodiment, after router receives the lightwave signal of first terminal transmitting, the light wave that will receive Signal is converted, and router uses Lightwave receiver and photoelectric switching circuit, and first terminal hair is received by Lightwave receiver The lightwave signal penetrated, when lightwave signal is irradiated on the PN junction of the photodiode in photoelectric switching circuit, electronics in semiconductor It is excited, generates electron hole pair, generate potential under electric field action, convert optical signals into electric signal, by electric signal High level, low level obtain corresponding light wave configuration code, and searching light wave according to light wave configuration code configures mapping table, obtains To corresponding configuration-direct;Light wave configuration mapping table includes the correspondence of light wave configuration code and configuration-direct, routing Device is configured accordingly according to configuration-direct.Currently the function setting of router is all needed to configure into the software page, It is cumbersome, the used time is longer and more demanding to the technology of router user, the long-range of configuration personnel may be implemented in the present invention Configuration, such as by configuring personnel in the password of configuration good router, network access etc. is all to be configured, and then generate one section The light wave configuration script for controlling the flash lamps such as flashlight is sent to router user, and router user is by running light wave Configuration script controls the light on and off of the flash lamps such as flashlight, and router itself is equipped with light wave reception device, router passes through reception Lightwave signal be converted into electric signal, mapping table configured by light wave find the realization of corresponding configuration-direct and automatically configure. Assuming that it is automatic acquisition that user, which will configure network access, SSID is configured to abcdef, and password is set as 123456.General router The information difference that network access is provided according to Internet service provider is divided into three kinds:" ADSL dialing ", " automatic to obtain ", " static IP ", It is 10,11,01 that mapping table correspondence markings, which can be configured, in light wave, and letter, character and number have reference numeral in library, Realize that process description is as follows:
A. configuration personnel set relevant information on webpage using script generation equipment according to configuration requirement, click a key It generates, script generates equipment and produces corresponding light wave configuration script;
B. script generates on equipment transmission light wave configuration script to the first terminal of router user, starts router The switch of light wave reception device, the flash lamps such as flashlight are directed at the light wave reception device of router, and foot is configured by running light wave The flash lamps such as this control flashlight carry out flash light emission lightwave signal, and router is in the state for receiving lightwave signal at this time;
C. after router receives lightwave signal, lightwave signal is converted to electric signal, mapping table is configured using light wave Corresponding configuration-direct is found, automatic running configures router.
The present invention is more convenient for router user, merely clicks on APP operation control terminal transmittings lightwave signal i.e. Can, it facilitates much to the uncomprehending unprofessional user of configuration of routers so that matching for router is rapidly completed in unprofessional user It sets, configuration long-range by professional user, that router is quickly completed for unprofessional user's cooperation does not need professional user's cost Plenty of time guidance configuration operating process, that reduces professional user instructs time and the learning time of unprofessional user, carries significantly The high usage experience of professional user and unprofessional user.
A kind of router 200 based on light wave of the present invention configures one embodiment of system, as shown in figure 3, including:First Terminal 100 and router 200;
The first terminal 100 includes:
First acquisition module 110 obtains light wave configuration script;
Module 120 is run, the light wave configuration script is run;
Light wave transmitting module, the lightwave signal of the corresponding light wave configuration script of transmitting to router 200;
The router 200 includes:
First storage module 210, storage light wave configure mapping table;
Light wave receiving module 220 receives the lightwave signal;
Control module 230, the lightwave signal and first storage module received according to the light wave receiving module 220 The 210 corresponding configuration-directs of light wave configuration mapping relations table search stored in advance, carry out corresponding according to the configuration-direct Configuration.
Specifically, in the present embodiment, the first acquisition module 110 that router user passes through the first terminal 100 of itself Light wave configuration script is obtained, the light wave configuration script backstage of acquisition is controlled APP by router 200 and carried out by operation module 120 It runs, the flash lamps such as flashlight carried on light wave transmitting module, that is, first terminal 100 carry out ON/OFF flash transmission light wave letter Number, by first terminal 100 close to router 200 so that 220 short distance reception first of light wave receiving module of router 200 is eventually The lightwave signal of 100 transmitting of end configures mapping relations since the first storage module 210 of router 200 stores light wave in advance Table, and light wave configuration mapping table has the correspondence between lightwave signal and configuration-direct, therefore, router 200 The light wave configuration mapping table that control module 230 is stored according to lightwave signal and in advance finds corresponding configuration-direct, road By device 200 with regard to being carried out configuring operation accordingly to router 200 according to the configuration-direct found.The present invention facilitates many right Router 200 configures uncomprehending unprofessional user so that the configuration of router 200 is rapidly completed in unprofessional user, by special Industry user is long-range, the configuration of router 200 is quickly completed for unprofessional user's cooperation, when not needing professional user and spending a large amount of Between guidance configuration operating process, that reduces professional user instructs time and the learning time of unprofessional user, substantially increase specially Industry user, unprofessional user usage experience.
A kind of router 200 based on light wave of the present invention configures another embodiment of system, and the present embodiment is upper one real The preferred embodiment of example is applied, as shown in figure 4, other parts are identical as a upper embodiment.
In addition, further including:Script generates equipment 300;The script generates equipment 300:
Second storage module 310 stores the light wave configuration mapping table;
Second acquisition module 320 obtains configuration requirement, corresponding configuration-direct is obtained according to the configuration requirement;
Script generation module 330, the configuration-direct obtained according to second acquisition module 320 and the second storage mould The light wave that block 310 stores in advance configures mapping table, generates the light wave configuration script;The light wave configuration mapping is closed It is the correspondence that table includes the configuration-direct and the light wave configuration script;
Sending module 340 sends the light wave configuration script to the first terminal 100;
Wherein, it includes second terminal and/or server that the script, which generates equipment 300,;The second terminal is configuration people The corresponding terminal of member;The configuration requirement is the configuration requirement of the router user and/or the configuration personnel.
In addition, further including:The operation module 120 includes:
Resolution unit 121 parses the light wave configuration script, obtains corresponding light wave configuration code;
The light wave transmitting module 130 emits the corresponding lightwave signal of the light wave configuration code;
Wherein, the light wave configuration code includes route configuration information.
The control module 230 includes:
Converting unit 231 converts the lightwave signal of the reception of light wave receiving module 220 as electric signal;
Analytic unit 232 analyzes the electric signal, and light wave configuration code is obtained according to the electric signal;
Searching unit 233 searches light wave according to the light wave configuration code and configures mapping table, obtains corresponding configuration Instruction;The light wave configuration mapping table further includes the correspondence of the light wave configuration code and the configuration-direct;
Execution unit 234 is configured accordingly according to the configuration-direct.
The first terminal 100 further includes:
Third acquisition module 140, obtains the luminance information of current environment, and the distance between with the router 200 Information;
First judgment module 150, judges whether the range information is more than pre-determined distance value;
Information generating module 170, when first judgment module 150 judges that the range information is more than the pre-determined distance When value, prompt message is generated, prompts user close to the router 200;
The third acquisition module 140 continues after described information generation module 170 generates the prompt message Judge;
Second judgment module 160, when first judgment module 150 judges that the range information is less than or equal to described preset When distance value, judge whether the luminance information is more than or equal to predetermined luminance value;
Adjustment module 180, when second judgment module 160 judges that the luminance information is more than or equal to predetermined luminance value When, light wave brightness value when light wave transmitting is tuned up, until being more than the predetermined luminance value;
The adjustment module 180, when second judgment module 160 judges that the luminance information is less than predetermined luminance value When, keep the light wave brightness value of current light wave transmitting constant.
Specifically, being the corresponding system embodiment of above method embodiment in the present embodiment, specific effect is referring to above-mentioned right The embodiment of the method answered, this is no longer going to repeat them.
It should be noted that above-described embodiment can be freely combined as needed.The above is only the preferred of the present invention Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention Under, several improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. a kind of method for configuring routers based on light wave, which is characterized in that including step:
S100 first terminals obtain light wave configuration script;
First terminal described in S200 runs the light wave configuration script, and the lightwave signal of the corresponding light wave configuration script of transmitting is extremely Router;
Router described in S300 receives the lightwave signal, is closed with the light wave configuration mapping stored in advance according to the lightwave signal It is the corresponding configuration-direct of table search, corresponding configuration is carried out according to the configuration-direct.
2. the method for configuring routers according to claim 1 based on light wave, which is characterized in that include before the S100 Step:
S010 scripts generate equipment and obtain configuration requirement, and corresponding configuration-direct is obtained according to the configuration requirement;
Script described in S020 generates equipment and configures mapping relations according to the light wave that the configuration-direct and Qi Nei store in advance Table generates the light wave configuration script;The light wave configuration mapping table includes pair of configuration-direct and light wave configuration script It should be related to;
Script described in S030 generates equipment and sends the light wave configuration script to the first terminal;
Wherein, it includes second terminal and/or server that the script, which generates equipment,;The second terminal is that configuration personnel are corresponding Terminal;The configuration requirement is the configuration requirement of the router user and/or the configuration personnel.
3. the method for configuring routers according to claim 1 based on light wave, which is characterized in that the S200 includes step Suddenly:
First terminal described in S210 parses the light wave configuration script, obtains corresponding light wave configuration code;
First terminal described in S220 emits the corresponding lightwave signal of the light wave configuration code.
4. the method for configuring routers according to claim 1 based on light wave, which is characterized in that the S300 includes step Suddenly:
Router described in S310 converts the lightwave signal as electric signal;
Router described in S320 analyzes the electric signal, and light wave configuration code is obtained according to the electric signal;
Router described in S330 searches light wave according to the light wave configuration code and configures mapping table, obtains corresponding configuration and refers to It enables;The light wave configuration mapping table further includes the correspondence of the light wave configuration code and the configuration-direct;
Router described in S340 is configured accordingly according to the configuration-direct.
5. according to method for configuring routers of the claim 1-4 any one of them based on light wave, which is characterized in that the S100 Later, include step before S200:
First terminal described in S110 obtains the luminance information of current environment, and with the distance between router information;
First terminal described in S120 judges whether the range information is more than pre-determined distance value;If so, entering step S160;It is no Then, S130 is entered step;
First terminal described in S130 judges whether the luminance information is more than or equal to predetermined luminance value;If so, entering step S140; Otherwise, S150 is entered step;
First terminal described in S140 tunes up the light wave brightness value of light wave transmitting, until being more than the predetermined luminance value;
First terminal described in S150 keeps the light wave brightness value of current light wave transmitting constant;
First terminal described in S160 generates prompt message, prompts user close to the router, and return to step S110.
6. a kind of configuration of routers system based on light wave, which is characterized in that including:First terminal and router;
The first terminal includes:
First acquisition module obtains light wave configuration script;
Module is run, the light wave configuration script is run;
Light wave transmitting module, the lightwave signal of the corresponding light wave configuration script of transmitting to router;
The router includes:
First storage module, storage light wave configure mapping table;
Light wave receiving module receives the lightwave signal;
Control module, the light that the lightwave signal received according to the light wave receiving module stores in advance with first storage module Wave configures the corresponding configuration-direct of mapping relations table search, and corresponding configuration is carried out according to the configuration-direct.
7. the configuration of routers system according to claim 6 based on light wave, which is characterized in that further include:Script generates Equipment;The script generates equipment:
Second storage module stores the light wave configuration mapping table;
Second acquisition module obtains configuration requirement, corresponding configuration-direct is obtained according to the configuration requirement;
Script generation module, the configuration-direct and the second storage module obtained according to second acquisition module store in advance The light wave configure mapping table, generate the light wave configuration script;The light wave configuration mapping table includes described The correspondence of configuration-direct and the light wave configuration script;
Sending module sends the light wave configuration script to the first terminal;
Wherein, it includes second terminal and/or server that the script, which generates equipment,;The second terminal is that configuration personnel are corresponding Terminal;The configuration requirement is the configuration requirement of the router user and/or the configuration personnel.
8. the configuration of routers system according to claim 6 based on light wave, which is characterized in that the operation module packet It includes:
Resolution unit parses the light wave configuration script, obtains corresponding light wave configuration code;
The light wave transmitting module emits the corresponding lightwave signal of the light wave configuration code.
9. the configuration of routers system according to claim 6 based on light wave, which is characterized in that the control module packet It includes:
Converting unit converts the lightwave signal of the light wave receiving module reception as electric signal;
Analytic unit analyzes the electric signal, and light wave configuration code is obtained according to the electric signal;
Searching unit searches light wave according to the light wave configuration code and configures mapping table, obtains corresponding configuration-direct;Institute State the correspondence that light wave configuration mapping table further includes the light wave configuration code and the configuration-direct;
Execution unit is configured accordingly according to the configuration-direct.
10. according to configuration of routers system of the claim 6-9 any one of them based on light wave, which is characterized in that described One terminal further includes:
Third acquisition module, obtains the luminance information of current environment, and with the distance between router information;
First judgment module, judges whether the range information is more than pre-determined distance value;
Information generating module is generated when first judgment module judges that the range information is more than the pre-determined distance value Prompt message prompts user close to the router;
The third acquisition module continues to judge after described information generation module generates the prompt message;
Second judgment module, when first judgment module judges that the range information is less than or equal to the pre-determined distance value, Judge whether the luminance information is more than or equal to predetermined luminance value;
Adjustment module tunes up light wave when second judgment module judges that the luminance information is more than or equal to predetermined luminance value The light wave brightness value of transmitting, until being more than the predetermined luminance value;
The adjustment module keeps current when second judgment module judges that the luminance information is less than predetermined luminance value The light wave brightness value of light wave transmitting is constant.
CN201810071979.XA 2018-01-25 2018-01-25 A kind of method for configuring routers and system based on light wave Pending CN108322339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810071979.XA CN108322339A (en) 2018-01-25 2018-01-25 A kind of method for configuring routers and system based on light wave

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810071979.XA CN108322339A (en) 2018-01-25 2018-01-25 A kind of method for configuring routers and system based on light wave

Publications (1)

Publication Number Publication Date
CN108322339A true CN108322339A (en) 2018-07-24

Family

ID=62888319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810071979.XA Pending CN108322339A (en) 2018-01-25 2018-01-25 A kind of method for configuring routers and system based on light wave

Country Status (1)

Country Link
CN (1) CN108322339A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7752329B1 (en) * 2002-10-31 2010-07-06 Aol Inc. Migrating configuration information based on user identity information
CN104104441A (en) * 2014-08-12 2014-10-15 陈思源 Near field communication method and near field communication system for intelligent terminals
CN106155944A (en) * 2015-03-31 2016-11-23 腾讯科技(深圳)有限公司 Equipment configuration method, device and system
CN107222372A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 A kind of method for sending information and equipment
CN107342884A (en) * 2016-05-03 2017-11-10 施耐德电气工业公司 For network configuration and the method and apparatus of connection

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7752329B1 (en) * 2002-10-31 2010-07-06 Aol Inc. Migrating configuration information based on user identity information
CN104104441A (en) * 2014-08-12 2014-10-15 陈思源 Near field communication method and near field communication system for intelligent terminals
CN106155944A (en) * 2015-03-31 2016-11-23 腾讯科技(深圳)有限公司 Equipment configuration method, device and system
CN107222372A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 A kind of method for sending information and equipment
CN107342884A (en) * 2016-05-03 2017-11-10 施耐德电气工业公司 For network configuration and the method and apparatus of connection

Similar Documents

Publication Publication Date Title
KR20080087781A (en) Device-aware content delivery
CN106452508B (en) Home terminal visible light wireless telecommunication system and its method based on XPON system
CN106788719B (en) Method and device for controlling equipment networking
CN108924907A (en) A kind of fast access method of wireless network, system and for net equipment
JP2017063487A (en) Wireless communication device and wireless communication method
ATE399419T1 (en) MESH NETWORK WITH TERMINAL DETECTION
RU2013135475A (en) LIGHTING SYSTEM, LIGHT SOURCE, DEVICE AND METHOD OF AUTHORIZING THE DEVICE BY THE LIGHT SOURCE
KR20110003965A (en) Apparatus and method for changing mode in lbs system using visible light communication
US20150173154A1 (en) Commissioning method and apparatus
CN103068095A (en) Illuminating system and control method thereof
CN107529168A (en) WiFi terminal and WiFi terminal quickly access WiFi AP method and system
CN107205218A (en) The matching method and system of bluetooth equipment
Heydariaan et al. Embedded visible light communication: Link measurements and interpretation
CN108322339A (en) A kind of method for configuring routers and system based on light wave
CN109275164B (en) Mesh network-based communication method and device and household appliance
WO2003026186A3 (en) Subnet of power line communication network, method for setting up the same, electronic appliance connected to the same, and communication module used in electronic appliance
CN104853353B (en) A kind of access authentication method and apparatus of wireless access point
Saadi et al. Performance analysis of optical wireless communication system using pulse width modulation
US20210328677A1 (en) Data transceiving electronic device and method for data transceiving thereof
Sturniolo et al. Ethernet over commercial lighting by a Visible Light Communication
CN110299942A (en) A kind of reliable internet of things equipment short distance network distribution device and its match network method
US9166688B2 (en) Network device of optical network terminal and method of adjusting power of optical signals
CN111130829A (en) Configuration method and device of wireless router
CN215682644U (en) Wireless ad hoc network system
EP1398987A1 (en) Wireless communication system with mobile radio transceivers selection function

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180724