CN105072630B - Channel configuration, method for selecting and its corresponding cloud server and smart machine - Google Patents

Channel configuration, method for selecting and its corresponding cloud server and smart machine Download PDF

Info

Publication number
CN105072630B
CN105072630B CN201510391303.5A CN201510391303A CN105072630B CN 105072630 B CN105072630 B CN 105072630B CN 201510391303 A CN201510391303 A CN 201510391303A CN 105072630 B CN105072630 B CN 105072630B
Authority
CN
China
Prior art keywords
channel
channel number
geographical location
location information
allocation plan
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510391303.5A
Other languages
Chinese (zh)
Other versions
CN105072630A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510391303.5A priority Critical patent/CN105072630B/en
Publication of CN105072630A publication Critical patent/CN105072630A/en
Application granted granted Critical
Publication of CN105072630B publication Critical patent/CN105072630B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The main purpose of the present invention is to provide a kind of cloud server and its a kind of used channel arrangement methods, and this method comprises the following steps: receiving the remote request comprising geographical location information;Determine that allocation plan corresponding with the geographical location information that remote request is included, the allocation plan include the recommendation according to channel number according to several channel numbers orderly characterized;The allocation plan is pushed in response to the remote request.Correspondingly, the present invention also provides a kind of smart machine matched with the former and its a kind of used channel selection methods.The present invention provides the customized prioritization scheme for being easy to implement working channel quick lock in based on the allocation plan for orderly characterizing channel number, so that the wireless communications efficiency of smart machine is improved.

Description

