[go: up one dir, main page]

CN105072665B - Networking control, cut-in method and corresponding terminal and equipment - Google Patents

Networking control, cut-in method and corresponding terminal and equipment Download PDF

Info

Publication number
CN105072665B
CN105072665B CN201510378921.6A CN201510378921A CN105072665B CN 105072665 B CN105072665 B CN 105072665B CN 201510378921 A CN201510378921 A CN 201510378921A CN 105072665 B CN105072665 B CN 105072665B
Authority
CN
China
Prior art keywords
frame
information
string
length
multicast data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510378921.6A
Other languages
Chinese (zh)
Other versions
CN105072665A (en
Inventor
何坚强
刘敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510378921.6A priority Critical patent/CN105072665B/en
Publication of CN105072665A publication Critical patent/CN105072665A/en
Application granted granted Critical
Publication of CN105072665B publication Critical patent/CN105072665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明的主要目的在于提供一种智能设备联网控制方法,包括如下步骤:显示用户界面用于获取使所述智能设备接入目标网络的配置信息;将所述配置信息编码到多个组播数据帧中各个组播数据帧所具有的两个可编辑域;无线发送所述的组播数据帧,以启动对智能设备的联网配置;为联网后的智能设备提供用于与所述智能设备交互的控制操作界面。本发明还依照与该方法相逆的原理公开一种联网接入方法。此外,还对应两组方法公开了相应的智能控制终端及智能设备。本发明利用组播数据帧进行用于接入目标网络的配置信息的传输,无需依赖传输两端先行建立连接,简化通信过程,使设备间通信效果快捷而高效,使智能控制终端可以快速控制智能设备接入目标网络。

The main purpose of the present invention is to provide a method for controlling the networking of a smart device, including the following steps: displaying a user interface for acquiring configuration information for enabling the smart device to access a target network; encoding the configuration information into multiple multicast data Two editable fields of each multicast data frame in the frame; wirelessly send the multicast data frame to start the networking configuration of the smart device; provide the networked smart device for interacting with the smart device control interface. The present invention also discloses a network access method according to the principle opposite to the method. In addition, corresponding intelligent control terminals and intelligent devices are also disclosed corresponding to the two groups of methods. The invention uses multicast data frames to transmit the configuration information for accessing the target network, without relying on the two ends of the transmission to establish a connection first, simplifying the communication process, making the communication effect between devices fast and efficient, and enabling the intelligent control terminal to quickly control the intelligent control The device is connected to the target network.

Description

Networking control, cut-in method and corresponding terminal and equipment
Technical field
The present invention relates to smart machine networking control technologies, and in particular to a kind of control of intelligent terminal and its used intelligence Energy equipment networking control method, further relates to a kind of smart machine and its used networking cut-in method.
Background technique
The development of Internet of Things, so that more and more intersections occur in various communication access technologies.Based on early WiFi The Ad-Hoc technology of realization realizes the point-to-point connection between WiFi equipment, but since this technology can only realize single-point Communication to single-point, and do not have security precautions technology etc., thus while convenient for connection but quickly by WiFi Direct (direct-connected) technology, which weakens, even to be replaced.WiFi direct-connecting technology can make any one equipment Jing Guo the direct-connected certification of WiFi, Not only it had been operable with AP (access point) mode, but also has been operable with STA (work station) mode, has realized two or more by unit of group Interconnection and interflow between platform WiFi equipment, wherein have and only WiFi equipment is used as administrative center, in group remaining The connection of work station is managed concentratedly.WiFi direct-connecting technology can also be compatible with the various cipher modes in WiFi agreement, therefore It is safer, and since it has the function of service discovery and infrastructure device discovery etc., easy-to-use, access is reliable, relative to Other technologies are more favourable, at present in positive extensive use.By these technologies, it can be achieved that the interconnection between multiple devices, and nothing It need to be dependent on the intermediate equipment of router etc.
The application scenarios compared with based on classics for promoting technology of Internet of things development are to utilize WiFi Direct skill Art is used to access the control of intelligent terminal such as mobile phone of internet or local area network from one, has to another with this equipment Then the login configurations information for the target network for having the smart machine transmission of common agreement currently itself to access receives this and matches The smart machine of confidence breath just logs in target network according to the configuration information, realizes the networking access of itself.Due to Internet of Things It nets relevant equipment and has the characteristics that light removable without efficient human-computer interaction function, mostly use WiFi access way, therefore Target network designated herein, refer generally to local area network constructed by WiFi access point namely WiFi AP (also includes with this certainly Based on the more complicated WiFi network that extends).Therefore, so-called configuration information is typically also the identity knowledge for logging in correlation AP Other and verification information, the including but not limited to service set of AP (SSID), password etc..Smart machine is based on WiFi Direct After technology reception configuration information realizes the access target network of itself, it can work normally.
But current WiFi Direct technology, it can only be established between control of intelligent terminal and smart machine direct-connected Later, the configuration information could be transferred to smart machine from control of intelligent terminal, so realized based on this technology Direct-connected scheme is limited to complete direct-connected speed, if the accident during direct-connected due to packet loss etc occurs, frequently can lead to Effective connection can not be established, the configuration information is transferred to smart machine from control of intelligent terminal to cannot reach Purpose.
In view of above-mentioned technology evolution process, it is necessary to further be developed to data transmission technology, pass through technological accumulation To push the further development of Internet of Things.
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.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the structural schematic diagram of multicast address of the present invention;
Fig. 2 mapping relations schematic diagram between multicast address of the present invention and IP address;
Fig. 3 is the schematic illustration of smart machine networking control method of the invention;
Fig. 4 is illustrated by the principle of the step S12 of the smart machine networking control method of the invention detailed process realized Figure;
Fig. 5 is the schematic illustration of networking cut-in method of the invention;
Schematic illustration of the Fig. 6 by the step S21 of the networking cut-in method of the invention detailed process realized;
Schematic illustration of the Fig. 7 by the step S22 of the networking cut-in method of the invention detailed process realized;
Fig. 8 is the structural schematic diagram of control of intelligent terminal of the invention;
Fig. 9 is the structural schematic diagram of the processing unit of control of intelligent terminal of the invention;
Figure 10 is the structural schematic diagram of smart machine of the invention;
Figure 11 is the structural schematic diagram of the extraction unit of smart machine of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here To explain.
Those skilled in the art of the present technique be appreciated that " terminal " used herein above, " terminal device ", " smart machine ", " control of intelligent terminal " had both included the equipment of wireless signal receiver, only had the wireless signal receiver of non-emissive ability Equipment, and the equipment including receiving and emitting hardware, the reception of two-way communication can be executed on bidirectional communication link by having With the equipment of transmitting hardware.This equipment may include: honeycomb or other communication equipments, with single line display or multi-thread Road display or honeycomb or other communication equipments without multi-line display;PCS(Personal Communications Service, PCS Personal Communications System), it can be with combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, personal digital assistant), may include radio frequency receiver, pager, internet/ Intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System, global location System) receiver;Conventional laptop and/or palmtop computer or other equipment have and/or including radio frequency receiver Conventional laptop and/or palmtop computer or other equipment.Various " terminals " used herein above can be it is portable, can transport It is defeated, be mounted in the vehicles (aviation, sea-freight and/or land), or be suitable for and/or be configured in local runtime, and/ Or with distribution form, operate in any other position operation in the earth and/or space.Various " terminals " used herein above may be used also To be communication terminal, access terminals, music/video playback terminal, such as it can be PDA, MID (Mobile Internet Device, mobile internet device) and/or mobile phone with music/video playing function, be also possible to smart television, The equipment such as set-top box, intelligent video camera head, intelligent remote controller, intelligent socket.
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.

