CN108430091A - A kind of efficient smart home wifi distribution method and apparatus - Google Patents

A kind of efficient smart home wifi distribution method and apparatus Download PDF

Info

Publication number
CN108430091A
CN108430091A CN201711442256.8A CN201711442256A CN108430091A CN 108430091 A CN108430091 A CN 108430091A CN 201711442256 A CN201711442256 A CN 201711442256A CN 108430091 A CN108430091 A CN 108430091A
Authority
CN
China
Prior art keywords
data packet
encoding value
field
character
distribution information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711442256.8A
Other languages
Chinese (zh)
Other versions
CN108430091B (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.)
SUNING INTELLIGENT TERMINAL Co.,Ltd.
Original Assignee
Suning Commerce Group 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 Suning Commerce Group Co Ltd filed Critical Suning Commerce Group Co Ltd
Priority to CN201711442256.8A priority Critical patent/CN108430091B/en
Publication of CN108430091A publication Critical patent/CN108430091A/en
Application granted granted Critical
Publication of CN108430091B publication Critical patent/CN108430091B/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
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • 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

Abstract

The embodiment of the invention discloses a kind of efficient smart home wifi distribution method and apparatus, are related to electronic information technical field, can improve the safety of router during distribution.The present invention includes:Distribution information is encoded, encoding value is obtained, wherein the distribution information includes:Encrypted message;Determine the data packet of the corresponding encoding value, wherein the length of data packet establishes mapping relations with each encoding value;Identified data packet is broadcasted outward;When receiving multicast information, determine that distribution is completed, wherein the multicast information is sent out by wireless routing after establishing connection with smart machine.The present invention is suitable for wireless network distribution.

Description