Channel configuration, method for selecting and its corresponding cloud server and smart machine
Technical field
The present invention relates to a kind of channels of communication channel optimisation technique more particularly to a kind of cloud server and its use to match Method is set, and is related to a kind of channel selection method of a kind of smart machine and its use.
Background technique
The development of Internet of Things, so that more and more intersections occur in various communication access technologies.Based on early WiFi The Ad-Hoc technology of realization realizes the point-to-point connection between WiFi equipment, but since this technology can only realize single-point Communication to single-point, and do not have security precautions technology etc., thus while convenient for connection but quickly by WiFi Direct (direct-connected) technology, which weakens, even to be replaced.Further, this field has been opened up connects (SmartLink) solution fastly, connects technology fastly Allow to send configuration information for accessing target network to smart machine by control of intelligent terminal, smart machine is made to access institute The target network stated.
Connecting technology fastly can realize that the access to smart machine drives using multitude of different ways, first is that with WiFi Based on Direct, control of intelligent terminal access is made to be in the smart machine of WiFi ap mode, to after its transmission of configuration information, It is arranged and starts the joining procedure with the WiFi AP of target network by smart machine configuration own net, it is final to realize access, this In kind mode, control of intelligent terminal and smart machine are realized by the udp broadcast data packet based on 802.11 protocol specification of IEEE The transmission of configuration information;Another way is that control of intelligent terminal is directly based upon described in the transmission of UDP multicast packet with confidence Breath, and smart machine is matched accordingly according to multicast packet frame corresponding with the protocol analysis that control of intelligent terminal is abided by jointly acquisition Confidence breath is provided with the access target network using configuration information configuration own net.
According to 802.11 agreement of IEEE, WiFi signal can (global majority state specification be 13, day by 14 channels This specification is 14) it is transmitted, for not accessing the smart machine of target network, default conditions are that traversal is each Channel obtains the configuration information, from corresponding data frame to obtain the UDP message packet to complete connecing for itself Enter.In the prior art, smart machine is traversed 14 channels to find and determine destination channel, is intelligently set with sequentially repeating query principle It is standby to detect whether the channel includes data frame needed for itself one by one since first channel, until finding itself The channel locks are just working channel by required data frame.The method of traditional this searching channel is a kind of exhaustion detection Method, the tracking step-length under worst condition reach 14, and average step length has also reached 7, and therefore, this method is inefficient.
It is analyzed from the angle of time cost, each step of ergodic channels is needed in a channel stay long enough (at least needing 70-100 milliseconds), so primary with regard in successful situation, lock channel averagely needs 490-700 milliseconds, most Difference needs 980-1400 milliseconds;When WIFI environment is more severe, occur in the repeatedly successful situation of circulation ability, lock channel Need the long period.At the same time, cause to determine that channel takes a long time due to WIFI bad environments, control of intelligent terminal is always UDP packet is being sent towards router high speed, is causing router pressure excessive, it is possible to the case where unstable and crash occur.
In view of above-mentioned technology evolution process, it is necessary to communication between devices channel optimisation technique does further exploitation, with Just the development for connecting technology fastly is pushed.
Summary of the invention
The first object of the present invention aims to solve the problem that at least one above-mentioned problem, provides a kind of cloud server and its is used Channel arrangement method, to determine that target operation channel provides allocation plan for smart machine.
The second object of the present invention be to solve the problems, such as it is above-mentioned at least one, a kind of smart machine and its used is provided Channel selection method, to determine target operation channel using the allocation plan.
In order to realize that the first object of the present invention, the present invention adopt the following technical scheme that:
A kind of channel arrangement method provided by the invention, includes the following steps:
Receive the remote request comprising geographical location information;
Determine corresponding with the geographical location information that remote request is included allocation plan, the allocation plan comprising according to The recommendation of channel number is according to several channel numbers orderly characterized;
The allocation plan is pushed in response to the remote request.
Specifically, determining institute according to the database for having prestored the mapping relations data between channel number and geographical location information State recommendation foundation.
Further, determine that the process of the allocation plan specifically comprises the following steps:
Call the statistical result collection of the database;
Concentrated from the statistical result determine all channel numbers for corresponding to the remote request geographical location information that is included and The frequency of use of each channel number;
It is that the recommendation formulates the allocation plan according to all channel numbers are orderly characterized with the frequency of use.
Further, the generating process of the statistical result collection comprises the following specific steps that:
The database is inquired, determines several data records corresponding with geographical location information;
Using geographical location information as sorting field, Classifying Sum is carried out to channel number, seeks same geographical location information institute The frequency of use of corresponding each channel number;
It is record unit with each channel number of each geographical location information, makes geographical location information, channel number and accordingly It is stored with frequency association to construct the statistical result collection.
Preferably, the generating process of the statistical result collection is periodically called and is run to regularly update the statistical result Collection.
Further, after the update for completing the statistical result collection every time, for the remote request side for still maintaining long link It redefines allocation plan and pushes it.
Preferably, the statistical result collection is stored in permanently or temporarily storage medium with database form.
Further, this method further includes following steps:
Channel number is acquired by remote interface and occupies the geographical location information where the equipment of the channel number, for true The recommendation foundation of the fixed channel number.
Further, channel number collected and its corresponding geographical location information are stored into use by the corresponding relationship of the rwo In the database for the recommendation foundation for determining the channel number.
Preferably, the geographical location information is expressed with administrative region title.
Preferably, the channel number totally 14, it is expressed respectively with natural serial number 1 to 14.
A kind of cloud server comprising:
Receiving unit, for receiving the remote request comprising geographical location information;
Configuration unit, for determining allocation plan corresponding with the geographical location information that remote request is included, this is matched Setting scheme includes the recommendation according to channel number according to several channel numbers orderly characterized;
Push unit, for pushing the allocation plan in response to the remote request.
Specifically, the configuration unit is configured as closing according to the mapping prestored between channel number and geographical location information The database of coefficient evidence determines the recommendation foundation.
Further, the configuration unit includes:
Call result module, for calling the statistical result collection of the database;
Frequency determining module determines that corresponding to the geographical location that remote request is included believes for concentrating from the statistical result All channel numbers of breath and the frequency of use of each channel number;
Solution formulation module, for being that the recommendation foundation orderly characterizes all channel number systems with the frequency of use The fixed allocation plan.
Further, cloud server further includes the statistic unit for generating the statistical result collection, the statistic unit packet It includes:
Enquiry module determines several data records corresponding with geographical location information for inquiring the database;
Summarizing module, for carrying out Classifying Sum to channel number, seeking samely using geographical location information as sorting field Manage the frequency of use of each channel number corresponding to location information;
Constructing module, for being record unit with each channel number of each geographical location information, by geographical location information, channel Number and the storage of corresponding frequency of use relevance to construct the statistical result collection.
Preferably, the statistic unit periodic operation is to regularly update the statistical result collection.
Further, after the statistic unit completes the update of the statistical result collection every time, the configuration unit is still to tie up The remote request side for holding long link redefines allocation plan, passes to the push unit and pushes it.
Preferably, the statistical result collection is stored in permanently or temporarily storage medium with database form.
Further, cloud server further includes acquisition unit, is configured as acquiring channel number and occupancy by remote interface Geographical location information where the equipment of the channel number, for determining the recommendation foundation of the channel number.
Further, the acquisition unit is configured as channel number collected and its corresponding geographical location information by this The corresponding relationship of the two is stored into the database for determining the recommendation foundation of the channel number.
Preferably, the geographical location information is expressed with administrative region title.
Preferably, the channel number totally 14, it is expressed respectively with natural serial number 1 to 14.
The second purpose to realize the present invention, adopts the following technical scheme that:
A kind of channel selection method provided by the invention, includes the following steps:
Obtain the allocation plan of several channel numbers comprising orderly characterizing;
It is polled according to the sequence that channel number is characterized, sets the corresponding channel of the sequence for current operating channel number Number, poll is terminated when listening to target network frame by current operating channel to maintain current operating channel;
Network frame is continued to by current operating channel to obtain external data.
According to an aspect of the present invention, the allocation plan is obtained from local storage medium.
According to another aspect of the present invention, the acquisition process of the allocation plan comprises the following specific steps that:
Obtain current geographical location information;
The remote request comprising the geographical location information is submitted by remote interface;
Receive the allocation plan fed back in response to the remote request by remote interface.
Specifically, the network frame is the network frame for defining specific content.
Further, the network frame includes udp broadcast or multicast packet.
Specifically, the data frame that the network frame is standardized by 802.11 agreement of IEEE.
Preferably, the external data is the configuration information for accessing target network.
Further, further include following steps: being configured described in network settings and the access of itself using the configuration information Target network.
Further, further include following steps: current geographic position information and current operating channel are uploaded by remote interface Channel number.
A kind of smart machine provided by the invention, comprising:
Acquiring unit, for obtaining the allocation plan of several channel numbers comprising orderly characterizing;
Unit is listened to, the sequence for being characterized according to channel number is polled, and sets this for current operating channel number Sequentially corresponding channel number terminates poll when listening to target network frame by current operating channel to maintain work at present to believe Road;
Working cell, for continuing to network frame by current operating channel to obtain external data.
According to an aspect of the present invention, the allocation plan is stored in local storage medium.
According to another aspect of the present invention, the acquiring unit includes:
Position acquisition module, for obtaining current geographical location information;
Information submits module, submits the remote request comprising the geographical location information by remote interface;
Solution receiving module receives the allocation plan fed back in response to the remote request by remote interface.
Specifically, the network frame is the network frame for defining specific content.
Further, the network frame includes udp broadcast or multicast packet.
Specifically, the data frame that the network frame is standardized by 802.11 agreement of IEEE.
Preferably, the external data is the configuration information for accessing target network.
Further, smart machine further includes logging in unit, is configured as configuring the network of itself using the configuration information It is arranged and accesses the target network.
Further, smart machine further includes uploading unit, is configured as uploading current geographic position letter by remote interface The channel number of breath and current operating channel.
Compared with prior art, the solution of the invention has the following advantages:
On the one hand, performance beyond the clouds, as unit of geographical location information, provides and geographical location in response to remote request The adaptable allocation plan of information, in allocation plan by certain recommend foundation to channel number relevant to the geographical location into Row sequence, then recommends remote terminal for the allocation plan, plays the advantage of big data therefrom, server is each beyond the clouds Kind smart machine provides highly efficient network configuration.
Further, by acquire in real time from the geographical location information of smart machine and its channel number for working it Between mapping relations data, these data are counted using Statistics, seek the use of each channel number in a certain place The frequency of use is determined as recommending foundation by frequency, is more advantageous to and realizes using region as the work of unit Intelligent Optimal terminal letter Road parameter configuration.
On the other hand, show terminal, using the preparatory allocation plan for realizing configuration, therefrom parse each channel number and Its sequence listens to network frame by the channel number of this working channel that is arranged in order on this channel, and target network frame is being determined Terminate poll afterwards to maintain the working channel, thus allocation plan is human configuration either cloud big data to optimize in advance Obtained by product, thus, smart machine need not abide by a unalterable polling scheme again, and can be with more humane side The working channel of itself poll ambient enviroment is arranged in formula, this polling procedure is shorter more efficient, usually time-consuming inevitable also lower, because This, can make smart machine complete communication process more quickly.Smart machine can also provide corresponding foundation for cloud big data The basic data of mapping relations between current geographic position information and current operating channel, to advanced optimize the big number in cloud According to the effective material of offer.
Further, the transmission for accessing the configuration information of target network is realized using this technology, can accelerate to move The communication speed of terminal and smart machine, optimization connect technology (SmartLink) fastly, smart machine are enable to access mesh more quickly Mark network.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the schematic illustration of the preferred embodiment of channel arrangement method of the invention;
Fig. 2 is the concrete principle schematic diagram of the step S12 of channel arrangement method of the invention;
Fig. 3 is the schematic illustration of another embodiment of channel arrangement method of the invention;
Fig. 4 is the concrete principle schematic diagram of the step S14 of channel arrangement method of the invention;
Fig. 5 is the schematic illustration of the preferred embodiment of channel selection method of the invention;
Fig. 6 is the concrete principle schematic diagram of the step S21 of channel selection method of the invention;
Fig. 7 is the schematic illustration of another embodiment of channel selection method of the invention;
Fig. 8 is the structural schematic diagram of the preferred embodiment of cloud server of the invention;
Fig. 9 is the concrete structure schematic diagram of the step S12 of cloud server of the invention;
Figure 10 is the structural schematic diagram of another embodiment of cloud server of the invention;
Figure 11 is the concrete structure schematic diagram of the step S14 of cloud server of the invention;
Figure 12 is the structural schematic diagram of the preferred embodiment of smart machine of the invention;
Figure 13 is the concrete structure schematic diagram of the step S21 of smart machine of the invention;
Figure 14 is the structural schematic diagram of another embodiment of smart machine of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here To explain.
Those skilled in the art of the present technique be appreciated that " terminal " used herein above, " terminal device ", " smart machine ", " control of intelligent terminal " had both included the equipment of wireless signal receiver, only had the wireless signal receiver of non-emissive ability Equipment, and the equipment including receiving and emitting hardware, the reception of two-way communication can be executed on bidirectional communication link by having With the equipment of transmitting hardware.This equipment may include: honeycomb or other communication equipments, with single line display or multi-thread Road display or honeycomb or other communication equipments without multi-line display;PCS(Personal Communications Service, PCS Personal Communications System), it can be with combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, personal digital assistant), may include radio frequency receiver, pager, internet/ Intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System, global location System) receiver;Conventional laptop and/or palmtop computer or other equipment have and/or including radio frequency receiver Conventional laptop and/or palmtop computer or other equipment.Various " terminals " used herein above can be it is portable, can transport It is defeated, be mounted in the vehicles (aviation, sea-freight and/or land), or be suitable for and/or be configured in local runtime, and/ Or with distribution form, operate in any other position operation in the earth and/or space.Various " terminals " used herein above may be used also To be communication terminal, access terminals, music/video playback terminal, such as it can be PDA, MID (Mobile Internet Device, mobile internet device) and/or mobile phone with music/video playing function, be also possible to smart television, The equipment such as set-top box, intelligent video camera head, intelligent remote controller, intelligent socket.
Connect the specification of technology according to 802.11 agreement of IEEE and fastly, smart machine is answered in a strange network environment The configuration information for accessing target network is obtained first, this configuration information can be whole by the intelligent control of mobile terminal etc End is to provide, and control of intelligent terminal based on the access of WiFi Direct technology in the intelligence of access point mode either set It is standby and to its transmission of configuration information, be also possible to by the network frame of data link layer to smart machine transmission it is described with confidence Breath, the latter are mainly to be sent using multicast packet frame as carrier.And 802.11 agreement of IEEE defines 14 working channels (entirely Ball majority state is 13, and Japan is 14, depending on actual conditions), table is carried out with natural serial number 1,2,3 ... 14 respectively It reaches, according to default scheme, each smart machine, first should be as from 1 to 14 when waiting the network frame of control of intelligent terminal Sequence is polled each channel, until obtaining target network frame in current operating channel, shows that the working channel uploads Defeated network frame is that the source needed for itself is initiated, at this point, just locking the working channel, is continued on this working channel It is communicated with control of intelligent terminal, reaches the purpose for receiving the configuration information.
The working channel of control of intelligent terminal, due to may usually access WiFi AP access internet, thus often With the WiFi AP of internet it is maintained at same working channel, accordingly, it is determined that the working channel of intelligent terminal, generally also The working channel of WiFi AP has been determined.The each area being geographically spread out, since the factors such as product setting, user's habit influence, The characteristics of usually embodying the aggregation of WiFi working channel.Using this feature, by determining that a regional frequency of use is higher Working channel, the frequency of use to each channel in this area is ranked up, then taken turns with the sequence to each channel It askes, can theoretically smart machine be allowed to lock working channel more quickly, accelerate it and access target network or intelligent control end The speed at end.
It is set for this purpose, the present invention provides a kind of channel arrangement methods that server side beyond the clouds is realized and one kind intelligently The channel selection method that standby side is realized, the former is used to formulate the sequence of working channel poll for the set smart machine in geographical location Allocation plan, the latter are used to realize quickly selected working channel using the allocation plan.It discloses in detailed below of the invention each The specific implementation of aspect.
As shown in Figure 1, a kind of preferred embodiment of channel arrangement method provided by the invention, is suitable for cloud server, This method comprises the following steps:
Step S11, the remote request comprising geographical location information is received.
Cloud server monitors remote interface, is positioned with obtaining the smart machine that contains of smart machine upload by it The geographical location information that sensor obtains.The expression way of geographical location information is varied, either the mode of longitude and latitude, It is also possible to be characterized in a manner of the title of administrative region.The geographical location information can be identified and be located by cloud server Manage it.Remote request received for cloud server, as long as only containing geographical location information without including other kinds of Information, it can be considered as be used to obtain the information of channel configuration scheme and in response to it, it is of course also possible to it is specified contain it is described Geographical location information specific format replace.Cloud server is in response to a large amount of such request, so as to the intelligence for magnanimity Equipment provides the allocation plan that geographical location information contained in the remote request submitted with it matches.
Step S12, determination allocation plan corresponding with the geographical location information that remote request is included, the allocation plan Comprising the recommendation according to channel number according to several channel numbers orderly characterized.
Cloud server, this mode are pre-stored in although can be artificial optimization in the allocation plan theory and formulate It is not evident to the effect of channel optimization for allocation plan obtained, thus, it is suitable for being realized in the way of more intelligent.
In order to determine that the allocation plan, cloud server are realized using database technology.The database It is built with reflecting between the channel number of geographical location information and the channel for submitting the smart machine of the geographical location information to be worked Relationship is penetrated, is largely acquired and stored into the database by cloud server in accordance with the data of this mapping relations.
In order to build the database, cloud server constructs an independent process and acquires above-mentioned geographical location information and letter The associated data of Taoist monastic name, therefore also can be considered an independent step.This associated data is also to be initiated by remote terminal, example Such as intelligent video camera head, smartwatch, intelligent WiFi routing, smart phone terminal device, can submit this to cloud server Class data, and it is not limited to the smart machine that the present invention is realized.
Cloud server collects channel number by remote interface and occupies the geographical location where the equipment of the channel number Geographical location information after, just with the corresponding relationship between them, as a newly-increased record storage to the database In.
Data of the magnanimity stored in database in relation to relationship between geographical location information and channel number, will be used for determining To the recommendation foundation that all channel numbers in the allocation plan are ranked up, and the recommendation foundation can not be from the data It is directly obtained in each item record in library, it is therefore desirable to the magnanimity record of the database be processed, so as to according to the database Determine the recommendation foundation, thus the allocation plan that construction is described, referring to Fig. 2, determining the process tool of the allocation plan Body includes the following steps:
Step S121, the statistical result collection of the database is called:
This statistical result collection is the intermediate result processed using database, can be used as another embodiment (ginseng Read Fig. 3), the database is excavated by another independent process or step S14 and obtains the statistical result collection, is specifically held Row detailed step as shown in Figure 4:
Step 141 inquires the database, determines several data records corresponding with geographical location information:
Since what is stored in database is relation data between geographical location information and channel number, it can be leading It determines related data record corresponding with geographical location information, actually executes the process of a screening, and under default situations, Since the data of database purchase usually all meet specification, thus this screening process may be it is extra, purpose is only that Determine the basic data collection counted.
Step 142, using geographical location information as sorting field, Classifying Sum is carried out to channel number, seeks same geographical position The frequency of use of the corresponding each channel number of confidence breath:
Geographical location information, it is suitable to be stored with a certain rank, such as county/area's grade administrative region title for unit, if It can be fine to town/street level-one, then will be more conducive to formulate more effective allocation plan.The data of magnanimity have been assumed first Sequence tissue, such as sorted with geographical location information, Classifying Sum is carried out on this basis, is with geographical location Information is sorting field, and all 14 channel numbers corresponding to same geographical location information carry out summarizing summation respectively, thus It can obtain under the geographical location information, the frequency of use (number) of each channel number.In general, the frequency of use of a certain channel Numerical value is bigger, illustrates that area corresponding to the geographical location information is more using the equipment of the channel number, therefore, utilizes the channel The success rate for number listening to signal is higher.
Step 143, with each channel number of each geographical location information be record unit, by geographical location information, channel number and Corresponding frequency of use relevance storage is to construct the statistical result collection:
After the statistic processes of above-mentioned Classifying Sum, corresponding 14 channel numbers of each geographical location information, Mei Gexin Taoist monastic name corresponds to corresponding frequency of use value, and therefore, by geographical location information, --- channel number --- is between frequency of use This corresponding relationship accordingly adds a record as record unit, forms a data form, and just can be formed makes for determination With the statistical result collection of frequency namely the recommendation foundation.The statistical result collection is stored in permanent storage media such as hard disk battle array In column, or it is stored in the interim introduction such as memory of cloud server, it can be for calling.
It should be pointed out that this statistical result collection can with parallel processing, also, due to cloud server constantly from The data of mapping relations between newest geographical location information and channel number are obtained in various terminals, therefore, above-mentioned generation statistics The process of result set is suitable for periodically carrying out, and based on this, the present invention can also be the intelligence with the long connection of cloud server holding It can the newest allocation plan of equipment update.
Step S122, it is concentrated from the statistical result and determines all of the geographical location information for corresponding to that remote request is included The frequency of use of channel number and each channel number:
The statistical result collection has been generated and called in view of preceding, thus, in order to determine allocation plan, and it is not required to straight It connects and database is operated, need to only carry out data manipulation to the statistical result collection.Specifically, can be with described Remote request included geographical location information be keyword, the geographical location information field of statistical result collection is examined Rope, retrieval as a result, 14 most (depending on the channel number of view acquisition is total) corresponding with the geographical location information will be obtained Channel number and its corresponding frequency of use.
It step S123, is that the recommendation is described according to all channel numbers formulations are orderly characterized with the frequency of use Allocation plan:
There is directive significance above-mentioned in view of the frequency of use, be described push away with the frequency of use therefore The allocation plan can be formulated according to orderly characterizing all channel numbers by recommending.In a kind of form, the allocation plan can be with It is to recommend foundation with the size of frequency of use, channel number is successively arranged from big to small by frequency of use;Vice versa.It is another In form, each channel number in allocation plan is assigned to corresponding frequency of use numerical value, and smart machine is transferred to voluntarily to know Other frequency of use numerical value and embody sequence.Regardless of form, as long as keeping appointments specification between cloud server and smart machine, The allocation plan can be effectively interpreted, to formulate and be applicable in the allocation plan.
Step S13, the allocation plan is pushed in response to the remote request.
When the allocation plan is determined, which can be pushed to submission by cloud server, and this is remotely asked The smart machine asked, using as the response to the remote request, to complete entire allocation plan acquisition process.
It should be pointed out that as previously mentioned, cloud server it is subsequent can also after statistical result collection regularly updates, to It keeps the smart machine of long connection to push newest allocation plan.The realization of this process, the generation based on statistical result collection It is to be controlled by independent process, after which completes statistics every time, can connects for still keeping long with cloud server The smart machine connect redefines newest allocation plan according to above-mentioned process, and the allocation plan is pushed to institute again The smart machine stated, so that those smart machines get newest allocation plan, timely update itself configuration.In order to avoid Allocation plan is frequently pushed, cloud server can be after each push allocation plan, by the allocation plan and remotely The being associated property of characteristic information of request originator stores, can first and accordingly after the allocation plan of determination is formulated when update The allocation plan of the corresponding caching of characteristic information is compared, only when finding that allocation plan changes, just to smart machine Push, therefore saves on the overhead of cloud server.Similarly, the time span of statistical result collection being periodically generated, can be with It week, is configured for unit day the moon, this expense can also be saved.
As it can be seen that being based on big data application, it is foundation by geographical location information, provides for remote terminal for quickly determining The allocation plan of working channel has the effect of more intelligent and high-efficiency compared with the scheme of the poll order of tradition default working channel Fruit.
Corresponding, refering to Fig. 5, in smart machine side, the present invention provides a kind of channel selection method comprising as follows Step:
Step S21, the allocation plan of several channel numbers comprising orderly characterizing is obtained.
Smart machine dispatch from the factory when, by be written into one default allocation plan into its local storage medium, the configuration side Case can be from a sales territory of the networked terminals based on smart machine and to cloud server above-mentioned request acquisition, and At which when accessing the normal operating conditions of internet, then a newest configuration side can be obtained to cloud by internet Case, and can periodically send request and reception or the passive latest configuration scheme for receiving cloud server push.
No matter which kind of state smart machine is under, and the ultimate source of allocation plan is the cloud server, And the latest configuration scheme obtained from cloud server, it can also similarly be cached in local storage medium, and replace default Allocation plan.Those skilled in the art should know this accommodations.
As previously mentioned, the allocation plan, includes multiple channel numbers, it is generally based on IEEE802.11 agreement and is advised 14 channel numbers of model, are usually expressed in the form of natural number.Also, these channel numbers are ordered into characterization, as in the previous example Form as described to can be 7,9,4,3 ... ... 1, by 1 to 14 channel totally 14 channel numbers according to smart machine institute Channel frequency of use in the space in the area at place sorts.It is also possible to be added to for each channel number specific using frequency Rate score, in this case, this step just voluntarily sort according to the frequency of use of each channel number.This orderly row of allocation plan Column are that smart machine realizes the basis for efficiently listening to working channel.
In the case where smart machine has accessed internet, the allocation plan is obtained by internet, incorporated by reference to Fig. 6 is referred to following process and realizes:
Step S211, current geographical location information is obtained:
Smart machine carries the satellite positioning sensing equipment of GPS, Compass etc, thus, it is possible to obtain the physics of itself Positioning, or self poisoning is realized by WiFi, GPRS etc. using well-known technique, so that it is determined that the geographical location locating for itself is believed Breath.The expression way and cloud server of this geographical location information are adapted, and can be administrative region title, such as be accurate to County/area's grade.
Step S212, the remote request comprising the geographical location information is submitted by remote interface:
After determining the geographical location information, which can be packaged into data packet, as long-range Request is sent to the cloud server by remote interface.
Step S213, the allocation plan fed back in response to the remote request by remote interface is received:
According to preceding announcement, could be aware that, it, will after cloud server obtains the remote request that smart machine is submitted It executes series of steps and obtains the allocation plan, and feed back to this smart machine in response.At this point, smart machine is just It can receive the allocation plan, when necessary using allocation plan replacement local cache or the allocation plan of default, make in case subsequent With.
After obtaining the allocation plan, the basic data of working channel can be quickly determined as smart machine.
Step S22, it is polled according to the sequence that channel number is characterized, it is right to set the sequence for current operating channel number The channel number answered terminates poll when listening to target network frame by current operating channel to maintain current operating channel.
Smart machine is parsed the sequence of i.e. knowable each channel number to the allocation plan got, therefore, can be with It is polled according to the sequence characterized in allocation plan, successively working channel pointed by each channel number is listened to.
In the loop body of poll during listening to each time, smart machine is first arranged the current operating channel number of itself For channel number corresponding with this time sequence (i.e. the channel number of allocation plan recommendation), setting working channel number sets intelligence Thus the current operating channel of equipment, smart machine are just listened on working channel.When listening to, according to current technology, Smart machine stopped on the working channel it is 70-100 milliseconds general, such as do not detected from the received wireless signal of the working channel To target network frame, then continue to recycle next time, i.e., the corresponding channel of subsequent channels number provided by allocation plan is implemented It listens to;Target network frame as described in detecting from the received wireless signal of the working channel, can exit loop body, terminate Poll, channel pointed by most newly-installed channel number before being therefrom maintained at the current operating channel of smart machine are real Now to the maintenance of current operating channel.
Due in polling procedure, preferentially to the highest channel number of frequency of use in region representated by purpose geographical location into Row is listened to, and therefore, smart machine has higher probability to listen to target network frame by working channel pointed by the channel number, When failing to listen to target network frame, just continue the channel number of time high frequency of use, and so on, until all channel number institutes When corresponding channel is listened discovery target network frame not yet, just failure is listened in declaration.Due to general control of intelligent terminal its Working channel is usually consistent with the WiFi AP of surrounding, and therefore, smart machine has higher probability quickly to listen to target network Network frame, to more quickly be interacted with control of intelligent terminal, WiFi AP etc..
The target network frame, either refer to IEEE 802.11 standardize Beacon control frame (beacon frame), Probe Request frame (when seeking the smart machine in access point mode), even ACK frame etc., are also possible to by intelligently setting Such as multicast packet frame or other types of net that the standby agreement abided by jointly with sender's such as control of intelligent terminal is standardized Network frame can mutually arrange a target network frame, be sent out by sender as long as smart machine and sender abide by same agreement jointly The target network frame out, and it is identified by smart machine.
For example, especially in the case where smart machine does not access network, sender will be used to connect in a kind of embodiment Enter the configuration information of target network, specific includes the service set and its password of target network, is encoded into multiple multicasts In the destination address domain of data frame, the frame ontology domain of the multicast packet then encapsulates UDP message packet, and (similarly also available broadcast frame is sealed Fill UDP message packet), low 23 bits in the destination address domain of one of multicast packet frame are set to full 0 or other specific Content, in this, as target network frame.These multicast packet frames are transmitted several times sender, smart machine certain channel according to The agreement that sender abides by listens to after the target network frame, that is, knows that the channel is required channel, can then exit Poll and maintain current operating channel.
Step S23, network frame is continued to obtain external data by current operating channel.
Current operating channel is maintained, that is, shows to continue to operate in the channel to receive external data, outside these The configuration information of portion's data service set (SSID) and password for example above-mentioned for being loaded with target network, these external datas It is to be expressed with the format of network frame, and with wireless signal transmission, smart machine obtains these wireless signals, parses network Frame can restore the configuration information.
However, should not be construed as limiting the invention in relation to the example for receiving the configuration information, outside of the invention Data also can refer to the data of such as picture, file, audio, video etc, and can also be can not carry out Visualization but can Cause smart machine to execute some control instructions of a subsequent action, or even can also include other all multi-form data. For the present invention, restoring external data is external form, is continued to by current operating channel described for restoring The network frame of external data, Fang Shiqi technology essence are wanted.
Another embodiment shown in Fig. 7 is please referred to, the above-mentioned example for receiving configuration information about smart machine, intelligence are adapted to After equipment receives related multicast data frame, it can star another step S24, parse from multicast packet frame and match accordingly Confidence breath, obtains SSID and password therein and carries out own net setting, after being provided with specified by starting access SSID The process of target network completes the access target network.
Further, smart machine can provide geographical location information locating for it to the cloud server And its therefore working channel number similarly please refers to embodiment shown in Fig. 7, can realize it by another step S25, In step S25, smart machine obtains the geographical location information being presently in by the alignment sensor of itself, and reads current The geographical location information and the channel number are covered in remote request, are uploaded by remote interface by the channel number of working channel To the cloud server, so that cloud server does big data processing, to continuously improve matching for cloud server formulation Set scheme.
It is deposited in addition, user can even directly read according to subjective desire and modify the local for being pre-stored in smart machine The content of allocation plan in storage media, so that channel number therein sequence meets the subjective setting of itself, so as to allow use The signal covering details in family space according to locating for smart machine carry out finer and smoother artificial optimization's operation.
As can be seen that optimizing the allocation plan of channel number sequence by obtaining, and the channel number according to allocation plan is suitable Sequence listens to each working channel, and smart machine can be made to more quickly determine target operation channel, to more effectively ensure intelligence The communication of equipment and exterior terminal.
Based on modularized thoughts, the present invention also provides a kind of cloud servers and a kind of smart machine, take off further below Show it.
As shown in figure 8, a kind of cloud server provided by the invention, includes receiving unit 11 in exemplary embodiments, matches Set unit 12 and push unit 13.The concrete function for disclosing each unit in detailed below is realized.
The receiving unit 11, for receiving the remote request comprising geographical location information.
Cloud server monitors remote interface by the construction receiving unit 11, to obtain the packet of smart machine upload The geographical location information that the smart machine is obtained by its alignment sensor is contained.The expression way of geographical location information is a variety of more Sample, either the mode of longitude and latitude, is also possible to be characterized in a manner of the title of administrative region.The geographical location information It can be identified and handled by cloud server.Remote request received for cloud server, as long as only containing geographical position Confidence breath without including other kinds of information, it can be considered as to the information for being used to obtain channel configuration scheme and in response to it, It is of course also possible to which the specified specific format for containing the geographical location information replaces.Cloud server is in response to a large amount of Such request matches so that the smart machine for magnanimity provides geographical location information contained in the remote request submitted with it Allocation plan.
The configuration unit 12, for determining configuration side corresponding with the geographical location information that remote request is included Case, the allocation plan include the recommendation according to channel number according to several channel numbers orderly characterized.
Cloud server, this mode are pre-stored in although can be artificial optimization in the allocation plan theory and formulate It is not evident to the effect of channel optimization for allocation plan obtained, thus, it is suitable for being realized in the way of more intelligent.
In order to determine that the allocation plan, cloud server are realized using database technology.The database It is built with reflecting between the channel number of geographical location information and the channel for submitting the smart machine of the geographical location information to be worked Relationship is penetrated, is largely acquired and stored into the database by cloud server in accordance with the data of this mapping relations.
In order to build the database, it is (not shown) for acquiring above-mentioned geography that cloud server constructs an acquisition unit The associated data of location information and channel number.This associated data is also to be initiated by remote terminal, such as intelligent video camera head, intelligence The terminal devices such as energy wrist-watch, intelligent WiFi routing, smart phone can submit such data to cloud server, without limiting to In the smart machine that the present invention is realized.
The acquisition unit (not shown) of cloud server collects channel number by remote interface and occupies the channel number After geographical location information where equipment, just with the corresponding relationship between them, as a newly-increased record It stores in the database.
Data of the magnanimity stored in database in relation to relationship between geographical location information and channel number, will be used for determining To the recommendation foundation that all channel numbers in the allocation plan are ranked up, and the recommendation foundation can not be from the data It is directly obtained in each item record in library, it is therefore desirable to the magnanimity record of the database be processed, so as to according to the database The recommendation foundation is determined, thus the allocation plan that construction is described.Specifically, referring to Fig. 9, the configuration unit 12 is wrapped Call result module 121, frequency determining module 122 and solution formulation module 123 are included, respectively executes itself by these modules Function cooperates, and realizes the formulation of the allocation plan.The function that each module described below is realized:
The call result module 121, for calling the statistical result collection of the database:
This statistical result collection is the intermediate result processed using database, be can be used as shown in Figure 10 another One embodiment is obtained described by calling another independent process to construct a statistic unit 14 for excavating the database Statistical result collection, as shown in figure 11, the statistic unit 14 include enquiry module 141, summarizing module 142 and constructing module 143, The function of each module is disclosed as follows:
The enquiry module 141 determines several data corresponding with geographical location information for inquiring the database Record:
Since what is stored in database is relation data between geographical location information and channel number, it can be leading It determines related data record corresponding with geographical location information, actually executes the process of a screening, and under default situations, Since the data of database purchase usually all meet specification, thus this screening process may be it is extra, its object is to true The fixed basic data collection counted.
The summarizing module 142, for carrying out Classifying Sum to channel number using geographical location information as sorting field, Seek the frequency of use of each channel number corresponding to same geographical location information:
Geographical location information, it is suitable to be stored with a certain rank, such as county/area's grade administrative region title for unit, if It can be fine to town/street level-one, then will be more conducive to formulate more effective allocation plan.The data of magnanimity have been assumed first Sequence tissue, such as sorted with geographical location information, Classifying Sum is carried out on this basis, is with geographical location Information is sorting field, and all 14 channel numbers corresponding to same geographical location information carry out summarizing summation respectively, thus It can obtain under the geographical location information, the frequency of use (number) of each channel number.In general, the frequency of use of a certain channel Numerical value is bigger, illustrates that area corresponding to the geographical location information is more using the equipment of the channel number, therefore, utilizes the channel The success rate for number listening to signal is higher.
The constructing module 143, for being record unit with each channel number of each geographical location information, by geographical location Information, channel number and the storage of corresponding frequency of use relevance are to construct the statistical result collection:
After the statistic processes of above-mentioned Classifying Sum, corresponding 14 channel numbers of each geographical location information, Mei Gexin Taoist monastic name corresponds to corresponding frequency of use value, and therefore, by geographical location information, --- channel number --- is between frequency of use This corresponding relationship accordingly adds a record as record unit, forms a data form, and just can be formed makes for determination With the statistical result collection of frequency namely the recommendation foundation.The statistical result collection is stored in permanent storage media such as hard disk battle array In column, or it is stored in the interim introduction such as memory of cloud server, it can be for calling.
It should be pointed out that this statistical result collection can with parallel processing, also, due to cloud server constantly from The data of mapping relations between newest geographical location information and channel number are obtained in various terminals, therefore, above-mentioned generation statistics The process of result set is suitable for periodically carrying out, and based on this, the present invention can also be the intelligence with the long connection of cloud server holding It can the newest allocation plan of equipment update.
The frequency determining module 122 determines that corresponding to remote request is included for concentrating from the statistical result All channel numbers of geographical location information and the frequency of use of each channel number:
The statistical result collection has been generated and called in view of preceding, thus, in order to determine allocation plan, and it is not required to straight It connects and database is operated, need to only carry out data manipulation to the statistical result collection.Specifically, frequency determines mould Block 122 can be using the geographical location information that the remote request is included as keyword, to the geographical location of statistical result collection Information field is retrieved, retrieval as a result, will obtain it is corresponding with the geographical location information it is 14 most (depending on acquisition letter Depending on Taoist monastic name sum) channel number and its corresponding frequency of use.
The solution formulation module 123, for being the recommendation according to orderly characterization institute with the frequency of use There is channel number to formulate the allocation plan:
There is directive significance above-mentioned in view of the frequency of use, be described push away with the frequency of use therefore The allocation plan can be formulated according to orderly characterizing all channel numbers by recommending.In a kind of form, the allocation plan can be with It is to recommend foundation with the size of frequency of use, channel number is successively arranged from big to small by frequency of use;Vice versa.It is another In form, each channel number in allocation plan is assigned to corresponding frequency of use numerical value, and smart machine is transferred to voluntarily to know Other frequency of use numerical value and embody sequence.Regardless of form, as long as keeping appointments specification between cloud server and smart machine, The allocation plan can be effectively interpreted, to formulate and be applicable in the allocation plan.
The push unit 13, for pushing the allocation plan in response to the remote request.
When the allocation plan is determined, cloud server can be pushed away the allocation plan by its push unit 13 The smart machine for submitting the remote request is given, obtained to complete entire allocation plan as the response to the remote request Take process.
It should be pointed out that as previously mentioned, cloud server it is subsequent can also after statistical result collection regularly updates, to It keeps the smart machine of long connection to push newest allocation plan.The realization of this process, the generation based on statistical result collection It is to be controlled by independent process, after which completes statistics every time, can connects for still keeping long with cloud server The smart machine connect redefines newest allocation plan according to above-mentioned process, and the allocation plan is pushed to institute again The smart machine stated, so that those smart machines get newest allocation plan, timely update itself configuration.In order to avoid Allocation plan is frequently pushed, cloud server can be after each push allocation plan, by the allocation plan and remotely The being associated property of characteristic information of request originator stores, can first and accordingly after the allocation plan of determination is formulated when update The allocation plan of the corresponding caching of characteristic information is compared, only when finding that allocation plan changes, just to smart machine Push, therefore saves on the overhead of cloud server.Similarly, the time span of statistical result collection being periodically generated, can be with It week, is configured for unit day the moon, this expense can also be saved.
As it can be seen that being based on big data application, it is foundation by geographical location information, provides for remote terminal for quickly determining The allocation plan of working channel has the effect of more intelligent and high-efficiency compared with the scheme of the poll order of tradition default working channel Fruit.
It is corresponding, refering to fig. 12, a kind of smart machine provided by the invention, including acquiring unit 21, listen to unit 22 And working cell 23, the function that each unit described below is realized.
The acquiring unit 21, for obtaining the allocation plan of several channel numbers comprising orderly characterizing.
Smart machine dispatch from the factory when, by be written into one default allocation plan into its local storage medium, the configuration side Case can be from a sales territory of the networked terminals based on smart machine and to cloud server above-mentioned request acquisition, and At which when accessing the normal operating conditions of internet, then a newest configuration side can be obtained to cloud by internet Case, and can periodically send request and reception or the passive latest configuration scheme for receiving cloud server push.
No matter which kind of state smart machine is under, and the ultimate source of allocation plan is the cloud server, And the latest configuration scheme obtained from cloud server, it can also similarly be cached in local storage medium, and replace default Allocation plan.Those skilled in the art should know this accommodations.
As previously mentioned, the allocation plan, includes multiple channel numbers, it is generally based on IEEE802.11 agreement and is advised 14 channel numbers of model, are usually expressed in the form of natural number.Also, these channel numbers are ordered into characterization, as in the previous example Form as described to can be 7,9,4,3 ... ... 1, by 1 to 14 channel totally 14 channel numbers according to smart machine institute Channel frequency of use in the space in the area at place sorts.It is also possible to be added to for each channel number specific using frequency Rate score, in this case, acquiring unit 21 just voluntarily sort according to the frequency of use of each channel number.This of allocation plan has Sequence arrangement is that smart machine realizes the basis for efficiently listening to working channel.
Figure 13 is please referred to, in the case where smart machine has accessed internet, acquiring unit 21 is obtained by internet The allocation plan submits module 212 and scheme to receive mould by position acquisition module 211, the information in its specific configuration Block 213 executes respective function cooperation and realizes:
The position acquisition module 211, for obtaining current geographical location information:
Smart machine carries the satellite positioning sensing equipment of GPS, Compass etc, and therefore, position acquisition module 211 can To obtain the physical positioning of itself, or well-known technique is utilized to realize self poisoning by WiFi, GPRS etc., so that it is determined that itself Locating geographical location information.The expression way and cloud server of this geographical location information are adapted, and can be administrative area Domain name claims, such as is accurate to county/area's grade.
The information submits module 212, long-range comprising the geographical location information for being submitted by remote interface Request:
After determining the geographical location information, which can be packaged into data packet, as long-range Request is sent to the cloud server by remote interface.
The solution receiving module 213, for receiving the institute fed back in response to the remote request by remote interface State allocation plan:
According to preceding announcement, could be aware that, it, will after cloud server obtains the remote request that smart machine is submitted It executes a series of functions and obtains the allocation plan, and feed back to this smart machine in response.At this point, smart machine Solution receiving module 213 can receive the allocation plan, be matched when necessary using allocation plan replacement local cache or default Scheme is set, is directly taken from local storage medium in case subsequent.
After obtaining the allocation plan, the basic data of working channel can be quickly determined as smart machine.
Described listens to unit 22, and the sequence for being characterized according to channel number is polled, by current operating channel number It is set as the corresponding channel number of the sequence, terminates poll when listening to target network frame by current operating channel to maintain to work as Preceding working channel.
Smart machine is parsed the sequence of i.e. knowable each channel number to the allocation plan got, therefore, can be with It is polled according to the sequence characterized in allocation plan, successively working channel pointed by each channel number is listened to.
Unit 22 is listened in the loop body of poll during listening to each time, first the work at present of smart machine itself Channel number is set as channel number (i.e. the channel number of allocation plan recommendation) corresponding with this time sequence, and setting working channel number is i.e. The current operating channel of smart machine is set, thus smart machine is just listened on working channel.When listening to, according to mesh Preceding technology, smart machine stopped on the working channel it is 70-100 milliseconds general, it is such as received not wireless from the working channel It detects target network frame in signal, then continues to recycle next time, i.e., it is corresponding to subsequent channels number provided by allocation plan Channel implementation listen to;Target network frame as described in detecting from the received wireless signal of the working channel, can exit Loop body terminates poll, and most newly-installed channel number is signified before being therefrom maintained at the current operating channel of smart machine To channel, realize maintenance to current operating channel.
Due in polling procedure, preferentially to the highest channel number of frequency of use in region representated by purpose geographical location into Row is listened to, and therefore, smart machine has higher probability to listen to target network frame by working channel pointed by the channel number, When failing to listen to target network frame, just continue the channel number of time high frequency of use, and so on, until all channel number institutes When corresponding channel is listened discovery target network frame not yet, just failure is listened in declaration.Due to general control of intelligent terminal its Working channel is usually consistent with the WiFi AP of surrounding, and therefore, smart machine has higher probability quickly to listen to target network Network frame, to more quickly be interacted with control of intelligent terminal, WiFi AP etc..
The target network frame, either refer to IEEE 802.11 standardize Beacon control frame (beacon frame), Probe Request frame (when seeking the smart machine in access point mode), even ACK frame etc., are also possible to by intelligently setting Such as multicast packet frame or other types of net that the standby agreement abided by jointly with sender's such as control of intelligent terminal is standardized Network frame can mutually arrange a target network frame, be sent out by sender as long as smart machine and sender abide by same agreement jointly The target network frame out, and it is identified by smart machine.
For example, especially in the case where smart machine does not access network, sender will be used to connect in a kind of embodiment Enter the configuration information of target network, specific includes the service set and its password of target network, is encoded into multiple multicasts In the destination address domain of data frame, the frame ontology domain of the multicast packet then encapsulates UDP message packet, and (similarly also available broadcast frame is sealed Fill UDP message packet), low 23 bits in the destination address domain of one of multicast packet frame are set to full 0 or other specific Content, in this, as target network frame.These multicast packet frames are transmitted several times sender, smart machine certain channel according to The agreement that sender abides by listens to after the target network frame, that is, knows that the channel is required channel, can then exit Poll and maintain current operating channel.
The working cell 23, for continuing to network frame by current operating channel to obtain external data.
Current operating channel is maintained, that is, shows to continue to operate in the channel to receive external data, outside these The configuration information of portion's data service set (SSID) and password for example above-mentioned for being loaded with target network, these external datas It is to be expressed with the format of network frame, and with wireless signal transmission, smart machine obtains these wireless signals, parses network Frame can restore the configuration information.
However, should not be construed as limiting the invention in relation to the example for receiving the configuration information, outside of the invention Data also can refer to the data of such as picture, file, audio, video etc, and can also be can not carry out Visualization but can Cause smart machine to execute some control instructions of a subsequent action, or even can also include other all multi-form data. For the present invention, restoring external data is external form, is continued to by current operating channel described for restoring The network frame of external data, Fang Shiqi technology essence are wanted.
Adapt to it is above-mentioned about smart machine receive configuration information example, smart machine receive related multicast data frame it Afterwards, it can star just like login unit 24 disclosed in embodiment shown in Figure 14, using the login unit 24 from multicast number According to corresponding configuration information is parsed in frame, obtains SSID and password therein and carry out own net setting, after being provided with The process of target network specified by starting access SSID, completes the access target network.
Further, embodiment shown in Figure 14 is please referred to, smart machine can provide its institute to the cloud server Locate geographical location information and its working channel number, therefore, can realize it by one uploading unit 25 of starting, In uploading unit 25, smart machine obtains the geographical location information being presently in by the alignment sensor of itself, and reads The geographical location information and the channel number are covered in remote request, pass through remote interface by the channel number of current operating channel It is uploaded to the cloud server, so that cloud server does big data processing, is formulated to continuously improve cloud server Allocation plan.
It is deposited in addition, user can even directly read according to subjective desire and modify the local for being pre-stored in smart machine The content of allocation plan in storage media, so that channel number therein sequence meets the subjective setting of itself, so as to allow use The signal covering details in family space according to locating for smart machine carry out finer and smoother artificial optimization's operation.
As can be seen that optimizing the allocation plan of channel number sequence by obtaining, and the channel number according to allocation plan is suitable Sequence listens to each working channel, and smart machine can be made to more quickly determine target operation channel, to more effectively ensure intelligence The communication of equipment and exterior terminal.
One implements in the scene using the solution of the present invention, and user starts smart machine of the invention, which sets It is standby that the allocation plan for reading factory in equipment and prestoring is stored from it, working channel is carried out according to the channel number sequence in allocation plan Poll, to receive the configuration information for being used to access target network that user is sent by mobile phone terminal with multicast packet frame format, Smart machine completes the locking of itself working channel with N milliseconds of the first duration, then, recycles the configuration information solution The SSID and password of target network is precipitated, after configuring own net setting with this, accesses the target network, and automatically and cloud Server is held to establish long connection.
During networking, smart machine timing or requirement that is random or answering cloud server are passed by the positioning of itself Sensor obtains the geographical location information being presently in, and the geographical location information and current operating channel number are packaged into data packet hair Give the cloud server.
During networking, periodically or sporadically, which obtains current location information by its alignment sensor Afterwards, current geographic position channel is packaged into remote request, is sent to the cloud server, cloud server is according to wherein Geographical location information, formulate corresponding allocation plan, be pushed to smart machine reception.Smart machine receives the allocation plan Afterwards, the allocation plan that local storage medium prestores before being replaced.Similarly, smart machine may be based on itself and cloud server Between long connection maintenance and passively obtain the allocation plan and be updated.
After smart machine has updated the allocation plan, when being activated next time, the updated configuration is read Scheme, and working channel is carried out with the channel number sequence in the allocation plan and is listened to, it is complete with the second duration for being significantly less than N milliseconds At the locking of working channel, and more, the target network of configuration has been preset in promptly access, or more promptly receives hand The configuration information of machine terminal transmission simultaneously accesses the target network more quickly.
In conclusion the present invention, which based on the allocation plan for orderly characterizing channel number, provides, is easy to implement work letter The customized prioritization scheme of road quick lock in, so that the wireless communications efficiency of smart machine is improved.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (38)