Claims (50)

1.一种智能设备联网控制方法,其特征在于,包括如下步骤:1. an intelligent device networking control method, is characterized in that, comprises the steps: 显示用户界面用于获取使智能设备接入目标网络的配置信息;Displaying a user interface for obtaining configuration information for enabling the smart device to access the target network; 将所述配置信息编码到多个组播数据帧中各个组播数据帧所具有的两个可编辑域;encoding the configuration information into two editable fields that each of the multiple multicast data frames has; 无线发送所述的组播数据帧,以启动对智能设备的联网配置;Wirelessly send the multicast data frame to start the networking configuration of the smart device; 为联网后的智能设备提供用于与所述智能设备交互的控制操作界面;Provide a control operation interface for interacting with the smart device after the networked smart device; 所述配置信息的编码过程包括如下具体步骤:The encoding process of the configuration information includes the following specific steps: 将所述配置信息对应的编码序列分离成多个码串,定义每个码串与为其分配的表征索引顺序的相应索引串为编码单元;Separating the coding sequence corresponding to the configuration information into a plurality of code strings, and defining each code string and the corresponding index string assigned to it to represent the index order as a coding unit; 基于组播数据帧格式构造参考帧,初始化该参考帧的两个可编辑域以确定基准;Construct a reference frame based on the multicast data frame format, and initialize two editable fields of the reference frame to determine the benchmark; 基于组播数据帧格式构造信息帧,将每个编码单元分成两部分内容分别表达于对应的一个信息帧的两个可编辑域中。The information frame is constructed based on the multicast data frame format, and each coding unit is divided into two parts, which are respectively expressed in two editable fields of a corresponding information frame. 2.根据权利要求1所述的方法,所述配置信息包括目标网络的服务集标识及密码。2. The method of claim 1, wherein the configuration information includes a service set identifier and a password of the target network. 3.根据权利要求1所述的方法,其特征在于,所述配置信息被以预存密钥加密成密文并转换为所述的编码序列。3. The method according to claim 1, wherein the configuration information is encrypted into ciphertext with a pre-stored key and converted into the encoding sequence. 4.根据权利要求1所述的方法,其特征在于,所述组播数据帧的可编辑域包括目的地址域及帧本体域。4 . The method according to claim 1 , wherein the editable fields of the multicast data frame include a destination address field and a frame body field. 5 . 5.根据权利要求4所述的方法,其特征在于,每个构造而成的信息帧,其目的地址域表达所述编码单元的第一部分内容,其帧长度与所述参考帧的帧长度的差值表达所述编码单元的其余部分内容,所述帧长度唯一性地决定于其所属组播数据帧的帧本体域。5. The method according to claim 4, wherein, in each constructed information frame, its destination address field expresses the first part of the content of the coding unit, and its frame length is equal to the frame length of the reference frame. The difference value expresses the rest of the content of the coding unit, and the frame length is uniquely determined by the frame body field of the multicast data frame to which it belongs. 6.根据权利要求5所述的方法,其特征在于,所述码串包括被与索引串串接表达于所属信息帧的目的地址域中的第一子码串,和被表达于所属信息帧与该参考帧的帧长度差值中的第二子码串。6. The method according to claim 5, wherein the code string comprises a first sub-code string expressed in the destination address field of the belonging information frame concatenated with the index string, and expressed in the belonging information frame The second subcode string in the frame length difference from the reference frame. 7.根据权利要求5所述的方法,其特征在于,所述索引串包括被与码串串接表达于所属信息帧的目的地址域中的第一子索引串,和被表达于所属信息帧与该参考帧的帧长度差值中的第二子索引串。7. The method according to claim 5, wherein the index string comprises a first sub-index string expressed in the destination address field of the belonging information frame by concatenating with the code string, and a first sub-index string expressed in the belonging information frame The second sub-index string in the frame length difference with the reference frame. 8.根据权利要求5所述的方法,其特征在于,所述编码单元的其余部分内容体现为所述帧长度差值的二进制格式。8. The method according to claim 5, wherein the rest of the content of the coding unit is embodied in a binary format of the frame length difference. 9.根据权利要求4所述的方法,其特征在于,所述信息帧的可编辑域中,其目的地址域提供可编码比特区用于表达所述编码单元,该可编码比特区靠近目的地址域的实际字节长度的低位设置且不超过23位。9 . The method according to claim 4 , wherein, in the editable field of the information frame, the destination address field of the information frame provides a codable bit region for expressing the coding unit, and the codable bit region is close to the destination address. 10 . The low-order bits of the actual byte length of the field are set and do not exceed 23 bits. 10.根据权利要求1所述的方法,其特征在于,所述参考帧的目的地址域提供可编码比特区,该可编码比特区中各个比特均被置为0或1。10 . The method according to claim 1 , wherein the destination address field of the reference frame provides a coded bit region, and each bit in the coded bit region is set to 0 or 1. 11 . 11.根据权利要求1所述的方法,其特征在于,不同信息帧间的帧长度变化均唯一性决定于各信息帧中的帧本体域的长度。11 . The method according to claim 1 , wherein the frame length variation between different information frames is uniquely determined by the length of the frame body field in each information frame. 12 . 12.根据权利要求1所述的方法,其特征在于,发送所述组播数据帧的步骤中,同一所述组播数据帧被多次传输。12. The method according to claim 1, wherein in the step of sending the multicast data frame, the same multicast data frame is transmitted multiple times. 13.根据权利要求1所述的方法,其特征在于,所述组播数据帧为IEEE 802.11协议所规范。13. The method according to claim 1, wherein the multicast data frame is regulated by the IEEE 802.11 protocol. 14.根据权利要求1所述的方法,其特征在于,执行本方法时维持本机与所述目标网络的连接状态。14. The method according to claim 1, wherein the connection state between the local machine and the target network is maintained when the method is executed. 15.一种智能控制终端,其特征在于,其包括:15. An intelligent control terminal, characterized in that it comprises: 获取单元,用于显示用户界面用于获取使智能设备接入目标网络的配置信息;an acquisition unit for displaying a user interface for acquiring configuration information for enabling the smart device to access the target network; 处理单元,用于将所述配置信息编码到多个组播数据帧中各个组播数据帧所具有的两个可编辑域;a processing unit, configured to encode the configuration information into two editable fields of each multicast data frame in the multiple multicast data frames; 信号传输单元,用于无线发送所述的组播数据帧,以启动对智能设备的联网配置;a signal transmission unit for wirelessly sending the multicast data frame to start the networking configuration of the smart device; 操作单元,用于为联网后的智能设备提供用于与所述智能设备交互的控制操作界面;an operation unit, configured to provide a networked intelligent device with a control operation interface for interacting with the intelligent device; 所述处理单元包括:The processing unit includes: 编码拆分单元,用于将所述配置信息对应的编码序列分离成多个码串,定义每个码串与为其分配的表征索引顺序的相应索引串为编码单元;a coding splitting unit, configured to separate the coding sequence corresponding to the configuration information into a plurality of code strings, and define each code string and the corresponding index string assigned to it to represent the index order as a coding unit; 参考帧构造单元,被配置为基于组播数据帧格式构造参考帧,初始化该参考帧的两个可编辑域以确定基准;a reference frame construction unit, configured to construct a reference frame based on the multicast data frame format, and initialize two editable fields of the reference frame to determine a reference; 信息帧构造单元,被配置为基于组播数据帧格式构造信息帧,将每个编码单元分成两部分内容分别表达于对应的一个信息帧的两个可编辑域中。The information frame construction unit is configured to construct the information frame based on the multicast data frame format, and divides each coding unit into two parts and expresses the content in two editable fields of a corresponding information frame respectively. 16.根据权利要求15所述的智能控制终端,所述配置信息包括目标网络的服务集标识及密码。16. The intelligent control terminal according to claim 15, wherein the configuration information comprises a service set identifier and a password of the target network. 17.根据权利要求15所述的智能控制终端,其特征在于,所述配置信息被以预存密钥加密成密文并转换为所述的编码序列。17 . The intelligent control terminal according to claim 15 , wherein the configuration information is encrypted into cipher text with a pre-stored key and converted into the encoding sequence. 18 . 18.根据权利要求15所述的智能控制终端,其特征在于,所述组播数据帧的可编辑域包括目的地址域及帧本体域。18 . The intelligent control terminal according to claim 15 , wherein the editable fields of the multicast data frame include a destination address field and a frame body field. 19 . 19.根据权利要求17所述的智能控制终端,其特征在于,每个构造而成的信息帧,其目的地址域表达所述编码单元的第一部分内容,其帧长度与所述参考帧的帧长度的差值表达所述编码单元的其余部分内容,所述帧长度唯一性地决定于其所属组播数据帧的帧本体域。19. The intelligent control terminal according to claim 17, wherein, in each constructed information frame, its destination address field expresses the first part of the content of the coding unit, and its frame length is the same as the frame length of the reference frame. The difference in length expresses the rest of the content of the coding unit, and the frame length is uniquely determined by the frame body field of the multicast data frame to which it belongs. 20.根据权利要求19所述的智能控制终端,其特征在于,所述码串包括被与索引串串接表达于所属信息帧的目的地址域中的第一子码串,和被表达于所属信息帧与该参考帧的帧长度差值中的第二子码串。20 . The intelligent control terminal according to claim 19 , wherein the code string comprises a first sub-code string expressed in the destination address field of the belonging information frame by concatenating with the index string, and a first sub-code string expressed in the belonging information frame. 21 . The second subcode string in the frame length difference between the information frame and the reference frame. 21.根据权利要求19所述的智能控制终端,其特征在于,所述索引串包括被与码串串接表达于所属信息帧的目的地址域中的第一子索引串,和被表达于所属信息帧与该参考帧的帧长度差值中的第二子索引串。21. The intelligent control terminal according to claim 19, wherein the index string comprises a first sub-index string expressed in the destination address field of the belonging information frame by concatenating with the code string, and a first sub-index string expressed in the belonging information frame The second sub-index string in the frame length difference between the information frame and the reference frame. 22.根据权利要求19所述的智能控制终端,其特征在于,所述编码单元的其余部分内容为所述帧长度差值的二进制格式。22 . The intelligent control terminal according to claim 19 , wherein the content of the remaining part of the coding unit is in the binary format of the frame length difference. 23 . 23.根据权利要求18所述的智能控制终端,其特征在于,所述信息帧的可编辑域中,其目的地址域提供可编码比特区用于表达所述编码单元,该可编码比特区靠近目的地址域的实际字节长度的低位设置且不超过23位。23. The intelligent control terminal according to claim 18, wherein, in the editable field of the information frame, the destination address field of the information frame provides a coded bit region for expressing the coding unit, and the coded bit region is close to the The low-order bits of the actual byte length of the destination address field are set and do not exceed 23 bits. 24.根据权利要求15所述的智能控制终端,其特征在于,所述参考帧的目的地址域具有可编码比特区,该可编码比特区中各个比特均被置为0或1。24 . The intelligent control terminal according to claim 15 , wherein the destination address field of the reference frame has an coded bit region, and each bit in the coded bit region is set to 0 or 1. 25 . 25.根据权利要求15所述的智能控制终端,其特征在于,不同信息帧间的帧长度变化均唯一性决定于各信息帧中的帧本体域的长度。25. The intelligent control terminal according to claim 15, wherein the frame length variation between different information frames is uniquely determined by the length of the frame body field in each information frame. 26.根据权利要求15所述的智能控制终端,其特征在于,所述信号传输单元被配置为将同一所述组播数据帧多次传输。26. The intelligent control terminal according to claim 15, wherein the signal transmission unit is configured to transmit the same multicast data frame multiple times. 27.根据权利要求15所述的智能控制终端,其特征在于,所述组播数据帧为IEEE802.11协议所规范。27. The intelligent control terminal according to claim 15, wherein the multicast data frame is regulated by the IEEE802.11 protocol. 28.根据权利要求15所述的智能控制终端,其特征在于,该智能控制终端与所述目标网络处于连接状态。28. The intelligent control terminal according to claim 15, wherein the intelligent control terminal is in a connected state with the target network. 29.一种联网接入方法,其特征在于,包括如下步骤:29. A method for networking access, comprising the steps of: 接收加载有用于接入目标网络的配置信息的组播数据帧;receiving a multicast data frame loaded with configuration information for accessing the target network; 从所述组播数据帧所具有的两个可编辑域中提取所述的配置信息;Extract the configuration information from the two editable fields of the multicast data frame; 以所述的配置信息执行配置完成接入所述的目标网络;Performing configuration with the configuration information to complete the access to the target network; 接收加载有用于接入目标网络的配置信息的组播数据帧的步骤包括如下具体步骤:The step of receiving the multicast data frame loaded with the configuration information for accessing the target network includes the following specific steps: 接收组播数据帧;Receive multicast data frames; 判断该组播数据帧的可编辑域中是否包含特定内容,将具有特定内容的组播数据帧确定为参考帧;Determine whether the editable field of the multicast data frame contains specific content, and determine the multicast data frame with the specific content as the reference frame; 将不包含特定内容的其他组播数据帧确定为信息帧。Other multicast data frames that do not contain specific content are determined as information frames. 30.根据权利要求29所述的方法,其特征在于,从所述组播数据帧所具有的两个可编辑域中提取所述的配置信息的步骤包括如下具体步骤:30. The method according to claim 29, wherein the step of extracting the configuration information from the two editable fields possessed by the multicast data frame comprises the following specific steps: 从每个被确定为信息帧的组播数据帧的两个可编辑域中提取出码串及表征该码串的排列顺序的索引串构成编码单元;Extracting a code string and an index string representing the arrangement order of the code string from the two editable fields of each multicast data frame determined to be an information frame to form a coding unit; 按照每个编码单元中的索引串所表征的顺序,将所有编码单元的码串按序拼接成编码序列;According to the order represented by the index string in each coding unit, the code strings of all coding units are sequentially spliced into a coding sequence; 将编码序列还原为所述的配置信息。Restore the coding sequence to the configuration information described. 31.根据权利要求30所述的方法,其特征在于,所述信息帧的两个可编辑域分别为目的地址域和帧本体域,从信息帧的目的地址域所具有的可编辑比特区中提取对应的编码单元的第一部分内容,以信息帧的帧长度相对于所述参考帧的帧长度的差值确定该编码单元的剩余部分内容。31. The method according to claim 30, wherein the two editable fields of the information frame are a destination address field and a frame body field respectively, and are from the editable bit area that the destination address field of the information frame has. The first part of the content of the corresponding coding unit is extracted, and the remaining part of the content of the coding unit is determined by the difference between the frame length of the information frame and the frame length of the reference frame. 32.根据权利要求31所述的方法,其特征在于,所述信息帧的目的地址域所具有的可编辑比特区为该目的地址域的低23位。32. The method according to claim 31, wherein the editable bit area of the destination address field of the information frame is the lower 23 bits of the destination address field. 33.根据权利要求29所述的方法,其特征在于,所述参考帧的目的地址域的低23位为可编辑比特区,其各位的值被置为全0或全1。33. The method according to claim 29, wherein the lower 23 bits of the destination address field of the reference frame are editable bit fields, and the value of each bit is set to all 0s or all 1s. 34.根据权利要求29所述的方法,其特征在于,所述参考帧的帧长度小于所接收的信息帧的帧长度。34. The method of claim 29, wherein the frame length of the reference frame is less than the frame length of the received information frame. 35.根据权利要求29所述的方法,其特征在于,所接收的不同信息帧间的帧长度变化唯一性关联于信息帧内的帧本体域长度。35. The method according to claim 29, wherein the frame length variation between different received information frames is uniquely associated with the frame body field length within the information frame. 36.根据权利要求30所述的方法,其特征在于,每个信息帧所对应的编码单元的码串由第一子码串和第二子码串构成,该信息帧的目的地址域用于表达所述第一子码串及为该码串所分配的索引串,该信息帧的帧长度与所述参考帧的帧长度之间的差值用于表达所述第二子码串。36. The method according to claim 30, wherein the code string of the coding unit corresponding to each information frame is composed of a first sub-code string and a second sub-code string, and the destination address field of the information frame is used for The first subcode string and the index string assigned to the code string are expressed, and the difference between the frame length of the information frame and the frame length of the reference frame is used to express the second subcode string. 37.根据权利要求30所述的方法,其特征在于,将编码序列还原为所述的配置信息的步骤包括如下具体步骤:37. The method according to claim 30, wherein the step of restoring the coding sequence to the configuration information comprises the following specific steps: 将所述编码序列对应转换为密文;Correspondingly convert the coding sequence into ciphertext; 以预存密钥解密该密文,获得格式化的信息串;Decrypt the ciphertext with the pre-stored key to obtain a formatted information string; 解析该格式化的信息串,获得所述的配置信息。Parse the formatted information string to obtain the configuration information. 38.根据权利要求29所述的方法,其特征在于,所述的配置信息包括所述目标网络的服务集标识与相应的密码。38. The method according to claim 29, wherein the configuration information comprises a service set identifier and a corresponding password of the target network. 39.根据权利要求29所述的方法,其特征在于,所述组播数据帧符合IEEE 802.11协议的规范。39. The method according to claim 29, wherein the multicast data frame conforms to the specification of the IEEE 802.11 protocol. 40.一种智能设备,其特征在于,包括:40. A smart device, comprising: 接收单元,用于接收加载有用于接入目标网络的配置信息的组播数据帧;a receiving unit, configured to receive a multicast data frame loaded with configuration information for accessing the target network; 提取单元,用于从所述组播数据帧所具有的两个可编辑域中提取所述的配置信息;an extraction unit, configured to extract the configuration information from the two editable fields that the multicast data frame has; 接入单元,用于以所述的配置信息执行配置完成接入所述的目标网络;an access unit, configured to perform configuration and complete access to the target network with the configuration information; 所述接收单元被配置为执行如下功能:The receiving unit is configured to perform the following functions: 接收组播数据帧;Receive multicast data frames; 判断该组播数据帧的可编辑域中是否包含特定内容,将具有特定内容的组播数据帧确定为参考帧;Determine whether the editable field of the multicast data frame contains specific content, and determine the multicast data frame with the specific content as the reference frame; 将不包含特定内容的其他组播数据帧确定为信息帧。Other multicast data frames that do not contain specific content are determined as information frames. 41.根据权利要求40所述的智能设备,其特征在于,所述提取单元包括:41. The smart device according to claim 40, wherein the extraction unit comprises: 提取模块,用于从每个被确定为信息帧的组播数据帧的两个可编辑域中提取出码串及表征该码串的排列顺序的索引串构成编码单元;The extraction module is used for extracting a code string and an index string representing the arrangement order of the code string from the two editable fields of each multicast data frame determined as an information frame to form a coding unit; 拼接模块,用于按照每个编码单元中的索引串所表征的顺序,将所有编码单元的码串按序拼接成编码序列;A splicing module, for splicing the code strings of all coding units into a coding sequence in sequence according to the order represented by the index string in each coding unit; 还原模块,用于将编码序列还原为所述的配置信息。The restoration module is used to restore the coding sequence to the configuration information. 42.根据权利要求41所述的智能设备,其特征在于,所述信息帧的两个可编辑域分别为目的地址域和帧本体域,所述提取模块被配置为:从信息帧的目的地址域所具有的可编辑比特区中提取对应的编码单元的第一部分内容,以信息帧的帧长度相对于所述参考帧的帧长度的差值确定该编码单元的剩余部分内容。42. The smart device according to claim 41, wherein the two editable fields of the information frame are respectively a destination address field and a frame body field, and the extraction module is configured to: extract the information from the destination address of the information frame The first part of the content of the corresponding coding unit is extracted from the editable bit area possessed by the domain, and the remaining part of the content of the coding unit is determined by the difference between the frame length of the information frame and the frame length of the reference frame. 43.根据权利要求42所述的智能设备,其特征在于,所述信息帧的目的地址域所具有的可编辑比特区为该目的地址域的低23位。43. The smart device according to claim 42, wherein the editable bit area contained in the destination address field of the information frame is the lower 23 bits of the destination address field. 44.根据权利要求40所述的智能设备,其特征在于,所述参考帧的目的地址域的低23位为可编辑比特区,其各位的值被置为全0或全1。44. The smart device according to claim 40, wherein the lower 23 bits of the destination address field of the reference frame are editable bit regions, and the value of each bit is set to all 0s or all 1s. 45.根据权利要求40所述的智能设备,其特征在于,所述参考帧的帧长度小于所接收的信息帧的帧长度。45. The smart device according to claim 40, wherein the frame length of the reference frame is smaller than the frame length of the received information frame. 46.根据权利要求40所述的智能设备,其特征在于,所述接收单元所接收的不同信息帧间的帧长度变化唯一性关联于信息帧内的帧本体域长度。46. The smart device according to claim 40, wherein the frame length variation between different information frames received by the receiving unit is uniquely associated with the frame body field length in the information frame. 47.根据权利要求41所述的智能设备,其特征在于,每个信息帧所对应的编码单元的码串由第一子码串和第二子码串构成,该信息帧的目的地址域用于表达所述第一子码串及为该码串所分配的索引串,该信息帧的帧长度与所述参考帧的帧长度之间的差值用于表达所述第二子码串。47. The smart device according to claim 41, wherein the code string of the coding unit corresponding to each information frame is composed of a first sub-code string and a second sub-code string, and the destination address field of the information frame is For expressing the first sub-code string and the index string allocated to the code string, the difference between the frame length of the information frame and the frame length of the reference frame is used to express the second sub-code string. 48.根据权利要求41所述的智能设备,其特征在于,所述还原模块包括:48. The smart device according to claim 41, wherein the restoration module comprises: 转换子模块,用于将所述编码序列对应转换为密文;A conversion submodule, for correspondingly converting the coding sequence into ciphertext; 解密子模块,用于以预存密钥解密该密文,获得格式化的信息串;A decryption submodule, used for decrypting the ciphertext with a pre-stored key to obtain a formatted information string; 解析子模块,用于解析该格式化的信息串,获得所述的配置信息。The parsing submodule is used for parsing the formatted information string to obtain the configuration information. 49.根据权利要求40所述的智能设备,其特征在于,所述的配置信息包括所述目标网络的服务集标识与相应的密码。49. The smart device according to claim 40, wherein the configuration information comprises a service set identifier and a corresponding password of the target network. 50.根据权利要求40所述的智能设备,其特征在于,所述组播数据帧符合IEEE 802.11协议的规范。50. The smart device according to claim 40, wherein the multicast data frame conforms to the specification of the IEEE 802.11 protocol.
CN201510378921.6A 2015-07-01 2015-07-01 Networking control, cut-in method and corresponding terminal and equipment Active CN105072665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510378921.6A CN105072665B (en) 2015-07-01 2015-07-01 Networking control, cut-in method and corresponding terminal and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510378921.6A CN105072665B (en) 2015-07-01 2015-07-01 Networking control, cut-in method and corresponding terminal and equipment