A kind of efficient smart home wifi distribution method and apparatus
Technical field
The present invention relates to electronic information technical fields more particularly to a kind of efficient smart home wifi with network method and to set It is standby.
Background technology
In the application of small wireless network, smart home is quickly grown, and progresses into huge numbers of families, and corresponding intelligence is set It is standby to be also evolving.Wherein, the connection of smart machine and network is necessary requirement, is the basis for realizing various intelligent demands. Therefore also to matching network technology, more stringent requirements are proposed with operability.
For the selection of cost control, there is no operation interfaces for smart machines many at present, and only simple Operating system, such as air-conditioning, sweeping robot, intelligent air condition etc., the operation directly in equipment of having no idea carry out distribution, usually It needs to carry out distribution using smart mobile phone.Such as:Distribution is carried out by cell phone application end multicast.
Have and broadcasts the scheme that the package for carrying IP carries out distribution by cell phone application, but due to coding staff in this mode Formula is complicated, and distribution efficiency is low.And due to mobile phone actually can codified data volume it is very little so that most schemes are all difficult in mobile phone The information that the routers such as SSID are added in the package of transmission, needs router to be actively in scanned state, reduces routing The safety of device.
Invention content
The embodiment of the present invention provides a kind of distribution method and apparatus, can improve the safety of router during distribution Property.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In currently existing scheme, the package of IP address is carried to be broadcasted by user terminals such as smart mobile phones, it is necessary to According to communication code agreement, the information such as IP address are packaged, coding, cipher mode among these is complex, is limited by The process performance of user terminal, distribution efficiency are low;And the data volume of codified is very little, and the code length of support is very short, user Terminal can not send more information.Therefore it needs router device to be in scanned state, and actively receives smart machine Scanning, in order to which smart machine is obtained by scanning the information of router device.And this process can make router device It sticks one's chin out, if occurring other malicious users in wireless network range simultaneously, router device can be revealed, to cause to pacify The problem of full property.
In the present embodiment, the data packet for each character being converted to different length is broadcasted, and passes through data packet Length carries out character recognition so that need not carry out the work of coding and decoding to data packet during distribution, and need to only pass through volume Yardage value and the mapping relations of data packet length, which carry out simple queries, can obtain distribution information, i.e., in the present embodiment " coding, Decoding " process, is only a series of processing carried out according to data packet length, relative to " coding, the decoding " to data packet itself Process, the present embodiment is simpler and is easily achieved, and is suitble to realize on the limited user terminal of function.
The problem of can not sending more information caused by being limited by code length in the prior art, branch are also breached simultaneously The codified number of characters held is enough, can send the information in relation to router.Router device is avoided in this way in distribution The actively problem of exposure in the process, during realizing distribution, router device is in addition to forwarding the data that send out of user terminal Packet is outer, need not actively send other data packets with security risks, the problem of also avoiding maliciously to be scanned, improves The safety of router, protects the privacy of user during distribution.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of schematic diagram of possible realization method of system architecture provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow schematic diagram provided in an embodiment of the present invention;
Fig. 3 provides the interaction schematic diagram of specific example for the embodiment of the present invention;
Fig. 4 is another method flow schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
To make those skilled in the art more fully understand technical scheme of the present invention, below in conjunction with the accompanying drawings and specific embodiment party Present invention is further described in detail for formula.Embodiments of the present invention are described in more detail below, the embodiment is shown Example is shown in the accompanying drawings, and in which the same or similar labels are throughly indicated same or similar element or has identical or class Like the element of function.It is exemplary below with reference to the embodiment of attached drawing description, is only used for explaining the present invention, and cannot It is construed to limitation of the present invention.Those skilled in the art of the present technique are appreciated that unless expressly stated, odd number shape used herein Formula " one ", "one", " described " and "the" may also comprise plural form.It is to be further understood that the specification of the present invention The middle wording " comprising " used refers to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that Other one or more features of presence or addition, integer, step, operation, element, component and/or their group.It should be understood that When we say that an element is " connected " or " coupled " to another element, it can be directly connected or coupled to other elements, or There may also be intermediary elements.In addition, " connection " used herein or " coupling " may include being wirelessly connected or coupling.Here make Wording "and/or" includes any cell of one or more associated list items and all combines.The art Technical staff is appreciated that unless otherwise defined all terms (including technical terms and scientific terms) used herein have Meaning identical with the general understanding of the those of ordinary skill in fields of the present invention.It should also be understood that such as general Term, which should be understood that, those of defined in dictionary has a meaning that is consistent with the meaning in the context of the prior art, and Unless being defined as here, will not be explained with the meaning of idealization or too formal.
The embodiment of the present invention specifically may be implemented in a kind of system as shown in Figure 1, including:Router device, User terminal and smart machine.
Wireless communication module, such as WIFI module and serial port module are configured in smart machine, in depositing for smart machine Operating system is installed in reservoir.Wherein, serial port module has for being communicated with equipment mainboard by existing serial port protocol Body can use existing serial port protocol, local journey by the manufacturer of smart machine according to concrete model, the type of smart machine Sequence can also voluntarily be write by the manufacturer of smart machine.Specifically, the smart machine described in the present embodiment can be by intelligence Equipment and electrical equipment composition, run operating system in smart machine, and by the equipment mainboard of serial port module and electrical equipment, It is communicated using existing serial port protocol;Electrical equipment state change, control smart machine operate equipment mainboard for identification. Smart machine can be information displaying/control module with display screen, and smart machine often has operating system, externally passes through WIFI module communicates, and is internally communicated by serial port module and equipment mainboard, meanwhile, the local customized is run in operating system Program, the mutual conversion being responsible between serial data and the intelligible data format of smart machine equipment.User can be in smart machine Upper active operation realizes network savvy, and can complete such as to do shopping, the additional functions such as web page browsing.Electrical equipment can be specifically The household electrical appliance such as refrigerator, refrigerator-freezer, dish-washing machine, air-conditioning.
User terminal can specifically make an independent equipment in fact, or be integrated in a variety of different medium data playing systems In, such as smart mobile phone, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital assistant, abbreviation PDA) or wearable device (Wearable Device) etc..It can be by the application program or APP of installation, for configuring smart machine on user terminal With controllable household appliance, for example the user terminal that router device can be established and be registered in the household appliance that postpones matched by APP Binding relationship;And establish the binding relationship of multimedia play equipment and smart machine.
Router device can be specifically the equipment for building wireless network, can be usually WIFI routers, pass through Wifi signals are radiated in a certain range, and couple in router equipment is connected to internet.
The embodiment of the present invention provides one kind and matching network method, specifically may be implemented on user terminal as shown in Figure 1.Such as figure Shown in 2, this method includes:
S11, distribution information is encoded, obtains encoding value.
Wherein, the distribution information includes:Encrypted message.Optionally, can also include in the distribution information:Router The SSID (Service Set Identifier, service set) of equipment.
In the present embodiment, the coding modes such as base64 codings, 16 scale codings and base62 codings may be used.Below It is illustrated by taking base64 coding modes as an example:Base64 processing is carried out to the character of distribution information, character is all mapped as The encoding value of base64 codings, wherein encode, any character can be serialized by using currently used base64, turned Turn to 64 fixed characters.
Then according to the encoding value of gained base64 formats, be mapped as specific specific length data packet (wherein, due to In base64 coding modes, 64 fixed characters may finally be obtained, therefore the number of 64 different lengths can be prepared in advance According to packet, in order to respectively represent 64 fixed characters by different packet lengths), then these specific spies of broadcast transmission one by one The data packet of measured length.To which distribution information to be passed to the wifi module of smart machine, the Wifi modules of smart machine receive To after data packet, inquired to obtain the encoding value of base64 formats according to the length of received data packet, then carry out base64 Decoding, the original Character decoder of distribution information is come out.Such as:Encrypted message includes a, b, c, d this 4 characters, is converted into The encoding value of base64 formats, corresponding data packet length are:The encoding value institute that character a is converted into base64 formats is right The data packet length answered is 1, and it is 2 that character b, which is converted into the data packet length corresponding to the encoding value of base64 formats ..., etc. Deng and so on.
S12, the data packet for determining the corresponding encoding value.
Wherein, the length of data packet establishes mapping relations with each encoding value.
Specifically, the mapping relations of encoding value and data packet length can be stored in the volume being used arbitrarily in the present embodiment In code, decoding process equipment, such as router device, user terminal and smart machine etc. in Fig. 1.Such as:User terminal is logical It crosses and runs corresponding APP and start broadcast data packet (data packet have specific length).The wifi module of smart machine is monitored, is connect It receives, the data packet of analysis user terminal broadcast, the SSID of the router device needed for networking is parsed from data packet The distributions information such as (Service Set Identifier, service set), password.
S13, identified data packet is broadcasted outward.
Wherein it is possible to the data packet broadcasted from router device to smart machine forwarding user equipment.
S14, when receiving multicast information (mDNS), determine distribution complete.
Wherein, the multicast information is sent out by wireless routing after establishing connection with smart machine.
Such as:As shown in Figure 3, the embedded 2.4G wifi modules in smart machine, wherein " wifi shown in Fig. 3 Module " is to be embedded in the 2.4G wifi modules of smart machine, and " wifi routings " is router device, Fig. 3 shown in Fig. 3 Shown in " cell phone application " be the APP (executive agent be smart mobile phone) as user terminal run on user terminal.Base In the flow of S1-S4, specifically it can realize that smart machine is connect with the distribution of wifi routers by following steps.
By the combination button or other triggering modes on the remote controler of smart machine, wifi module is allowed to enter promisc mode;
Then the APP on user terminal starts to send broadcast packet (carrying distribution information in broadcast packet);
Wifi module is monitored, receives, analyzes broadcast packet, and the letters such as SSID, the password needed for networking are parsed in being reported from broadcast Breath, parsing obtain SSID, password;
Wifi module connects wifi routers;
Wifi module is networked successfully by mDNS notice of settlement cell phone applications.
In currently existing scheme, the package of IP address is carried to be broadcasted by user terminals such as smart mobile phones, it is necessary to According to communication code agreement, the information such as IP address are packaged, coding, cipher mode among these is complex, is limited by The process performance of user terminal, distribution efficiency are low.And the data volume of codified is very little, and usual supported Password Length is less than 32.For example, domestic contrast commonly matches network technology at present, generally also just supports 31 code lengths, can not still solve The problem of SSID of router device is hidden during distribution.
In the present embodiment, SSID information is no longer carried by the content in data packet, and each character is converted to The data packet of different length is broadcasted, and carries out character recognition by the length of data packet, to complete to send out to smart machine The purpose for sending SSID need not carry out data packet the work of coding and decoding, and need to only pass through encoding value and data packet length Mapping relations, which carry out simple queries, can obtain distribution information, i.e., " coding, decoding " process in the present embodiment, is only according to number According to a series of processing that packet length carries out, relative to " coding, decoding " process to data packet itself, the present embodiment is simpler And be easily achieved, it is suitble to realize on the limited user terminal of function.
Also avoid router device problem actively exposed during distribution, during realizing distribution, routing Device equipment need not actively send other data with security risks other than the data packet that forwarding user terminal is sent out Packet, the problem of also avoiding maliciously to be scanned, improves the safety with network process, protects the privacy of user.
It is described that distribution information is encoded to obtain encoding value in the present embodiment, step S1, specific implementation side Formula may include:
Character in the distribution information is encoded, each character is obtained and corresponds to encoding value.And according to described each A character corresponds to encoding value, generates the code field of each encoding value.
Wherein, the code field of an encoding value includes:It indicates the field of character position and indicates the word of character content Section.
In the present embodiment, the distribution information further includes the service set (SSID), the service set (SSID) character is encoded to obtain the encoding value of the service set (SSID), described by service set (SSID) data packet that conversion obtains includes the data packet of the encoding value of the corresponding service set (SSID).
It is described to broadcast identified data packet outward, including:It will be by the encrypted message and service set (SSID) Obtained data packet is converted to broadcast outward, wherein.
Provided in the present embodiment it is a set of efficiently match fidonetFido, which includes the improvement for packet frame structure, Due to need not be disassembled to data packet, and corresponding information is only indicated by the length of data packet, therefore simplifies coding Mode, and can support the Password Length of 32 SSID length+64, during realizing distribution, user terminal can Broadcast SSIDs and encrypted message simultaneously.
In the practical application of the present embodiment, 802.11 protocol of wireless local area network can be based on, designs and is suitable for 802.11 agreements, it is used for the frame format of distribution, than as shown in Table 1:
Table 1
Wherein Frame Body are encryption information, and data can not be parsed by monitoring end;And other fields are wireless Field defined in LAN protocol, user terminal lack of competence modify to it.So can not be added in frame format effectively Information.Therefore, changed to pass character information by data packet length (length) in the present embodiment.
Specifically, the code field for generating each encoding value, including:Generate the first code field of encoding value To N code fields.
Wherein, an encoding value is encoded to the combination of multiple code fields, includes to indicate in each code field The field of character position and the field for indicating character content, indicate that the field of character content is divided into the first content field To the N content fields, the i-th content field is written with the i-th code field, 1≤i≤N, 2≤N and be positive integer.In this reality It applies in example, indicates that the field of character position is properly termed as No. turn;Indicate that the field of character content can be interpreted as data packet Length value.No. Turn it is specific effect be:As the sequence identification of character in distribution information, i.e. distribution information is specifically by multiple Character composition, a series of character includes the information such as SSID and password.And it is needed when due to user terminal wide by cycle The form of unicast packets sends these information, it is therefore desirable to can determine that each character is believed in distribution during cycling through Correct position in breath marks correctly sequence, and marks the uniqueness of the data packet, to prevent out of order mistake.
Such as:One No. turn occupies 6 bit, and 64 different numbers can be represented from 000000 to 111111 Value.Such as:The format of one code field includes XXXXXX (No. turn) YYY (long data packet angle value), wherein X, Y are Binary number.Long data packet angle value is to indicate the field of character content, since long data packet angle value is 3 in a code field It is bit a, to the character for being 6 bit by describing an encoding value, then need two code fields, such as character It is 110 111 by the encoding value that base64 is encoded, then needs to send 2 code fields.One is needed to pass Defeated character finally needs the data packet number broadcasted corresponding with the quantity of the code field of character, and a code field passes through The data packet of one specific length is sent, and the length of data packet represents the occurrence of code field, such as: 111111+ This 2 code fields of 110 and 111110+111, need to transmit is that 111111110 and 111110111 the two values correspond to Data packet.
It is respectively 2 No. turn that 111111 and 111110 before field, which can be seemed, and subsequent 110 He of field 111, that is, form encoding value 110 111.Therefore in this example, a character needs to pass 2 times, and supported character is 64/2=32, because No. turn 6bit in total, there can be 64 different numerical value, but since one character of transmission needs 2 A No. turn, therefore it is 32 characters that can actually transmit.And the length of code field is 6+3=9bit length. And in practical applications, corresponding original character, after being converted into base64 encoding values due to original character, obtained coding Numerical value can become more, therefore the significant character that actual user can input only has 22.
Since during transmitting a character, the number of 1 No. turn reuse is more, then needs the data passed Bao Yue is more, and packet loss is also lower, it is contemplated that packet loss and efficiency of transmission, the present embodiment provides several possible encoding schemes:
Specifically, indicating character bit in the field to jth code field of expression character position in first code field The field set is identical, wherein 2≤j≤N.1 No. turn be used to send a character, i.e., No. turn with 2 times.
Due to carrying out distribution by the way of giving out a contract for a project using user terminal broadcast, user terminal can not directly confirm smart machine Whether wifi module end has received broadcast packet, and packet loss must also occur during packet receiving in the wifi module of smart machine, no Disposably all broadcast packets may all be received.User terminal needs continuous circulating repetition to send broadcast packet.So wide The encryption algorithm for broadcasting packet is the key that broadcast distribution in the present embodiment.
The length of Wifi broadcast packets is had maximum packet to be limited by WiFi agreements, if just needing to split more than maximum packet limitation, one Denier fractionation assembles then pretty troublesome again, because each packet is required for sending successfully completely, needs constantly to retransmit.Therefore codified digit Longest can be 10bit, if bit very little, the character quantity of codified again can be very little, so being devised in the present embodiment Several efficient encryption algorithms below:
One:The coding mode of one frame 9bit length indicates that the field of character position occupies 6 bits, indicates word The field for according with content occupies 3 bits.It is as shown in Table 2:
Table 2
Secondly:The coding mode of one frame 10bit length, as shown in table 3:
It indicates that the field of character position occupies 7 bits, indicates that the field of character content occupies 3 bits.Such as table 3 Shown in:
Table 3
In a preferred approach, N=j=2 is embodied as the scheme of the scheme 3- extensions 1 in table 3.The effective of its support can Code character is most, and receiving efficiency can also be met the requirements, and broadcasts general length in the case that network state is good The distribution information of SSID+ passwords can realize distribution success within 20S.
The data packet that the corresponding encoding value is determined based on above-mentioned coding mode, described in step S2, is specifically included: According to the mapping relations of the length of the data packet and each encoding value, inquiry obtains corresponding to the data packet of the encoding value.
For example, being carried out by taking the frame of 10bit length as an example, each bit of effect is as shown in table 4:
Table 4
In general, 32 characters can be arranged in the SSID maximums of router device, 64 characters can be arranged in password.In order to the greatest extent The possible usage scenario for meeting user needs to be extended " the scheme used described in table 3 to existing coding mode 3- extensions 1 ", 2 data packets of No. Turn transmission, can meet the usage scenario of user in this way.Expand by the present embodiment Encryption algorithm after exhibition, SSID can support 32 character lengths, password that can support 64 character lengths.
In currently existing scheme, when carrying out distribution into behavior smart machine by user terminals such as smart mobile phones, to protect The safety for hindering router device then needs the SSID for hiding router device, therefore can not just be forwarded by wireless router Multicast packets, therefore the resource of router can not be utilized when the multicast distribution of the ends smart mobile phone APP, it is supported as the wifi of smart mobile phone Maximum rate is excessively high to will appear the case where distribution fails, mainly since multicast mode can only mix the maximum rate of 150m. In practical application, the maximum rate that the wifi of some smart mobile phones is supported is 150m, and some is then 300m.
And net mode is matched in the broadcast used in the present embodiment, due to the forwarding resource using router, after router forwarding The problem of rate is 1Mbps, and the packet sending speed for having extenuated current mobile phone is more than wifi module range of receiving, compatible difference wifi The mobile phone of performance, therefore 150m and 300m this 2 kinds of rates can mix.
And in currently existing scheme, the package of IP address is carried to be broadcasted by user terminals such as smart mobile phones, just It needing, according to communication code agreement, to be packaged the information such as IP address, coding, cipher mode among these is complex, by It is formed on the process performance of user terminal, distribution efficiency is low.
And the data volume of codified is very little, and usual supported Password Length is less than 32.For example, current domestic contrast Commonly match network technology, generally also just supports 31 code lengths, can not still solve to hide router during distribution The problem of SSID of equipment.
On the problem of hiding the SSID of router device, since the code length that existing distribution algorithm is supported is very short, User terminal can not send SSID.Therefore it needs router device to be in scanned state, and actively receives smart machine Scanning, in order to which smart machine is obtained by scanning the SSID of router device.And this process can so that router device is sudden and violent Reveal the information such as the SSID of oneself, if occurring other malicious users in wireless network range simultaneously, router device can be revealed SSID, the problem of to cause safety.
In the present embodiment, SSID information is no longer carried by the content in data packet, and each character is converted to The data packet of different length is broadcasted, and carries out character recognition by the length of data packet, to complete to send out to smart machine The purpose for sending SSID need not carry out data packet the work of coding and decoding, and need to only pass through encoding value and data packet length Mapping relations, which carry out simple queries, can obtain distribution information, i.e., " coding, decoding " process in the present embodiment, is only according to number According to a series of processing that packet length carries out, relative to " coding, decoding " process to data packet itself, the present embodiment is simpler And be easily achieved, it is suitble to realize on the limited user terminal of function.
The problem of can not sending SSID caused by being limited by code length in the prior art is also breached simultaneously, support Codified number of characters is enough, can send SSID, and more information will also be added wherein for future provides possibility, extends Use scope.
Also avoid router device problem actively exposed during distribution, during realizing distribution, routing Device equipment need not actively send other data with security risks other than the data packet that forwarding user terminal is sent out Packet, the problem of also avoiding maliciously to be scanned, improves the safety with network process, protects the privacy of user.
The embodiment of the present invention provides one kind and matching network method, specifically may be implemented on smart machine as shown in Figure 1.Such as figure Shown in 4, this method includes:
The data packet that S21, parsing are got from broadcast, determines the encoding value of corresponding data packet.
Wherein, the encoding value to distribution information by being encoded to obtain, the length of data packet and each coding Numerical value establishes mapping relations, and the distribution information includes:Encrypted message.
S22, the distribution information is obtained using identified encoding value, and according to the distribution information and wireless routing Establish connection.
S23, multicast information (mDNS) is sent out to the wireless routing.
Further, the distribution information further includes:Service set (SSID), the service set (SSID) Character is encoded to obtain the encoding value of the service set (SSID), described to be converted by service set (SSID) To data packet include the corresponding service set (SSID) encoding value data packet.
In the present embodiment, the data packet received from broadcast is parsed described in step S21, determines the volume of corresponding data packet Yardage value, specific implementation may include:
The data packet received from broadcast is parsed, obtains code field, wherein the code field packet of an encoding value It includes:It indicates the field of character position and indicates the field of character content.
According to obtained code field, encoding value is determined.
And the character in the distribution information is obtained according to identified encoding value.
Specifically, an encoding value includes the first code field to N code fields, wherein the i-th content field is written I-th code field, 1≤i≤N, 2≤N and be positive integer are described to indicate that the field of character content is divided into described first Hold field to the N content fields.
Further, it indicates to indicate character in the field to jth code field of character position in first code field The field of position is identical, wherein 2≤j≤N.
In a preferred approach, it indicates that the field of character position occupies 7 bits, indicates that the field of character content occupies 3 A bit, and N=j=2.
In currently existing scheme, the package of IP address is carried to be broadcasted by user terminals such as smart mobile phones, it is necessary to According to communication code agreement, the information such as IP address are packaged, coding, cipher mode among these is complex, is limited by The process performance of user terminal, distribution efficiency are low.And the data volume of codified is very little, and usual supported Password Length is less than 32.For example, domestic contrast commonly matches network technology at present, generally also just supports 31 code lengths, can not still solve The problem of SSID of router device is hidden during distribution.
In the present embodiment, SSID information is no longer carried by the content in data packet, and each character is converted to The data packet of different length is broadcasted, and carries out character recognition by the length of data packet, to complete to send out to smart machine The purpose for sending SSID need not carry out data packet the work of coding and decoding, and need to only pass through encoding value and data packet length Mapping relations, which carry out simple queries, can obtain distribution information, i.e., " coding, decoding " process in the present embodiment, is only according to number According to a series of processing that packet length carries out, relative to " coding, decoding " process to data packet itself, the present embodiment is simpler And be easily achieved, it is suitble to realize on the limited user terminal of function.
Also avoid router device problem actively exposed during distribution, during realizing distribution, routing Device equipment need not actively send other data with security risks other than the data packet that forwarding user terminal is sent out Packet, the problem of also avoiding maliciously to be scanned, improves the safety with network process, protects the privacy of user.
The embodiment of the present invention provides a kind of user terminal, specifically may be implemented on user terminal as shown in Figure 1.At this In concrete application in embodiment, which includes at least:
Processor, network interface, memory, communication antenna and communication bus, the communication bus are used between each component Connection communication.
Storage is used for the computer program that the processor executes, the calculating performed by the processor in the memory Machine program includes:
Coding module obtains encoding value for being encoded to distribution information, wherein the distribution information includes:It is close Code information.
Preprocessing module, the data packet for determining the corresponding encoding value, wherein the length of data packet and each coding Numerical value establishes mapping relations.
Sending module, for being broadcasted identified data packet outward by the communication antenna.Believe when receiving multicast When ceasing (mDNS), determine that distribution is completed, wherein the multicast information is sent out by wireless routing after establishing connection with smart machine Go out.
In the present embodiment, SSID information is no longer carried by the content in data packet, and each character is converted to The data packet of different length is broadcasted, and carries out character recognition by the length of data packet, to complete to send out to smart machine The purpose for sending SSID need not carry out data packet the work of coding and decoding, and need to only pass through encoding value and data packet length Mapping relations, which carry out simple queries, can obtain distribution information, i.e., " coding, decoding " process in the present embodiment, is only according to number According to a series of processing that packet length carries out, relative to " coding, decoding " process to data packet itself, the present embodiment is simpler And be easily achieved, it is suitble to realize on the limited user terminal of function.
Also avoid router device problem actively exposed during distribution, during realizing distribution, routing Device equipment need not actively send other data with security risks other than the data packet that forwarding user terminal is sent out Packet, the problem of also avoiding maliciously to be scanned, improves the safety with network process, protects the privacy of user.
The embodiment of the present invention provides a kind of smart machine, specifically may be implemented on user terminal as shown in Figure 1.At this In concrete application in embodiment, which includes at least:
Processor, network interface, memory, communication antenna and communication bus, the communication bus are used between each component Connection communication.
Storage is used for the computer program that the processor executes, the calculating performed by the processor in the memory Machine program includes:
Parsing module determines corresponding number for parsing the data packet got from the broadcast that the communication antenna receives According to the encoding value of packet, wherein the encoding value by being encoded to obtain to distribution information, the length of data packet with Each encoding value establishes mapping relations, and the distribution information includes:Encrypted message.
Link block, for obtaining the distribution information using identified encoding value, and according to the distribution information It establishes and connects with wireless routing.
Notification module, for sending out multicast information (mDNS) to the wireless routing.
In the present embodiment, SSID information is no longer carried by the content in data packet, and each character is converted to The data packet of different length is broadcasted, and carries out character recognition by the length of data packet, to complete to send out to smart machine The purpose for sending SSID need not carry out data packet the work of coding and decoding, and need to only pass through encoding value and data packet length Mapping relations, which carry out simple queries, can obtain distribution information, i.e., " coding, decoding " process in the present embodiment, is only according to number According to a series of processing that packet length carries out, relative to " coding, decoding " process to data packet itself, the present embodiment is simpler And be easily achieved, it is suitble to realize on the limited user terminal of function.
Also avoid router device problem actively exposed during distribution, during realizing distribution, routing Device equipment need not actively send other data with security risks other than the data packet that forwarding user terminal is sent out Packet, the problem of also avoiding maliciously to be scanned, improves the safety with network process, protects the privacy of user.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for equipment reality For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method Part explanation.The above description is merely a specific embodiment, but protection scope of the present invention is not limited to This, any one skilled in the art in the technical scope disclosed by the present invention, the variation that can readily occur in or replaces It changes, should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of claim Subject to enclosing.