1. a kind of channel arrangement method, which comprises the steps of:
Receive the remote request comprising geographical location information;
Determine that allocation plan corresponding with the geographical location information that remote request is included, the allocation plan include according to channel Number recommendation according to several channel numbers for orderly characterizing;
The allocation plan is pushed in response to the remote request, so as to send the smart machine of the remote request described in the acquisition It after allocation plan, is polled according to the sequence that channel number is characterized, and by current operating channel number to set the sequence right The channel number answered terminates poll when listening to target network frame by current operating channel to maintain current operating channel.
2. the method according to claim 1, wherein according to having prestored between channel number and geographical location information The database of mapping relations data determines the recommendation foundation.
3. according to the method described in claim 2, it is characterized in that, determining that the process of the allocation plan specifically includes following step It is rapid:
Call the statistical result collection of the database;
It is concentrated from the statistical result and determines all channel numbers for corresponding to the geographical location information that remote request is included and each letter The frequency of use of Taoist monastic name;
It is that the recommendation formulates the allocation plan according to all channel numbers are orderly characterized with the frequency of use.
4. according to the method described in claim 3, it is characterized in that, the generating process of the statistical result collection includes following specific Step:
The database is inquired, determines several data records corresponding with geographical location information;
Using geographical location information as sorting field, Classifying Sum is carried out to channel number, is sought corresponding to same geographical location information Each channel number frequency of use;
It is record unit with each channel number of each geographical location information, by geographical location information, channel number and accordingly using frequency Rate relevance is stored to construct the statistical result collection.
5. according to the method described in claim 4, it is characterized in that, the generating process of the statistical result collection is periodically called simultaneously Operation is to regularly update the statistical result collection.
6. according to the method described in claim 5, it is characterized in that, after completing the update of the statistical result collection every time, for still The remote request side of long link is maintained to redefine allocation plan and push it.
7. according to the method described in claim 3, it is characterized in that, the statistical result collection is stored in forever with database form Long or in temporary storage medium.
8. the method according to claim 1, wherein further including following steps:
Channel number is acquired by remote interface and occupies the geographical location information where the equipment of the channel number, for determining institute The recommendation foundation for the channel number stated.
9. the method according to claim 1, wherein channel number collected and its corresponding geographical location information The database for determining the recommendation foundation of the channel number is stored by the corresponding relationship of the rwo.
10. the method according to claim 1, wherein the geographical location information is given with administrative region title Expression.
11. the method according to claim 1, wherein the channel number totally 14, respectively with natural serial number 1 to 14 are expressed.
12. a kind of cloud server, characterized in that it comprises:
Receiving unit, for receiving the remote request comprising geographical location information;
Configuration unit, for determining allocation plan corresponding with the geographical location information that remote request is included, the configuration side Case includes the recommendation according to channel number according to several channel numbers orderly characterized;
Push unit, for pushing the allocation plan in response to the remote request, so as to send the intelligence of the remote request Equipment is polled after obtaining the allocation plan according to the sequence that channel number is characterized, and by current operating channel number It is set as the corresponding channel number of the sequence, terminates poll when listening to target network frame by current operating channel to maintain to work as Preceding working channel.
13. cloud server according to claim 12, which is characterized in that the configuration unit is configured as foundation and prestores The database of mapping relations data between channel number and geographical location information determines the recommendation foundation.
14. cloud server according to claim 12, which is characterized in that the configuration unit includes:
Call result module, for calling the statistical result collection of database;
Frequency determining module, for concentrating the geographical location information for determining and corresponding to remote request and being included from the statistical result The frequency of use of all channel numbers and each channel number;
Solution formulation module, for formulating institute according to all channel numbers are orderly characterized for the recommendation with the frequency of use The allocation plan stated.
15. cloud server according to claim 14, which is characterized in that further include for generating the statistical result collection Statistic unit, which includes:
Enquiry module determines several data records corresponding with geographical location information for inquiring the database;
Summarizing module seeks same geographical position for carrying out Classifying Sum to channel number using geographical location information as sorting field The frequency of use of the corresponding each channel number of confidence breath;
Constructing module, for each channel number of each geographical location information be record unit, by geographical location information, channel number and Corresponding frequency of use relevance storage is to construct the statistical result collection.
16. cloud server according to claim 15, which is characterized in that the statistic unit periodic operation is with periodically more The new statistical result collection.
17. cloud server according to claim 16, which is characterized in that the statistic unit completes the statistics knot every time After the update of fruit collection, the configuration unit is that the remote request side of long link is still maintained to redefine allocation plan, is passed to The push unit pushes it.
18. cloud server according to claim 14, which is characterized in that the statistical result collection is by with database form It is stored in permanently or temporarily storage medium.
19. cloud server according to claim 12, which is characterized in that further include acquisition unit, be configured as passing through Remote interface acquires channel number and occupies the geographical location information where the equipment of the channel number, for determining the channel Number recommendation foundation.
20. cloud server according to claim 19, which is characterized in that the acquisition unit is configured as to be acquired Channel number and its corresponding geographical location information be stored by the corresponding relationship of the rwo for determining the channel number Recommend the database of foundation.
21. cloud server according to claim 12, which is characterized in that the geographical location information is with administrative area domain name Title is expressed.
22. cloud server according to claim 12, which is characterized in that the channel number totally 14, respectively with nature Serial number 1 to 14 is expressed.
23. a kind of channel selection method, which comprises the steps of:
Obtain the allocation plan of several channel numbers comprising orderly characterizing;
It is polled according to the sequence that channel number is characterized, sets the corresponding channel number of the sequence for current operating channel number, Poll is terminated when listening to target network frame by current operating channel to maintain current operating channel;
Network frame is continued to by current operating channel to obtain external data;
Wherein, the acquisition process of the allocation plan comprises the following specific steps that:
Obtain current geographical location information;
The remote request comprising the geographical location information is submitted by remote interface;
It receives in response to the remote request and includes the configuration of several channel numbers orderly characterized by what remote interface was fed back Scheme.
24. according to the method for claim 23, which is characterized in that obtain the configuration side from local storage medium Case.
25. according to the method for claim 23, which is characterized in that the network frame is the network for defining specific content Frame.
26. according to the method for claim 23, which is characterized in that the network frame includes udp broadcast or multicast packet.
27. according to the method for claim 23, which is characterized in that the network frame is standardized by IEEE802.11 agreement Data frame.
28. according to the method for claim 23, which is characterized in that the external data is for accessing matching for target network Confidence breath.
29. according to the method for claim 25, which is characterized in that further include following steps: being matched using the configuration information It sets the network settings of itself and accesses the target network.
30. according to the method for claim 23, which is characterized in that further include following steps: being worked as by remote interface upload The channel number of preceding geographical location information and current operating channel.
31. a kind of smart machine characterized by comprising
Acquiring unit, for obtaining the allocation plan of several channel numbers comprising orderly characterizing;
Unit is listened to, the sequence for being characterized according to channel number is polled, and sets the sequence for current operating channel number Corresponding channel number terminates poll when listening to target network frame by current operating channel to maintain current operating channel;
Working cell, for continuing to network frame by current operating channel to obtain external data;
Wherein, the acquiring unit includes:
Position acquisition module, for obtaining current geographical location information;
Information submits module, submits the remote request comprising the geographical location information by remote interface;
Solution receiving module receives the allocation plan fed back in response to the remote request by remote interface.
32. smart machine according to claim 31, which is characterized in that the allocation plan, which is stored in, is locally stored Jie In matter.
33. smart machine according to claim 31, which is characterized in that the network frame is the net for defining specific content Network frame.
34. smart machine according to claim 31, which is characterized in that the network frame includes udp broadcast or multicast number According to packet.
35. smart machine according to claim 31, which is characterized in that the network frame is 802.11 agreement institute of IEEE The data frame of specification.
36. smart machine according to claim 31, which is characterized in that the external data is for accessing target network Configuration information.
37. smart machine according to claim 36, which is characterized in that further include logging in unit, be configured as utilizing institute Configuration information is stated to configure the network settings of itself and access the target network.
38. smart machine according to claim 31, which is characterized in that further include uploading unit, be configured as by remote Journey interface uploads the channel number of current geographic position information and current operating channel.
CN201510391303.5A 2015-07-06 2015-07-06 Channel configuration, method for selecting and its corresponding cloud server and smart machine Active CN105072630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510391303.5A CN105072630B (en) 2015-07-06 2015-07-06 Channel configuration, method for selecting and its corresponding cloud server and smart machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510391303.5A CN105072630B (en) 2015-07-06 2015-07-06 Channel configuration, method for selecting and its corresponding cloud server and smart machine

