The content of the invention
Present invention seek to address that problem as described above.
According to the first aspect of the invention, there is provided a kind of Internet of things access method, including:
Into configuration mode;
The audio that detection control device is sent, after effective audio is recognized, intercepts complete network from the audio
Configure message;
The network configuration information needed for access home network is parsed from the network configuration message;
According to the network configuration information, the home network is accessed.
Preferably, the audio that detection control device is sent, after effective audio is recognized, intercepted from the audio complete
Network configuration message include:
Detection meets effective audio of the network configuration message, and the effectively audio includes starting audio frame, content sound
Frequency frame, terminate audio frame;
When identifying the beginning audio frame, audio interception is proceeded by, is obtained from audio frame is started to end audio
The complete network configuration message of frame.
Preferably, also include before the step of identifying and intercept the network configuration message that control device is sent:
The first confirmation message that the control device is sent is received, it is true to carry a seed in first confirmation message
Recognize frame information;
The second confirmation message is replied to the control device, the seed acknowledgement frame is carried in second confirmation message
The identity information of information and this equipment.
Preferably, it is described according to the network configuration information, after the step of accessing the home network, in addition to:
Established and connected by the home network and cloud server, receive the control letter that the cloud server issues
Breath;And/or
Receive the control information that the control device being under same LAN directly transmits.
Preferably, it is described according to the network configuration information, after the step of accessing the home network, in addition to:
Play the notification message of the audio format comprising the machine identity information.
According to another aspect of the present invention, there is provided a kind of Internet of things access method, including:
Network configuration information needed for access network network is encoded, obtains the network configuration message of audio format;
Use network configuration message described in audio broadcasting.
Preferably, the network configuration message of audio format, which includes, starts audio frame, contextual audio frame, terminates audio
Frame, it is specially using network configuration message described in audio broadcasting:
Sequential loop according to beginning audio frame, contextual audio frame, end audio frame broadcasts the network configuration message,
The network configuration information is carried in the contextual audio frame.
Preferably, this method also includes:
Detect the audio that the internet of things equipment is sent;
After effective audio is recognized, complete notification message is intercepted from the audio, is taken in the notification message
Identity information with the internet of things equipment.
Preferably, the network configuration information needed for access network network is encoded, the network configuration for obtaining audio format disappears
Before the step of breath, in addition to:
The first confirmation message is sent to the internet of things equipment, indicates that the internet of things equipment reports the internet of things equipment
Identity information, the seed frame acknowledgement information generated at random is carried in first confirmation message;
The second confirmation message that the internet of things equipment is replied is received, second confirmation message carries seed frame acknowledgment
The identity information of information and the internet of things equipment;
When first confirmation message is consistent with the seed frame acknowledgement information carried in second confirmation message, receive
The configuration instruction that identity information based on the internet of things equipment issues, is ready for sending the network configuration message.
Preferably, explained from the notification message and obtain the identity information of the internet of things equipment, and according to the body
Part information, after establishing the step of connecting with the internet of things equipment, in addition to:
User profile and the identity information of the internet of things equipment are sent to cloud server, to notify the cloud service
Device binds the user and the internet of things equipment;
Control information is sent by the cloud server or directly to the internet of things equipment.
According to another aspect of the present invention, there is provided a kind of Internet of Things access device, including:
Schema management module, for into configuration mode;
Audio detection module, the audio sent for detecting control device, after effective audio is recognized, from the audio
The middle complete network configuration message of interception;
Parsing module, for parsing the network configuration letter needed for access home network from the network configuration message
Breath;
Network connection management module, for according to the network configuration information, accessing the home network.
Preferably, the audio detection module includes:
Effective audio finds unit, and effective audio of the network configuration message, effective audio are met for detecting
Including starting audio frame, contextual audio frame, terminating audio frame;
Message intercept unit, for when identifying the beginning audio frame, proceeding by audio interception, obtaining from the beginning of
Audio frame is to the complete network configuration message for terminating audio frame.
Preferably, the device also includes:
Sending module, for playing the notification message of the audio format comprising the machine identity information.
Preferably, the device also includes:
Identity validation module, the first confirmation message sent for receiving the control device, confirm to disappear described first
A seed acknowledgement frame information is carried in breath,
The second confirmation message is replied to the control device, the seed acknowledgement frame is carried in second confirmation message
The identity information of information and this equipment.
According to another aspect of the present invention, there is provided a kind of Internet of Things access device, including:
Coding module, for being encoded to the network configuration information needed for access network network, obtain the network of audio format
Configure message;
Audio broadcasting module, for using network configuration message described in audio broadcasting.
Preferably, the audio broadcasting module, specifically for according to beginning audio frame, contextual audio frame, end audio frame
Sequential loop broadcast the network configuration message, carry the network configuration information in the contextual audio frame.
Preferably, the device also includes:
Audio detection module, the audio sent for detecting the internet of things equipment;
Audio interception module, for after effective audio is recognized, complete notification message to be intercepted from the audio.
Preferably, the device also includes:
Identity validation module, for sending the first confirmation message to the internet of things equipment, indicate the internet of things equipment
The identity information of the internet of things equipment is reported, the seed frame acknowledgement information generated at random is carried in first confirmation message,
The second confirmation message that the internet of things equipment is replied is received, second confirmation message carries seed frame acknowledgment
The identity information of information and the internet of things equipment,
When first confirmation message is consistent with the seed frame acknowledgement information carried in second confirmation message, receive
The configuration instruction that identity information based on the internet of things equipment issues, is ready for sending configuration message.
The embodiment provides a kind of Internet of things access method and device, is carried and is used for by control device transmission
The network configuration message of the network configuration information of home network is accessed, internet of things equipment identifies and intercepted the net that control device is sent
Network configures message, and the network configuration information needed for access home network is parsed from the network configuration message, and according to institute
Network configuration information is stated, accesses the home network, solves the problems, such as that network insertion configuration is complicated, it is fast to realize high success rate
The automatic network access of speed.The audio-frequency information received by internet of things home appliance equipment automatic identification connects WiFi, while can be with
Played back according to the form of its data Automatic generation of information voice data sound wave, Internet of Things intelligence APP receives parsing automatically
Audio voice data carries out the binding of equipment, can solve the problem that existing Internet of Things APP configurations and the low success rate of problem of bound device, letter
Change flow, incorporated resource, can also improve the experience of user well, while also greatly save Internet of Things APP exploitation
And maintenance cost.
The following description for exemplary embodiment is read with reference to the drawings, other property features of the invention and advantage will
It is apparent from.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.Need
Illustrate, in the case where not conflicting, the feature in embodiment and embodiment in the application can be mutually combined.
Internet of things equipment and client device binding procedure be complicated, low success rate of problem in order to solve, reality of the invention
Apply example and provide a kind of Internet of things access method.Internet of things equipment interacts completion network connection with control device and matched somebody with somebody automatically
Put, the problems such as avoiding the cumbersome fallibility of manual operation process, greatly improve Consumer's Experience.It is related in embodiments of the invention
Internet of things equipment be the electric equipment with network connecting function and micro treatment module, it is preferred that be intelligent appliance equipment;This
The control device being related in the embodiment of invention is the equipment with control function, can be home gateway, specific control device, or
It is equipped with corresponding function software (such as client end AP P) client device.
First with reference to accompanying drawing, embodiments of the invention one are illustrated.
The embodiments of the invention provide a kind of Internet of things access method, internet of things equipment is carried out with control device by audio
The transmission of information, so as to complete network configuration, automatically accessing for internet of things equipment is realized, and then realize to the remote of internet of things equipment
Process control.Using Internet of things access method provided in an embodiment of the present invention complete internet of things equipment access flow as shown in figure 1,
Including:
Step 101, control device send network configuration message, are carried in the network configuration information for accessing house
The network configuration information of front yard network;
In the embodiment of the present invention, illustrated so that control device is to be provided with corresponding function APP mobile phone as an example.
In this step, the network configuration information is encoded, the network configuration for obtaining audio format disappears letter, reuses
Network configuration message described in audio broadcasting.
Specifically, start Internet of Things intelligence APP clients, logon account first on mobile phone.
User inputted in APP operation interfaces family WiFi SSID and password as network configuration information, APP is by this net
The network configuration message that network configuration information is converted into audio format plays.
Preferably, it is recycled and plays when playing network configuration message, it is special that the beginning and end per section audio uses
Fixed-audio, complete network configuration message is obtained in order to which recipient intercepts.
Step 102, internet of things equipment identify and intercepted the network configuration message that control device is sent;
In the embodiment of the present invention, illustrated so that internet of things equipment is intelligent appliance as an example.
In this step, internet of things equipment enters configuration mode, and detects the audio that the control device is sent, and is recognizing
After effective audio, complete network configuration message is intercepted from the audio.
Preferably, can internet of things equipment side set a configuration mode, only in the configuration mode carry out audio interception and
Network insertion.User can make equipment be in configuration mode (waiting to network) by operating the control panel of internet of things equipment, or send
The operational order (such as saying control instruction, internet of things equipment identifies the instruction) of other forms makes equipment be in configuration mode.
Step 103, the network configuration information accessed needed for home network is parsed from the network configuration message;
In this step, the network configuration message for the audio form that internet of things equipment obtains to interception decodes, and obtains net
Network configuration information.Specifically, the network configuration message of the audio format received is decoded into by the audio process of intelligent appliance
Corresponding SSID and password and network configuration information comprising family WiFi.
Step 104, internet of things equipment access the home network according to the network configuration information;
In this step, the network connection management module of internet of things equipment actively goes to connect after receiving the network configuration information
The SSID, completed after successful connection into network process.
Step 105, internet of things equipment play the notification message of the audio format comprising the machine identity information;
In this step, intelligent appliance network complete after, can by the information of the intelligent appliance, including:Mac, equipment class
The notification message that the identity informations such as type, machine code are generated voice data form by audio process plays out.
Step 106, control device, which are identified and intercepted, accesses the Internet of Things that the internet of things equipment of the home network is sent
The notification message of equipment, the identity information of the internet of things equipment is carried in the notification message;
In this step, control device detects the audio that the internet of things equipment is sent, after effective audio is recognized, from institute
State and complete notification message is intercepted in audio.
Specifically, APP handset identity is mounted with to after effective audio, the intercept notification message from audio.
Step 107, control device are explained from the notification message obtains the identity information of the internet of things equipment, and according to
According to the identity information, establish and connect with the internet of things equipment;
In this step, the notification message of interception is decoded into the identity information of corresponding internet of things equipment by mobile phone.
Step 108, control device send user profile and the identity information of the internet of things equipment to cloud server, with
The cloud server is notified to bind the user and the internet of things equipment;
In this step, these identity informations are uploaded to cloud server by control device, and cloud server receives successfully, both
Complete internet of things home appliance and the binding of user.
After internet of things home appliance binding success, APP completes being adapted to certainly for equipment interface according to device type, automatically generates
Equipment interactive interface,
An effective communication connection is established between cloud platform, internet of things home appliance, APP three, carries out the control of equipment
With the synchronization of state.
After the completion of binding, control device can be sent by the cloud server or directly to the internet of things equipment
Control information;And internet of things equipment can be established by the home network and cloud server and connected, the high in the clouds clothes are received
The control information that business device issues, and/or, receive the control information that the control device being under same LAN directly transmits.
Below in conjunction with the accompanying drawings, embodiments of the invention two are illustrated.
The embodiments of the invention provide a kind of Internet of things access method, and the flow of Internet of Things access is completed such as using this method
Shown in Fig. 2, including:
Step 201, control device confirm the identity of internet of things equipment;
In the embodiment of the present invention, concretely the mobile terminal such as mobile phone, internet of things equipment are concretely intelligent for control device
Household electrical appliances.
In this step, control device sends the first confirmation message to the internet of things equipment, indicates the internet of things equipment
The identity information of the internet of things equipment is reported, the seed frame acknowledgement information generated at random is carried in first confirmation message;
The source that sends that the seed frame acknowledgement information is used to identify the first confirmation message is this control device.
Internet of things equipment receives the first confirmation message that the control device is sent, and it is true to reply second to the control device
Recognize message, the seed is carried in second confirmation message and confirms frame information and the identity information of this equipment;Wherein
Seed acknowledgement frame is carried to show that second confirmation message is in response to what first confirmation message was sent.
Control device, the second confirmation message that the internet of things equipment is replied is received, in first confirmation message and institute
State the seed frame acknowledgement information carried in the second confirmation message it is consistent when, judge that second confirmation message is in response to this control device
The first confirmation message sent, therefore the configuration instruction that the identity information based on the internet of things equipment issues can be continued to
(such as user is manipulated by the instruction that equipment is sent), is ready for sending the network configuration message.
Step 202, control device encode to the network configuration information needed for access network network, obtain the net of audio format
Network configures message;
For example, using family WiFi SSID and password as network configuration information.Network configuration information can pass through control in real time
Control equipment is set.
Step 203, control device use network configuration message described in audio broadcasting;
In this step, match somebody with somebody according to the sequential loop broadcast network of beginning audio frame, contextual audio frame, end audio frame
Message is put, the network configuration information is carried in the contextual audio frame.Start audio frame and be used for token network configuration message
Starting, terminate audio frame and be used for the token network configuration end of message, be one complete from audio frame is started to audio frame is terminated
Network configuration message.
Step 204, internet of things equipment enter configuration mode, the audio that detection control device is sent, are recognizing effective sound
After frequency, complete network configuration message is intercepted from the audio;
In this step, enter configuration mode in internet of things equipment side, start to detect audio.Detection meets the network and matched somebody with somebody
Effective audio of message is put, the effectively audio includes starting audio frame, contextual audio frame, terminates audio frame.
Step 205, internet of things equipment proceed by audio interception, obtained from opening when identifying the beginning audio frame
Beginning audio frame is to the complete network configuration message for terminating audio frame.
The network that step 206, internet of things equipment parse needed for access home network from the network configuration message is matched somebody with somebody
Confidence ceases, and according to the network configuration information, accesses the home network.
Step 207, internet of things equipment play the notification message of the audio format comprising the machine identity information;
In this step, internet of things equipment plays the notification message for including the machine identity information, to show that this equipment has added
Network, it is subjected to the control of control device.
Step 208, control device detect the audio that the internet of things equipment is sent, after effective audio is recognized, from institute
State and complete notification message is intercepted in audio.
Step 209, control device send user profile and the identity information of the internet of things equipment to cloud server, with
The cloud server is notified to bind the user and the internet of things equipment;
So far, internet of things equipment has completed the access to home network.On this basis, the internet of things equipment can subsequently lead to
Cross the home network and establish connection with cloud server, receive the control information that the cloud server issues, and/or, connect
Receive the control information that the control device being under same LAN directly transmits;And control device can also pass through the cloud service
Device directly sends control information to the internet of things equipment.
Below in conjunction with the accompanying drawings, embodiments of the invention two are illustrated.
The embodiments of the invention provide a kind of Internet of things device, its structure as shown in figure 3, including:
Schema management module 301, for into configuration mode;
Audio detection module 302, the audio sent for detecting control device, after effective audio is recognized, from described
Complete network configuration message is intercepted in audio;
Parsing module 303, for parsing the network configuration needed for access home network from the network configuration message
Information;
Network connection management module 304, for according to the network configuration information, accessing the home network.
Preferably, the audio detection module 302 includes:
Effective audio finds unit 3021, and effective audio of the network configuration message is met for detecting, described effective
Audio includes starting audio frame, contextual audio frame, terminates audio frame;
Message intercept unit 3022, for identify it is described beginning audio frame when, proceed by audio interception, obtain from
Start audio frame to the complete network configuration message for terminating audio frame.
Preferably, the device also includes:
Sending module 305, for playing the notification message of the audio format comprising the machine identity information.
Preferably, the device also includes:
Identity validation module 306, the first confirmation message sent for receiving the control device, confirms described first
A seed acknowledgement frame information is carried in message,
The second confirmation message is replied to the control device, the seed acknowledgement frame is carried in second confirmation message
The identity information of information and this equipment.
Internet of Things access device as shown in Figure 3 can be integrated in internet of things equipment, and corresponding work(is realized by internet of things equipment
Energy.
The embodiment of the present invention additionally provides another Internet of Things access device, its structure as shown in figure 4, including:
Coding module 401, for being encoded to the network configuration information needed for access network network, obtain the net of audio format
Network configures message;
Audio broadcasting module 402, for using network configuration message described in audio broadcasting.
Preferably, the audio broadcasting module 402, specifically for according to beginning audio frame, contextual audio frame, end audio
The sequential loop of frame broadcasts the network configuration message, and the network configuration information is carried in the contextual audio frame.
Preferably, the device also includes:
Audio detection module 403, the audio sent for detecting the internet of things equipment;
Audio interception module 404, disappear for after effective audio is recognized, intercepting complete notice from the audio
Breath.
Preferably, the device also includes:
Identity validation module 405, for sending the first confirmation message to the internet of things equipment, indicate that the Internet of Things is set
For the identity information of the internet of things equipment is reported, the seed frame acknowledgment letter generated at random is carried in first confirmation message
Breath,
The second confirmation message that the internet of things equipment is replied is received, second confirmation message carries seed frame acknowledgment
The identity information of information and the internet of things equipment,
When first confirmation message is consistent with the seed frame acknowledgement information carried in second confirmation message, receive
The configuration instruction that identity information based on the internet of things equipment issues, is ready for sending configuration message.
Below in conjunction with the accompanying drawings, embodiments of the invention four are illustrated.
A kind of Internet of Things access system the embodiments of the invention provide internet of things home appliance and using the internet of things home appliance, lead to
Cross reception audio-frequency information and connect family WiFi automatically, reach the rapid configuration purpose of internet of things home appliance.
Internet of things home appliance is sent according to the identity information (mac, model etc.) of itself with the notification message of voice data form,
Internet of Things intelligence APP identifies the identity information of internet of things home appliance by the voice data of receiving device (such as mobile phone control device),
It is automatic to carry out apparatus bound, reach the purpose of the quick discovery and binding of internet of things home appliance.
System architecture as shown in figure 5, main include the internet of things home appliance with WiFi Internet of Things modules, home wireless router with
The intelligent terminal of internet of things home appliance can be connected.Wherein, internet of things home appliance include family WiFi Internet of Things module, audio processing modules,
Domestic electric appliances controller., the data such as domestic electric appliances controller is used to controlling, the various states that gather household electrical appliances, household electrical appliances is able to carry out normally
Operating.Wifi Internet of Things modules are responsible for have received the control command information sent on network, and upload household electrical appliances status information and
Information exchange is carried out with internet of things home appliance intelligent terminal.Audio processing modules are responsible for receiving extraneous audio-frequency information, are responsible for simultaneously
The equipment that self information is passed to the external world by the form of audio.
Home wireless router is the administrative center of home network.Internet of things home appliance by WiFi network be connected to family without
On line router, to be communicated with cloud server, Internet of Things intelligence APP.
Internet of Things intelligence APP obtains device-dependent retouch according to according to the current internet of things home appliance for connecting and binding from high in the clouds
Information is stated, according to description information or configuration text, parses the function of the equipment of internet of things home appliance, APP ends are according to these information
Automatically generate corresponding equipment control and interactive interface.
The embodiment provides a kind of Internet of things access method and device, is carried and is used for by control device transmission
The network configuration message of the network configuration information of home network is accessed, internet of things equipment identifies and intercepted the net that control device is sent
Network configures message, and the network configuration information needed for access home network is parsed from the network configuration message, and according to institute
Network configuration information is stated, accesses the home network, solves the problems, such as that network insertion configuration is complicated, it is fast to realize high success rate
The automatic network access of speed.The audio-frequency information received by internet of things home appliance equipment automatic identification connects WiFi, while can be with
Played back according to the form of its data Automatic generation of information voice data sound wave, Internet of Things intelligence APP receives parsing automatically
Audio voice data carries out the binding of equipment, can solve the problem that existing Internet of Things APP configurations and the low success rate of problem of bound device, letter
Change flow, incorporated resource, can also improve the experience of user well, while also greatly save Internet of Things APP exploitation
And maintenance cost.
Descriptions above can combine implementation individually or in a variety of ways, and these variants all exist
Within protection scope of the present invention.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations.Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.