Claims (15)

1. a kind of efficient smart home wifi matches network method, which is characterized in that including:
Distribution information is encoded, encoding value is obtained, wherein the distribution information includes:Encrypted message;
Determine the data packet of the corresponding encoding value, wherein the length of data packet establishes mapping relations with each encoding value;
Identified data packet is broadcasted outward;
When receiving multicast information (mDNS), determine distribution complete, wherein the multicast information by wireless routing with intelligence Equipment is sent out after establishing connection.
2. according to the method described in claim 1, it is characterized in that, described encode distribution information, encoding value is obtained, Including:
Character in the distribution information is encoded, each character is obtained and corresponds to encoding value;
Encoding value is corresponded to according to each character, generates the code field of each encoding value, wherein an encoding value Code field include:It indicates the field of character position and indicates the field of character content.
3. according to the method described in claim 2, it is characterized in that, the code field for generating each encoding value, including:
The first code field of encoding value is generated to N code fields, wherein the i-th content field is written with the i-th coded word Section, 1≤i≤N, 2≤N and be positive integer, it is described indicate character content field be divided into the first content field to institute State N content fields.
4. according to the method described in claim 3, it is characterized in that, indicating the field of character position in first code field Field to expression character position in jth code field is identical, wherein 2≤j≤N.
5. according to the method described in claim 4, it is characterized in that, indicating that the field of character position occupies 7 bits, expression The field of character content occupies 3 bits, and N=j=2.
6. according to the method described in claim 1, it is characterized in that, the data packet of the determining corresponding encoding value, packet It includes:
According to the mapping relations of the length of the data packet and each encoding value, inquiry obtains corresponding to the data of the encoding value Packet.
7. according to the method described in claim 2, it is characterized in that, described broadcast identified data packet outward, including:
The data packet obtained by the encrypted message and service set (SSID) conversion is broadcasted outward, wherein the distribution Information further includes the service set (SSID), and the character of the service set (SSID) is encoded to obtain the clothes The encoding value of business set identifier (SSID), the data packet obtained by service set (SSID) conversion includes described in correspondence The data packet of the encoding value of service set (SSID).
8. a kind of efficient smart home wifi matches network method, which is characterized in that including:
The data packet got from broadcast is parsed, determines the encoding value of corresponding data packet, wherein the encoding value is logical It crosses and distribution information is encoded, the length of data packet establishes mapping relations, the distribution information with each encoding value Including:Encrypted message;
The distribution information is obtained using identified encoding value, and is established and is connected according to the distribution information and wireless routing It connects;
Multicast information (mDNS) is sent out to the wireless routing.
9. according to the method described in claim 8, it is characterized in that, the data packet that the parsing is got from broadcast, determines The encoding value of corresponding data packet, including:
The data packet that is received from broadcast is parsed, code field is obtained, wherein the code field of an encoding value includes: It indicates the field of character position and indicates the field of character content;
According to obtained code field, encoding value is determined;
And the character in the distribution information is obtained according to identified encoding value.
10. according to the method described in claim 9, it is characterized in that, an encoding value is compiled including the first code field to N Code field, wherein the i-th content field is written with the i-th code field, 1≤i≤N, 2≤N and be positive integer, the expression character The field of content is divided into the first content field to the N content fields.
11. according to the method described in claim 10, it is characterized in that, indicating the word of character position in first code field Indicate that the field of character position is identical in section to jth code field, wherein 2≤j≤N.
12. according to the method for claim 11, which is characterized in that indicate that the field of character position occupies 7 bits, table Show that the field of character content occupies 3 bits, and N=j=2.
13. according to the method described in claim 9, it is characterized in that, the distribution information further includes:Service set (SSID), the character of the service set (SSID) is encoded to obtain the coded number of the service set (SSID) Value, the data packet obtained by service set (SSID) conversion include the coding of the corresponding service set (SSID) The data packet of numerical value.
14. a kind of user terminal, which is characterized in that include at least:
Processor, network interface, memory, communication antenna and communication bus, the communication bus are used for the company between each component Connect letter;
Storage is used for the computer program that the processor executes, the computer journey performed by the processor in the memory Sequence includes:
Coding module obtains encoding value for being encoded to distribution information, wherein the distribution information includes:Message in cipher Breath;
Preprocessing module, the data packet for determining the corresponding encoding value, wherein the length of data packet and each encoding value Establish mapping relations;
Sending module, for being broadcasted identified data packet outward by the communication antenna;When receiving multicast information (mDNS) when, determine that distribution is completed, wherein the multicast information is sent out by wireless routing after establishing connection with smart machine.
15. a kind of smart machine, which is characterized in that include at least:
Processor, network interface, memory, communication antenna and communication bus, the communication bus are used for the company between each component Connect letter;
Storage is used for the computer program that the processor executes, the computer journey performed by the processor in the memory Sequence includes:
Parsing module determines corresponding data packet for parsing the data packet got from the broadcast that the communication antenna receives Encoding value, wherein the encoding value to distribution information by being encoded to obtain, the length of data packet and each volume Yardage value establishes mapping relations, and the distribution information includes:Encrypted message;
Link block, for obtaining the distribution information using identified encoding value, and according to the distribution information and nothing Line Route establishment connects;
Notification module, for sending out multicast information (mDNS) to the wireless routing.
CN201711442256.8A 2017-12-27 2017-12-27 Efficient wifi network distribution method and device for smart home Active CN108430091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711442256.8A CN108430091B (en) 2017-12-27 2017-12-27 Efficient wifi network distribution method and device for smart home

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711442256.8A CN108430091B (en) 2017-12-27 2017-12-27 Efficient wifi network distribution method and device for smart home