Publications (2)

Publication Number Publication Date
CN105072665A CN105072665A (en) 2015-11-18
CN105072665B true CN105072665B (en) 2019-03-05

Family

ID=54501910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510378921.6A Active CN105072665B (en) 2015-07-01 2015-07-01 Networking control, cut-in method and corresponding terminal and equipment

Country Status (1)

Country Link
CN (1) CN105072665B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101102B (en) * 2015-07-01 2019-01-25 北京奇虎科技有限公司 Multicast transmission method, information extraction method and corresponding terminal and equipment
CN105979511B (en) * 2016-05-04 2019-11-26 深圳市蜂联科技有限公司 A method of realizing that SD and AP is quickly connected using the encryption of SD information under the WIFI environment of onrelevant
CN106411668A (en) * 2016-09-28 2017-02-15 四川长虹电器股份有限公司 Network access method for Internet of things equipment
CN106550358A (en) * 2016-10-28 2017-03-29 上海智臻智能网络科技股份有限公司 Non-interactive type equipment and its method for network access, system
KR20180059207A (en) * 2016-11-25 2018-06-04 에이치피프린팅코리아 주식회사 Method for setting wireless connection of image forming apparatus using mobile terminal and image forming apparatus for performing the same
CN107222848B (en) * 2017-07-10 2019-12-17 普联技术有限公司 WiFi frame encoding method, transmitting end, storage medium and wireless access equipment
CN108123961B (en) * 2018-01-17 2021-10-08 北京网信云服信息科技有限公司 Information processing method, device and system
CN110582107A (en) * 2018-06-08 2019-12-17 阿里巴巴集团控股有限公司 method and device for accessing network to be configured to network hotspot equipment
CN110636588A (en) * 2018-06-25 2019-12-31 阿里巴巴集团控股有限公司 Data communication method and device
CN111083020A (en) * 2018-10-19 2020-04-28 昆盈企业股份有限公司 Smart home appliance control method
CN110213017B (en) * 2019-04-30 2021-11-12 普联技术有限公司 Data transmission method, device and system, storage medium and terminal equipment
CN110649937B (en) * 2019-09-23 2021-03-02 明格(上海)信息技术有限公司 Ultrasonic wave emission control method, and transmission and reception control method and device
CN113596742B (en) * 2021-09-27 2022-01-25 北京高德品创科技有限公司 Data transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2428015A1 (en) * 2009-05-04 2012-03-14 Research in Motion Limited System and method for implementing media and media transfer between devices
CN103825788A (en) * 2014-01-29 2014-05-28 北京睿通慧联科技有限公司 WIFI network configuration method and system
CN104486755A (en) * 2014-12-03 2015-04-01 北京京东尚科信息技术有限公司 System and method for realizing WIFI (Wireless Fidelity) configuration of intelligent equipment based on ibeacon
CN104660726A (en) * 2015-02-03 2015-05-27 普联技术有限公司 Network configuration method, device and system for intelligent device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2428015A1 (en) * 2009-05-04 2012-03-14 Research in Motion Limited System and method for implementing media and media transfer between devices
CN103825788A (en) * 2014-01-29 2014-05-28 北京睿通慧联科技有限公司 WIFI network configuration method and system
CN104486755A (en) * 2014-12-03 2015-04-01 北京京东尚科信息技术有限公司 System and method for realizing WIFI (Wireless Fidelity) configuration of intelligent equipment based on ibeacon
CN104660726A (en) * 2015-02-03 2015-05-27 普联技术有限公司 Network configuration method, device and system for intelligent device

