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 control of intelligent terminal and its is adopted
Smart machine networking control method, to exempt from connection control smart machine access target network by the realization of multicast packet frame
Network.
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
Networking cut-in method makes smart machine obtain configuration using multicast packet frame under the premise of exempting from connection to echo previous purpose
Information and according to access target network.
In order to realize that the first object of the present invention, the present invention adopt the following technical scheme that:
A kind of smart machine networking control method provided by the invention comprising following steps:
Display user interface is used to obtain the configuration information for making the smart machine access target network;
The configuration information is encoded in multiple multicast packet frames two editables possessed by each multicast packet frame
Domain;
The wireless transmission multicast packet frame, to start the networked deployment to smart machine;
The control operation interface for interacting with the smart machine is provided for the smart machine after networking.
Specifically, the configuration information includes the service set and password of target network.
Further, the cataloged procedure of the configuration information comprises the following specific steps that:
The corresponding coded sequence of the configuration information is separated into multiple sequences, defines each sequence and the table for its distribution
The respective index string for levying indexed sequential is coding unit;
Reference frame is constructed based on multicast packet frame format, initializes two editable field of the reference frame to determine benchmark;
Based on multicast packet frame format tectonic information frame, each coding unit is divided into two parts content and is expressed in respectively pair
In two editable field of the information frame answered.
Preferably, the configuration information is encrypted to ciphertext with prestored secret key and is converted to the coded sequence.
Specifically, the editable field of the multicast packet frame includes destination address domain and frame ontology domain.
Preferably, information frame made of each construction, destination address domain is expressed in the first part of the coding unit
Hold, the difference of the frame length of frame length and the reference frame expresses the rest part content of the coding unit, the frame length
Degree is uniquely decided by the frame ontology domain of its affiliated multicast packet frame.
Disclosed according to one embodiment of present invention, the sequence includes being concatenated to be expressed in affiliated information with index
The in the first subcode string in the destination address domain of frame, and the frame length difference of information frame and the reference frame belonging to being expressed in
Two subcode strings.
Disclosed according to one embodiment of present invention, the index string includes being concatenated to be expressed in affiliated information with sequence
The first subindex string in the destination address domain of frame, and be expressed in the frame length difference of affiliated information frame and the reference frame
Second subindex string.
Preferably, the rest part content of the coding unit is presented as the binary format of the frame length difference.
Specifically, destination address domain provides codified bit area for expressing institute in the editable field of the information frame
Coding unit is stated, which is arranged close to the low level of the real bytes length in destination address domain and is no more than 23.
Preferably, the destination address domain of the reference frame provides codified bit area, each ratio in the codified bit area
Spy is set to 0 or 1.
Preferably, the frame length of different information interframe changes the length in the frame ontology domain that equal uniqueness is decided by each information frame
Degree.
Further, in the step of sending the multicast packet frame, the same multicast packet frame is transmitted several times.
Preferably, the multicast packet frame is standardized by 802.11 agreement of IEEE.
The connection status of the machine Yu the target network is maintained when preferably, executing this method.
A kind of control of intelligent terminal provided by the invention comprising:
Acquiring unit, for show user interface for obtains make smart machine access target network match confidence
Breath;
Processing unit is had for the configuration information to be encoded to each multicast packet frame in multiple multicast packet frames
Two editable field;
Signal transmission unit, for transmitting wirelessly the multicast packet frame, to start the networked deployment to smart machine;
Operating unit operates boundary for providing the control for interacting with the smart machine for the smart machine after networking
Face.
Specifically, the configuration information includes the service set and password of target network.
Further, the processing unit includes:
Split cells is encoded, for the corresponding coded sequence of the configuration information to be separated into multiple sequences, definition is each
Sequence and the respective index string of the characterization indexed sequential for its distribution are coding unit;
Reference frame structural unit is configured as constructing reference frame based on multicast packet frame format, initializes the reference frame
Two editable field are to determine benchmark;
Information frame structural unit is configured as based on multicast packet frame format tectonic information frame, by each coding unit point
It is expressed in respectively at two parts content in two editable field of a corresponding information frame.
Preferably, the configuration information is encrypted to ciphertext with prestored secret key and is converted to the coded sequence.
Specifically, the editable field of the multicast packet frame includes destination address domain and frame ontology domain.
Preferably, information frame made of each construction, destination address domain is expressed in the first part of the coding unit
Hold, the difference of the frame length of frame length and the reference frame expresses the rest part content of the coding unit, the frame length
Degree is uniquely decided by the frame ontology domain of its affiliated multicast packet frame.
Disclosed according to one embodiment of present invention, the sequence includes being concatenated to be expressed in affiliated information with index
The in the first subcode string in the destination address domain of frame, and the frame length difference of information frame and the reference frame belonging to being expressed in
Two subcode strings.
Disclosed according to one embodiment of present invention, the index string includes being concatenated to be expressed in affiliated information with sequence
The first subindex string in the destination address domain of frame, and be expressed in the frame length difference of affiliated information frame and the reference frame
Second subindex string.
Preferably, the rest part content of the coding unit is the binary format of the frame length difference.
Specifically, destination address domain provides codified bit area for expressing institute in the editable field of the information frame
Coding unit is stated, which is arranged close to the low level of the real bytes length in destination address domain and is no more than 23.
Preferably, the destination address domain of the reference frame has codified bit area, each ratio in the codified bit area
Spy is set to 0 or 1.
Specifically, the frame length of different information interframe changes the length in the frame ontology domain that equal uniqueness is decided by each information frame
Degree.
Further, the signal transmission unit is configured as the same multicast packet frame being transmitted several times.
Preferably, the multicast packet frame is standardized by 802.11 agreement of IEEE.
Preferably, the control of intelligent terminal and the target network are in connection status.
To adapt to the second object of the present invention, the present invention is adopted the following technical scheme that:
A kind of networking cut-in method provided by the invention, includes the following steps:
Receive the multicast packet frame for being loaded with the configuration information for accessing target network;
The configuration information is extracted from two editable field possessed by the multicast packet frame;
Configuration, which is executed, with the configuration information completes the access target network.
Further, the step of receiving the multicast packet frame for being loaded with the configuration information for accessing target network includes as follows
Specific steps:
Receiving multicast data frame;
Judge whether comprising specific content in the editable field of the multicast packet frame, by the multicast packet with specific content
Frame is determined as reference frame;
Other multicast packet frames for not including specific content are determined as information frame.
Further, the step of configuration information is extracted from two editable field possessed by the multicast packet frame
It comprises the following specific steps that:
Sequence is extracted from two editable field of each multicast packet frame for being confirmed as information frame and characterizes the code
The index string of string to put in order constitutes coding unit;
According to the characterized sequence of the index string in each coding unit, the sequence of all coding units is sequentially spliced into
Coded sequence;
Coded sequence is reduced to the configuration information.
Specifically, two editable field of the information frame are respectively destination address domain and frame ontology domain, from information frame
First part's content of corresponding coding unit is extracted in editable bit area possessed by destination address domain, with the frame of information frame
Length determines the remainder content of the coding unit relative to the difference of the frame length of the reference frame.
Preferably, editable bit area possessed by the destination address domain of the information frame is low the 23 of the destination address domain
Position.
Preferably, low 23 of the destination address domain of the reference frame are editable bit area, everybody value is set to
Full 0 or complete 1.
Preferably, the frame length of the reference frame be less than received information frame frame length.
Specifically, the frame length variation uniqueness of received different information interframe be associated with the frame ontology domain in information frame
Length.
Preferably, the sequence of coding unit corresponding to each information frame is made of the first subcode string and the second subcode string,
The destination address domain of the information frame is used for the index string expressing the first subcode string and being distributed for the sequence, the information frame
Difference between frame length and the frame length of the reference frame is for expressing the second subcode string.
Further, the step of coded sequence being reduced to the configuration information comprises the following specific steps that:
It is ciphertext by the coded sequence corresponding conversion;
The ciphertext is decrypted with prestored secret key, obtains formatted information string;
The formatted information string is parsed, the configuration information is obtained.
Specifically, the configuration information includes service set and the corresponding password of the target network.
Preferably, the multicast packet frame meets the specification of 802.11 agreement of IEEE.
A kind of smart machine provided by the invention comprising:
Receiving unit, for receiving the multicast packet frame for being loaded with the configuration information for accessing target network;
Extraction unit, for matching confidence described in the extraction from two editable field possessed by the multicast packet frame
Breath;
Access unit completes the access target network for executing configuration with the configuration information.
Further, the receiving unit is configured as executing following function:
Receiving multicast data frame;
Judge whether comprising specific content in the editable field of the multicast packet frame, by the multicast packet with specific content
Frame is determined as reference frame;
Other multicast packet frames for not including specific content are determined as information frame.
Further, the extraction unit includes:
Extraction module, for extracting code from two editable field of each multicast packet frame for being confirmed as information frame
The index string to put in order for going here and there and characterizing the sequence constitutes coding unit;
Splicing module, for the sequence characterized according to the index string in each coding unit, by all coding units
Sequence is sequentially spliced into coded sequence;
Recovery module, for coded sequence to be reduced to the configuration information.
Specifically, two editable field of the information frame are respectively destination address domain and frame ontology domain, the extraction mould
Block is configured as: the first of corresponding coding unit is extracted in editable bit area possessed by the destination address domain from information frame
Partial content determines the remainder of the coding unit with the frame length of information frame relative to the difference of the frame length of the reference frame
Divide content.
Preferably, editable bit area possessed by the destination address domain of the information frame is low the 23 of the destination address domain
Position.
Preferably, low 23 of the destination address domain of the reference frame are editable bit area, everybody value is set to
Full 0 or complete 1.
Specifically, the frame length of the reference frame be less than received information frame frame length.
Specifically, the receiving unit the frame length variation uniqueness of received different information interframe be associated with information frame
Interior frame ontology length of field.
Preferably, the sequence of coding unit corresponding to each information frame is made of the first subcode string and the second subcode string,
The destination address domain of the information frame is used for the index string expressing the first subcode string and being distributed for the sequence, the information frame
Difference between frame length and the frame length of the reference frame is for expressing the second subcode string.
Further, the recovery module includes:
Transform subblock, for being ciphertext by the coded sequence corresponding conversion;
Submodule is decrypted, for decrypting the ciphertext with prestored secret key, obtains formatted information string;
Analyzing sub-module obtains the configuration information for parsing the formatted information string.
Specifically, the configuration information includes service set and the corresponding password of the target network.
Preferably, the multicast packet frame meets the specification of 802.11 agreement of IEEE.
Compared with prior art, the solution of the invention has the following advantages:
1, the present invention with multicast packet frame be basic material, using destination address domain therein and by adjusting frame ontology domain
Length and determine the frame length difference between different frame, using the editable content of the two editable field as carrier, will be used to connect
Enter target network the corresponding coded sequence of configuration information be processed into multiple coding units containing indexed sequential after, by each volume
Code unit is loaded into destination address domain and each information frame and the reference frame for the multiple information frames realized using multicast packet frame
In frame length difference, the technical conditions for loading configuration information using multicast packet frame and carrying out multicast are realized, due to multicast number
Be not necessarily dependent between control of intelligent terminal (transmitting terminal) and smart machine (receiving end) according to the transmission of frame establish it is direct-connected, without
Same routing device is accessed, so, transmitting terminal can be carrier to aerial radiation wireless signal using multicast packet frame, with to connecing
Receiver-side transmission configuration information controls the smart machine access target network whereby.It is corresponding, it is received accordingly in receiving end
After reference frame and information frame, using reverse principle, using reference frame as reference, from the destination address domains of multiple relevant information frames and
The multiple coding units for corresponding to configuration information, each information are extracted in frame length difference between those information frames and reference frame
Frame can extract a coding unit, and multiple coding units are assembled according to indexed sequential contained by it, are reduced into described
Coded sequence, then coded sequence is reduced into the configuration information, then configures itself using the configuration information,
It can be performed and complete to access the target network provided by the configuration information.
2, the characteristic based on multicast packet frame, control of intelligent terminal can destination address domain carry out offices to multicast packet frame
Portion's control, can also be extended the length in frame ontology domain, this of multicast packet frame structure is dexterously utilized in the present invention
Its destination address domain is not only utilized when carrying out data transmission using multicast packet frame in characteristic, but also its frame ontology is utilized
Difference between length between length of field and the frame ontology domain of reference frame extends the content that each multicast packet frame can express
Length, therefore the information representation ability of multicast packet frame is just greatly enhanced.
It 3, can be in the feelings for exempting to connect with smart machine by realizing encoding scheme of the invention in control of intelligent terminal
Under condition, the control for starting access target network to smart machine is realized;Similarly, for smart machine, without with intelligence
In the case that controlling terminal connects, the configuration information for accessing target network can be obtained by multicast packet frame, is parsed
Configuration information therein configures itself and makes itself to access target 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.
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.
The present invention is the series of network access technology solution proposed for the development in response to Internet of Things, applied field
Scape is more suitable for the smart machine and control of intelligent terminal realized with WiFi technology, theoretically should be with operating system without necessarily closing
Connection.Based on this, the present invention has not only been the control of intelligent terminal of similar mobile phone of central control action etc on the one hand
Encoding mechanism is provided, provides automation access guide to access target network for other smart machines, intelligent terminal, and
And on the other hand, or independently of other intelligence except the control of intelligent terminal for playing central control action
Equipment, intelligent terminal provide decoding mechanism, to realize the controlled access target network of such smart machine.
Further, the present invention in, using multicast packet frame be technology realize carrier, to coding and decoding both sides technology into
Row discloses in detail, makes those skilled in the art that can exempt to realize it through creative thinking according to this specification.For convenient for this field
The understanding of technical staff, the present invention provides two kinds of corresponding methods, one is a kind of smart machine networking control method, at this
The load and transmission to the configuration information for accessing target network are realized by coding in method, and accessed by a kind of networking
Method is decoded to extract the configuration information for being communicated through and.Realize that configuration information is sent to from being encoded to such system
Receive the overall process so that decoded back.
Since method of the invention is related to the utilization to multicast packet frame, receive the specification of 802.11 agreements, therefore, having must
The rudimentary knowledge for the physical frame (mac frame) that 802.11 agreements are standardized is understood in advance.
Table 1:802.11 protocol suite mac frame structure (first trip unit is Bytes byte):
Do corresponding explanation in each domain being related to below for table 1:
Frame Control, frame control domain;
Duration/ID, the duration/mark, show the frame and it acknowledgement frame will busy channel how long;It is right
In frame control domain subtype are as follows: the frame of Power Save-Poll, the domain representation connection identity of STA (AID,
Association Indentification)
Address Fields (1-4): for address field, including 4 addresses (source address, destination address, sender address and
Recipient address), depending on To DS and From DS in frame control field.
Seq Ctrl, i.e. Sequence Control-are sequence control domain, for filtering repeating frame.
Frame Body: frame ontology domain or data field, the information for indicating to send or receive.
Check Sum: verification domain, including 32 cyclic redundancy check (CRC).
Table 2: frame controls (Frame Control) structure (first trip unit is bit (position)):
| 2 |
2 |
4 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
| Version |
Type |
Subtype |
To DS |
From DS |
MF |
Retry |
Pwr |
More |
W |
O |
The each field being related to below for table 2 does corresponding explanation:
Protocol Version -802.11 standard of expression IEEE version.
Type-expression frame type: including classes such as management, control and data.
Subtype-expression frame subtype, such as: authentication frame (Authentication Frame), releases authentication frame
(Deauthentication Frame), association request frame (Association Request Frame), connection response frame
(Association Response Frame), claim frame (Reassociation Request Frame), again is reconnected
Connection response frame (Reassociation Response Frame) releases connection frame (Disassociation Frame), beacon
Frame (Beacon Frame), Probe frame (Probe Frame), Probe claim frame (Probe Request Frame) or Probe
Response frame (Probe Response Frame).
For To DS-when frame is sent to Distribution System (DS), which is set as 1.
For From DS-when frame receives at Distribution System (DS), which is set as 1.
MF-More Fragment indicates that the value is set as 1 when there is more segmentations to belong to same number of frames.
Retry-indicates that the segmentation is the repeating transmission frame of precedent transmission segmentation.
Pwr-Power Management, after indicating transmission frame, powder source management mode used by standing.
More-More Data, indicates that many frame buffers are arrived at a station.
W-WEP, expression encrypt frame main body according to WEP (Wired Equivalent Privacy) algorithm.
O-Order 1 indicates that recipient should be in strict accordance with the sequential processes frame.
According to the explanation of table 2 it is found that can determine the destination address of multicast packet frame by From DS and To DS field
Domain position.Refering to table 3:
Table 3: the usage of address field in a data frame:
| Function |
To DS |
From DS |
Address1 (receiving end) |
Address2 (transmitting terminal) |
Address3 |
Address4 |
| IBSS |
0 |
0 |
DA |
SA |
BSSID |
It is not used |
| To AP (foundation structure type) |
1 |
0 |
BSSID |
SA |
DA |
It is not used |
| From AP (foundation structure type) |
0 |
1 |
DA |
BSSID |
SA |
It is not used |
| WDS (wireless distribution system) |
1 |
1 |
RA |
TA |
DA |
SA |
Those skilled in the art should know IP address space is divided into A, B, C three classes.Four classes, that is, D class address quilt
Reservation is used as multicast address.In the IP agreement (IPv4) of fourth edition, from 224.0.0.0 to 239.255.255.255 between institute
There is IP address to belong to D class address.
Most importantly the 24th this four to 27 interdigits in multicast address, corresponding to the decimal system is 224 to 239,
Its 28 reservation is used as the group mark of multicast, as shown in Figure 1.
The multicast address of IPv4 will be converted into network physical address in network layer.To the network address of a unicast, pass through
The available physical address corresponding with IP address of ARP protocol.But ARP protocol is unable to complete similar functions under multicast mode,
It must handy other methods acquisition physical address.It is proposed in the RFC document being listed below and completes this conversion process
Method:
RFC1112:Multicast IPv4 to Ethernet physical address correspondence
RFC1390:Correspondence to FDDI
RFC1469:Correspondence to Token-Ring networks
Within the scope of maximum ethernet address, conversion process is such that most fixed by first 24 of ethernet address
For 01:00:5E, this several are important flag bit.Back to back one is fixed as 0, and other 23 in IPv4 multicast address
Low 23 fill.The conversion process is as shown in Figure 2.For example, multicast address is that 224.0.0.5 its Ethernet hardware address is
01:00:5E:00:00:05.As can be seen that 23 low (can also be less) of object here address field can be used as editable
Bit area, for load information.
In addition, frame ontology domain, i.e. Frame Body, the length of this partial content is variable, and the content specifically stored is by frame
Type (type) and subtype (sub type) determine.
As can be seen that the destination address domain and frame ontology domain in multicast packet frame are two editable field, transmitting terminal can
Editable bit area i.e. its low 23 content and the length in control frame ontology domain in destination address domain is arranged.
When smart machine is not connected with WiFi access point, WiFi chip is the radiofrequency signal that can be detected in space
And identify mac frame, but equipment can not further parse frame knot because the certification by access point does not have key at this time
The data in frame ontology domain in structure, but due to the frame length in frame ontology domain it is found that the frame length to entire multicast packet frame can also
Know, therefore, this characteristic has no effect on the utilization of the frame length to multicast packet frame.So the present invention is by utilizing these words
Section, so that the letter that control of intelligent terminal is sent with multicast mode can be received smart machine is not in the case where networking
Breath.In fact, will also realize that according to the specification of 802.11 agreements, for a multicast packet frame, the length of entire frame is only
It is associated with and is decided by one property the length in frame ontology therein domain.
It can be seen that for multicast packet frame according to the knowledge of the disclosure above, the destination address domain in frame structure
And its variation of frame body length is used equally for load configuration information.The knowledge of the disclosure above is the base for understanding realization of the invention
Hereinafter the announcement to method of the invention will be unfolded based on above-mentioned knowledge in plinth.
A kind of smart machine networking control method provided by the invention, typically as active initiator, or as in
It entreats the visual angle of controlling party to be described, this method can be embodied as by computer program by programming and be mounted on similar hand
Machine, tablet computer or have intelligentized control of intelligent terminal in run, for example, operation Android, IOS, Windows
The mobile phone of Phone system or the APP (application program) that transmission method realization is utilized with installation in tablet computer, apply journey by this
Sequence executes the transmission method.
Referring to Fig. 3, in an exemplary embodiments of smart machine networking control method of the invention, it should be noted that
It is that this method is realized in control of intelligent terminal, and this method specifically comprises the following steps:
Step S11, display user interface is used to obtain the configuration information for making the smart machine access target network.
It, can be by system drive on mobile phone when the APP is run by taking the APP realized based on the present invention as an example
Hardware device utilized.It is well known that not only having WiFi mould group, display, control chip on mobile phone, also there is wheat
The components such as gram wind, loudspeaker, these components, which can pass through the APP, to be realized and calls.
By taking android system as an example, mobile phone calls first and shows a movable component (Activity), or display one
A page realized using HTML5, shows the user interface on the screen and the WiFi access-in point information that scans is (with services set
Mark SSID is enumerated), user's selected target network is requested, and user is required to input corresponding password, to obtain target network
SSID and password.
According to the agreement of WiFi agreement, those skilled in the art be could be aware that, configuration information generally includes WiFi without route
By the service set (SSID) and login password of (representing target network), may also need to include that login is close in some cases
The cipher mode of code, and login password can also be needed not be provided for open network.Although there are the things of version upgrading for WiFi agreement
It is real, but these are related to and realize access network and the configuration information of indispensability can be corresponding according to document of agreement by those skilled in the art
It determines, therefore, its details and its equivalent variations scheme is repeated here.
As details accommodation, after user has selected SSID, can be inquired to cloud server corresponding to the SSID
Password can save the step of requiring user to input target network password if password exists.
Step S12, the configuration information is encoded in multiple multicast packet frames two possessed by each multicast packet frame
A editable field.
It after obtaining the configuration information, needs to encode the configuration information, forms frame data.For this purpose, please join
Fig. 4 is read, realizes cataloged procedure according to following specific steps:
Step S121, the corresponding coded sequence of the configuration information is separated into multiple sequences, define each sequence with for
The respective index string of its characterization indexed sequential distributed is coding unit.
The configuration information, as previously mentioned, can be in an application scenarios comprising for providing WiFi access point
Service set (SSID) and its password information.Configuration information can be first by format before being replaced into corresponding coded sequence
Turn to character string information.Specifically, service set and the equal configuration information element of password, separated between information element with element
Symbol " | " is separated, and is separated between the mark and value of information element with attribute separator ": ".Such as service set be with
SSID indicates its mark, and password indicates that its mark, the value of SSID are MYWiFi with PSW, and the value of password is PLZLOGIN, to its into
The information content that formatting lines are formed are as follows:
SSID:MYWiFi|PSW:MYLOGIN。
The coded sequence is converted into binary system acquisition based on the above-mentioned format string of configuration information.In order to
Keep configuration information safer, first configuration information (above-mentioned character string) can be encrypted, forms ciphertext and be reconverted into later
The coded sequence.The mode of encryption is either public key encryption, is also possible to symmetric key encryption, as long as receiving end utilizes
Corresponding key (the same key in private key or symmetric cryptography in such as public key encryption) can decrypt.Either encrypt
Or disclosed state, after configuration information is resolved to binary code, it can be encoded, be adapted to be assigned to each
In multicast packet frame.
Firstly, the coded sequence of configuration information is separated into several sequences, each sequence constitute it is relatively independent and without letter
The a part for ceasing meaning, is expressed, such as occupy 20 bits with same length.Then, one is distributed for each sequence
Index string, this sequence similarly also use binary expression, occupy such as 6 bits, under the format of 6 bits, can be used for table
Up to 26Group sequence.It then, can according to the numerical values recited of index string for each sequence group unification index string
It is expressed with the proper sequence to the sequence, i.e., the sequence that coded sequence is isolated is matched accordingly by its serial connection sequence
The index string of size makes the index string can be used for expressing the indexed sequential of sequence corresponding thereto.It completes therefrom
The partition and sequence of entire coded sequence.Wherein, it is the convenience illustrated, each index string and sequence in combination is defined as
One coding unit, then configuration information is just separated into multiple coding units, and each coding unit is relatively independent, but between each other
It is ordered into.It should be noted that coding unit itself is a combined concept, rather than the concept that a sequence is fixed.In order to
Realize the utilization to multicast packet frame, the total length of coding unit is determining totally 26 bit, and the index string occupies therein
First length totally 6 bits, and remaining second length, 20 bit is then the total length of coding unit occupied by corresponding sequence
Exactly the sum of the first length and the second length.Obviously, all coding units total length all having the same.
The configuration information is separated into after multiple coding units, can carry out next code based on multicast packet frame.
Step S122, based on multicast packet frame format construct reference frame, initialize two editable field of the reference frame with
Determine benchmark.
The construction of the reference frame is more flexible, can be on the basis of multicast packet frame, according to aforementioned related multicast number
According to the announcement of the structure of frame, by the editable bit area in its destination address domain, i.e., its low 23 bit is all set to 0 or 1,
Or other specific bit sequences can also, and determine its frame ontology length be benchmark length.On this basis, as long as
Reference frame recipient can abide by specification of the invention, can according to identifying the reference frame to the coding principle of reference frame herein,
And the length is determined as fundamental length by the length that can determine the frame ontology domain.As equivalent replacement means, due to frame sheet
The length in body domain determines the length of entire reference frame, therefore, can also be directly using the total length of reference frame as benchmark length.The base
Standard length is less than the frame length of follow-up frame, to determine information coding by the difference between this frame length.Similarly,
As equivalent replacement means, the frame length of reference frame can also be made to be greater than the frame length of follow-up frame.
Step S123, it is based on multicast packet frame format tectonic information frame, each coding unit is divided into two parts content point
It is not expressed in two editable field of a corresponding information frame.
Due to the present invention relates to the utilization to information frame and the frame length difference of reference frame, it can the specification difference
The variation range of value keeps the variation range specific, and frame length difference between information frame and reference frame is made to maintain a specific model
It is temporarily embodiment with maximum value 8 within enclosing.In a computer, it can indicate that various differences are poor with 3 Binary Zero 00-111
Value, when its low 23 combination with foregoing purpose address field, just can constitute 26 abilities to express, wherein 6 position index string energy
64 groups of data are expressed, remaining 20 in every frame can then express the data volume of 2.5Bytes, and first encoding can meet
The expressive faculty of 160Bytes information content.
Similarly, the information frame is also to be constructed based on multicast packet frame.The mistake of the construction information frame
Journey is that each coding unit is respectively corresponded to the process for being encoded to an information frame.Each coding unit outlined below and letter
Cease the several ways of encoding relation between frame structure.
The first coding mode:
Sequence included by coding unit is divided into two parts, i.e. the first subcode string and the second subcode string, if the first son
Sequence is 17, and the second subcode string just occupies complete 3 of the difference.And concatenation should before the first subcode string of each sequence
Index string in coding unit, therefore, index string and the spliceosome of the first subcode string are just 23 bytes, are just equal to group
23 editable bit areas that multicast data frame provides, expression is wherein.And the second subcode string, it is assumed that be 010, represent the decimal system
Numerical value 2 then can be such that the frame length of information frame is greater than (in other embodiments by the length in the frame ontology domain of determining information frame
Be also possible to be less than) frame length (datum length) 2Bytes of reference frame and realize coding expression.Follow-up recipients utilize information
After the frame length of frame subtracts the account length of reference frame, 010 this second subcode string can be obtained.
Second of coding mode:
This coding mode the difference is that only that the object being split is in coding unit with former coding mode
Index is gone here and there rather than its sequence, due to that sequence overall length 20, it can be expressed in completely in the data of the example of above-mentioned offer
In the editable bit area of multicast packet frame, therefore, editable bit area can only be for 3 in expression index string in this case
Position, i.e. the first subindex string, and residue 3 i.e. the second subindex strings for indexing string can only the first referenced aforementioned coding mode
It is expressed in the frame length difference of the information frame described in it and the reference frame.
In the example of aforementioned two ways, 6 position index strings low with destination address domain with the length of 20 sequences 23 and frame
This Matching Relation between length difference 3 is preferred scheme, can either reinforce multicast packet frame expression letter as much as possible
The ability of breath, but caused by can reduce because of UDP message packet packet loss in transmission process information unsuccessful transmission risk.
The third coding mode:
Sequence in coding unit is simply directly expressed in the destination address domain of its affiliated information frame by this coding mode
In, such as low 20 of destination address domain are occupied, and index string is expressed in the frame of its affiliated information frame and the reference frame
In length difference.If indexing 6 that the length gone here and there is maintained precedent, the difference range of the frame length of information frame and reference frame
The range for the maximum value that corresponding 6 binary codes can express should be maintained.If reducing the digit of index string to 3, even if
The entire editable area that lengthened code string length makes it occupy destination address domain to 23 can only express 8 groups of numbers due to index string
According to, therefore its information representation ability is also to be weaker than precedent.
4th kind of coding mode:
Similarly with the third coding mode, the index string in coding unit simply can be expressed in its affiliated information frame
In destination address domain, such as low 23 of destination address domain are occupied, and information frame belonging to sequence is all expressed in and described
In the frame length angle value of reference frame, if the length of sequence is maintained 20 of precedent, the similarly frame length of information frame and reference frame
The difference range of degree should be maintained the range for the maximum value that corresponding 20 binary codes can express.If reducing the digit of sequence
To described 3 as in the previous example, then the information content of single sequence expression is relatively limited, and indexing string is 23, thus needs structure
Multiple multicast packet frames are made to transmit the same information, it can be seen that, aforementioned first and second kinds of coding modes better than third and
4th kind of coding mode.
By the announcement of above four kinds of coding modes, could be aware that, anyway, it is ultimately constructed made of information frame,
Editable bit area in one of two editable field, i.e. destination address domain, in particular to the domain will include volume described in one
First part's content of code unit, this partial content can be the whole or part of it subcode string of sequence, be also possible to index
The whole or part of it subindex string of string.And the frame length of the information frame, by its another editable field, that is, frame ontology domain
The adjustment of length, making its frame length with the reference frame, there are the difference in a particular range, the binary systems of this difference
Format just contains the remainder content not being encoded into the destination address domain in the coding unit, this partial content
Type and number type and number expressed by the destination address domain depending on, either the subcode of the remainder of sequence
String, is also possible to whole sequences, can be the whole or its remainder index string of index string.In short, same coding unit institute
The sequence and index string that include can depend on actual need and are discretely expressed in the destination address domain editable of same information frame
Among the frame length difference of bit area and the information frame and the reference frame, the construction of the information frame is completed.
After completing aforementioned each specific steps, that is, the entire cataloged procedure of the configuration information is realized, phase is obtained
The reference frame and information frame answered.
Step S13, the multicast packet frame described in wireless transmission, to start the networked deployment to smart machine.
The construction of the reference frame and information frame is completed, whole coding works of the configuration information are just completed, by
This, calls the corresponding interface, using the WiFi communication component based on 802.11 agreements, can by the reference frame and information frame with
Wirelessly to aerial radiation, it is transferred to receiving end.It should be pointed out that since upper-layer protocol is worked with UDP, institute
With, the reference frame and information frame are sent with UDP message packet, since udp protocol is unreliable protocol, thus, this method
When transmitting the reference frame and information frame, set such as 10 times circulations, in each circulation, by the reference frame and information frame according to
(reference frame, which is considered as, is encoded to 0 sequence the first) is successively sent according to the indexed sequential of index string list sign, to ensure that receiving end is smooth
Receive whole multicast packet frames.Nevertheless, reference frame and information frame are also possible to random ordering in the transmission sequence of same one cycle
, have no effect on implementation result of the invention.It should be noted that the number cycled through when transmission also should not be limited to certain number
Word can be more wheels transmission of such as 5 times, 20 other inferior data.
After the reference frame and information frame are received by smart machine, smart machine will start its connection according to blas
Net configuration, utilizes transmitted configuration information to configure behind, the target network is accessed, to realize networking.Related intelligence
Energy equipment realizes the process of networking, refering to subsequent announcement.
As can be seen that control of intelligent terminal only has issued reference frame and information frame in this step, in case starting is to intelligence
The networked deployment of equipment operates, not configuration of the actual implementation to the network settings of Intelligent hardware, but certainly by smart machine
Body, using control of intelligent terminal transmission come networked deployment information go to realize, in this regard, those skilled in the art should be known photograph.
Step S14, the control operation interface for interacting with the smart machine is provided for the smart machine after networking.
As previously mentioned, when control of intelligent terminal the configuration information is sent to smart machine and start its networked deployment it
Afterwards, smart machine will complete the network insertion process of itself, also, when necessary, the information that smart machine can network success
Feed back to control of intelligent terminal.
It should be pointed out that since this method is not necessarily dependent on control of intelligent terminal with smart machine based on similar AD-
The interconnection that the technology of HOC or WiFi Direct etc is realized in advance, only need to be to aerial wireless communication of the radiation containing multicast packet frame
Number, thus, control of intelligent terminal can keep the company with the target network during the entire process of this method executes
It connects without carrying out that complicated switching need not disconnect the connection with target network and smart machine described in accessing and is transmitting
Switchback accesses the target network after configuration information, thus, control of intelligent terminal can be in the company for keeping accessing the target network
While connecing state, the multicast packet frame is sent, without influencing its normal cluster.And smart machine accesses same WiFi and connects
After access point, udp broadcast can be sent by the corresponding WiFi AP and control of intelligent terminal realizes local area network communication, thus
The information for itself being successfully accessed target network can be fed back to control of intelligent terminal by local area network.
In fact, in addition to this it is possible to having other way that control of intelligent terminal is allowed to know that smart machine successfully joins
Net, for example, after the APP of control of intelligent terminal and smart machine pass through cloud server and the binding of same user account, into
One step uploads data to cloud server, and is recorded by cloud server, which can be by corresponding on control of intelligent terminal
Application program identified, control of intelligent terminal accordingly be knowable smart machine completed to access.
Correspondingly, control of intelligent terminal can pass through the datagram of such as HTTPS using cloud server as intermediary
Text submits the request for acting on smart machine to cloud server, and the interaction of data and instruction is realized with smart machine.No matter what
Kind mode be communicated when control of intelligent terminal can be realized with smart machine, can be provided by its APP for setting with the intelligence
The standby control operation interface interacted carries out control operation to user.
The control operation interface that control of intelligent terminal provides can be realized using two ways.First way is to be based on
The Webpage exploitation of HTML5 etc, after knowing that smart machine has accessed internet by mobile phone terminal, to cloud service
Device pulls the corresponding page, and user is showed to execute relevant operation.The second way be realized based on local program, such as
An Activity is constructed in the application program of Android, is obtained by the Activity and is shown the related intelligence of cloud server
Can equipment related data or directly interacted from local area network with smart machine, and show the control operation interface.
The control operation interface that user is provided by the corresponding application program of control of intelligent terminal, can initiate to intelligence
The operation of energy equipment, including controlling functional mapping of smart machine, the data for showing smart machine offer etc..Thus meet user
Concentration, permit ease of administration to Intelligent hardware.
As can be seen that the smart machine networking control method completed according to aforementioned process, cataloged procedure is simple, information table
Danone power is strong, needs not rely upon foundation between control of intelligent terminal and smart machine and is stably connected with and can realize having for configuration information
Control smart machine networking is realized in effect transmission at faster speed.
It is corresponding, in the other end corresponding with aforementioned intelligent controlling terminal, usually controlled smart machine, such as intelligently
Camera, automobile data recorder, smartwatch etc., this kind of equipment, which is generally required, completes itself dependent on configuration information above-mentioned
Configuration is to access external network.In order to receive configuration information above-mentioned, just need that such equipment is made to have decoding afore-mentioned code
The multicast packet frame that procedure construction goes out reaches the basis of the operation of next step.
For this purpose, referring to Fig. 5, the present invention is further that smart machine side discloses a kind of networking cut-in method, this method
Include the following steps:
Step S21, the multicast packet frame for being loaded with the configuration information for accessing target network is received.
Smart machine is received by it by the WiFi communication mould group of 802.11 specifications described in the air with wireless signal transmission
UDP message packet obtains corresponding multicast packet frame, is then decoded to it, loads finally to obtain in multicast packet frame
Configuration information.
Since reference frame and information frame are realized with certain coding principle, when decoding, naturally also will in accordance with
Corresponding principle when coding, therefore for, decoding side of the invention and coding staff are both needed to same in accordance with being standardized by the present invention
Set makes agreement by oneself.In view of this, this method is referring to method above-mentioned, referring to Fig. 6, being obtained according to following specific steps described
Reference frame and information frame:
Step S211, receiving multicast data frame:
The UDP message packet that on-air radio radiation is obtained by WiFi communication mould group, can obtain multicast packet frame therein,
So that the type to multicast packet frame identifies.
Step S212, judge there will be specific content whether comprising specific content in the editable field of the multicast packet frame
Multicast packet frame be determined as reference frame:
The specific content refers to and makes agreement by oneself according to what this method was abided by, checks the mesh of the multicast packet frame
Address field editable bit area in, if contain the content for meeting the agreement and being standardized.Such as defined in former approach
23 bits be full 0 or complete 1, if meeting such case, that is, be considered as that there are specific contents.It can also further check the group
The frame length of multicast data frame, since the frame length of multicast packet frame is uniquely decided by the length in its frame ontology domain, so
It can check the length in its frame ontology domain, if meet data as defined in agreement, if one of these conditions or all satisfaction are certainly
Determine the specification of agreement, then the multicast packet frame is just judged as reference frame, otherwise, then can temporary packet loss.
Step S213, other multicast packet frames for not including specific content are determined as information frame:
When previous sub-step determines the multicast packet frame for reference frame, currently received serial multicast packet frame is characterized
Rest part contains information frame, can start to receive remaining multicast packet frame as a result, that is to say the information frame.By
It is that more wheels send the reference frame and information frame in sender's (control of intelligent terminal), thus, in this sub-step, work as determination
After reference frame, remaining multicast packet frame can be received all, and it is duplicate can be handled with packet loss, it is final obtain reference frame and its
Unduplicated information frame.Theoretically, it is discussed with aforementioned one embodiment, since index string has 6, reference frame and information frame
Summation should be 64, depending on the digit that specific view index is gone here and there.It, can be by described according to index string as further test condition
Whether expressed data group number and its characterization sequence, have received that all unduplicated information frames and reference frame to verify,
Remaining person all packet losses are handled.Further, the difference of the frame length of the frame length and reference frame of checking information frame can also be passed through
Whether value exceeds the particular range of a pre- agreement, and determines whether the information frame is to be loaded with defined by the present invention with confidence
Thus the information frame of breath implements a substantial frame check process in this sub-step.In addition, corresponding to what former approach provided
Several variation instances, since the frame length of information frame is obviously more than or less than the frame length of the reference frame (by making agreement institute by oneself
Specification), i.e. the frame length of reference frame is less than or greater than the frame length of the reference frame, therefore can also carry out check groups with this characteristic
Whether multicast data frame is to meet the information frame for making protocol specification by oneself.
It can be seen that can be received by sender's transmission by above-mentioned sub-step all referring to frame and information frame.
Step S22, the configuration information is extracted from two editable field possessed by the multicast packet frame.
As previously mentioned, there are two editable field for multicast packet frame tool, it is destination address domain and its frame ontology domain, purpose respectively
Address field is used for load information with its low 23 editable bit area, and frame ontology domain is with the spy of its length and the reference frame
The binary format difference load information of number is positioned, therefore, this step is by extracting the two editable field in information frame
Information can be used to the coded sequence for assembling the configuration information.
Specifically, referring to Fig. 7, this step is by following specific sub-step processing:
Step 221: extracted from two editable field of each multicast packet frame for being confirmed as information frame sequence and
The index string to put in order for characterizing the sequence constitutes coding unit.
Specifically, out of, coding unit expressed by its destination address domain is extracted in the information frame first part
Hold, remaining of the coding unit is determined with the frame length difference of information frame and the binary format of the particular number of bits of the reference frame
Partial content obtains the complete coding unit.
The essence of this step is the decoded process of execution part, relatively only in each information frame its object is to obtain
The vertical coding unit.
As recipient, the coding principle in accordance with sender is needed, therefore, four kinds of coding staffs listed by corresponding former approach
For formula, the information frame received for institute will be decoded as follows:
The first corresponding decoding process:
From the editable bit area in the destination address domain of information frame, i.e., its low 23, therefrom extract index string (first 6)
With the first subcode string (latter 17) of sequence, then, then frame length (or the respectively frame sheet of the information frame and the reference frame is sought
Body length of field) between binary system difference (3), i.e. the second subcode string mutually concatenates the first subcode string with the second subcode string, i.e.,
Sequence is constituted, and indexes string and is subsequently used for the sequence characterized with it to determine the assembling sequence of sequence.The sequence and rope of acquisition
Draw string, just constitutes the coding unit being loaded into the information frame.
Corresponding second of decoding process:
Similarly, to extract entire sequence from editable bit area i.e. its low 23 in the destination address domain of information frame (low
20) and the first subindex string (before editable bit area 3) gone here and there is indexed, then with the frame length of the information frame and the reference frame
Binary system difference (3) between degree (or respectively frame ontology length of field) determine the second subindex string of index string, by the first son
Index string splices with the second subindex string goes here and there up to entire index, and index string just constitutes volume expressed by the information frame with the sequence
Code unit.
The third corresponding decoding process:
It is relatively simple herein, directly the editable bit area in the destination address domain in information frame is extracted for 23 totally, i.e.,
The sequence is obtained, by the binary system between the information frame and the frame length (or respectively frame ontology length of field) of the reference frame
Difference (3 or more) is determined directly as index string, and index string just constitutes corresponding coding unit with sequence.
Corresponding 4th kind of decoding process:
Similarly with the third decoding process, directly the editable bit area in the destination address domain in information frame is mentioned for 23 totally
Take out, that is, obtain the index string, by the frame length (or respectively frame ontology length of field) of the information frame and the reference frame it
Between binary system difference (3 or more) be determined directly as sequence, index string just constitutes corresponding coding unit with sequence.
As it can be seen that, regardless of its details, not taking off agreement mechanism corresponding with cataloged procedure in this sub-step.It is held
Capable principle is that first part's content of coding unit expressed by its destination address domain is extracted from information frame, and with the letter
The frame length difference (binary format of limit length) of breath frame and the reference frame determines in the rest part of the coding unit
Hold, to obtain the complete coding unit.
When all information frames are decoded the coding unit, the preliminary decoder of entire information is just completed, after
Continuous need to complete splicing and reduction process and can obtain corresponding information.
Step S222, characterized according to the index string in each coding unit sequence, by the sequence of all coding units
Sequentially it is spliced into coded sequence.
Since each coding unit all has the index string of the characterization sequence of itself, this index string is to indicate each volume
The sorting position locating when decoupling coded sequence of sequence possessed by code unit.Thus, by each coding unit according to its tool
The characterized sequence of some index strings sequentially assembles corresponding sequence, can restore a corresponding coded sequence,
It can be used to restore the information transmitted.
Step S223, coded sequence is reduced to the configuration information.
As previously mentioned, if the coded sequence is sequence obtained by the ciphertext conversion formed after encrypting information,
Need for the coded sequence to be first reduced to ciphertext, recycle prestored secret key by the ciphertext decrypt it is described transmitted with confidence
Breath.As for the type of the key, then depending on encryption technology is public key encryption or symmetric cryptography, for the former, using with
The corresponding private key that prestores of public key when coding is decrypted, and for the latter, is decrypted using prestored secret key identical with key when coding.
Certainly, if the coded sequence is non-encryption information conversion and is obtained, this processing need not be passed through.
As previously mentioned, the configuration information is generally to merge multiple information elements by certain format group in coding
A coded sequence is converted to, for example it is assumed that the information restored carries out the bit string formed after ASCII character conversion
(character string) content is as follows:
SSID:MYWiFi|PSW:PLZLOGIN。
As can be seen that SSID therein and PSW printed words, are the type identification of information element, MYWiFi is with PLZLOGIN
The particular content of information element, attribute separator, that is, colon ": " is for partition type mark and particular content, element separator
" | " is for separating different information elements.Smart machine according to making the specification of agreement by oneself, according to above-mentioned principle to the bit string into
Row parsing, can realize the conversion and interpretation to configuration information, obtain the configuration information, finally enable smart machine accordingly
Configuration own net is arranged and accesses target network.
It should be noted that above steps on one side can know it with flexible approach, one side receiving multicast data frame
Not and decoding, can also be after whole multicast packet frames have received, then be decoded respectively.Those skilled in the art should know this one
Mechanism.
Step S23, configuration is executed with the configuration information and completes the access target network.
After obtaining the configuration information, just obtain control of intelligent terminal provide service set (SSID) and accordingly
Password, smart machine can determine corresponding SSID, and it is corresponding password that the password, which is arranged, carries out a series of shake hands
Process, until establishing the connection with WiFi AP representated by the SSID.
After smart machine connects the AP, target network has just been accessed, can theoretically have been communicated with cloud server, can also have been passed through
The routing function that current local area network provides is communicated with the control of intelligent terminal in net.To which, smart machine can be to
The control of intelligent terminal sends one and characterizes the signal for having completed network insertion, so that control of intelligent terminal can be mentioned further
Subsequent operation is done to user for operation control interface.
As it can be seen that networking cut-in method of the invention, corresponding with former approach, realized by simple step, Ji Keshi
The extraction for the information that now multicast packet frame is loaded, and be not necessarily dependent on recipient and recipient be stably connected with build
It is vertical, it quickly controlled can network.
Further, modularized thoughts are based on, the present invention provides a kind of control of intelligent terminal above-mentioned, preferably, the intelligence
Controlling terminal is mounted with the mobile phone of aforementioned corresponding APP to realize.
Referring to Fig. 8, the control of intelligent terminal includes obtaining in an exemplary embodiments of control of intelligent terminal of the invention
Unit 11, processing unit 12, signal transmission unit 13 and operating unit 14 are taken, discloses the function that each unit is realized in detail below
Can:
The acquiring unit 11, display user interface, which is used to obtain, makes matching for the smart machine access target network
Confidence breath.
It, can be by system drive on mobile phone when the APP is run by taking the APP realized based on the present invention as an example
Hardware device utilized.It is well known that not only having WiFi mould group, display, control chip on mobile phone, also there is wheat
The components such as gram wind, loudspeaker, these components, which can pass through the APP, to be realized and calls.
By taking android system as an example, mobile phone passes through acquiring unit 11 first and calls and show a movable component
(Activity), it or one page realized using HTML5 of display, shows the user interface on the screen and scans
WiFi access-in point information (is enumerated) with service set SSID, requests user's selected target network, and requires user's input corresponding
Password, to obtain the SSID and password of target network.
According to the agreement of WiFi agreement, those skilled in the art be could be aware that, configuration information generally includes WiFi without route
By the service set (SSID) and login password of (representing target network), may also need to include that login is close in some cases
The cipher mode of code, and login password can also be needed not be provided for open network.Although there are the things of version upgrading for WiFi agreement
It is real, but these are related to and realize access network and the configuration information of indispensability can be corresponding according to document of agreement by those skilled in the art
It determines, therefore, its details and its equivalent variations scheme is repeated here.
As details accommodation, after user has selected SSID, acquiring unit 11 can be inquired to cloud server should
Password corresponding to SSID can save the operation for requiring user to input target network password if password exists.
The processing unit 12, for the configuration information to be encoded to each multicast packet in multiple multicast packet frames
Two editable field possessed by frame.
It after obtaining the configuration information, needs to encode the configuration information using processing unit 12, forms frame
Data.For this purpose, referring to Fig. 9, the processing unit 12 specifically include coding split cells 121, reference frame structural unit 122 with
And information frame structural unit 123, the processing unit 12 is constructed by the function that these units are realized.
The coding split cells 121, for the corresponding coded sequence of the configuration information to be separated into multiple sequences,
Defining each sequence and the respective index string of the characterization indexed sequential for its distribution is coding unit.
The configuration information, as previously mentioned, can be in an application scenarios comprising for providing WiFi access point
Service set (SSID) and its password information.Configuration information can be first by format before being replaced into corresponding coded sequence
Turn to character string information.Specifically, service set and the equal configuration information element of password, separated between information element with element
Symbol " | " is separated, and is separated between the mark and value of information element with attribute separator ": ".Such as service set be with
SSID indicates its mark, and password indicates that its mark, the value of SSID are MYWiFi with PSW, and the value of password is PLZLOGIN, to its into
The information content that formatting lines are formed are as follows:
SSID:MYWiFi|PSW:MYLOGIN。
The coded sequence is converted into binary system acquisition based on the above-mentioned format string of configuration information.In order to
Keep configuration information safer, coding split cells 121 can first encrypt configuration information (above-mentioned character string), be formed close
The coded sequence is reconverted into after text.The mode of encryption either public key encryption, is also possible to symmetric key encryption,
As long as receiving end can be decrypted using corresponding key (the same key in private key or symmetric cryptography in such as public key encryption)
?.Either encryption or disclosed state after configuration information is resolved to binary code, encode split cells 121
It is encoded, is adapted to be assigned in each multicast packet frame.
Firstly, the coded sequence of configuration information is separated into several sequences by coding split cells 121, each sequence is constituted
Relatively independent and a part without informative, is expressed, such as occupy 20 bits with same length.It then, is each
A sequence distributes an index string, this sequence similarly also uses binary expression, occupies such as 6 bits, the format of 6 bits
Under, it can be used to express 26Group sequence.Then, the index string described for each sequence group unification, goes here and there according to index
Numerical values recited, the proper sequence of the sequence can be expressed, i.e., the sequence isolated of coded sequence is by its concatenation
Index string of corresponding size is sequentially matched, the index string is made to can be used for expressing the indexed sequential of sequence corresponding thereto i.e.
It can.The partition and sequence of entire coded sequence are completed therefrom.Wherein, be the convenience illustrated, by each index go here and there and with its group
The sequence of conjunction is defined as a coding unit, then configuration information is just separated into multiple coding units, and each coding unit is opposite
It is independent, but be ordered between each other.It should be noted that coding unit itself is a combined concept, rather than a sequence
Fixed concept.In order to realize the utilization to multicast packet frame, the total length of coding unit is determining totally 26 bit, the rope
Draw string and occupies the first length therein totally 6 bits, and remaining second length, 20 bit is then to compile occupied by corresponding sequence
The total length of code unit is exactly the sum of the first length and the second length.Obviously, all coding units are all having the same total
Length.
The configuration information is encoded split cells 121 and is separated into after multiple coding units, can be based on multicast packet
Frame carries out next code.
The reference frame structural unit 122 is configured as constructing reference frame based on multicast packet frame format, and initialization should
Two editable field of reference frame are to determine benchmark.
The construction of the reference frame is more flexible, can be on the basis of multicast packet frame, according to aforementioned related multicast number
According to the announcement of the structure of frame, by the editable bit area in its destination address domain, i.e., its low 23 bit is all set to 0 or 1,
Or other specific bit sequences can also, and determine its frame ontology length be benchmark length.On this basis, as long as
Reference frame recipient can abide by specification of the invention, can according to identifying the reference frame to the coding principle of reference frame herein,
And the length is determined as fundamental length by the length that can determine the frame ontology domain.As equivalent replacement means, due to frame sheet
The length in body domain determines the length of entire reference frame, therefore, can also be directly using the total length of reference frame as benchmark length.The base
Standard length is less than the frame length of follow-up frame, to determine information coding by the difference between this frame length.Similarly,
As equivalent replacement means, the frame length of reference frame can also be made to be greater than the frame length of follow-up frame.
The information frame structural unit 123 is configured as based on multicast packet frame format tectonic information frame, by each volume
Code unit is divided into two parts content and is expressed in two editable field of a corresponding information frame respectively.
Due to the present invention relates to the utilization to information frame and the frame length difference of reference frame, it can the specification difference
The variation range of value keeps the variation range specific, and frame length difference between information frame and reference frame is made to maintain a specific model
It is temporarily embodiment with maximum value 8 within enclosing.In a computer, it can indicate that various differences are poor with 3 Binary Zero 00-111
Value, when its low 23 combination with foregoing purpose address field, just can constitute 26 abilities to express, wherein 6 position index string energy
64 groups of data are expressed, remaining 20 in every frame can then express the data volume of 2.5Bytes, and first encoding can meet
The expressive faculty of 160Bytes information content.
Similarly, the information frame is also to be constructed based on multicast packet frame.Information frame structural unit 123 constructs
The process of the information frame is that each coding unit is respectively corresponded to the process for being encoded to an information frame.It is outlined below
The several ways of encoding relation between each coding unit and information frame structure.
The first coding mode:
Sequence included by coding unit is divided into two parts, i.e. the first subcode string and the second subcode string, if the first son
Sequence is 17, and the second subcode string just occupies complete 3 of the difference.And concatenation should before the first subcode string of each sequence
Index string in coding unit, therefore, index string and the spliceosome of the first subcode string are just 23 bytes, are just equal to group
23 editable bit areas that multicast data frame provides, expression is wherein.And the second subcode string, it is assumed that be 010, represent the decimal system
Numerical value 2 then can be such that the frame length of information frame is greater than (in other embodiments by the length in the frame ontology domain of determining information frame
Be also possible to be less than) frame length (datum length) 2Bytes of reference frame and realize coding expression.Follow-up recipients utilize information
After the frame length of frame subtracts the account length of reference frame, 010 this second subcode string can be obtained.
Second of coding mode:
This coding mode the difference is that only that the object being split is in coding unit with former coding mode
Index is gone here and there rather than its sequence, due to that sequence overall length 20, it can be expressed in completely in the data of the example of above-mentioned offer
In the editable bit area of multicast packet frame, therefore, editable bit area can only be for 3 in expression index string in this case
Position, i.e. the first subindex string, and residue 3 i.e. the second subindex strings for indexing string can only the first referenced aforementioned coding mode
It is expressed in the frame length difference of the information frame described in it and the reference frame.
In the example of aforementioned two ways, 6 position index strings low with destination address domain with the length of 20 sequences 23 and frame
This Matching Relation between length difference 3 is preferred scheme, can either reinforce multicast packet frame expression letter as much as possible
The ability of breath, but caused by can reduce because of UDP message packet packet loss in transmission process information unsuccessful transmission risk.
The third coding mode:
Sequence in coding unit is simply directly expressed in the destination address domain of its affiliated information frame by this coding mode
In, such as low 20 of destination address domain are occupied, and index string is expressed in the frame of its affiliated information frame and the reference frame
In length difference.If indexing 6 that the length gone here and there is maintained precedent, the difference range of the frame length of information frame and reference frame
The range for the maximum value that corresponding 6 binary codes can express should be maintained.If reducing the digit of index string to 3, even if
The entire editable area that lengthened code string length makes it occupy destination address domain to 23 can only express 8 groups of numbers due to index string
According to, therefore its information representation ability is also to be weaker than precedent.
4th kind of coding mode:
Similarly with the third coding mode, the index string in coding unit simply can be expressed in its affiliated information frame
In destination address domain, such as low 23 of destination address domain are occupied, and information frame belonging to sequence is all expressed in and described
In the frame length angle value of reference frame, if the length of sequence is maintained 20 of precedent, the similarly frame length of information frame and reference frame
The difference range of degree should be maintained the range for the maximum value that corresponding 20 binary codes can express.If reducing the digit of sequence
To described 3 as in the previous example, then the information content of single sequence expression is relatively limited, and indexing string is 23, thus needs structure
Multiple multicast packet frames are made to transmit the same information, it can be seen that, aforementioned first and second kinds of coding modes better than third and
4th kind of coding mode.
By the announcement of above four kinds of coding modes, could be aware that, anyway, the final structure of information frame structural unit 123
Information frame made of making, the editable bit area in one of two editable field, i.e. destination address domain, in particular to the domain,
By first part's content comprising coding unit described in one, this partial content can be the whole or part of it of sequence
Sequence is also possible to the whole or part of it subindex string of index string.And the frame length of the information frame, by its it is another can
The adjustment of edit field, that is, frame ontology length of field makes its frame length with the reference frame there are the difference in a particular range,
The binary format of this difference just contains the remainder not being encoded into the destination address domain in the coding unit
Depending on point content, the type of this partial content and number type and number expressed by the destination address domain, either sequence
Remainder subcode string, be also possible to whole sequences, can be index string whole or its remainder index string.Always
It, the sequence and index string that same coding unit is included can depend on actual need and be discretely expressed in same information frame
Among the frame length difference of destination address domain editable bit area and the information frame and the reference frame, the structure of the information frame is completed
It makes.
After having executed function above-mentioned, that is, the entire cataloged procedure of the configuration information is realized, obtained corresponding
Reference frame and information frame.
The signal transmission unit 13, for transmitting wirelessly the multicast packet frame, to start to smart machine
Networked deployment.
The construction of the reference frame and information frame is completed, whole coding works of the configuration information are just completed, by
This, calls the corresponding interface by signal transmission unit 13, can will be described using the WiFi communication component based on 802.11 agreements
Reference frame and information frame are transferred to receiving end wirelessly to aerial radiation.It should be pointed out that since upper-layer protocol is
With UDP work, so, the reference frame and information frame are sent with UDP message packet, since udp protocol is unreliable association
View, thus, when transmitting the reference frame and information frame, set such as 10 times recycles signal transmission unit 13, in each circulation,
The reference frame and information frame successively send according to the indexed sequential that index string list is levied to (reference frame, which is considered as, is encoded to 0 sequence the
One), to ensure that receiving end smoothly receives whole multicast packet frames.Nevertheless, reference frame and information frame are in same one cycle
Transmission sequence be also possible to out-of-order, have no effect on implementation result of the invention.It should be noted that time cycled through when transmission
Number also should not be limited to optional network specific digit, can be more wheels transmission of such as 5 times, 20 other inferior data.
After the reference frame and information frame are received by smart machine, smart machine will start its connection according to blas
Net configuration, utilizes transmitted configuration information to configure behind, the target network is accessed, to realize networking.Related intelligence
Energy equipment realizes the process of networking, refering to subsequent announcement.
As can be seen that control of intelligent terminal has issued reference frame and information simply by the signal transmission unit 13
Frame, in case starting operates the networked deployment of smart machine, not configuration of the actual implementation to the network settings of Intelligent hardware, and
Be by smart machine itself, using control of intelligent terminal transmission come networked deployment information go to realize, in this regard, art technology
Personnel should be known photograph.
The operating unit 14, for providing the control for interacting with the smart machine for the smart machine after networking
Operation interface processed.
As previously mentioned, when control of intelligent terminal the configuration information is sent to smart machine and start its networked deployment it
Afterwards, smart machine will complete the network insertion process of itself, also, when necessary, the information that smart machine can network success
Feed back to control of intelligent terminal.
It should be pointed out that since control of intelligent terminal is not necessarily dependent on itself with smart machine based on similar AD-HOC
Or the interconnection that the technology of WiFi Direct etc is realized in advance, it only need to be to aerial wireless signal of the radiation containing multicast packet frame
, thus, control of intelligent terminal can be kept and the mesh during the entire process of it realizes the function of the invention of standardizing
The connection for marking network need not disconnect the connection with target network without the complicated switching of progress and access the smart machine
And switchback accesses the target network after transmitting configuration information, thus, control of intelligent terminal can keep accessing the mesh
While marking the connection status of network, is encoded and send the multicast packet frame, without influencing its normal cluster.And intelligence
Energy equipment accesses after same WiFi access point, can pass through the corresponding WiFi AP and send udp broadcast and control of intelligent terminal
Local area network communication is realized, so as to which the information for itself being successfully accessed target network is fed back to intelligent control end by local area network
End.
In fact, in addition to this it is possible to having other way that control of intelligent terminal is allowed to know that smart machine successfully joins
Net, for example, after the APP of control of intelligent terminal and smart machine pass through cloud server and the binding of same user account, into
One step uploads data to cloud server, and is recorded by cloud server, which can be by corresponding on control of intelligent terminal
Application program identified, control of intelligent terminal accordingly be knowable smart machine completed to access.
Correspondingly, control of intelligent terminal can pass through the datagram of such as HTTPS using cloud server as intermediary
Text submits the request for acting on smart machine to cloud server, and the interaction of data and instruction is realized with smart machine.No matter what
Kind mode be communicated when control of intelligent terminal can be realized with smart machine, can be provided by its APP for setting with the intelligence
The standby control operation interface interacted carries out control operation to user.
The control operation interface that control of intelligent terminal operating unit 14 provides can be realized using two ways.The first
Mode is what the Webpage based on HTML5 etc was developed, after knowing that smart machine has accessed internet by mobile phone terminal,
The corresponding page is pulled to cloud server, user is showed to execute relevant operation.The second way is real based on local program
Existing, such as construct an Activity in the application program of Android, obtained by the Activity and show that cloud takes
It related data of the device in relation to smart machine of being engaged in or is directly interacted from local area network with smart machine, and shows the control
Operation interface.
The control operation interface that user is provided by the operating unit 14 of control of intelligent terminal can be initiated to set intelligence
Standby operation, including controlling the functional mapping of smart machine, the data for showing smart machine offer etc..Thus meet user to intelligence
Concentration, the permit ease of administration of energy hardware.
As can be seen that the control of intelligent terminal completed according to aforementioned process, process that configuration information is encoded compared with
To be simple, information representation ability is strong, need not rely upon between control of intelligent terminal and smart machine establish be stably connected with and can be real
Control smart machine networking is realized in effective transmission of existing configuration information at faster speed.
It is corresponding, in the other end corresponding with aforementioned intelligent controlling terminal, usually controlled smart machine, such as intelligently
Camera, automobile data recorder, smartwatch etc., this kind of equipment, which is generally required, completes itself dependent on configuration information above-mentioned
Configuration is to access external network.In order to receive configuration information above-mentioned, just need that such equipment is made to have decoding afore-mentioned code
The multicast packet frame that procedure construction goes out reaches the basis of the operation of next step.
For this purpose, referring to Fig. 10, the present invention further provides smart machine comprising receiving unit 21, extraction unit
22 and access unit 23, function possessed by each unit disclosed below.
The receiving unit 21, for receiving the multicast packet for being loaded with the configuration information for accessing target network
Frame.
The receiving unit 21 of smart machine is received by it by the WiFi communication mould group of 802.11 specifications described in the air with nothing
The UDP message packet of line signal transmission, obtains corresponding multicast packet frame, is then decoded to it, finally to obtain multicast
The configuration information loaded in data frame.
Since reference frame and information frame are realized with certain coding principle, when decoding, naturally also will in accordance with
Corresponding principle when coding, therefore for, decoding side of the invention and coding staff are both needed to same in accordance with being standardized by the present invention
Set makes agreement by oneself.In view of this, the receiving unit 21 executes corresponding function according to following specific steps and obtains incorporated by reference to Fig. 6
Obtain the reference frame and information frame:
Step S211, receiving multicast data frame:
The UDP message packet that on-air radio radiation is obtained by WiFi communication mould group, can obtain multicast packet frame therein,
So that the type to multicast packet frame identifies.
Step S212, judge there will be specific content whether comprising specific content in the editable field of the multicast packet frame
Multicast packet frame be determined as reference frame:
The specific content refers to and makes agreement by oneself according to what control of intelligent terminal and smart machine were abided by jointly, looks into
It sees in the editable bit area in the destination address domain of the multicast packet frame, if contain the content for meeting the agreement and being standardized.
Such as it is aforementioned defined in 23 bits be full 0 or complete 1, if meeting such case, that is, be considered as that there are specific contents.Further
The frame length that can also check the multicast packet frame, since the frame length of multicast packet frame is uniquely decided by its frame ontology domain
Length, so the length in its frame ontology domain can also be checked, if meet data as defined in agreement, if one of these conditions
Or all meeting the specification for making agreement by oneself, then the multicast packet frame is just judged as reference frame, otherwise, then can temporary packet loss.
Step S213, other multicast packet frames for not including specific content are determined as information frame:
When previous sub-step determines the multicast packet frame for reference frame, currently received serial multicast packet frame is characterized
Rest part contains information frame, can start to receive remaining multicast packet frame as a result, that is to say the information frame.By
It is that more wheels send the reference frame and information frame in sender's (control of intelligent terminal), thus, in this sub-step, work as determination
After reference frame, remaining multicast packet frame can be received all, and it is duplicate can be handled with packet loss, it is final obtain reference frame and its
Unduplicated information frame.Theoretically, it is discussed with aforementioned one embodiment, since index string has 6, reference frame and information frame
Summation should be 64, depending on the digit that specific view index is gone here and there.It, can be by described according to index string as further test condition
Whether expressed data group number and its characterization sequence, have received that all unduplicated information frames and reference frame to verify,
Remaining person all packet losses are handled.Further, the difference of the frame length of the frame length and reference frame of checking information frame can also be passed through
Whether value exceeds the particular range of a pre- agreement, and determines whether the information frame is to be loaded with defined by the present invention with confidence
Thus the information frame of breath implements a substantial frame check process in this sub-step.In addition, corresponding to the several of aforementioned offer
Variation instance, since the frame length that the frame length of information frame is obviously more than or less than the reference frame (is advised by making agreement by oneself
Model), i.e. the frame length of reference frame is less than or greater than the frame length of the reference frame, therefore can also carry out checking multicast with this characteristic
Whether data frame is to meet the information frame for making protocol specification by oneself.
It can be seen that the function of being realized by executing above-mentioned sub-step, receiving unit 21 can be received and be transmitted by sender
All referring to frame and information frame.
The extraction unit 22, for described in the extraction from two editable field possessed by the multicast packet frame
Configuration information.
As previously mentioned, there are two editable field for multicast packet frame tool, it is destination address domain and its frame ontology domain, purpose respectively
Address field is used for load information with its low 23 editable bit area, and frame ontology domain is with the spy of its length and the reference frame
The binary format difference load information of number is positioned, therefore, extraction unit 22 passes through to the two editable field in information frame
Information is extracted, can be used to the coded sequence for assembling the configuration information.
Figure 11 is please referred to, specifically, the extraction unit 22 includes extraction module 221, splicing module 222 and reduction mould
Block 223, the function of each module are disclosed as follows:
The extraction module 221, for two editable field from each multicast packet frame for being confirmed as information frame
In extract sequence and characterize the index string that puts in order of the sequence and constitute coding unit.
Specifically, extraction module 221 extracts coding unit expressed by its destination address domain from the information frame
First part's content determines the coding with the frame length difference of information frame and the binary format of the particular number of bits of the reference frame
The rest part content of unit obtains the complete coding unit.
The substantial function of extraction module 221 is the decoded process of execution part, and its object is to obtain each information frame
In the relatively independent coding unit.
As recipient, the coding principle in accordance with sender is needed, therefore, four kinds of volumes listed by corresponding control of intelligent terminal
For code mode, the information frame received for institute, extraction module 221 will be decoded as follows:
The first corresponding decoding process:
From the editable bit area in the destination address domain of information frame, i.e., its low 23, therefrom extract index string (first 6)
With the first subcode string (latter 17) of sequence, then, then frame length (or the respectively frame sheet of the information frame and the reference frame is sought
Body length of field) between binary system difference (3), i.e. the second subcode string mutually concatenates the first subcode string with the second subcode string, i.e.,
Sequence is constituted, and indexes string and is subsequently used for the sequence characterized with it to determine the assembling sequence of sequence.The sequence and rope of acquisition
Draw string, just constitutes the coding unit being loaded into the information frame.
Corresponding second of decoding process:
Similarly, to extract entire sequence from editable bit area i.e. its low 23 in the destination address domain of information frame (low
20) and the first subindex string (before editable bit area 3) gone here and there is indexed, then with the frame length of the information frame and the reference frame
Binary system difference (3) between degree (or respectively frame ontology length of field) determine the second subindex string of index string, by the first son
Index string splices with the second subindex string goes here and there up to entire index, and index string just constitutes volume expressed by the information frame with the sequence
Code unit.
The third corresponding decoding process:
It is relatively simple herein, directly the editable bit area in the destination address domain in information frame is extracted for 23 totally, i.e.,
The sequence is obtained, by the binary system between the information frame and the frame length (or respectively frame ontology length of field) of the reference frame
Difference (3 or more) is determined directly as index string, and index string just constitutes corresponding coding unit with sequence.
Corresponding 4th kind of decoding process:
Similarly with the third decoding process, directly the editable bit area in the destination address domain in information frame is mentioned for 23 totally
Take out, that is, obtain the index string, by the frame length (or respectively frame ontology length of field) of the information frame and the reference frame it
Between binary system difference (3 or more) be determined directly as sequence, index string just constitutes corresponding coding unit with sequence.
As it can be seen that, regardless of its details, not taking off agreement mechanism corresponding with cataloged procedure in extraction module 221.Its
The principle of execution is that first part's content of coding unit expressed by its destination address domain is extracted from information frame, and with this
The frame length difference (binary format of limit length) of information frame and the reference frame determines the rest part of the coding unit
Content, to obtain the complete coding unit.
When all information frames are decoded the coding unit, the preliminary decoder of entire information is just completed, after
Continuous need to complete splicing and reduction process and can obtain corresponding information.
The splicing module 222, for the sequence characterized according to the index string in each coding unit, by all volumes
The sequence of code unit is sequentially spliced into coded sequence.
Since each coding unit all has the index string of the characterization sequence of itself, this index string is to indicate each volume
The sorting position locating when decoupling coded sequence of sequence possessed by code unit.Thus, splicing module 222 is single by each coding
The characterized sequence of the index string that member has according to it sequentially assembles corresponding sequence, can restore one accordingly
Coded sequence can be used to restore the information transmitted.
The recovery module 223, for coded sequence to be reduced to the configuration information.
As previously mentioned, if the coded sequence is sequence obtained by the ciphertext conversion formed after encrypting information,
Recovery module 223 needs first for the coded sequence to be reduced to ciphertext, recycles prestored secret key that the ciphertext is decrypted described passed
Defeated configuration information.As for the type of the key, then depending on encryption technology is public key encryption or symmetric cryptography, for preceding
Person prestores private key decryption using corresponding with public key when coding, for the latter, is prestored using identical with key when coding
Key decryption.Certainly, if the coded sequence is non-encryption information conversion and is obtained, this processing need not be passed through.
As previously mentioned, the configuration information is generally to merge multiple information elements by certain format group in coding
A coded sequence is converted to, for example it is assumed that the information restored carries out the bit string formed after ASCII character conversion
(character string) content is as follows:
SSID:MYWiFi|PSW:PLZLOGIN。
As can be seen that SSID therein and PSW printed words, are the type identification of information element, MYWiFi is with PLZLOGIN
The particular content of information element, attribute separator, that is, colon ": " is for partition type mark and particular content, element separator
" | " is for separating different information elements.The recovery module 223 of smart machine is according to the specification for making agreement by oneself, according to above-mentioned original
Reason parses the bit string, can realize the conversion and interpretation to configuration information, obtain the configuration information, finally make intelligence
Energy equipment can configure own net accordingly and be arranged and access target network.
It should be noted that above-mentioned each module on one side can know it with flexible approach, one side receiving multicast data frame
Not and decoding, can also be after whole multicast packet frames have received, then be decoded respectively.Those skilled in the art should know this one
Mechanism.
The access unit 23 completes the access target network for executing configuration with the configuration information.
After obtaining the configuration information, just obtain control of intelligent terminal provide service set (SSID) and accordingly
Password, the access unit 23 can determine corresponding SSID, and it is corresponding password that the password, which is arranged, carries out a system
The handshake procedure of column, until establishing the connection with WiFi AP representated by the SSID.
After smart machine connects the AP, target network has just been accessed, can theoretically have been communicated with cloud server, can also have been passed through
The routing function that current local area network provides is communicated with the control of intelligent terminal in net.To the access of smart machine
Unit 23 can send one to the control of intelligent terminal and characterize the signal for having completed network insertion, so as to control of intelligent terminal
It can further provide for operation control interface and do subsequent operation to user.
As it can be seen that smart machine of the invention, corresponding with control of intelligent terminal, realized by simple step, Ji Keshi
The extraction for the information that now multicast packet frame is loaded, and be not necessarily dependent on recipient and recipient be stably connected with build
It is vertical, it quickly controlled can network.
In an application scenarios only for reference, being provided with realizes smart machine networking control method of the invention
Control of intelligent terminal, and the smart machine for realizing networking cut-in method of the invention is provided, smart machine is not accessing spy
Determine WiFi access point, and does not establish the stable feelings being directly connected to AD-Hoc or WiFi Direct with control of intelligent terminal
Under condition, user can select or input the WiFi access point for allowing smart machine to access by operating the control of intelligent terminal
SSID and its information such as password, determine and send, the scheme then realized by the control of intelligent terminal using the present invention, by the letter
Breath is encoded in multicast packet frame, wireless accordingly to airborne spread using WiFi communication mould group possessed by control of intelligent terminal
Signal;In smart machine side, smart machine receives the wireless signal using its WiFi communication mould group, using the solution of the present invention from
Multicast packet frame is identified in wireless signal, is determined reference frame and information frame, is decoded and be communicated through using reference frame and information frame
The information come, finally obtains the configuration informations such as corresponding SSID and password from the information, certainly using the configuration of these configuration informations
The network settings of body, the work of starting access SSID specified WiFi access point finally make the WiFi access that itself access is described
Point.From beginning to end, control of intelligent terminal can both be in the target network and disconnect state, be also possible in access
The connection status of the target network.
In conclusion the present invention carries out the transmission of the configuration information for accessing target network, nothing using multicast packet frame
Connection need to be established in advance dependent on transmission both ends, simplify communication process, keep communication between devices effect quick and efficient.
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.