CN104540237B - Smart machine accesses the method and system of network - Google Patents
Smart machine accesses the method and system of network Download PDFInfo
- Publication number
- CN104540237B CN104540237B CN201410712316.3A CN201410712316A CN104540237B CN 104540237 B CN104540237 B CN 104540237B CN 201410712316 A CN201410712316 A CN 201410712316A CN 104540237 B CN104540237 B CN 104540237B
- Authority
- CN
- China
- Prior art keywords
- smart machine
- random number
- routing device
- wireless routing
- intelligent terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/12—Setup of transport tunnels
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention is suitable for field of communication technology, provides a kind of method and system of smart machine access network, and the method receives enabled instruction input by user by intelligent terminal and the enabled instruction is sent to wireless routing device;Probe message is sent to smart machine by preset time interval from wireless routing device again, and after listening to the confirmation message that smart machine is returned according to the probe message, encrypted configuration information is sent to the smart machine by encryption configuration information;Smart machine receives and decrypts the encrypted configuration information, and is connect with the wireless routing device according to the configuration information after decryption, to realize the network connection configuration of smart machine, simplifies the operating process that existing configuration smart machine networks;And solve the problems, such as that existing configuration method leads to not batch configuration since intelligent terminal can only connect a network every time, the network connection configuration that batch carries out smart machine is realized, the efficiency of configuration is improved.
Description
Technical field
The invention belongs to the method and system that field of communication technology more particularly to smart machine access network.
Background technology
With the development of mobile network and smart mobile phone, domestic intelligent network has gradually formed smart mobile phone application program
(APP) pattern for being communicated and being controlled by wireless routing device and smart machine.As shown in Figure 1, being existing family
With the pattern of intelligent network.In existing pattern, smart mobile phone all has to connect with wireless routing device with smart machine,
Then smart mobile phone use is communicated and is controlled with the pre-set agreement of smart machine.
In the prior art, smart machine is configured one by one usually using smart mobile phone or other wireless terminals, and
The Soft-AP created using smart machine itself, this mode is needed to be known as Soft-AP patterns.It is described by taking smart mobile phone as an example
The step of Soft-AP patterns includes:
1) user press smart machine Reset keys make smart machine factory reset and enter Soft-AP patterns, wound
Build a Soft-AP;
2) user is connected to the Soft-AP of smart machine using smart mobile phone, and uses the APP application journeys on smart mobile phone
The network name for the wireless routing device that smart mobile phone is connected with smart machine common need and password are sent to intelligence and set by sequence
It is standby;
3) after smart machine gets network name and the password of wireless routing device, Soft-AP is closed, and exit
Soft-AP patterns are connected to wireless routing device using the network name and password that get;
4) step 1), 2), 3) is repeated, all smart machines are connected to the wireless routing device;
5) smart mobile phone is connected to wireless routing device, the APP with management function is then turned on, with to smart machine
It is managed and controls.
As it can be seen that user's control smart mobile phone or mobile radio terminal is needed repeatedly to switch wireless network in existing method,
Configuration process is complicated;And since smart mobile phone or mobile radio terminal can only connect a wireless network every time, if existing more
When a smart machine, needs repeatedly to be configured, smart machine is one by one accessed into wireless routing device one by one, can not be criticized
Amount configuration.
Invention content
The purpose of the present invention is to provide the method and system that a kind of smart machine accesses network, are carried out in bulk with realizing
The network connection configuration of smart machine reduces the time of network connection configuration, improves the efficiency of network connection configuration and simplifies existing network connection configuration
Operating process.
The invention is realized in this way a kind of method of smart machine access network, the method are applied to by intelligently setting
The system of standby, wireless routing device and at least one intelligent terminal composition, including:
Intelligent terminal receives enabled instruction input by user, and the enabled instruction is sent to wireless routing device;
After wireless routing device receives the enabled instruction of intelligent terminal transmission, successfully answered to intelligent terminal feedback reception
Message is answered, and probe message is sent to smart machine by preset time interval;Smart machine is being listened to according to the detection
After the confirmation message that message returns, encryption configuration information, and encrypted configuration information is sent to the smart machine;
After smart machine receives the encrypted configuration information, encrypted configuration information described in decryption, according to solution
Configuration information after close is connect with the wireless routing device, and the confirmation message of successful connection is sent to intelligent terminal, described
The facility information of the smart machine is carried in the confirmation message of successful connection;
After intelligent terminal receives the confirmation message of the successful connection, the facility information of the smart machine is obtained, and
The confirmation message being successfully accessed is returned to the smart machine;
Further, the probe message includes multipair sequence number and random number;
After the confirmation message that the wireless routing device listens to that smart machine is returned according to the probe message, encryption
Configuration information, and further include before encrypted configuration information is sent to smart machine step:
After smart machine receives the probe message, a pair of sequences number is selected from the multipair sequence number and random number
And random number, selected sequence number and random number are stored, and generate another random number;
Selected sequence number and random number, the random number generated are encapsulated as confirmation message, and the confirmation is disappeared
Breath returns to wireless routing device.
Further, the wireless routing device disappears according to the confirmation that the probe message returns listening to smart machine
After breath, encryption configuration information, and include by the step of encrypted configuration information is sent to smart machine:
Wireless routing device is according to the selected sequence number of smart machine and random number, smart machine in the confirmation message
The MAC Address of the random number and smart machine that are generated generates encryption key according to preset key schedule;
Using the encryption keys configuration information;
Wherein, the wireless network name and password of wireless routing device are included at least in the configuration information;
Described in smart machine decryption encrypted configuration information the step of include:
The smart machine according to selected sequence number and random number, the random number generated and MAC Address, according to
Preset key schedule generates decruption key, using encrypted configuration information described in the decryption key decryption.
Further, in the wireless routing device according to the selected sequence number of smart machine in the confirmation message and
The MAC Address of random number and smart machine that random number, smart machine are generated is generated according to preset key schedule
After encryption key, further include:
Random number that the selected sequence number of storage smart machine and random number, smart machine are generated, smart machine
MAC Address and encryption key.
Further, the wireless routing device according to the selected sequence number of smart machine in the confirmation message and with
The MAC Address of random number and smart machine that machine number, smart machine are generated generates according to preset key schedule and adds
Key is specially:
The random number that is generated with the selected sequence number of smart machine and random number, smart machine and smart machine
Parameter factors of the MAC Address as RC4 pseudorandom cipher generating algorithms, using the generation of RC4 pseudorandom cipher generating algorithms and institute
The corresponding key stream of parameter factors is stated, the key stream is the encryption key of configuration information.
Further, the method further includes:
Intelligent terminal receives halt instruction input by user, and the halt instruction is sent to wireless routing device;
After wireless routing device receives the halt instruction, stops sending probe message to smart machine and stop ringing
The confirmation message for answering smart machine to be returned according to probe message.
Further, the carrier for the message transmitted between the smart machine, wireless routing device is wireless retention frame.
The present invention also provides the systems that a kind of smart machine accesses network, the system comprises smart machine, without circuit
By equipment and at least one intelligent terminal;
The intelligent terminal is sent to no circuit for receiving enabled instruction input by user, and by the enabled instruction
By equipment;
The wireless routing device after the enabled instruction for receiving intelligent terminal transmission, connects to intelligent terminal feedback
Successful response message is received, and probe message is sent to smart machine by preset time interval;Listening to smart machine root
After the confirmation message returned according to the probe message, encryption configuration information, and encrypted configuration information is sent to the intelligence
It can equipment;
The smart machine is used for, encrypted described in decryption to match confidence after receiving the encrypted configuration information
Breath, connect according to the configuration information after decryption with the wireless routing device, and the confirmation of successful connection is sent to intelligent terminal
Message carries the facility information of the smart machine in the confirmation message of the successful connection;
The intelligent terminal is additionally operable to, and after the confirmation message for receiving the successful connection, obtains the smart machine
Facility information, and the confirmation message being successfully accessed is returned to the smart machine;
Wherein, the carrier for the message transmitted between the smart machine, wireless routing device is wireless retention frame.
Further, the probe message includes multipair sequence number and random number;
The smart machine is additionally operable to:
After receiving the probe message, a pair of sequences number and random is selected from the multipair sequence number and random number
Number, stores selected sequence number and random number, and generate another random number;
Selected sequence number and random number, the random number generated are encapsulated as confirmation message, and the confirmation is disappeared
Breath returns to wireless routing device.
Further, the wireless routing device is specifically used for:
It is generated according to the selected sequence number of smart machine and random number, smart machine in the confirmation message random
The MAC Address of number and smart machine generates encryption key according to preset key schedule;
Using the encryption keys configuration information;
Wherein, the wireless network name and password of wireless routing device are included at least in the configuration information;
The smart machine is specifically used for:
According to selected sequence number and random number, the random number generated and MAC Address, given birth to according to preset key
Decruption key is generated at algorithm, using encrypted configuration information described in the decryption key decryption.
Further, the intelligent terminal is additionally operable to:
Halt instruction input by user is received, and the halt instruction is sent to wireless routing device;
The wireless routing device is additionally operable to:
After receiving the halt instruction, stops sending probe message to smart machine and stop response smart machine root
The confirmation message returned according to probe message.
Further, the carrier for the message transmitted between the smart machine, wireless routing device is wireless retention frame.
Compared with prior art, the embodiment of the present invention uses the wireless retention frame in wireless protocols as wireless routing device
The carrier for the message transmitted between smart machine;When carrying out the network connection configuration of smart machine, first passes through intelligent terminal and connect
It receives enabled instruction input by user and the enabled instruction is sent to wireless routing device;Again by wireless routing device by default
Time interval send probe message to smart machine, and in the confirmation for listening to smart machine and being returned according to the probe message
After message, encrypted configuration information is sent to the smart machine by encryption configuration information;Add described in smart machine decryption
Close configuration information, and connect with the wireless routing device according to the configuration information after decryption, and sent to intelligent terminal
The confirmation message of successful connection;After intelligent terminal receives the confirmation message of the successful connection, the smart machine is obtained
Facility information, and the confirmation message being successfully accessed is returned to the smart machine.To provide a kind of new smart machine
Network connection configuration method simplifies the operating process that existing configuration smart machine networks;And the method is to pass through wireless routing
Interaction between equipment and smart machine sends configuration information, solves existing configuration method due to intelligent terminal every time only
A problem of network can be connected and lead to not carry out batch configuration, realizes the network connection configuration that batch carries out smart machine,
Reduce the time of configuration and improves the efficiency of configuration.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without having to pay creative labor, may be used also for those of ordinary skill in the art
With obtain other attached drawings according to these attached drawings.
Fig. 1 is the pattern schematic diagram of existing domestic intelligent network;
Fig. 2 is the composite structural diagram of the system for the smart machine access network that the embodiment of the present invention one provides;
Fig. 3 is the first realization course diagram of the method for the smart machine access network that the embodiment of the present invention one provides;
Fig. 4 is the second implementation flow chart of the method for smart machine access network provided by Embodiment 2 of the present invention;
Fig. 5 be smart machine provided by Embodiment 2 of the present invention access network method in encryption configuration information realization
Schematic diagram.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In embodiments of the present invention, using the wireless retention frame in wireless protocols as smart machine, wireless routing device
Between the carrier of message that is transmitted;When carrying out the network connection configuration of smart machine, first passes through intelligent terminal and receive user's input
Enabled instruction and the enabled instruction is sent to wireless routing device;Preset time interval is pressed by wireless routing device again
Probe message is sent to smart machine, and after listening to the confirmation message that smart machine is returned according to the probe message, is added
Encrypted configuration information is sent to the smart machine by close configuration information;Encrypted configuration described in smart machine decryption
Information, and connect with the wireless routing device according to the configuration information after decryption, and send successful connection to intelligent terminal
Confirmation message;After intelligent terminal receives the confirmation message of the successful connection, the facility information of the smart machine is obtained,
And the confirmation message being successfully accessed is returned to the smart machine.To simplify the operating process that configuration smart machine networks;
And the method is to send configuration information by the interaction between wireless routing device and smart machine, is solved existing
Configuration method due to intelligent terminal can only connect a network every time and the problem of lead to not batch configuration, realize batch into
The network connection configuration of row smart machine reduces the time of configuration and improves the efficiency of configuration.The embodiment of the present invention also provides
Corresponding system, which will be described in detail below.
Embodiment one
Fig. 2 shows the composed structures that the smart machine that the embodiment of the present invention one provides accesses the system of network, in order to just
In explanation, illustrate only and the relevant part of the embodiment of the present invention.
As shown in Fig. 2, the system comprises:Intelligent terminal 1, wireless routing device 2 and at least one smart machine 3.
It is communicated by wireless network connection between the intelligent terminal 1, wireless routing device 2 and smart machine 3.
Wherein, described intelligent terminal 1 includes but not limited to mobile phone, tablet computer, laptop etc., for user into
Row interaction.The smart machine includes but not limited to autonomous device (such as intelligent sound box, television set, set-top box etc.), intelligence
Energy wearable device, intelligent vehicular equipment (such as automobile data recorder) etc..
In the initial period for starting configuration, the intelligent terminal 1 receives enabled instruction input by user, and the startup is referred to
Order is sent to wireless routing device 2, to notify wireless routing device 2 to enter configuration mode;In configuration process, the intelligence is eventually
End 1 receives the confirmation message for the successful connection that the smart machine 3 returns, and parses the confirmation message of the successful connection to obtain
The facility information of smart machine, and return to confirmation message to the smart machine 3.The intelligent terminal 1 is additionally operable to receive user
The halt instruction is sent to wireless routing device 2 by the halt instruction of input, to notify wireless routing device 2 to exit configuration
Pattern.
The wireless routing device 2 receive intelligent terminal transmission enabled instruction after, to 1 feedback reception of intelligent terminal at
The response message of work(, and by preset time interval probe message is sent to smart machine;And smart machine 3 is monitored in real time
The confirmation message returned according to the probe message.Disappeared according to the confirmation that the probe message returns listening to smart machine 3
After breath, encryption configuration information, and encrypted configuration information is sent to the smart machine.
Wherein, the probe message includes multipair sequence number and random number.A pair of sequences number and random number include a sequence
Row number and a random number, the sequence number and random number are one-to-one.The smart machine 3 is receiving wireless routing
After the probe message that equipment is sent, a pair of sequences number and random number are selected from the multipair sequence number and random number, is deposited
Selected sequence number and random number are stored up, and generates another random number;By selected sequence number and random number, generated with
Machine number is encapsulated as confirmation message, and the confirmation message is returned to wireless routing device 2.
The wireless routing device 2 is according to the selected sequence number of smart machine and random number, intelligence in the confirmation message
The MAC Address for the random number and smart machine that energy equipment is generated generates encryption key according to preset key schedule;
And use the encryption keys configuration information.
Wherein, include but not limited to the wireless network name and password of wireless routing device in the configuration information.Encryption
The generation method of key and the process of encryption configuration information will be described in detail in subsequent embodiment, please refer to follow-up reality
Apply example.
The smart machine 3 receives the encrypted configuration information transmitted by wireless routing device 2, according to selected sequence
Row number and random number, the random number generated and MAC Address generate decruption key according to preset key schedule, adopt
The encrypted configuration information described in the decryption key decryption, it is corresponding wireless to obtain the wireless routing device for needing to access
Network name and password, and connect with the wireless routing device according to the wireless network name and password;It is connecting into
After work(, the confirmation message of successful connection is returned to intelligent terminal 1.It include smart machine 3 in the confirmation message of the successful connection
The facility information of the message and the smart machine 3 that have connected.The facility information includes but not limited to the type of smart machine
Number, the information such as attribute.
In embodiments of the present invention, the wireless routing device 2 is likely to be received multiple smart machines 3 in synchronization
Therefore the confirmation message returned according to probe message establishes a number in the memory of wireless routing device 2 in the embodiment of the present invention
Group, for after generating encryption key according to preset key schedule, the selected sequence number of storage smart machine and with
The MAC Address and encryption key for the random number, smart machine that machine number, smart machine are generated, so that wireless routing is set
Standby 2 can respond the confirmation message that multiple smart machines are returned according to probe message simultaneously, be set simultaneously to multiple intelligence with realizing
It is standby to carry out network connection configuration, it considerably reduces the time of smart machine network connection configuration and improves smart machine network connection configuration
Efficiency.
Preferably, after needing the smart machine for accessing wireless routing device all to access wireless routing device, Yong Huke
Has the function of stopping configuration feature key input halt instruction by what is provided on intelligent terminal.The intelligent terminal 1 is also used
In:After receiving halt instruction input by user, the halt instruction is sent to wireless routing device.The wireless routing
Equipment 2 is additionally operable to:After receiving the halt instruction, stops sending probe message to smart machine and stop response intelligence
The confirmation message that equipment is returned according to probe message.Preferably, the wireless routing device is additionally operable to:Match to smart machine return
Set stopped confirmation message.
As it can be seen that by inventive embodiments, user only needs to click the tool provided on intelligent terminal in entire configuration process
There is the function key for starting configuration feature that can start wireless routing device to be configured with smart machine, smart machine is made to access nothing
The network that line routing device is opened;Clicking, there is the function key for stopping configuration feature can terminating wireless routing device and intelligence
Configuration between equipment greatly simplifies the configuration process of wireless routing device access smart machine, simple, convenient.
Further, the carrier for the message transmitted between the smart machine 3, wireless routing device 2 is wireless retains
Frame.As long as smart machine, which searches, specific wireless retention frame on some channel, you can rapidly according to the wireless retention frame
Configuration connection is carried out with corresponding wireless routing device, further improves the efficiency of smart machine access network.
In embodiments of the present invention, using the wireless retention frame in wireless protocols as smart machine, wireless routing device
Between the carrier of message that is transmitted;When carrying out the network connection configuration of smart machine, first passes through intelligent terminal and receive user's input
Enabled instruction and the enabled instruction is sent to wireless routing device;Preset time interval is pressed by wireless routing device again
Probe message is sent to smart machine, and after listening to the confirmation message that smart machine is returned according to the probe message, is added
Encrypted configuration information is sent to the smart machine by close configuration information;Encrypted configuration described in smart machine decryption
Information, and connect with the wireless routing device according to the configuration information after decryption, and send successful connection to intelligent terminal
Confirmation message;After intelligent terminal receives the confirmation message of the successful connection, the facility information of the smart machine is obtained,
And the confirmation message being successfully accessed is returned to the smart machine;To provide a kind of reality of new smart machine network connection configuration
Existing mode simplifies the operating process that existing configuration smart machine networks;And the embodiment of the present invention is set by wireless routing
The standby interaction between smart machine sends configuration information, solves existing configuration method since intelligent terminal every time can only
The problem of connecting a network and leading to not batch configuration realizes the network connection configuration that batch carries out smart machine, reduces
The time of configuration and the efficiency for improving configuration.
Embodiment two
Fig. 3 shows the specific implementation flow of the method for smart machine access network provided by Embodiment 2 of the present invention.
The method is applied to the system as described in Fig. 2 embodiments, and the system comprises smart machine, wireless routing devices
And at least one intelligent terminal, it is existing that details are as follows:
In step S301, intelligent terminal receives enabled instruction input by user.
In the present embodiment, the application APP of smart machine access network is provided on the intelligent terminal, it is described
APP provides the function key for having and starting configuration feature, and user can input enabled instruction by clicking the function key.
In step s 302, the enabled instruction is sent to wireless routing device by the intelligent terminal.
In step S303, the wireless routing device receives the enabled instruction that intelligent terminal is sent, and to intelligent terminal
The successful response message of feedback reception.
In step s 304, the wireless routing device sends probe message by preset time interval to smart machine.
In the present embodiment, wireless routing device can cyclically send probe message.The frame for carrying the probe message is
Wireless retention frame, data portion use TLV structure types (i.e. Tpye-Length-Value), type Type and length
Length is 16bits;The random number that the sequence number and size that Value values are 16bits by size are 32bits forms.It is described
Probe message includes multipair sequence number and random number, and a sequence number corresponds to a random number.
In step S305, the wireless routing device listen to smart machine according to the probe message return really
After recognizing message, encryption configuration information.
In step S306, encrypted configuration information is sent to the smart machine by the wireless routing device.
Sequence number, random number are contained in the confirmation message that smart machine is returned according to probe message.Wireless routing device
Corresponding encryption key will be generated according to the MAC Address of sequence number, random number and smart machine described in smart machine, to add
The close configuration information for being sent to smart machine.It include but not limited to the wireless network name of wireless routing device in the configuration information
Title and password.
In step S307, after the smart machine receives the encrypted configuration information, encrypted described in decryption
Configuration information, connect with the wireless routing device according to the configuration information after decryption.
In step S308, the smart machine sends the confirmation message of successful connection to intelligent terminal.
Wherein, the facility information of the smart machine is carried in the confirmation message of the successful connection.
In the present embodiment, after receiving encrypted configuration information, smart machine using the sequence number, random number with
And the MAC Address of itself, decruption key is generated using key schedule identical with encryption key is generated, and use and give birth to
The encrypted configuration information is decrypted at decruption key, to can get the wireless network name of wireless routing device and close
Code, and then can be connected with corresponding wireless routing device according to the wireless network name and password.With wireless routing device
After successful connection, the confirmation message of successful connection is sent to intelligent terminal, (i.e. by the facility information of itself and the state of connection
Have connected success) inform intelligent terminal.
In step S309, after the intelligent terminal receives the confirmation message of the successful connection, the intelligence is obtained
The facility information of equipment.
In step S310, the intelligent terminal returns to the confirmation message being successfully accessed to the smart machine.
In the present embodiment, the facility information includes but not limited to the information such as the model of smart machine, attribute.Intelligence is eventually
End will store the facility information, and the confirmation message being successfully accessed is returned to smart machine, to inform smart machine
Network connection configuration is completed.
Preferably, the carrier for the message transmitted between the smart machine, wireless routing device is wireless retention frame.Institute
It refers to the frame type being not used by wireless protocols to state wireless retention frame, specifically by Type and Subtype field combinations
The frame being not used includes the frame of following several types:Type is the management frame that 00, Subtype is 0111;Type is
00, Subtype is 1111 management frame;Type is the control frame that 01, Subtype is 0000-0110;Type is 10, Subtype
For 1101 data frame;Type is the not used retention frame that 11, Subtype is 0000-1111.Made with these wireless retention frames
The data frame exclusive for smart machine, wireless routing device, to realize that the data between smart machine, wireless routing device pass
It is defeated, as long as so that smart machine, which searches, specific wireless retention frame on some channel, you can rapidly according to the nothing
Line retention frame carries out configuration connection with corresponding wireless routing device, improves the efficiency of smart machine access network.
In embodiments of the present invention, using the retention frame in wireless protocols as between smart machine, wireless routing device
The carrier for the message transmitted;When carrying out the network connection configuration of smart machine, first passes through intelligent terminal and receive input by user open
It is dynamic to instruct and the enabled instruction is sent to wireless routing device;Preset time interval is pressed to intelligence from wireless routing device again
Energy equipment sends probe message, and after listening to the confirmation message that smart machine is returned according to the probe message, encryption is matched
Confidence ceases, and encrypted configuration information is sent to the smart machine;Encrypted configuration information described in smart machine decryption,
And the confirmation of successful connection is connect and sent to intelligent terminal with the wireless routing device according to the configuration information after decryption
Message;After intelligent terminal receives the confirmation message of the successful connection, the facility information of smart machine is obtained, and to the intelligence
Energy equipment returns to the confirmation message being successfully accessed;To provide a kind of configuration mode that new smart machine networks, simplify
The operating process that existing configuration smart machine networks;And the method is by between wireless routing device and smart machine
It interacts to send configuration information, solve existing configuration method causes since intelligent terminal can only connect a network every time
Can not batch configuration the problem of, realize batch carry out smart machine network connection configuration, reduce time and the raising of configuration
The efficiency of configuration.
Embodiment three
Fig. 4 shows the specific implementation flow of the method for the smart machine access network that the embodiment of the present invention three provides.
The method is applied to the system as described in Fig. 3 embodiments, and the system comprises smart machine, wireless routing devices
And at least one intelligent terminal, it is existing that details are as follows:
In step S401, intelligent terminal receives enabled instruction input by user.
In step S402, the enabled instruction is sent to wireless routing device by the intelligent terminal.
In step S403, after the wireless routing device receives the enabled instruction of intelligent terminal transmission, to intelligent end
Hold the successful response message of feedback reception.
In step s 404, the wireless routing device sends probe message by preset time interval to smart machine.
Preferably, the probe message includes 10 pairs of sequence numbers and random number, and a pair of sequences number and random number include
One sequence number and a random number, the sequence number and random number are one-to-one.
In step S405, after the smart machine receives the probe message, from the multipair sequence number and at random
A pair of sequences number and random number are selected in number, store selected sequence number and random number, and generate another random number.
In step S406, the smart machine encapsulates selected sequence number and random number, the random number generated
For confirmation message, and the confirmation message is returned into wireless routing device.
In step S 407, the wireless routing device listen to smart machine according to the probe message return really
After recognizing message, generated with the selected sequence number of smart machine and random number, smart machine in the confirmation message random
The MAC Address of number and smart machine is generated and the parameter factors as parameter factors using preset key schedule
Corresponding encryption key.
In step S408, the wireless routing device stores the selected sequence number of smart machine and random number, intelligence
The MAC Address and encryption key for the random number, smart machine that equipment is generated.
In embodiments of the present invention, the wireless routing device synchronization be likely to be received multiple smart machines according to
Therefore the confirmation message that probe message returns establishes an array in the memory of wireless routing device in the embodiment of the present invention,
For after generating encryption key according to preset key schedule, storing the corresponding MAC Address of each smart machine, institute
The sequence number and random number of selection, the random number generated and encryption key, so that wireless routing device can be simultaneously
The confirmation message that multiple smart machines are returned according to probe message is responded, network connection configuration is carried out to multiple smart machines to realize,
To considerably reduce the time of smart machine network connection configuration, and improve the efficiency of smart machine network connection configuration.
In step S409, the wireless routing device is using the encryption keys configuration information generated.
In step S410, encrypted configuration information is sent to corresponding smart machine by the wireless routing device.
In the present embodiment, the wireless routing device can respond what multiple smart machines were returned according to probe message simultaneously
Confirmation message, each smart machine have one group of exclusive sequence number, random number, MAC Address, and the wireless routing device is then
An encryption key is generated according to the sequence number of each smart machine, random number, MAC Address respectively, it is close using the encryption
Key encrypts the configuration information for being sent to each smart machine, and encrypted configuration information is sent to corresponding intelligence and is set
It is standby.
Illustratively, the preset key schedule is preferably RC4 pseudorandom cipher generating algorithms.Fig. 5 is this hair
The realization schematic diagram for the generation encryption key and encryption configuration information that bright embodiment three provides.In Figure 5, S1 is smart machine institute
The sequence number of selection, size 16bits;S2 is the selected random number of smart machine, size 32bits;S3 is that intelligence is set
The standby random number generated, size 32bits;S4 is the MAC Address of smart machine, size 48bits.By the S1, S2,
S3, S4 are arranged in order, and it is 16 bytes to be spliced into a size by RC4 parameter factors generator (Construct RC4Key)
The parameter factors seed of (128bits).The parameter factors seed generates one 64 by RC4 pseudorandom cipher generating algorithms again
The key stream Key Stream of byte pass through des encryption algorithm for encryption using the key stream Key Stream as encryption key
Configuration information.In the present embodiment, the configuration information includes but not limited to the wireless network name of wireless routing device and close
Code.
DES is generated with the MAC Address of intelligent terminal, selected random number, the random number generated and sequence number to add
The encryption key of close algorithm can be improved to the encrypted safety of configuration information.
It should be noted that the encryption key and the realization method of encryption configuration information shown in fig. 5 of generating is only the present invention
One it is preferred implement example, be not intended to restrict the invention.The generation method of the encryption key and configuration information
Encryption Algorithm is not limited to above-described RC4 pseudorandom ciphers generating algorithm and des encryption algorithm.
In step S411, the smart machine receive described in encrypted configuration information, according to selected sequence number
With random number, the random number generated and MAC Address, decruption key is generated according to preset key schedule.
In step S412, the smart machine is obtained using encrypted configuration information described in the decryption key decryption
Obtain the wireless network name and password of wireless routing device.
In step S413, the smart machine according to the wireless network name and password that are obtained after decryption with it is described wireless
Routing device connects.
In step S414, the smart machine sends the confirmation message of successful connection to intelligent terminal.
In the present embodiment, after receiving encrypted configuration information, smart machine is with selected sequence number and at random
Number, the random number generated and the MAC Address of itself are given birth to as parameter factors using key identical with encryption key is generated
Decruption key is generated at algorithm (i.e. RC4 pseudorandom ciphers generating algorithm), it is described to decrypt to use generated decruption key
Encrypted configuration information, to can get the wireless network name and password of wireless routing device, and then can be according to the nothing
Line network name and password are connected with corresponding wireless routing device.With after wireless routing device successful connection, to intelligent end
The confirmation message that end sends successful connection is had connected into informing the facility information of intelligent terminal itself and the state of connection
Work(.
In step S415, intelligent terminal receives the confirmation message of the successful connection, parses the successful connection really
Message is recognized to obtain the facility information of smart machine.
In step S416, the intelligent terminal returns to the confirmation message being successfully accessed to the smart machine.
Preferably, after needing the smart machine for accessing wireless routing device all to access wireless routing device, Yong Huke
Has the function of stopping configuration feature key input halt instruction by what is provided on intelligent terminal.
The method further includes:
In step S417, intelligent terminal receives halt instruction input by user.
In step S418, the halt instruction is sent to wireless routing device by the intelligent terminal.
In the present embodiment, the application APP of smart machine access network is provided on the intelligent terminal, it is described
APP provides the function key for having and starting and terminating configuration feature, and user can input enabled instruction by clicking the function key
Or END instruction.
In step S419, after wireless routing device receives the halt instruction, stop sending detection to smart machine
The confirmation message that message and stopping response smart machine are returned according to probe message.
Preferably, the method further includes:
The wireless routing device returns to smart machine and configures stopped confirmation message.
As it can be seen that user only needs to click having of being provided on intelligent terminal and starts configuration feature in entire configuration process
Function key can start wireless routing device and be configured with smart machine so that smart machine access wireless routing device is opened
The network opened;Clicking, there is the function key for stopping configuration feature can terminating matching between wireless routing device and smart machine
It sets, greatly simplifies the operating process of user configuration smart machine access wireless routing device.
Further, the carrier for the message transmitted between the smart machine, wireless routing device is wireless retention frame.
As long as smart machine, which searches, specific wireless retention frame on some channel, you can rapidly according to the wireless retention frame and phase
The wireless routing device answered carries out configuration connection, and the efficiency of network can be accessed by improving smart machine.
It should be noted that in embodiments of the present invention, the wireless routing device provides multipair sequence number and random number
Selected for smart machine, and the smart machine itself can generate another random number, using the random number, sequence number and
The safety higher for the encryption key or decruption key that the MAC Address of smart machine is generated, further improves smart machine
Access the safety and reliability of network.
In embodiments of the present invention, using the retention frame in wireless protocols as between smart machine, wireless routing device
The carrier for the message transmitted;When carrying out the network connection configuration of smart machine, first passes through intelligent terminal and receive input by user open
It is dynamic to instruct and the enabled instruction is sent to wireless routing device;Preset time interval is pressed to intelligence from wireless routing device again
Energy equipment sends probe message, and after listening to the confirmation message that smart machine is returned according to the probe message, encryption is matched
Confidence ceases, and encrypted configuration information is sent to the smart machine;Encrypted configuration information described in smart machine decryption,
And the confirmation of successful connection is connect and sent to intelligent terminal with the wireless routing device according to the configuration information after decryption
Message;After intelligent terminal receives the confirmation message of the successful connection, the facility information of smart machine is obtained, and to the intelligence
Energy equipment returns to the confirmation message being successfully accessed;To provide a kind of configuration mode that new smart machine networks, simplify
The operating process that existing configuration smart machine networks;And the method is by between wireless routing device and smart machine
It interacts to send configuration information, solve existing configuration method causes since intelligent terminal can only connect a network every time
Can not batch configuration the problem of, realize batch carry out smart machine network connection configuration, reduce time and the raising of configuration
The efficiency of configuration.
Those of ordinary skill in the art be further appreciated that implement the method for the above embodiments be can
It is completed with instructing relevant hardware by program, the program can be stored in a computer read/write memory medium
In, described storage medium, including ROM/RAM, disk, CD etc..
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention.For example, modules are only
It is divided according to function logic, but is not limited to above-mentioned division, as long as corresponding function can be realized;Separately
Outside, the specific name of each function module is also only to facilitate mutually distinguish, the protection domain being not intended to restrict the invention.
All any modification, equivalent and improvement made by all within the spirits and principles of the present invention etc., should be included in
Within protection scope of the present invention.
Claims (7)
1. a kind of method of smart machine access network, which is characterized in that the method is applied to by intelligent terminal, wireless routing
The system of equipment and at least one smart machine composition, the method includes:
Intelligent terminal receives enabled instruction input by user, and the enabled instruction is sent to wireless routing device;
After wireless routing device receives the enabled instruction of intelligent terminal transmission, disappear to the successful response of intelligent terminal feedback reception
Breath, and by preset time interval to smart machine send include multipair sequence number and random number probe message;It is listening to
After the confirmation message that smart machine is returned according to the probe message, according to the selected sequence of smart machine in the confirmation message
The MAC Address for the random number and smart machine that row number and random number, smart machine are generated is generated according to preset key and is calculated
Method generates encryption key, and the intelligence is sent to using the encryption keys configuration information, and by encrypted configuration information
It can equipment;Array is established in memory to be generated with storing the selected sequence number of smart machine and random number, smart machine
The MAC Address and encryption key of random number, smart machine;Wherein, wireless routing device is included at least in the configuration information
Wireless network name and password;
After smart machine receives the probe message, from the multipair sequence number and random number select a pair of sequences number and with
Machine number stores selected sequence number and random number, and generates another random number;By selected sequence number and random number, institute
The random number of generation is encapsulated as confirmation message, and the confirmation message is returned to wireless routing device;Described in receiving
After encrypted configuration information, according to selected sequence number and random number, the random number generated and MAC Address, according to pre-
The key schedule set generates decruption key, using encrypted configuration information described in the decryption key decryption, according to solution
Configuration information after close is connect with the wireless routing device, and the confirmation message of successful connection is sent to intelligent terminal, described
The facility information of the smart machine is carried in the confirmation message of successful connection;
After intelligent terminal receives the confirmation message of the successful connection, the facility information of the smart machine is obtained, and to institute
It states smart machine and returns to the confirmation message being successfully accessed.
2. the method for smart machine as described in claim 1 access network, which is characterized in that the wireless routing device according to
The random number and intelligence that the selected sequence number of smart machine and random number, smart machine are generated in the confirmation message are set
Standby MAC Address, generating encryption key according to preset key schedule is specially:
With the MAC of random number and smart machine that the selected sequence number of smart machine and random number, smart machine are generated
Parameter factors of the address as RC4 pseudorandom cipher generating algorithms are generated and the ginseng using RC4 pseudorandom cipher generating algorithms
The corresponding key stream of the number factor, the key stream are the encryption key of configuration information.
3. the method for smart machine as described in claim 1 access network, which is characterized in that the method further includes:
Intelligent terminal receives halt instruction input by user, and the halt instruction is sent to wireless routing device;
After wireless routing device receives the halt instruction, stops sending probe message to smart machine and stop response intelligence
The confirmation message that energy equipment is returned according to probe message.
4. the method for smart machine access network as described in any one of claims 1 to 3, which is characterized in that the intelligence is set
The carrier of message that is standby, being transmitted between wireless routing device is wireless retention frame.
5. a kind of system of smart machine access network, which is characterized in that the system comprises intelligent terminal, wireless routing devices
And at least one smart machine;
The enabled instruction for receiving enabled instruction input by user, and is sent to wireless routing and set by the intelligent terminal
It is standby;
The wireless routing device, for receive intelligent terminal transmission enabled instruction after, to intelligent terminal feedback reception at
The response message of work(, and disappear to the detection that smart machine transmission includes multipair sequence number and random number by preset time interval
Breath;After listening to the confirmation message that smart machine is returned according to the probe message, intelligently set according in the confirmation message
The MAC Address for the random number and smart machine that standby selected sequence number and random number, smart machine are generated, according to preset
Key schedule generate encryption key, using the encryption keys configuration information, and by encrypted configuration information
It is sent to the smart machine;Array is established in memory to store the selected sequence number of smart machine and random number, intelligence
The MAC Address and encryption key for the random number, smart machine that equipment is generated;Wherein, it is included at least in the configuration information
The wireless network name and password of wireless routing device;
The smart machine is used for, and after receiving the probe message, is selected from the multipair sequence number and random number a pair of
Sequence number and random number store selected sequence number and random number, and generate another random number;By selected sequence number and
Random number, the random number generated are encapsulated as confirmation message, and the confirmation message is returned to wireless routing device;It receives
After the encrypted configuration information, according to selected sequence number and random number, the random number generated and MAC Address,
Decruption key is generated according to preset key schedule, using encrypted configuration information described in the decryption key decryption,
It is connect with the wireless routing device according to the configuration information after decryption, and disappeared to the confirmation of intelligent terminal transmission successful connection
It ceases, the facility information of the smart machine is carried in the confirmation message of the successful connection;
The intelligent terminal is additionally operable to, after the confirmation message for receiving the successful connection, the equipment that obtains the smart machine
Information, and the confirmation message being successfully accessed is returned to the smart machine.
6. the system of smart machine access network as claimed in claim 5, which is characterized in that the intelligent terminal is additionally operable to:
Halt instruction input by user is received, and the halt instruction is sent to wireless routing device;
The wireless routing device is additionally operable to:
After receiving the halt instruction, stops sending probe message to smart machine and stop response smart machine according to spy
Survey the confirmation message that message returns.
7. such as the system of smart machine described in claim 5 or 6 access network, which is characterized in that the smart machine, wireless
The carrier for the message transmitted between routing device is wireless retention frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410712316.3A CN104540237B (en) | 2014-11-28 | 2014-11-28 | Smart machine accesses the method and system of network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410712316.3A CN104540237B (en) | 2014-11-28 | 2014-11-28 | Smart machine accesses the method and system of network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104540237A CN104540237A (en) | 2015-04-22 |
CN104540237B true CN104540237B (en) | 2018-09-25 |
Family
ID=52855654
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410712316.3A Active CN104540237B (en) | 2014-11-28 | 2014-11-28 | Smart machine accesses the method and system of network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104540237B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104991919B (en) * | 2015-06-25 | 2018-07-03 | 青岛海信电器股份有限公司 | A kind of intelligent mobile terminal information-pushing method and device |
CN106550362B (en) * | 2015-09-18 | 2020-06-19 | 大唐半导体设计有限公司 | Method and system for safely accessing intelligent equipment to wireless local area network |
CN105656739A (en) * | 2016-03-23 | 2016-06-08 | 浙江风向标科技有限公司 | Method and device for batch configuration of Internet of things devices |
CN106060809A (en) * | 2016-05-30 | 2016-10-26 | 上海斐讯数据通信技术有限公司 | Method for rapidly access wireless network, wireless route device and smart device |
CN106850222B (en) * | 2017-01-04 | 2020-11-17 | 普联技术有限公司 | Configuration synchronization method of wireless networking equipment, wireless networking equipment and system |
CN109842515B (en) * | 2017-11-29 | 2022-05-10 | 佛山市顺德区美的电热电器制造有限公司 | Method for multi-device network distribution, server and computer storage medium |
CN109240179B (en) * | 2018-11-12 | 2020-04-28 | 飞犀半导体有限公司 | Distributed sand table model control system |
CN110972232A (en) * | 2019-12-16 | 2020-04-07 | 北京小米移动软件有限公司 | Network connection method, device, terminal and storage medium |
CN113038458A (en) * | 2019-12-25 | 2021-06-25 | 中移智行网络科技有限公司 | Data transmission method and system |
CN112260871B (en) * | 2020-10-21 | 2023-04-07 | 杭州萤石软件有限公司 | Configuration method of network parameters of Internet of things equipment, internet of things equipment and system |
CN114745259B (en) * | 2020-12-23 | 2024-02-06 | 深圳Tcl新技术有限公司 | Intelligent equipment batch network distribution method, equipment and computer readable storage medium |
CN113595718A (en) * | 2021-07-30 | 2021-11-02 | 大连海天兴业科技有限公司 | PHM host of train and encryption method thereof |
CN113747430B (en) * | 2021-08-31 | 2023-11-07 | 新华三技术有限公司成都分公司 | Network access method, terminal equipment and AP |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2595422A2 (en) * | 2012-06-01 | 2013-05-22 | Huawei Device Co., Ltd. | Method, user equipment and wireless router device for wifi communications |
CN103607751A (en) * | 2013-11-18 | 2014-02-26 | 深圳市通力科技开发有限公司 | Wireless device configuration method and system |
CN104159219A (en) * | 2014-08-04 | 2014-11-19 | 深圳市晶讯软件通讯技术有限公司 | WiFi terminals and method and system for quick access of WiFi terminals to WiFi AP |
CN104168625A (en) * | 2014-08-20 | 2014-11-26 | 普联技术有限公司 | Intelligent device, method for connecting intelligent device to wireless routing device, and wireless routing device |
-
2014
- 2014-11-28 CN CN201410712316.3A patent/CN104540237B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2595422A2 (en) * | 2012-06-01 | 2013-05-22 | Huawei Device Co., Ltd. | Method, user equipment and wireless router device for wifi communications |
CN103607751A (en) * | 2013-11-18 | 2014-02-26 | 深圳市通力科技开发有限公司 | Wireless device configuration method and system |
CN104159219A (en) * | 2014-08-04 | 2014-11-19 | 深圳市晶讯软件通讯技术有限公司 | WiFi terminals and method and system for quick access of WiFi terminals to WiFi AP |
CN104168625A (en) * | 2014-08-20 | 2014-11-26 | 普联技术有限公司 | Intelligent device, method for connecting intelligent device to wireless routing device, and wireless routing device |
Also Published As
Publication number | Publication date |
---|---|
CN104540237A (en) | 2015-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104540237B (en) | Smart machine accesses the method and system of network | |
US11259178B2 (en) | Bluetooth mesh network provisioning authentication | |
CN104506397B (en) | The method and system of smart machine access to LAN | |
CN100442691C (en) | Method for providing security on powerline-modem network | |
CN108366362A (en) | MESH network and its MESH equipment safeties match network method | |
CN103458399A (en) | Intelligent WIFI module and method for configuring device supporting WIFI connection into WIFI network | |
US20220060961A1 (en) | Network channel switching method and apparatus, device, and storage medium | |
CN108762791A (en) | Firmware upgrade method and device | |
CN105337726A (en) | End-to-end hand-held device encryption method based on quantum cryptography and system | |
CN113840266B (en) | Bluetooth pairing method, device, system, electronic equipment and storage medium | |
CN109639702A (en) | A kind of data communications method, system and electronic equipment and storage medium | |
CN105208028A (en) | Data transmission method and related device and equipment | |
CN105407109A (en) | Data secure transmission method between Bluetooth devices | |
CN106452999B (en) | Intelligent household appliance and method and device for safely accessing intelligent household appliance | |
CN111788836B (en) | Data transmission method and BLE equipment | |
CN110234102A (en) | Communication means and equipment | |
CN106658488B (en) | Intelligent household appliance and method and device for safely accessing intelligent household appliance | |
CN103929297A (en) | Communication method, encryption method and device for POS and mobile terminal and POS | |
CN107872315A (en) | Data processing method and intelligent terminal | |
CN107155184A (en) | A kind of WIFI module and its communication means with security encryption chip | |
CN108471406B (en) | Network attack monitoring method, device, equipment and storage medium | |
CN109039613A (en) | A kind of quantum key distribution system and method | |
US20230052917A1 (en) | Pairing method applied to short-range communication system and wireless device | |
CN103650457A (en) | Detection method, device and terminal device of share access | |
WO2021147659A1 (en) | Wireless communication device and wireless communication method |
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 |