Publications (2)

Publication Number Publication Date
CN105072630A CN105072630A (en) 2015-11-18
CN105072630B true CN105072630B (en) 2019-08-16

Family

ID=54501881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510391303.5A Active CN105072630B (en) 2015-07-06 2015-07-06 Channel configuration, method for selecting and its corresponding cloud server and smart machine

Country Status (1)

Country Link
CN (1) CN105072630B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106571986B (en) * 2016-10-09 2021-01-26 美的智慧家居科技有限公司 Network distribution method and system of household appliance, household appliance and router
CN112054862B (en) * 2020-07-30 2021-05-07 深圳市中盛瑞达科技有限公司 Network management method and system based on container cloud platform

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103238361A (en) * 2010-10-12 2013-08-07 交互数字专利控股公司 Service-based approach to channel selection and network configuration for television white space networks

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7164920B2 (en) * 2003-03-28 2007-01-16 Kyocera Wireless Corp. System and method for selecting communications coverage network information in a wireless communications device
KR101284613B1 (en) * 2006-11-23 2013-07-11 엘지전자 주식회사 Method for outputting channel list and system enabling of the method
CN101277278B (en) * 2008-05-21 2010-12-15 清华大学 Wireless channel prediction technique aiming at railcar traffic
AU2010350801B2 (en) * 2010-04-07 2013-10-03 Lg Electronics Inc. Method and apparatus for transmitting and receiving a white space map information in a wireless local area network system
CN102740478B (en) * 2012-07-04 2015-04-22 航天恒星科技有限公司 Position information assisted satellite channel allocation method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103238361A (en) * 2010-10-12 2013-08-07 交互数字专利控股公司 Service-based approach to channel selection and network configuration for television white space networks