Publications (2)

Publication Number Publication Date
CN108430091A true CN108430091A (en) 2018-08-21
CN108430091B CN108430091B (en) 2021-04-20

Family

ID=63155708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711442256.8A Active CN108430091B (en) 2017-12-27 2017-12-27 Efficient wifi network distribution method and device for smart home

Country Status (1)

Country Link
CN (1) CN108430091B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149631A (en) * 2019-05-29 2019-08-20 飞天诚信科技股份有限公司 A kind of method and system for establishing connection suitable for cloud speaker
CN110167193A (en) * 2019-04-17 2019-08-23 苏宁智能终端有限公司 WiFi matches network method and WiFi equipment automatically
CN111314864A (en) * 2020-03-04 2020-06-19 联想万像(深圳)科技有限公司 Network distribution method, device and equipment
CN113490209A (en) * 2021-06-29 2021-10-08 锐迪科创微电子(北京)有限公司 Data transmission method, system, transmitting device, receiving device and medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945369A (en) * 2013-01-18 2014-07-23 杭州古北电子科技有限公司 Internet access configuration method for WIFI device by checking length of WIFI data packets
CN104394577A (en) * 2014-12-09 2015-03-04 上海斐讯数据通信技术有限公司 Wireless network access method of wireless route equipment and electronic equipment
CN104581647A (en) * 2015-01-30 2015-04-29 青岛海尔智能家电科技有限公司 Network access method and device of intelligent equipment
CN104796888A (en) * 2015-03-19 2015-07-22 北京宇音天下科技有限公司 Method for connecting WI-FI network by intelligent hardware terminal based on sound waves and system for realizing same
US20160119859A1 (en) * 2013-12-10 2016-04-28 Beijing Zhigu Rui Tuo Tech Co., Ltd Wireless network access method and access apparatus
CN105682183A (en) * 2016-01-14 2016-06-15 美的集团股份有限公司 Method and device for controlling household appliance to access to network
CN105898831A (en) * 2016-03-29 2016-08-24 海尔优家智能科技(北京)有限公司 Method and apparatus for smart device accessing wifi and smart device
CN106028423A (en) * 2016-05-06 2016-10-12 武汉诚迈科技有限公司 Wireless network distribution method applicable to smart furniture device
CN106059800A (en) * 2016-05-23 2016-10-26 Tcl集团股份有限公司 Network access configuration method and system based on intelligent household electric appliances
WO2017000915A1 (en) * 2015-07-01 2017-01-05 北京奇虎科技有限公司 Multicast transmission method, information extraction method and corresponding terminal and device
CN106375166A (en) * 2016-09-30 2017-02-01 无锡小天鹅股份有限公司 Network allocation method, device and system for household electrical appliance and intelligent router
CN106973124A (en) * 2017-03-02 2017-07-21 深圳壹秘科技有限公司 Network connection collocation method and its electronic installation
CN107241247A (en) * 2017-06-30 2017-10-10 广东美的厨房电器制造有限公司 Method for network access and device, the intelligent appliance of intelligent appliance

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945369A (en) * 2013-01-18 2014-07-23 杭州古北电子科技有限公司 Internet access configuration method for WIFI device by checking length of WIFI data packets
US20160119859A1 (en) * 2013-12-10 2016-04-28 Beijing Zhigu Rui Tuo Tech Co., Ltd Wireless network access method and access apparatus
CN104394577A (en) * 2014-12-09 2015-03-04 上海斐讯数据通信技术有限公司 Wireless network access method of wireless route equipment and electronic equipment
CN104581647A (en) * 2015-01-30 2015-04-29 青岛海尔智能家电科技有限公司 Network access method and device of intelligent equipment
CN104796888A (en) * 2015-03-19 2015-07-22 北京宇音天下科技有限公司 Method for connecting WI-FI network by intelligent hardware terminal based on sound waves and system for realizing same
WO2017000915A1 (en) * 2015-07-01 2017-01-05 北京奇虎科技有限公司 Multicast transmission method, information extraction method and corresponding terminal and device
CN105682183A (en) * 2016-01-14 2016-06-15 美的集团股份有限公司 Method and device for controlling household appliance to access to network
CN105898831A (en) * 2016-03-29 2016-08-24 海尔优家智能科技(北京)有限公司 Method and apparatus for smart device accessing wifi and smart device
CN106028423A (en) * 2016-05-06 2016-10-12 武汉诚迈科技有限公司 Wireless network distribution method applicable to smart furniture device
CN106059800A (en) * 2016-05-23 2016-10-26 Tcl集团股份有限公司 Network access configuration method and system based on intelligent household electric appliances
CN106375166A (en) * 2016-09-30 2017-02-01 无锡小天鹅股份有限公司 Network allocation method, device and system for household electrical appliance and intelligent router
CN106973124A (en) * 2017-03-02 2017-07-21 深圳壹秘科技有限公司 Network connection collocation method and its electronic installation
CN107241247A (en) * 2017-06-30 2017-10-10 广东美的厨房电器制造有限公司 Method for network access and device, the intelligent appliance of intelligent appliance

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
JOHN W. LOCKWOOD; MADHU MONGA: "Implementing Ultra Low Latency Data Center Services with Programmable Logic", 《 2015 IEEE 23RD ANNUAL SYMPOSIUM ON HIGH-PERFORMANCE INTERCONNECTS》 *
WEI ZHANG; JUN SUN; JING LIU; YOUYUN XU: "Optimal Configuration of IEEE 802.11e EDCA with Variable Packet Length", 《 2007 SECOND INTERNATIONAL CONFERENCE ON COMMUNICATIONS AND NETWORKING IN CHINA》 *
李文坚: "WiFi家庭网络的安全防范", 《佳木斯职业学院学报》 *
秦利红; 秦会斌; 诸坚彬; 曹曙光: "基于Android平台智能家居客户端的设计与实现", 《计算机应用与软件》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110167193A (en) * 2019-04-17 2019-08-23 苏宁智能终端有限公司 WiFi matches network method and WiFi equipment automatically
CN110149631A (en) * 2019-05-29 2019-08-20 飞天诚信科技股份有限公司 A kind of method and system for establishing connection suitable for cloud speaker
CN111314864A (en) * 2020-03-04 2020-06-19 联想万像(深圳)科技有限公司 Network distribution method, device and equipment
CN113490209A (en) * 2021-06-29 2021-10-08 锐迪科创微电子(北京)有限公司 Data transmission method, system, transmitting device, receiving device and medium