Also Published As

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

Similar Documents

Publication Publication Date Title
CN105072665B (en) Networking control, cut-in method and corresponding terminal and equipment
CN105101102B (en) Multicast transmission method, information extraction method and corresponding terminal and equipment
CN105119900B (en) Information security transmission method, networking access method and corresponding terminal
CN106254147B (en) It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal
CN104703176B (en) Configuration method of wireless network, intelligent terminal and wireless network equipment
CN104660726B (en) Network collocating method, the apparatus and system of smart machine
CN103945369B (en) A kind of length by checking WIFI packets realizes the Internet-surfing configuration method of WIFI equipment
CN109525566B (en) LoRaWan data exchange method based on enhanced MQTT message mechanism
EP3445094A1 (en) Wifi configuration method, wifi mobile terminal, and wifi device
US20050286456A1 (en) System and method for broadcasting application-specific information in wireless local area networks
US20100266125A1 (en) Communication system, base station device, and terminal device
CN103765848A (en) Apparatus and method for media access control replacement
CN101964722A (en) Method and system for communication
EP2894824B1 (en) Method and device for wireless information transmission
CN105120454B (en) Information transmission method, networking access method and corresponding terminal
CN104081701A (en) Communication method, system and device of optical network system
CN105120012B (en) Smart machine and its networking cut-in method, message receiving method and device
CN103841523A (en) Information transmission method for conducting Wi-Fi message length based on multicast physical address
CN103404191A (en) Data transmission method, data transmission device and data transmission system
CN106550362A (en) The method and system of smart machine secure accessing WLAN
US8248927B2 (en) VLAN pooling
CN103002504B (en) Data transmission method for uplink and access point, data receiver method and website, system
CN110149631B (en) Method and system suitable for cloud loudspeaker box connection establishment
WO2023236984A1 (en) Wireless network access method, apparatus and device, and storage medium
WO2016119624A1 (en) Data transmission method and apparatus thereof

Legal Events

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

Effective date of registration: 20220725

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

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

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

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

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

TR01 Transfer of patent right