Also Published As

Publication number Publication date
CN105072630A (en) 2015-11-18

Similar Documents

Publication Publication Date Title
US9912594B2 (en) Probabilistic message filtering and grouping
US8670374B2 (en) Wireless mesh network with dynamic back off and method of operation
US8665784B2 (en) Web based smart sensor network tracking and monitoring system
CA2783145C (en) Wireless mesh network and method for remote seismic recording
US20150138977A1 (en) Terse message networks
CN101147380B (en) Method and apparatus for efficiently expanding a P2P network
Silva et al. Web based water quality monitoring with sensor network: Employing ZigBee and WiMax technologies
CN102457933A (en) Wireless network device, wireless network system and routing control method
CN108445909A (en) A kind of unmanned aerial vehicle control system
CN105072630B (en) Channel configuration, method for selecting and its corresponding cloud server and smart machine
JP3464172B2 (en) Transmission device and transmission method, reception device and reception method, and transmission / reception system and transmission / reception method
CN103281206A (en) System, method and device for determining connected relation
CN103248678A (en) Data resource sharing method, server-side and client-side
Ćulibrk et al. Sensing technologies for precision irrigation
Förster et al. A beginner's guide to infrastructure‐less networking concepts
JP2001016295A (en) Transmitter and transmission method, receiver and reception method, and transmission reception system and transmission reception method
Goh et al. Energy efficient routing for wireless sensor networks with grid topology
Husker et al. Wilson: The wirelessly linked seismological network and its application in the middle american subduction experiment
Tran et al. Mobile agents assisted data collection in wireless sensor networks utilizing ZigBee technology
CN103002017B (en) A kind of method of Gains resources, equipment and system
Kucuk et al. A smart antenna module using omnet++ for wireless sensor network simulation
Salatas Object tracking using wireless sensor networks
Villegas et al. Wireless sensor network communication architecture for wide-area large scale soil moisture estimation and wetlands monitoring
US9178604B2 (en) Last mile data delivery systems and methods
Chen Implementing Efficient and Multi-Hop Image Acquisition in Remote Monitoring IoT Systems Using LoRa Technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220728

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right