Also Published As

Publication number Publication date
CN108430091B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN104735260B (en) A kind of correlating method for being applied to intelligent terminal
CN108430091A (en) A kind of efficient smart home wifi distribution method and apparatus
CN105208660B (en) Method, equipment for 2 equipment of enabling mode 1 and mode in TV idle frequency spectrum network
CN104067587B (en) Method and apparatus for device configuration file in wireless network
CN104660726B (en) Network collocating method, the apparatus and system of smart machine
CN104581647A (en) Network access method and device of intelligent equipment
CN103765848A (en) Apparatus and methods for media access control replacement
CN105101102B (en) Multicast transmission method, information extracting method and corresponding terminal and equipment
CN104703176A (en) Configuration method of wireless network, intelligent terminal and wireless network equipment
Chen et al. Implementing the design of smart home and achieving energy conservation
CN106330456A (en) Intelligent device security access method and system
CN105119900A (en) Information secure transmission method, network access method and corresponding terminals
CN1791070B (en) Method for transmitting document on network
CN105120454B (en) Information transferring method, networking cut-in method and corresponding terminal
CN104618893B (en) The implementation method and equipment of different Chinese character code SSID in network
CN105120012B (en) Smart machine and its networking cut-in method, message receiving method and device
WO2001035230A1 (en) Communication control device, host device and method of communication
CN110167193A (en) WiFi matches network method and WiFi equipment automatically
CN106454812A (en) Method and device for receiving data
CN102883311A (en) OID (object identifier) coding based wireless sensing network equipment addressing method
KR100684965B1 (en) Method for Generating Automatically IPv6 Address by Using IPv6 Identifier
CN105594183A (en) Apparatus and methods for separated security implementations in wireless communications
CN105991214B (en) A kind of data transmission method and its device
CN103392310A (en) Method and arrangement for resolving a temporary block flow
CN106572469A (en) WiFi terminal network access method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210324

Address after: 210042 No.1, Suning Avenue, Xuanwu District, Nanjing City, Jiangsu Province

Applicant after: SUNING INTELLIGENT TERMINAL Co.,Ltd.

Address before: 210042 Suning Headquarters, No. 1 Suning Avenue, Xuanwu District, Nanjing City, Jiangsu Province

Applicant before: SUNING COMMERCE GROUP Co.,Ltd.

GR01 Patent grant
GR01 Patent grant