CN104812092B - A kind of networking methods and device of smart machine - Google Patents

A kind of networking methods and device of smart machine Download PDF

Info

Publication number
CN104812092B
CN104812092B CN201510128912.1A CN201510128912A CN104812092B CN 104812092 B CN104812092 B CN 104812092B CN 201510128912 A CN201510128912 A CN 201510128912A CN 104812092 B CN104812092 B CN 104812092B
Authority
CN
China
Prior art keywords
router
smart machine
sent
connection
mobile 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
Application number
CN201510128912.1A
Other languages
Chinese (zh)
Other versions
CN104812092A (en
Inventor
任桥
张彦路
侯恩星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510128912.1A priority Critical patent/CN104812092B/en
Publication of CN104812092A publication Critical patent/CN104812092A/en
Application granted granted Critical
Publication of CN104812092B publication Critical patent/CN104812092B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure is directed to a kind of networking methods of smart machine and device, this method includes:When receiving the instruction of connection network, the request of connection router is sent to mobile terminal;Receive the target password information of the mark and the connection destination router of the destination router that the mobile terminal is sent;The connection request for carrying the target password information is sent to the destination router according to the mark of the destination router;When being not attached to the destination router within a predetermined period of time, the operation of restarting is executed.Therefore, the scheme of the disclosure can automatically restart when smart machine cannot connect to router, to reduce the operating quantity of user.

Description

A kind of networking methods and device of smart machine
Technical field
The present invention relates to fields of communication technology, more specifically, being related to the networking methods and device of smart machine.
Background technology
Currently, usually there is smart machine network module, smart machine can be connected to router by the network module, Smart machine can be connected to network by the router in this way.
Under normal conditions, there is smart machine setting button, user can be inputted to smart machine by the setting button The username and password of router, so that the smart machine is connected to by the username and password on the router.
But user, to after the username and password of smart machine input router, smart machine is in connection router During may fail smoothly to be connected on the router due to various reasons.In this case, even if intelligence is set Standby to cannot connect on router, smart machine unconfined can also connect, and user is not aware that smart machine Through cannot connect on router, so the time of user can be wasted.
Moreover, when user has found that smart machine cannot connect to router, user also needs to close the intelligence The power supply of energy equipment, and the smart machine is waited for completely close;After the smart machine completely closes, user also needs to beat again Open the power supply of the smart machine.So every time when smart machine cannot connect to router, user is required for weight manually Smart machine is opened, to increase the operating quantity of user.
Invention content
To overcome the problems in correlation technique, the disclosure provides a kind of networking methods and device of smart machine, with Smart machine is set to restart automatically when cannot connect to router.
According to the first aspect of the embodiments of the present disclosure, a kind of networking methods of smart machine are provided, including:
When receiving the instruction of connection network, the request of connection router is sent to mobile terminal;
Receive the target password of the mark and the connection destination router of the destination router that the mobile terminal is sent Information;
The company for carrying the target password information is sent to the destination router according to the mark of the destination router Connect request;
When being not attached to the destination router within a predetermined period of time, the operation of restarting is executed.
Optionally, after the operation for executing restarting, the method further includes:
When receiving the instruction for the reconnect destination router that the mobile terminal is sent, according to the target The mark of router sends the connection request for carrying the target password information to the destination router.
Optionally, after the operation for executing restarting, the method further includes:
In the specified close of the mark and the connection Designated Router for receiving the Designated Router that the mobile terminal is sent When code information, the company for carrying the designated pin information is sent to the Designated Router according to the mark of the Designated Router Connect request;
When being not attached to the Designated Router in the predetermined amount of time, the operation of restarting is executed;
When being connected to the Designated Router in the predetermined amount of time, it is successful to send networking to the mobile terminal Prompt message.
Optionally, after the operation for executing restarting, the method further includes:
The prompt message of networking failure is sent to the mobile terminal, so that the mobile terminal shows the prompt letter Breath.
Optionally, after the operation for executing restarting, the method further includes:
The hint instructions that networking failure is sent to the wearable device connected in advance, so that the wearable device is according to institute It states hint instructions and is shaken or exported alarm sound.
Optionally, after the operation for executing restarting, the method further includes:
Show the prompt message of networking failure.
According to the second aspect of the embodiment of the present disclosure, a kind of networked devices of smart machine are provided, including:
First sending module, for when receiving the instruction of connection network, connection router to be sent to mobile terminal Request;
First receiving module, the mark for receiving the destination router that the mobile terminal is sent and the connection target The target password information of router;
Second sending module, for being sent described in carrying to the destination router according to the mark of the destination router The connection request of target password information;
First restarts module, when for being not attached to the destination router within a predetermined period of time, executes restarting Operation.
Optionally, described device further includes:
Third sending module, in the finger for receiving the reconnect destination router that the mobile terminal is sent When enabling, the connection for sending the carrying target password information to the destination router according to the mark of the destination router is asked It asks.
Optionally, described device further includes:
5th sending module, in the mark and the connection finger for receiving the Designated Router that the mobile terminal is sent When determining the designated pin information of router, sent described in carrying to the Designated Router according to the mark of the Designated Router The connection request of designated pin information;
Second restarts module, when for being not attached to the Designated Router in the predetermined amount of time, executes again The operation of startup;
6th sending module, when for being connected to the Designated Router in the predetermined amount of time, to the movement Terminal sends the successful prompt message that networks.
Optionally, described device further includes:
7th sending module, the prompt message for sending networking failure to the mobile terminal, so that the movement is eventually End shows the prompt message.
Optionally, described device further includes:
8th sending module, the hint instructions for sending networking failure to the wearable device connected in advance, so that institute It states wearable device and alarm sound is shaken or exported according to the hint instructions.
Optionally, described device further includes:
Display module, the prompt message for showing networking failure.
According to the third aspect of the embodiment of the present disclosure, a kind of networked devices of smart machine are provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When receiving the instruction of connection network, the request of connection router is sent to mobile terminal;
Receive the target password of the mark and the connection destination router of the destination router that the mobile terminal is sent Information;
The company for carrying the target password information is sent to the destination router according to the mark of the destination router Connect request;
When being not attached to the destination router within a predetermined period of time, the operation of restarting is executed.
The technical scheme provided by this disclosed embodiment can include the following benefits:The scheme that the disclosure provides can be with So that smart machine is sent to destination router using the mark of the destination router of mobile terminal transmission and carries target password information Connection request, when being not attached to destination router within a predetermined period of time, illustrate smart machine there may be certain problem, Need by restart so that smart machine again be in original state, with eliminate there may be the problem of.Therefore, the disclosure Scheme can automatically restart when smart machine cannot connect to router, to reduce the operating quantity of user.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of the networking methods of smart machine shown according to an exemplary embodiment.
Fig. 2 is the flow chart of the networking methods of another smart machine shown according to an exemplary embodiment.
Fig. 3 is the flow chart according to the networking methods of another smart machine shown in an exemplary embodiment.
Fig. 4 is the flow chart according to the networking methods of another smart machine shown in an exemplary embodiment.
Fig. 5 is the flow chart according to the networking methods of another smart machine shown in an exemplary embodiment.
Fig. 6 is the flow chart according to the networking methods of another smart machine shown in an exemplary embodiment.
Fig. 7 is a kind of schematic diagram of the networked devices of smart machine shown according to an exemplary embodiment.
Fig. 8 is the schematic diagram of the networked devices of another smart machine shown according to an exemplary embodiment.
Fig. 9 is the schematic diagram according to the networked devices of another smart machine shown in an exemplary embodiment.
Figure 10 is the schematic diagram according to the networked devices of another smart machine shown in an exemplary embodiment.
Figure 11 is the schematic diagram according to the networked devices of another smart machine shown in an exemplary embodiment.
Figure 12 is the schematic diagram according to the networked devices of another smart machine shown in an exemplary embodiment.
Figure 13 is a kind of block diagram of the networked devices of smart machine shown according to an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of the networking methods of smart machine shown according to an exemplary embodiment, such as Fig. 1 institutes Show, the networking methods of smart machine shown in FIG. 1 can be used in smart machine.The networking for the smart machine that the disclosure provides Method can be such that smart machine restarts automatically when cannot connect to router.This approach includes the following steps.
In step s 11, when receiving the instruction of connection network, the request of connection router is sent to mobile terminal.
Wherein, the method that the disclosure provides can be applied in smart machine, and smart machine can be that intelligent socket etc. is set It is standby.Mobile terminal can be the terminals such as smart mobile phone or tablet computer.
When smart machine starts, there are the instructions that two ways receives connection network for smart machine.First way For after smart machine startup, smart machine can receive the instruction of connection network input by user;The second way is, After smart machine startup, smart machine can receive the connection network that the program being stored in advance in smart machine is sent Instruction.
No matter use which kind of above-mentioned mode that smart machine is made to receive the instruction of connection network, smart machine is receiving The request of the connection router comprising identity can be all sent when the instruction of the connection network to mobile terminal, and then passes through company It is connected on router to network.Wherein, including the request of the connection router of identity can be by broadcasting packet to outgoing It send.
It is mobile whole when mobile terminal receives the request of the connection router comprising identity of smart machine transmission End can show the mark of the router that can be connected in a certain range, and going out will connect for selection by the user with smart machine Router.After showing the mark of each attachable router on the display screen of mobile terminal, user can select Select the mark for the router that one to be connected.It is mobile when receiving the mark of the destination router of user's selection in mobile terminal Terminal also needs to receive the target password information of linking objective router input by user.Then, mobile terminal will will receive To destination router mark and target password information be sent to smart machine.
For example, it is assumed that smart machine is intelligent socket, the identity of intelligent socket is ID001, and mobile terminal is intelligence Mobile phone.After intelligent socket startup, the wireless network module of intelligent socket can be periodically sent out comprising identity The broadcasting packet of ID001.When smart mobile phone receives the broadcasting packet comprising identity ID001 of intelligent socket transmission, Smart mobile phone just knows that the intelligent socket is currently at the state for waiting for connection router, and smart mobile phone will be searched current predetermined The router that may be coupled in range, smart mobile phone can show the mark of each router that can be connected on the display screen Know, allows the user to the mark for selecting a suitable router in the mark of these routers.It is received in smart mobile phone To destination router input by user mark and target password information when, target input by user will be route by smart mobile phone The mark and target password information of device are sent to intelligent socket.
In step s 12, the target of the mark and linking objective router of the destination router that mobile terminal is sent is received Encrypted message.
Wherein, after the mark of destination router and target password information are sent to smart machine by mobile terminal, intelligence Energy equipment will receive the mark of the destination router of mobile terminal transmission and the target password letter of linking objective router Breath.
For example, it is assumed that smart machine is intelligent socket, mobile terminal is smart mobile phone.User's choosing is received in smart mobile phone After the target password information 123456 of the mark LYQ1 for the destination router selected and the connection destination router input by user, Smart mobile phone will automatically send the mark LYQ1 and target password information 123456 of destination router to intelligent socket.This When, intelligent socket can receive the target of the mark LYQ1 and linking objective router of the destination router of smart mobile phone transmission Encrypted message 123456, such intelligent socket can utilize the mark LYQ1 and target password information 123456 of destination router It is connected on destination router.
In step s 13, the company for carrying target password information is sent to destination router according to the mark of destination router Connect request.
Wherein, after smart machine receives mark and the target password information of destination router, smart machine The connection request for carrying target password information is sent to destination router according to the mark of destination router.In destination router After the connection request for receiving the carrying target password information, it is close to verify the target that smart machine is sent for router in target Whether code information is correct, if it is correct that destination router, which verifies the target password information, destination router will be with Smart machine establishes connection, and smart machine also can be connected to external network by destination router;If destination router It is wrong to verify the target password information, is connected then destination router just will not be established with smart machine, smart machine External network just can not be connected to by destination router.In addition, the connection request for carrying designated pin information can be by wide The form for reporting text is sent.
In step S14, when being not attached to destination router within a predetermined period of time, the operation of restarting is executed.
Wherein, in the case where the target password information that destination router verifies smart machine transmission is mistake, target Router will not be established with smart machine and be connected, nor the prompt message of any connection failure can be sent to smart machine, So user be not aware that smart machine whether with destination router successful connection, and smart machine can continue waiting under It goes.
In this case, close to destination router transmission carrying target according to the mark of destination router in smart machine When the connection request of code information, smart machine will start timing, to determine the Connection Time of smart machine and destination router. If smart machine is judged still to be not attached on destination router within a predetermined period of time, smart machine will think this Secondary linking objective router failure, executes the operation of restarting, to make smart machine be returned to again just by restarting Beginning state, with eliminate there may be the problem of.
Certainly, predetermined amount of time can be pre-set according to actual conditions, i.e., connects router according to smart machine The normal use time determines.For example, when smart machine is intelligent socket, it is assumed that intelligent socket link road under normal circumstances It it is 75 seconds by the device required time, then can predetermined amount of time be set as 75 seconds in advance.So predetermined amount of time is The time used in router is connected under normal circumstances according to smart machine to determine.
In the embodiment shown in fig. 1, the scheme that the disclosure provides can be such that smart machine is sent using mobile terminal The mark of destination router sends the connection request for carrying target password information to destination router, does not connect within a predetermined period of time When being connected to destination router, illustrate smart machine there may be certain problem, needs by restarting so that smart machine Again be in original state, with eliminate there may be the problem of.Therefore, the scheme of the disclosure can not be connected in smart machine It can restart automatically to when router, to reduce the operating quantity of user.
Fig. 2 is the flow chart of the networking methods of another smart machine shown according to an exemplary embodiment, such as Fig. 2 institutes Show, the networking methods of smart machine shown in Fig. 2 can be used in smart machine.Fig. 2 is that one based on Fig. 1 is optional real Example is applied, in the embodiment shown in Figure 2, part identical with embodiment shown in FIG. 1 may refer in embodiment shown in FIG. 1 It introduces and explains.Method shown in Fig. 2 includes the following steps.
In the step s 21, when receiving the instruction of connection network, the request of connection router is sent to mobile terminal.
In step S22, the target of the mark and linking objective router of the destination router that mobile terminal is sent is received Encrypted message.
In step S23, the company for carrying target password information is sent to destination router according to the mark of destination router Connect request.
In step s 24, when being not attached to destination router within a predetermined period of time, the operation of restarting is executed.
In step s 25, in the instruction of reconnect destination router for receiving mobile terminal transmission, according to target The mark of router sends the connection request for carrying target password information to destination router.
Wherein, after smart machine restarting, illustrate that smart machine is not connected on destination router, this When, mobile terminal allows user to input reconnection instruction, so that smart machine can be instructed according to the reconnection reconnects target road By device.When mobile terminal receives reconnection instruction input by user, mobile terminal will send this to smart machine and connect again Connect the instruction of destination router.
When smart machine receives the instruction of reconnect destination router of mobile terminal transmission, smart machine can root The connection request for carrying target password information is sent to destination router again according to the mark of destination router, with the company of again attempting to It is connected in destination router, and starts timing, wherein broadcasting packet can be passed through by carrying the connection request of designated pin information Form is sent.In before the step of, the mark of the destination router of mobile device transmission has been received in smart machine With target password information, so the mark of destination router and target that smart machine can be received directly using the last time are close Code information, also just has sent without mobile terminal again.
In step S26, when being connected to destination router within a predetermined period of time, it is successful to send networking to mobile terminal Prompt message.
Wherein, it is sent again to destination router according to the mark of destination router in smart machine and carries target password letter After the connection request of breath, once smart machine is connected on destination router within a predetermined period of time by timing discovery, that Smart machine just needs to send the successful prompt message that networks to mobile terminal, allows the user to through the aobvious of mobile terminal Display screen curtain recognizes the situation.
In the embodiment shown in Figure 2, the scheme of the disclosure not only can be when smart machine cannot connect to router It can restart automatically;Moreover, after smart machine restarting, smart machine can also be sent again according to mobile terminal The instruction of linking objective router reconnects destination router, to ensure that smart machine smoothly networks.
Fig. 3 is according to the flow chart of the networking methods of another smart machine shown in an exemplary embodiment, such as Fig. 3 institutes Show, the networking methods of smart machine shown in Fig. 3 can be used in smart machine.In the embodiment shown in fig. 3, with Fig. 1 institutes The identical part of embodiment shown may refer to introduce and explain in embodiment shown in FIG. 1.Method shown in Fig. 3 includes following Step.
In step S31, when receiving the instruction of connection network, the request of connection router is sent to mobile terminal.
In step s 32, the target of the mark and linking objective router of the destination router that mobile terminal is sent is received Encrypted message.
In step S33, the company for carrying target password information is sent to destination router according to the mark of destination router Connect request.
In step S34, when being not attached to destination router within a predetermined period of time, the operation of restarting is executed.
In step s 35, in the mark for receiving the Designated Router that mobile terminal is sent and the finger for connecting Designated Router When determining encrypted message, the connection request for carrying designated pin information is sent to Designated Router according to the mark of Designated Router.
Wherein, smart machine execute restarting operation after, if mobile terminal receive it is input by user more The instruction of the router of smart machine is changed, and mobile terminal has received the mark and use of the Designated Router of user's selection again The designated pin information of the connection Designated Router of family input, then mobile terminal will be by the mark of Designated Router and specified Encrypted message is sent to smart machine.
The mark of the Designated Router of mobile terminal transmission and specifying for connection Designated Router are received in smart machine When encrypted message, smart machine can send the company for carrying designated pin information according to the mark of Designated Router to Designated Router Request is connect, to attempt to connect on Designated Router.Wherein, carrying the connection request of designated pin information can be reported by broadcasting The form of text is sent.
In step S36, when being not attached to Designated Router within a predetermined period of time, the operation of restarting is executed.
Wherein, it is sent to Designated Router according to the mark of Designated Router in smart machine and carries designated pin information After connection request, smart machine can start timing, with the time of record connection Designated Router.If smart machine is predetermined Designated Router is not attached in period, then explanation may there is a situation where certain smart machine to be caused to cannot connect to On Designated Router.In this case, smart machine needs to execute the operation of restarting, and such operation can pass through weight It is new start with eliminate smart machine there may be the problem of.
In step S37, when being connected to Designated Router within a predetermined period of time, it is successful to send networking to mobile terminal Prompt message.
If smart machine is connected on Designated Router within a predetermined period of time by timing discovery, smart machine Just it needs to send the successful prompt message that networks to mobile terminal, to notify user to recognize the situation.It is received in mobile terminal When the successful prompt message of networking sent to smart machine, illustrate that smart machine is successfully connected to Designated Router On, so mobile terminal will be by showing that screen shows the successful prompt message of networking, to inform user.
In the embodiment shown in fig. 3, the scheme of the disclosure not only can be when smart machine cannot connect to router It can restart automatically;Moreover, after smart machine restarting, smart machine can also send specified according to mobile terminal The mark of router and connect the designated pin information of Designated Router to connect Designated Router, to replace a router, To ensure that smart machine can smoothly network.
Fig. 4 is according to the flow chart of the networking methods of another smart machine shown in an exemplary embodiment, such as Fig. 4 institutes Show, the networking methods of smart machine shown in Fig. 4 can be used in smart machine.In the embodiment shown in fig. 4, with Fig. 1 institutes The identical part of embodiment shown may refer to introduce and explain in embodiment shown in FIG. 1.Method shown in Fig. 4 includes following Step.
In step S41, when receiving the instruction of connection network, the request of connection router is sent to mobile terminal.
In step S42, the target of the mark and linking objective router of the destination router that mobile terminal is sent is received Encrypted message.
In step S43, the company for carrying target password information is sent to destination router according to the mark of destination router Connect request.
In step S44, when being not attached to destination router within a predetermined period of time, the operation of restarting is executed.
In step S45, the prompt message of networking failure is sent to mobile terminal, so that mobile terminal shows prompt letter Breath.
Wherein, after smart machine is restarted, user possibly can not recognize that smart machine at this time is not connected to On destination router, so this has networked and fails in order to facilitate user to recognize smart machine, held in smart machine After the operation of row restarting, smart machine can send the prompt message of networking failure to mobile terminal.It is connect in mobile terminal After the prompt message of networking failure for receiving smart machine transmission, mobile terminal will be by the prompt message of networking failure It shows, in order to user it can be seen that this information, fails to recognize that smart machine has networked.
In the embodiment shown in fig. 4, the scheme of the disclosure not only can be when smart machine cannot connect to router It can restart automatically;Moreover, after smart machine restarting, smart machine can also send networking failure to mobile terminal Prompt message, so as to notify user network failure the case where.
Fig. 5 is according to the flow chart of the networking methods of another smart machine shown in an exemplary embodiment, such as Fig. 5 institutes Show, the networking methods of smart machine shown in fig. 5 can be used in smart machine.In the embodiment shown in fig. 5, with Fig. 1 institutes The identical part of embodiment shown may refer to introduce and explain in embodiment shown in FIG. 1.Method shown in fig. 5 includes following Step.
In step s 51, when receiving the instruction of connection network, the request of connection router is sent to mobile terminal.
In step S52, the target of the mark and linking objective router of the destination router that mobile terminal is sent is received Encrypted message.
In step S53, the company for carrying target password information is sent to destination router according to the mark of destination router Connect request.
In step S54, when being not attached to destination router within a predetermined period of time, the operation of restarting is executed.
In step S55, the hint instructions of networking failure are sent to the wearable device connected in advance, so that wearable set It is standby that alarm sound is shaken or exported according to hint instructions.
Wherein, after smart machine is restarted, user possibly can not recognize that smart machine at this time is not connected to On destination router, so this has networked and fails in order to facilitate user to recognize smart machine, held in smart machine After the operation of row restarting, smart machine can send the hint instructions of networking failure to wearable device.
After wearable device receives the hint instructions of networking failure of smart machine transmission, wearable device is just Vibrations can be sent out using the vibrator in wearable device according to the hint instructions, to prompt the networking failure of user's smart machine. Certainly, after wearable device receives the hint instructions of networking failure of smart machine transmission, wearable device also may be used To send out alarm sound using the alarm in wearable device according to the hint instructions, to prompt user's smart machine to network Failure.
In addition, wearable device can be the equipment that Intelligent bracelet etc. can be arranged with user.
In the embodiment shown in fig. 5, the scheme of the disclosure not only can be when smart machine cannot connect to router It can restart automatically;Moreover, after smart machine restarting, smart machine can also send networking failure to wearable device Hint instructions, notify user's smart machine to network so as to the vibrations that are sent out by wearable device or alarm sound The case where failure.
Fig. 6 is according to the flow chart of the networking methods of another smart machine shown in an exemplary embodiment, such as Fig. 6 institutes Show, the networking methods of smart machine shown in fig. 6 can be used in smart machine.In the embodiment shown in fig. 6, with Fig. 1 institutes The identical part of embodiment shown may refer to introduce and explain in embodiment shown in FIG. 1.Method shown in fig. 6 includes following Step.
In step S61, when receiving the instruction of connection network, the request of connection router is sent to mobile terminal.
In step S62, the target of the mark and linking objective router of the destination router that mobile terminal is sent is received Encrypted message.
In step S63, the company for carrying target password information is sent to destination router according to the mark of destination router Connect request.
In step S64, when being not attached to destination router within a predetermined period of time, the operation of restarting is executed.
In step S65, the prompt message of networking failure is shown.
Wherein, after smart machine is restarted, user possibly can not recognize that smart machine at this time is not connected to On destination router, so this has networked and fails in order to facilitate user to recognize smart machine, held in smart machine After the operation of row restarting, smart machine can show the prompt letter of networking failure on the display screen of smart machine Breath, in order to user it can be seen that this information, fails to recognize that smart machine has networked.
In the embodiment shown in fig. 6, the scheme of the disclosure not only can be when smart machine cannot connect to router It can restart automatically;Moreover, after smart machine restarting, smart machine can also show the prompt letter of networking failure Breath, so as to notify user network failure the case where.
Fig. 7 is a kind of schematic diagram of the networked devices of smart machine shown according to an exemplary embodiment.The disclosure carries The networked devices of the smart machine of confession can be such that smart machine restarts automatically when cannot connect to router.With reference to Fig. 7, the dress It sets and restarts module 14 including the first sending module 11, the first receiving module 12, the second sending module 13 and first.Wherein:
First sending module 11, for when receiving the instruction of connection network, connection router to be sent to mobile terminal Request.
First receiving module 12, the mark and linking objective router of the destination router for receiving mobile terminal transmission Target password information.
Second sending module 13 carries target password letter for being sent to destination router according to the mark of destination router The connection request of breath.
First restarts module 14, when for being not attached to destination router within a predetermined period of time, executes restarting Operation.
Fig. 8 is the schematic diagram of the networked devices of another smart machine shown according to an exemplary embodiment.The disclosure The networked devices of the smart machine of offer can be such that smart machine restarts automatically when cannot connect to router.It, should with reference to Fig. 8 Device restarts module 24 including the first sending module 21, the first receiving module 22, the second sending module 23, first, third is sent Module 25 and the 4th sending module 26.Wherein:
First sending module 21, for when receiving the instruction of connection network, connection router to be sent to mobile terminal Request.
First receiving module 22, the mark and linking objective router of the destination router for receiving mobile terminal transmission Target password information.
Second sending module 23 carries target password letter for being sent to destination router according to the mark of destination router The connection request of breath.
First restarts module 24, when for being not attached to destination router within a predetermined period of time, executes restarting Operation.
Third sending module 25, for receive mobile terminal transmission reconnect destination router instruction when, The connection request for carrying target password information is sent to destination router according to the mark of destination router.
4th sending module 26 when for being connected to destination router within a predetermined period of time, sending to mobile terminal and connecting Net successful prompt message.
Fig. 9 is the schematic diagram according to the networked devices of another smart machine shown in an exemplary embodiment.The disclosure The networked devices of the smart machine of offer can be such that smart machine restarts automatically when cannot connect to router, and notify to use Family.With reference to Fig. 9, which restarts mould including the first sending module 31, the first receiving module 32, the second sending module 33, first Block 34, the 5th sending module 35, second restart module 36 and the 6th sending module 37.Wherein:
First sending module 31, for when receiving the instruction of connection network, connection router to be sent to mobile terminal Request.
First receiving module 32, the mark and linking objective router of the destination router for receiving mobile terminal transmission Target password information.
Second sending module 33 carries target password letter for being sent to destination router according to the mark of destination router The connection request of breath.
First restarts module 34, when for being not attached to destination router within a predetermined period of time, executes restarting Operation.
5th sending module 35, for receive mobile terminal send Designated Router mark and connection specified circuit by When the designated pin information of device, the connection for carrying designated pin information is sent to Designated Router according to the mark of Designated Router Request.
Second restarts module 36, when for being not attached to Designated Router within a predetermined period of time, executes restarting Operation.
6th sending module 37 when for being connected to Designated Router within a predetermined period of time, sending to mobile terminal and connecting Net successful prompt message.
Figure 10 is the schematic diagram according to the networked devices of another smart machine shown in an exemplary embodiment.The disclosure The networked devices of the smart machine of offer can be such that smart machine restarts automatically when cannot connect to router, and notify to use Family.Referring to Fig.1 0, which includes the first sending module 41, the first receiving module 42, the second sending module 43, first restarts mould Block 44 and the 7th sending module 45.Wherein:
First sending module 41, for when receiving the instruction of connection network, connection router to be sent to mobile terminal Request.
First receiving module 42, the mark and linking objective router of the destination router for receiving mobile terminal transmission Target password information.
Second sending module 43 carries target password letter for being sent to destination router according to the mark of destination router The connection request of breath.
First restarts module 44, when for being not attached to destination router within a predetermined period of time, executes restarting Operation.
7th sending module 45, the prompt message for sending networking failure to the mobile terminal, so that the movement Terminal shows the prompt message.
Figure 11 is the schematic diagram according to the networked devices of another smart machine shown in an exemplary embodiment.The disclosure The networked devices of the smart machine of offer can be such that smart machine restarts automatically when cannot connect to router, and notify to use Family.Referring to Fig.1 1, which includes the first sending module 51, the first receiving module 52, the second sending module 53, first restarts mould Block 54 and the 7th sending module 55.Wherein:
First sending module 51, for when receiving the instruction of connection network, connection router to be sent to mobile terminal Request.
First receiving module 52, the mark and linking objective router of the destination router for receiving mobile terminal transmission Target password information.
Second sending module 53 carries target password letter for being sent to destination router according to the mark of destination router The connection request of breath.
First restarts module 54, when for being not attached to destination router within a predetermined period of time, executes restarting Operation.
8th sending module 55, the hint instructions for sending networking failure to the wearable device connected in advance, so that The wearable device is shaken according to the hint instructions or is exported alarm sound.
Figure 12 is the schematic diagram according to the networked devices of another smart machine shown in an exemplary embodiment.The disclosure The networked devices of the smart machine of offer can be such that smart machine restarts automatically when cannot connect to router, and notify to use Family.Referring to Fig.1 2, which includes the first sending module 61, the first receiving module 62, the second sending module 63, first restarts mould Block 64 and the 7th sending module 65.Wherein:
First sending module 61, for when receiving the instruction of connection network, connection router to be sent to mobile terminal Request.
First receiving module 62, the mark and linking objective router of the destination router for receiving mobile terminal transmission Target password information.
Second sending module 63 carries target password letter for being sent to destination router according to the mark of destination router The connection request of breath.
First restarts module 64, when for being not attached to destination router within a predetermined period of time, executes restarting Operation.
Display module 65, the prompt message for showing networking failure.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
In one exemplary embodiment, a kind of networked devices of smart machine are additionally provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When receiving the instruction of connection network, the request of connection router is sent to mobile terminal;
Receive the target password of the mark and the connection destination router of the destination router that the mobile terminal is sent Information;
The company for carrying the target password information is sent to the destination router according to the mark of the destination router Connect request;
When being not attached to the destination router within a predetermined period of time, the operation of restarting is executed.
Figure 13 is a kind of block diagram of the networked devices 800 of smart machine shown according to an exemplary embodiment.For example, dress It can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment to set 800 Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig.1 3, device 800 may include following one or more components:Processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and Communication component 816.
The integrated operation of 802 usual control device 800 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown Example includes instruction for any application program or method that are operated on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system System, one or more power supplys and other generated with for device 800, management and the associated component of distribution electric power.
Multimedia component 808 is included in the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 808 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detect the state that opens/closes of device 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes so that mobile terminal is able to carry out a kind of networking methods of smart machine, the method includes:Receiving connection When the instruction of network, the request of connection router is sent to mobile terminal;Receive the destination router that the mobile terminal is sent Mark and the connection destination router target password information;According to the mark of the destination router to the target road The connection request for carrying the target password information is sent by device;It is not attached to the destination router within a predetermined period of time When, execute the operation of restarting.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (3)

1. a kind of networking methods of smart machine, which is characterized in that including:
When receiving the instruction of connection network, the request of connection router is sent to mobile terminal;
Receive the target password information of the mark and the connection destination router of the destination router that the mobile terminal is sent;
The connection that the carrying target password information is sent to the destination router according to the mark of the destination router is asked It asks;
When being not attached to the destination router within a predetermined period of time, the operation of restarting is executed;
After the operation for executing restarting, the method further includes:
In the designated pin letter of the mark and the connection Designated Router that receive the Designated Router that the mobile terminal is sent When breath, the connection for sending the carrying designated pin information to the Designated Router according to the mark of the Designated Router is asked It asks;
When being not attached to the Designated Router in the predetermined amount of time, the operation of restarting is executed;
When being connected to the Designated Router in the predetermined amount of time, networking successfully prompt is sent to the mobile terminal Information.
2. a kind of networked devices of smart machine, which is characterized in that including:
First sending module, for when receiving the instruction of connection network, the request of connection router to be sent to mobile terminal;
First receiving module, mark and connection the target routing for receiving the destination router that the mobile terminal is sent The target password information of device;
Second sending module carries the target for being sent to the destination router according to the mark of the destination router The connection request of encrypted message;
First restarts module, when for being not attached to the destination router within a predetermined period of time, executes the behaviour of restarting Make;
Described device further includes:
5th sending module, in the mark and the connection specified circuit for receiving the Designated Router that the mobile terminal is sent By device designated pin information when, sent to the Designated Router according to the mark of the Designated Router carry it is described specified The connection request of encrypted message;
Second restarts module, when for being not attached to the Designated Router in the predetermined amount of time, executes restarting Operation;
6th sending module, when for being connected to the Designated Router in the predetermined amount of time, to the mobile terminal Send the successful prompt message that networks.
3. a kind of networked devices of smart machine, which is characterized in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When receiving the instruction of connection network, the request of connection router is sent to mobile terminal;
Receive the target password information of the mark and the connection destination router of the destination router that the mobile terminal is sent;
The connection that the carrying target password information is sent to the destination router according to the mark of the destination router is asked It asks;
When being not attached to the destination router within a predetermined period of time, the operation of restarting is executed;
After the operation for executing restarting, further include:
In the designated pin letter of the mark and the connection Designated Router that receive the Designated Router that the mobile terminal is sent When breath, the connection for sending the carrying designated pin information to the Designated Router according to the mark of the Designated Router is asked It asks;
When being not attached to the Designated Router in the predetermined amount of time, the operation of restarting is executed;
When being connected to the Designated Router in the predetermined amount of time, networking successfully prompt is sent to the mobile terminal Information.
CN201510128912.1A 2015-03-23 2015-03-23 A kind of networking methods and device of smart machine Active CN104812092B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510128912.1A CN104812092B (en) 2015-03-23 2015-03-23 A kind of networking methods and device of smart machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510128912.1A CN104812092B (en) 2015-03-23 2015-03-23 A kind of networking methods and device of smart machine

Publications (2)

Publication Number Publication Date
CN104812092A CN104812092A (en) 2015-07-29
CN104812092B true CN104812092B (en) 2018-09-04

Family

ID=53696433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510128912.1A Active CN104812092B (en) 2015-03-23 2015-03-23 A kind of networking methods and device of smart machine

Country Status (1)

Country Link
CN (1) CN104812092B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10499443B2 (en) 2015-07-31 2019-12-03 Huawei Technologies Co., Ltd. Data transmission method, related device, and system
CN105282158A (en) * 2015-10-28 2016-01-27 小米科技有限责任公司 Intelligent equipment networking method, routing equipment, intelligent equipment and system
CN105516974A (en) * 2015-11-24 2016-04-20 东莞酷派软件技术有限公司 Router connection method, terminal and router
CN105407518B (en) * 2015-11-30 2019-02-22 小米科技有限责任公司 Equipment networking method and device
CN105517103A (en) * 2015-12-03 2016-04-20 小米科技有限责任公司 Network access method and device based on intelligent terminal device
CN106961658B (en) * 2017-03-09 2019-10-29 广东美的制冷设备有限公司 Internet of things home appliance equipment off-line restoration methods and networking module
CN107181791B (en) * 2017-04-19 2021-01-01 北京小米移动软件有限公司 Networking method and device of intelligent equipment
CN107257573A (en) * 2017-05-11 2017-10-17 北京囡宝科技有限公司 A kind of equipment accesses the system and method for wireless network
JP6635978B2 (en) 2017-05-11 2020-01-29 キヤノン株式会社 Program, communication method, and communication system
CN107276815A (en) * 2017-06-30 2017-10-20 北京小米移动软件有限公司 Networking state reminding method, device and computer-readable recording medium
CN109768946B (en) * 2017-11-09 2021-01-15 宁波方太厨具有限公司 Rapid distribution network method and rapid distribution network system for kitchen electrical equipment
CN108810866B (en) * 2018-05-28 2022-08-19 北京小米移动软件有限公司 Method and device for connecting intelligent equipment and storage medium
CN108848015A (en) * 2018-08-13 2018-11-20 珠海格力电器股份有限公司 Connect method, apparatus, smart machine and the user terminal of network
CN110868707A (en) * 2019-09-29 2020-03-06 厦门阳光恩耐照明有限公司 BLE MESH-based intelligent device network distribution method
CN110971412B (en) * 2019-12-05 2022-05-10 杭州龙纪科技有限公司 Method for safe network distribution of smart home based on block chain
CN112492570B (en) * 2020-11-13 2022-01-18 珠海格力电器股份有限公司 Network distribution method, system, device, equipment and storage medium
US11916910B1 (en) * 2021-06-24 2024-02-27 Amazon Technologies, Inc. Remedying wireless-network connection failures
CN114143818B (en) * 2021-11-29 2024-03-12 四川虹美智能科技有限公司 Batch test method for intelligent equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572836A (en) * 2010-12-20 2012-07-11 联想(北京)有限公司 Method for accessing wireless network, portable mobile terminal and wireless network system
CN104159321A (en) * 2013-05-14 2014-11-19 杭州海康威视数字技术股份有限公司 Wi-Fi configuration method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974376A (en) * 2014-04-14 2014-08-06 深圳市慧为智能科技有限公司 Network connection assisting system and method
CN103974377B (en) * 2014-04-22 2018-10-02 小米科技有限责任公司 Wireless network connecting method and device
CN104159218B (en) * 2014-07-17 2016-04-06 小米科技有限责任公司 Internetwork connection establishing method and device
CN104302014A (en) * 2014-09-11 2015-01-21 小米科技有限责任公司 Method and device for connecting terminal with Wi-Fi hotspot

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572836A (en) * 2010-12-20 2012-07-11 联想(北京)有限公司 Method for accessing wireless network, portable mobile terminal and wireless network system
CN104159321A (en) * 2013-05-14 2014-11-19 杭州海康威视数字技术股份有限公司 Wi-Fi configuration method and system

Also Published As

Publication number Publication date
CN104812092A (en) 2015-07-29

Similar Documents

Publication Publication Date Title
CN104812092B (en) A kind of networking methods and device of smart machine
CN104936304B (en) Smart machine binding method, smart machine and server
CN106487584B (en) Management method, router and the mobile terminal of router
CN106488335B (en) Live-broadcast control method and device
CN105553963B (en) The control method and device of positioning service
CN110224901A (en) Intelligent device interaction, device and storage medium
CN105975156B (en) Application interface display methods and device
CN105704766B (en) The control method and device of double-card mobile terminal
CN109151010A (en) Method for connecting network, device and storage medium
CN104837154B (en) The control method and device of wireless access points
CN104898505A (en) Smart scene configuration method and device
CN109407528A (en) Safety access method, device, server and storage medium
CN106385351A (en) Control method and device of intelligent household equipment
CN105657805B (en) A kind of method and device of smart machine access wireless network
CN105549960B (en) Control the method and device of camera
CN105068632A (en) Terminal charging method and device and terminal
CN104735670A (en) Network access method and device
CN106792937A (en) The processing method and processing device of call request
CN105657690A (en) Method and device for processing mobile terminal setting information
CN105094966B (en) Control the method and device of PC
CN107396027A (en) Knock at the door information processing method and device
CN105187154B (en) The method and device of response bag reception delay
CN105530129A (en) Router reset method and device
CN105323318B (en) Amending method, device and the equipment of parameter
CN107039054B (en) The way of recording and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant