Summary of the invention
In view of this, it is necessary to provide a kind of configuration method of smart machine and device, it can be to avoid above-mentioned in intelligence
The problems in the initial configuration process of energy equipment.
A kind of configuration method of smart machine, comprising:
The smart machine is switched to configuration mode according to the switching command that user inputs;
The configuration information of mobile electronic terminal push is received, the configuration information includes the authentication of at least one network
Information;
It attempts to connect the network using the configuration information after receiving the configuration information;And
The configuration information is stored after connecting the network success.
In one embodiment, the above method further include: if connecting the network failure, also to the mobile electronic terminal
Notification information is sent, user is prompted to provide correct configuration information, and resumes waiting for the mobile electronic terminal and sends with confidence
Breath.
In one embodiment, the above method further include: also cut the smart machine after connecting network success
It is changed to normal mode of operation.
In one embodiment, in the above method, when button operation of the user to the smart machine meets scheduled mould
The switching command is triggered when formula, it is more than the predetermined time that the scheduled mode, which includes: the time pressed the button,;Or key quilt
The number consecutively pressed is more than pre-determined number.
In one embodiment, the above method further include: further include usersaccount information in the configuration information, work as connection
After the network success, the smart machine also sends the unique identification of the usersaccount information and the smart machine
To background server, in the binding established in the background server between the usersaccount information and the smart machine
Relationship.
A kind of configuration device of smart machine, comprising:
The smart machine is switched to configuration mode by the first switching module, the switching command for being inputted according to user;
Receiving module, for receiving the configuration information of mobile electronic terminal push, the configuration information includes at least one
The authentication information of network;
Networking module, for attempting to connect the network using the configuration information after receiving the configuration information;With
And
Memory module, for storing the configuration information after connecting the network success.
In one embodiment, above-mentioned apparatus further include: cue module, if for connecting the network failure, also to institute
It states mobile electronic terminal and sends notification information, prompt user to provide correct configuration information, and resume waiting for the mobile electron
Terminal sends configuration information.
In one embodiment, above-mentioned apparatus further include: the second switching module, for being gone back after connecting network success
The smart machine is switched to normal mode of operation.
In one embodiment, when button operation of the user to the smart machine meets scheduled mode in above-mentioned apparatus
The first switching module of Shi Suoshu triggers the switching command, and it is more than predetermined that the scheduled mode, which includes: the time pressed the button,
Time;Or the number that key is consecutively pressed is more than pre-determined number.
It in one embodiment, further include usersaccount information in configuration information described in above-mentioned apparatus, described device is also wrapped
It includes: binding module, for after connecting the network successfully, the smart machine to be also by the usersaccount information and described
The unique identification of smart machine is sent to background server, with established in the background server usersaccount information with
Binding relationship between the smart machine.
According to above-mentioned method and apparatus, smart machine receive mobile electronic terminal transmission configuration information after not
It is to restart immediately, but Network test is first carried out using the configuration information received, intelligence is just disconnected after test passes through
Network connection between equipment and mobile electronic terminal.This mode can be led to avoid user in the offer configuration information of mistake
The smart machine of cause, which is networked, to fail, and needs to carry out configuration process again.Reduce user complete smart machine initial configuration when
Between, promote allocative efficiency.
Specific embodiment
Further to illustrate that the present invention is the technical means and efficacy realizing reservation goal of the invention and being taken, below in conjunction with
Attached drawing and preferred embodiment, to specific embodiment, structure, feature and its effect according to the present invention, detailed description is as follows.
Fig. 1 is a kind of common home network topological structure.Wherein, wireless router 10 is connected with internet and mentions simultaneously
For WIFI, and other equipment such as mobile electronic terminal (including smart phone, tablet computer etc.) 20 and smart machine 30 etc.
This WIFI be can be connected to access internet, or directly connect by WIFI with the other equipment in same WLAN.
It is understood that access the WIFI of wireless router, WIFI password is generally required.In the equipment with user interface, example
In mobile phone, WIFI password can be inputted by user.However in the smart machine of not user interface, user can not be directly to it
Input WIFI password, it is necessary to the password of WIFI or other network connection parameters are sent to smart machine using other methods.
Fig. 2 shows the structural block diagrams of one embodiment of above-mentioned smart machine 30.As shown in Fig. 2, smart machine 30
Including memory 102, storage control 104, one or more (one is only shown in figure) processors 106, Peripheral Interface 108,
And network module 110.These components are mutually communicated by one or more communication bus/signal wire.
It is appreciated that structure shown in Fig. 2 is only to illustrate, above-mentioned smart machine 30 may also include more than shown in Fig. 6
Perhaps less component or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can use hardware, software
Or combinations thereof realize.
Memory 102 can be used for storing software program and module, such as each method and device pair in the embodiment of the present invention
Program instruction/the module answered, the software program and module that processor 106 is stored in memory 102 by operation, to hold
Above-mentioned method is realized in row various function application and data processing.
Memory 102 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic
Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 102 can further comprise
The memory remotely located relative to processor 106, these remote memories can pass through network connection to above-mentioned server.On
The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.Processor 106
And other possible components can carry out the access of memory 102 under the control of storage control 104.
Various input/output devices are couple processor 106 by Peripheral Interface 108.106 run memory 102 of processor
Interior various softwares, the above-mentioned server of instruction perform various functions and carry out data processing.In some embodiments, peripheral hardware connects
Mouth 108, processor 106 and storage control 104 can be realized in one single chip.In some other example, Ta Menke
To be realized respectively by independent chip.
Network module 110 is for receiving and transmitting network signal.Above-mentioned network signal may include wireless signal or have
Line signal.In an example, above-mentioned network signal is cable network signal.At this point, network module 110 may include processor,
The elements such as random access memory, converter, crystal oscillator.In one embodiment, above-mentioned network signal is wireless signal (example
Such as radiofrequency signal).110 essence of network module is radio-frequency module at this time, receives and transmits electromagnetic wave, realizes electromagnetic wave and telecommunications
Number mutual conversion, to be communicated with communication network or other equipment.Radio-frequency module may include various existing is used for
The circuit element of these functions is executed, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, user
Identity module (SIM) card, memory etc..Radio-frequency module can with various networks for example internet, intranet, wireless network into
Row communication is communicated by wireless network and other equipment.Above-mentioned wireless network may include cellular telephone networks, nothing
Line local area network or Metropolitan Area Network (MAN).Various communication standards, agreement and technology can be used in above-mentioned wireless network, including but and unlimited
In global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication
Technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code
Division multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time-division
Multiple access technology (time division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity,
WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or
IEEE 802.11n), the networking telephone (Voice over internet protocol, VoIP), worldwide interoperability for microwave accesses
(Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger
The agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet
Agreement.
Above-mentioned software program and module includes: operating system 122 and configuration module 124.Operating system 122 its
May include the various component softwares for management system task (such as memory management, storage equipment control, power management etc.) with/
Or driving, and can mutually be communicated with various hardware or component software, to provide the running environment of other software component.Configure mould
Block 124 operates on the basis of operating system 122, for realizing the initial configuration process of smart machine 30, detailed process
It is described as follows.
It is the flow chart of the configuration method for the smart machine that first embodiment of the invention provides refering to Fig. 3.Such as Fig. 3 institute
Show, method includes the following steps:
The smart machine is switched to configuration mode according to the switching command that user inputs by step S101.
For example, triggering the switching command, institute when button operation of the user to smart machine 30 meets scheduled mode
Stating scheduled mode to include: time for pressing the button is more than the predetermined time;Or the number that key is consecutively pressed is more than predetermined
Number.Since smart machine generally lacks graphic user interface, instruction can also be passed through after being switched to configuration mode
The different flash patterns prompt user of lamp has come into configuration mode.
Step S102 receives the configuration information of mobile electronic terminal push, and the configuration information includes at least one network
Authentication information.
In the configuration mode, its wireless network card is set hotspot operating mode, other intelligence by smart machine 30
Equipment can connect the hotspot.The network access password of hotspot can be empty or preset password, be moved easily
Electric terminal access.The SSID of hotspot can be some titles for being easy to that user is allowed to identify.
In mobile electronic terminal 20, if automatically scanning can be supported, 20 automatic describing of mobile electronic terminal has spy
It names the wireless network of title and attempts to connect;If not supporting automatic describing, user can be prompted to connect specific wireless network manually
The wireless network that network, i.e. smart machine 30 provide.
After being successfully connected to smart machine 30, configuration information can be sent to smart machine 30 by WLAN.
Configuration information includes at least the authentication information of a network, for example, the access for the wireless network that wireless router 10 provides
Password.
Step S103 attempts to connect the network using the configuration information after receiving the configuration information.
After the configuration information for receiving the transmission of mobile electronic terminal 20, smart machine 30 utilizes the configuration information received
Network is attempted to connect to, that is, the wireless network of the offer of wireless router 10 is provided, Network test is also executed after connection.
Step S104 stores the configuration information after connecting the network success.
After Network test passes through, smart machine 30 stores the configuration information, the needs for the access of later network.
It may also include that step S105 after storage configuration information, the smart machine be switched to normal mode of operation.
Being switched to normal mode of operation can switch over immediately after step S104 completion, in this way, smart machine 30
Normal working condition can be immediately entered.When 30 hardware of smart machine is not supported to switch immediately, intelligence can also be restarted
Energy equipment 30 simultaneously makes smart machine 30 be switched to normal mode of operation after restarting completion.
Another method, the above method may also include that step S106, to the mobile electron if connecting the network failure
Terminal sends notification information, and user is prompted to provide correct configuration information, and resumes waiting for the mobile electronic terminal transmission and match
Confidence breath.
That is, the network connection between mobile electronic terminal 20 and smart machine 30 is not after step S103
It disconnects, but waits Network test as a result, if can just disconnect mobile electron when the connection wireless router 10 of smart machine 30 is successful
Network connection between terminal 20 and smart machine 30.
According to the method for the present embodiment, smart machine 30 is after the configuration information for receiving the transmission of mobile electronic terminal 20
It does not restart not instead of immediately, Network test is first carried out using the configuration information received, just disconnects intelligence after test passes through
Network connection between energy equipment 30 and mobile electronic terminal 20.This mode can match confidence in the offer of mistake to avoid user
The caused networking of smart machine 30 failure, needs to carry out configuration process again when breath.It reduces user and completes smart machine initialization
The time of configuration promotes allocative efficiency.
It is the flow chart of the configuration method for the smart machine that second embodiment of the invention provides refering to Fig. 4.Such as Fig. 4 institute
To show, the method for the present embodiment is similar to method shown in Fig. 3, the difference is that, it further include user in the configuration information
Account, after step S105 the method also includes:
Step S107, after connecting network success, the smart machine is also by the usersaccount information and institute
The unique identification for stating smart machine is sent to background server, to establish the usersaccount information in the background server
With the binding relationship between the smart machine.
The usersaccount information is, for example, cell-phone number, E-mail address or any other can uniquely distinguish user
Account, according to the accessible cloud data service of account information, such as the data synchronization service of Intelligent hardware.
Usersaccount information associated with it can be sent to smart machine when sending configuration information by mobile electronic terminal 20 together
30.Smart machine 30 is receiving usersaccount information, and after Network test passes through, and can set usersaccount information and intelligence
Standby 30 unique identification is sent to background server 30.Above-mentioned cloud data service is for example exactly to be mentioned by background server 30
For.Background server 30 is after receiving the unique identification of usersaccount information and smart machine 30, so that it may in server end
By usersaccount information and 30 associated storage of smart machine.In this way, the user account number can be authorized to smart machine 30
Relevant data.
User account number and intelligence can also be established in addition to the initialization of progress networked information according to the method for the present embodiment
Binding relationship between equipment facilitates user to check the device data for being synchronized to cloud in mobile electronic terminal.
It is the module map of the configuration device for the smart machine that third embodiment of the invention provides refering to Fig. 5.The present embodiment
Configuration device include: the first switching module 11, receiving module 12, networking module 13, memory module 14 and second switching mould
Block 15.
The smart machine is switched to configuration mode by the switching command that the first switching module 11 is used to be inputted according to user.
For example, triggering the switching command, institute when button operation of the user to smart machine 30 meets scheduled mode
Stating scheduled mode to include: time for pressing the button is more than the predetermined time;Or the number that key is consecutively pressed is more than predetermined
Number.Since smart machine generally lacks graphic user interface, instruction can also be passed through after being switched to configuration mode
The different flash patterns prompt user of lamp has come into configuration mode.
Receiving module 12 is used to receive the configuration information of mobile electronic terminal push, and the configuration information includes at least one
The authentication information of network.
In the configuration mode, its wireless network card is set hotspot operating mode, other intelligence by smart machine 30
Equipment can connect the hotspot.The network access password of hotspot can be empty or preset password, be moved easily
Electric terminal access.The SSID of hotspot can be some titles for being easy to that user is allowed to identify.
In mobile electronic terminal 20, if automatically scanning can be supported, 20 automatic describing of mobile electronic terminal has spy
It names the wireless network of title and attempts to connect;If not supporting automatic describing, user can be prompted to connect specific wireless network manually
The wireless network that network, i.e. smart machine 30 provide.
After being successfully connected to smart machine 30, configuration information can be sent to smart machine 30 by WLAN.
Configuration information includes at least the authentication information of a network, for example, the access for the wireless network that wireless router 10 provides
Password.
Networking module 13 using the configuration information after receiving the configuration information for attempting to connect the network.
After the configuration information for receiving the transmission of mobile electronic terminal 20, smart machine 30 utilizes the configuration information received
Network is attempted to connect to, that is, the wireless network of the offer of wireless router 10 is provided, Network test is also executed after connection.
Memory module 14 is used to store the configuration information after connecting the network success.
After Network test passes through, smart machine 30 stores the configuration information, the needs for the access of later network.Match
Confidence breath can store in a flash memory, and storage shape form, which can be, directly to be stored in a manner of configuration file, also can be written into
In database.
Second switching module 15 is used to that the smart machine to be also switched to normal work after connecting network success
Mode, or restart the smart machine and the smart machine is made to enter normal mode of operation after restarting completion.
According to the device of the present embodiment, smart machine 30 is after the configuration information for receiving the transmission of mobile electronic terminal 20
It does not restart not instead of immediately, Network test is first carried out using the configuration information received, just disconnects intelligence after test passes through
Network connection between energy equipment 30 and mobile electronic terminal 20.This mode can match confidence in the offer of mistake to avoid user
The caused networking of smart machine 30 failure, needs to carry out configuration process again when breath.It reduces user and completes smart machine initialization
The time of configuration promotes allocative efficiency.
It is the module map of the configuration device for the smart machine that fourth embodiment of the invention provides refering to Fig. 6.The present embodiment
Configuration device it is similar to configuration device shown in fig. 5, the difference is that further include: cue module 16, if for connect
The network failure also sends notification information to the mobile electronic terminal, prompts user to provide correct configuration information, lays equal stress on
The mobile electronic terminal is newly waited to send configuration information.
According to the device of the present embodiment, user can be prompted to provide just in time when configuration information mistake leads to networking failure
True configuration information, without waiting for judging be whether configuration information is correct, use can be promoted after restarting further according to working condition
Family usage experience.
It is the module map of the configuration device for the smart machine that fourth embodiment of the invention provides refering to Fig. 7.The present embodiment
Configuration device it is similar to configuration device shown in fig. 5, the difference is that further include: binding module 17, for when connection
After the network success, the smart machine also sends the unique identification of the usersaccount information and the smart machine
To background server, in the binding established in the background server between the usersaccount information and the smart machine
Relationship.
User account number and intelligence can also be established in addition to the initialization of progress networked information according to the device of the present embodiment
Binding relationship between equipment facilitates user to check the device data for being synchronized to cloud in mobile electronic terminal.
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, though
So the present invention is disclosed as above with preferred embodiment, and however, it is not intended to limit the invention, anyone skilled in the art, not
It is detached within the scope of technical solution of the present invention, when the technology contents using the disclosure above are modified or are modified to equivalent change
The equivalent embodiment of change, but without departing from the technical solutions of the present invention, implement according to the technical essence of the invention to above
Any brief introduction modification, equivalent variations and modification made by example, all of which are still within the scope of the technical scheme of the invention.