WO2017143809A1 - Control method and device for wireless networking apparatus - Google Patents

Control method and device for wireless networking apparatus Download PDF

Info

Publication number
WO2017143809A1
WO2017143809A1 PCT/CN2016/106778 CN2016106778W WO2017143809A1 WO 2017143809 A1 WO2017143809 A1 WO 2017143809A1 CN 2016106778 W CN2016106778 W CN 2016106778W WO 2017143809 A1 WO2017143809 A1 WO 2017143809A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless
networking device
wireless networking
internet
control instruction
Prior art date
Application number
PCT/CN2016/106778
Other languages
French (fr)
Chinese (zh)
Inventor
张泽
Original Assignee
北京果加智能科技有限公司
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 北京果加智能科技有限公司 filed Critical 北京果加智能科技有限公司
Publication of WO2017143809A1 publication Critical patent/WO2017143809A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of wireless networking devices, and in particular, to a method and apparatus for controlling a wireless networking device.
  • wireless networking devices using batteries are becoming more and more widely used, such as smart door locks and padlocks in hotel rooms.
  • wireless networking devices that use batteries are usually small in size and cannot be installed with large-capacity batteries. They are limited by the battery power.
  • the wireless communication process of wireless networking devices consumes a large amount of power, accounting for wireless networking.
  • the majority of the total power consumption of the device leads to poor battery life and short battery life.
  • it is necessary to frequently charge or replace the battery which causes great inconvenience for use and seriously affects the user experience.
  • the wireless networking device For the wireless networking device using the battery in the related art, the wireless networking device has a short battery life due to the large power consumption of the wireless communication process, and no effective solution has been proposed yet.
  • the embodiment of the invention provides a method and a device for controlling a wireless networked device, so as to at least solve the technical problem that the wireless networking device using the battery in the related art has a short battery consumption time due to a large power consumption in the wireless communication process. .
  • a method for controlling a wireless networking device includes: detecting whether a wireless networking device receives a trigger signal, wherein the trigger signal is used to trigger a wireless networking device to transition from a standby or a sleep state to a work a state; controlling the wireless networking device to change from a standby or a sleep state to a working state when detecting that the wireless networking device receives the trigger signal, wherein the wireless networking device is not in wireless communication with the Internet when in the standby or sleep state, is in a working state Wireless communication with the Internet; detecting whether the wireless networking device reaches a preset triggering sleep condition; and controlling the wireless networking device to change from the working state to standby or detecting that the wireless networking device reaches the preset triggering sleep condition Sleep state.
  • wirelessly communicating with the Internet when the wireless networking device is in an active state includes: establishing a communication connection between the wireless networking device and the wireless route; receiving a control instruction from the Internet through the wireless route; Whether the wireless networking device successfully receives the control command; when the wireless networking device successfully receives the control command, sends a feedback message to the Internet through the wireless route, wherein the feedback message is used to notify the wireless wireless networking device to successfully receive the control command, and the Internet is receiving Delete the control command or mark the control command after the feedback message.
  • the method further includes: receiving operation information corresponding to the user operation; determining whether the operation information meets a preset condition in the control instruction; and the operation information conforms to the preset in the control instruction In the condition, the wireless networking device is controlled to execute the preset action in the control instruction; when the operation information does not meet the preset condition in the control instruction, the preset action is not performed, and the error reminding information is output; and the operation information is / or the corresponding execution result of the user operation is sent to the Internet.
  • the receiving, by the wireless routing, the control command from the Internet includes: the wireless networking device sending a request message to the wireless route, where the request message is a message for requesting the Internet to send a control command; and receiving a control command sent by the wireless route, where The control instruction is pre-stored on the Internet or sent by the Internet and cached in the wireless route, and the wireless route sends a control command to the wireless networking device after receiving the request message; and receives a transmission completion message sent by the wireless route, wherein the sending completion message is used for The notification wireless network device control command has been sent.
  • detecting whether the wireless networking device reaches the preset triggering sleep condition comprises at least one of: detecting whether the wireless communication process of the wireless networking device and the Internet ends; and detecting whether the time for continuously receiving the operation information corresponding to the user operation exceeds the pre- Set the time; detect whether the wireless networking device has been locked; detect whether the user receives the triggering sleep signal.
  • a control apparatus for a wireless networking device including: a first detecting module configured to detect whether a wireless networking device receives a trigger signal, wherein the trigger signal is set to trigger The wireless networking device transitions from a standby or a sleep state to a working state; the first control module is configured to control the wireless networking device to transition from a standby or a sleep state to a working state when detecting that the wireless networking device receives the trigger signal, wherein The wireless networking device does not perform wireless communication with the Internet when in a standby or hibernation state, and performs wireless communication with the Internet when in a working state; the second detection module is configured to detect whether the wireless networking device reaches a preset triggering sleep condition; The second control module is configured to control the wireless networking device to transition from the working state to the standby or sleep state when detecting that the wireless networking device reaches the preset triggering sleep condition.
  • wireless communication with the Internet is implemented by the following module: an establishing module configured to establish a communication connection between the wireless networking device and the wireless route; and the first receiving module configured to be wirelessly routed Receiving a control instruction from the Internet; the first determining module is configured to determine whether the wireless networking device successfully receives the control instruction; the first sending module is configured to be in the wireless networking device When the control command is successfully received, the feedback message is sent to the Internet through the wireless route, wherein the feedback message is set to notify the Internet wireless networking device to successfully receive the control command, and the Internet deletes the control command or marks the control command after receiving the feedback message.
  • the device further includes: a second receiving module, configured to receive operation information corresponding to the user operation; and a second determining module configured to determine whether the operation information meets a preset condition in the control instruction; the third control module, Is configured to control the wireless networking device to perform a preset action in the control instruction when the operation information meets the preset condition in the control instruction; the output module is set to not when the operation information does not meet the preset condition in the control instruction, Executing a preset action and outputting an error reminder message; and the second sending module is configured to send the operation result corresponding to the operation information and/or the user operation to the Internet through wireless routing.
  • a second receiving module configured to receive operation information corresponding to the user operation
  • a second determining module configured to determine whether the operation information meets a preset condition in the control instruction
  • the third control module Is configured to control the wireless networking device to perform a preset action in the control instruction when the operation information meets the preset condition in the control instruction
  • the output module is set to not when the operation information does not meet
  • the first receiving module includes: a first sub-transmission module, configured to send a request message to the wireless router by the wireless networking device, where the request message is a message that is set to request an Internet delivery control instruction; the first sub-receiving module And being configured to receive a control command sent by the wireless route, wherein the control instruction is pre-stored on the Internet or sent by the Internet and cached in the wireless route, and the wireless route sends the control command to the wireless networking device after receiving the request message; and the second The sub-receiving module is configured to receive a transmission completion message sent by the wireless router, wherein the transmission completion message is set to notify the wireless networking device that the control instruction has been sent.
  • the first detecting module includes at least one of: a first sub detecting module configured to detect whether a wireless communication process of the wireless networking device and the Internet ends; and a second sub detecting module configured to detect that the user is not continuously received Whether the time for operating the corresponding operation information exceeds a preset time; the third sub-detection module is configured to detect whether the wireless networking device has been unlocked; and the fourth sub-detection module is configured to detect whether a trigger input signal input by the user is received.
  • detecting whether the wireless networking device receives the trigger signal wherein the trigger signal is used to trigger the wireless networking device to transition from the standby or sleep state to the working state; and detecting that the wireless networking device receives the trigger signal
  • the wireless networking device is controlled to change from a standby or a sleep state to a working state, wherein the wireless networking device does not perform wireless communication with the Internet when in a standby or a sleep state, and performs wireless communication with the Internet when in a working state; and detects whether the wireless networking device reaches a preset triggering sleep condition; and controlling the wireless networking device to change from a working state to a standby or a sleep state when detecting that the wireless networking device reaches a preset triggering sleep condition, by controlling the wireless networking device to stand by or sleeping
  • the purpose of reducing the battery power consumption of the wireless networking device during the wireless communication process is achieved, thereby realizing the technical effect of prolonging the battery life of the wireless networking device and improving the user experience, thereby solving
  • FIG. 1 is a flowchart of a method of controlling a wireless networking device according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method of controlling a wireless networked smart door lock according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a control device of a wireless networking device in accordance with an embodiment of the present invention.
  • a method embodiment of a method of controlling a wireless networking device is provided, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions And, although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
  • FIG. 1 is a flowchart of a method for controlling a wireless networking device according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step S102 Detect whether the wireless networking device receives the trigger signal, where the trigger signal is used to trigger the wireless networking device to transition from the standby or sleep state to the working state.
  • the wireless networking device can wirelessly communicate with the Internet and pass the electricity.
  • the pool is powered, and the wireless networking device can be a wireless networked smart door lock, such as a password lock or a padlock.
  • the wireless networking device may have a standby or hibernation state and a working state, and the wireless networking device detects whether a trigger signal is received in a standby or working state, and the trigger signal is used to trigger the wireless networking device to change from a standby or a sleep state to a working state. signal. After detecting the trigger signal, the wireless networking device will transition from the standby or sleep state to the active state.
  • the embodiment preferably controls the wireless networking device to perform only the detection trigger signal when in the standby or sleep state, and does not perform wireless communication with the Internet, thereby greatly reducing the wireless communication.
  • the amount of battery power consumed which in turn extends the battery life of wireless networking devices.
  • Detecting whether the wireless networking device receives the trigger signal may be performed by one or more of the following methods: pressing a button on the password keyboard dedicated to triggering the wireless networking device, or pressing any button on the password keyboard to trigger the wireless networking device, or
  • the infrared human body detector detects that a wireless networking device is triggered when someone approaches, or triggers a wireless networking device when a sensor is approached by a sensor, such as a capacitive sensor disposed on the door handle, and a capacitive sensor that triggers a wireless networking device when a person holds the door handle.
  • the embodiment of the present invention does not limit how to detect whether the wireless networking device receives the trigger signal.
  • the foregoing only enumerates several typical examples, and the embodiment of the present invention may also detect whether the wireless networking device receives the network connectivity device by using other methods.
  • the trigger signal is not illustrated here for other detection methods.
  • Step S104 in the case that detecting that the wireless networking device receives the trigger signal, controlling the wireless networking device to transition from the standby or sleep state to the working state, wherein the wireless networking device is not in wireless communication with the Internet when in the standby or sleep state, Wireless communication with the Internet while in working condition.
  • the wireless networking device when it is detected that the wireless networking device receives the trigger signal, the wireless networking device will be changed from the standby or sleep state to the working state. At this time, the wireless networking device performs wireless communication with the Internet, optionally, wireless.
  • Networked devices can connect to the Internet via GPRS, 3G, 4G and other wireless networks for wireless communication, obtain data directly from the Internet, or communicate wirelessly via the wireless router or gateway to the Internet.
  • the wireless networking device can communicate with the wireless router by wifi, bluetooth, zigbee, 2.4g, 433Mhz, etc., and the wireless router or gateway connects to the Internet through wired or wireless means.
  • the process of wirelessly connecting the wireless networking device to the Internet through wireless routing may include the following steps:
  • step S1 a communication connection between the wireless networking device and the wireless route is established.
  • the communication connection between the wireless networking device and the wireless router may be a wireless communication connection, and when the wireless networking device is in a working state, a communication connection request is sent to the wireless route, and the wireless route sends an acknowledgement message to the wireless networking device after receiving the communication connection request. After the wireless networking device receives the confirmation message, the wireless networking device and the wireless device The line was successfully established by the communication connection between the lines.
  • Step S2 receiving a control instruction from the Internet through a wireless router
  • the wireless networking device receives the control command sent from the Internet through the wireless routing, and the number of the control commands may be one or more, when the Internet issues multiple When the command is controlled, it is preferable to adopt the serial transmission method or the concurrent transmission method. It should be noted that after the communication connection between the wireless networking device and the wireless router is established, there may be no control command of the Internet. In this case, the control command from the Internet is not required to be received through the wireless router, and the wireless networking device continues to follow.
  • the previous control command operation for example, after the smart door lock sets the unlock password through the Internet server, until the next time the customer opens the door with the password, the smart door lock does not receive the new control code for changing the password or deleting the password, then the customer passes the
  • the smart keyboard lock is activated by pressing the password keyboard
  • the smart door lock only establishes a communication connection with the Internet server when the smart door lock is triggered to change from standby or hibernation state to the working state by pressing the password keyboard, but the Internet server has no new control.
  • the command is sent to the smart door lock.
  • the smart door lock performs password verification according to the originally set password.
  • step S2 may include the following steps:
  • step S21 the wireless networking device sends a request message to the wireless router.
  • the request message is a message for requesting the Internet to issue a control command.
  • Step S22 receiving a control instruction sent by the wireless route.
  • the control command is pre-stored on the Internet or sent by the Internet and cached in the wireless route.
  • the wireless route After receiving the request message, the wireless route sends a control command to the wireless networking device.
  • the wireless router can send control commands to the wireless networking device one by one in a serial transmission manner until all control commands are completely transmitted.
  • the control command is pre-stored in the Internet server, and the control command may be from a client terminal having rights, for example, having rights
  • the user sets or modifies the smart door lock password through the application in the mobile terminal, and the control command for setting or modifying the password is sent by the user mobile terminal to the server via the Internet, and the server stores the control command and waits for the communication request of the smart door lock.
  • the smart door lock When the smart door lock is awakened from standby or hibernation to a working state, the smart door lock establishes a communication connection with the server, and communicates using the communication connection.
  • the server sends the stored control instruction to the smart door lock.
  • control commands there may be multiple control commands to be sent in the server, and the server may send the smart door lock according to the time sequence generated by the multiple control commands, and the smart door lock is generated according to the control command.
  • the chronological order executes these control instructions.
  • the smart door lock establishes communication with the server for communication, it is also possible that there is no control command in the server.
  • the server sends no new control command information to the smart door lock, and the smart door lock operates according to the original state. .
  • the second way of sending, the control command is cached in the wireless router or network.
  • the server sends the control command to be sent to the wireless router or gateway connected to the wireless networking device, when the wireless networking device changes from standby or sleep state In the active state, the wireless networking device communicates with the server via a wireless router or gateway, and control commands already stored in the wireless router or gateway are sent directly from the wireless router or gateway to the wireless networking device.
  • Step S23 receiving a transmission completion message sent by the wireless route.
  • the sending completion message is used to notify the wireless networking device that the control command has been sent.
  • the wireless router After transmitting all control commands to the wireless networking device, the wireless router sends a transmission completion message to the wireless networking device to notify the wireless networking device that the control command has been sent.
  • step S3 it is determined whether the wireless networking device successfully receives the control command.
  • Determining whether the wireless networking device successfully receives the control command may determine whether the wireless networking device receives the transmission completion message sent by the wireless router, and if receiving the transmission completion message, determining that the wireless networking device successfully receives the control instruction; if not received The sending completion message determines that the wireless networking device has not successfully received the control command.
  • Step S4 When the wireless networking device successfully receives the control instruction, send a feedback message to the Internet through the wireless route.
  • the feedback message is used to notify the Internet wireless networking device to successfully receive the control instruction, and the Internet deletes the control instruction or marks the control instruction after receiving the feedback message, and can mark it as the executed instruction.
  • control method of the wireless networking device of the embodiment may further include the following steps:
  • Step S5 receiving operation information corresponding to the user operation.
  • the user operation can be inputting a door opening password, inputting a fingerprint, a face or a door card.
  • the operation information corresponding to the user operation may include a password, a fingerprint information, a face information or a door card information input by the user.
  • step S6 it is judged whether the operation information meets the preset condition in the control instruction.
  • the wireless networking device After receiving the operation information corresponding to the user operation, the wireless networking device compares the operation information with a preset condition in the control instruction, wherein the control instruction may include one or more preset conditions, such as a door lock opening password, Fingerprint information, face information, door opening card information, etc. required to open the door. Determining whether the operation information and the preset condition in the control instruction are consistent may be determining whether the input opening password is the same as the preset door lock opening password, and whether the fingerprint information is the same as the preset fingerprint information required for opening the door. It should be noted that the preset conditions in the control command can be set according to actual needs.
  • Step S7 controlling the wireless networking device to perform control when the operation information meets a preset condition in the control instruction The default action in the command.
  • step S8 when the operation information does not meet the preset condition in the control instruction, the preset action is not executed, and the error reminding information is output.
  • the wireless networking device After performing the judgment whether the operation information meets the preset condition in the control instruction, if it is met, the wireless networking device performs a preset action corresponding to the preset condition, such as the door lock is opened; if not, the execution is not performed Set the condition to the corresponding preset action, such as the door lock is not open.
  • the embodiment may output an error reminding message, such as a buzzer alarm, or the display screen displays a password input error, etc., which greatly improves the user experience.
  • step S9 the operation information and/or the execution result corresponding to the user operation are sent to the Internet through wireless routing.
  • the operation information and the execution result corresponding to the operation information are sent to the Internet to inform the Internet wireless networking device of the execution result of the control instruction. For example, after the user inputs the opening password, the wireless routing device determines that the input opening password conforms to the preset opening password, the door lock is opened, and the execution result of the input opening password and the door lock is sent to the Internet.
  • the wireless communication process between the wireless networking device and the Internet adopts an interactive manner, which can facilitate the wireless networking device and the Internet to timely obtain the message transmission result or control the instruction execution result, and if the intermediate process fails, Take timely measures to remedy, and thus achieve the effect of greatly improving the user experience.
  • Step S106 Detect whether the wireless networking device reaches a preset triggering sleep condition.
  • the preset triggering sleep condition may be the end of the wireless communication process of the wireless networking device and the Internet; or no user operation is received for a continuous period of time; or the wireless networking device has been locked; or the user is received Press the signal triggered by the sleep button.
  • the foregoing description only refers to a part of the preset triggering sleep condition, and does not represent the preset triggering sleep condition in the embodiment of the present invention to include the foregoing content, and the preset triggering sleep condition in the embodiment of the present invention is further Other content may be included, and will not be exemplified herein.
  • detecting whether the wireless networking device reaches the preset triggering sleep condition may include at least one of: detecting whether the wireless communication process of the wireless networking device and the Internet ends; and detecting whether the time for continuously receiving the operation information corresponding to the user operation is detected Exceeding the preset time; detecting whether the wireless networking device has been unlocked; detecting whether a trigger input signal input by the user is received. It should be noted that the time for detecting the operation information corresponding to the user operation is not exceeded for a preset time. The preset time may be set according to actual requirements, such as 5 minutes or 10 minutes. It is detected whether a trigger input signal input by the user is received, and the trigger sleep signal may be a signal triggered by the user pressing the sleep case.
  • This embodiment detects the wireless connection between the wireless networking device and the Internet.
  • the communication process has ended; or the time when the operation information corresponding to the user operation is not continuously received exceeds the preset time; or the wireless networking device has been unlocked; or when the trigger input signal input by the user is received, the wireless networking device and the Internet can be determined.
  • the wireless communication process ends.
  • the method for controlling the wireless networking device of the embodiment may further detect whether the wireless communication process between the wireless networking device and the Internet ends.
  • the embodiment of the present invention does not detect how to detect the wireless communication process between the wireless networking device and the Internet. Whether to end the specific limit.
  • Step S108 in the case that it is detected that the wireless networking device reaches the preset triggering sleep condition, the wireless networking device is controlled to change from the working state to the standby or the sleeping state.
  • step S108 when the wireless networking device reaches the preset triggering sleep condition, the wireless networking device will immediately transition from the working state to the standby or sleeping state, and the wireless networking device stops wireless communication with the Internet, and performs the steps again.
  • S102 detects whether the wireless networking device receives the trigger signal, and performs step S104 to step S108 when receiving the trigger information, and thus loops.
  • the wireless networking device when the wireless networking device is in the standby or sleep state, it only detects whether a trigger signal is received, communicates with the wireless route after receiving the trigger signal, receives an instruction from the Internet server from the wireless route, and receives And executing the instruction from the Internet server, sending a receipt to the Internet server, waiting for the local operation of the local user, performing the local operation, sending the user operation record to the Internet server, and then going to the standby or hibernation state again.
  • the embodiment of the invention solves the technical problem that the wireless networking device using the battery in the related art has a short battery consumption time due to the large power consumption of the wireless communication process, and reduces the battery power consumption of the wireless networking device during the wireless communication process. In turn, the technical effect of extending the battery life of the wireless networking device and improving the user experience is realized.
  • control method of the wireless networking device can be applied to a wireless connection smart door lock of a hotel room, so as to reduce the battery consumption of the wireless networked smart door lock, prolong the battery use time, and improve the user experience. .
  • FIG. 2 is a flowchart of a method for controlling a wireless networked smart door lock according to an embodiment of the present invention, as shown in FIG.
  • the wireless networked smart door lock control method may include the following steps:
  • step S202 the wireless networked smart door lock is in a standby or sleep state.
  • the wireless networking smart door lock may include a triggering device for triggering the wireless networked smart door lock to transition from a standby or a sleep state to a working state. It should be noted that when the wireless networked smart door lock is in the standby or sleep state, only the trigger device works, and the internal processor and the communication device do not work.
  • the triggering device may be a PIN pad, a card reader, an infrared human body sensing device, and a capacitive sensing for sensing a human hand touch. And so on.
  • pressing a special trigger button on the password keyboard to trigger the door lock, or pressing any key on the password keyboard can trigger the door lock; or, the infrared human body sensing device detects that someone is in front of the door to trigger the door lock, and someone holds the door handle
  • the door lock is triggered by the capacitive sensor.
  • the door lock is triggered and the door card information is read.
  • Step S204 the wireless networked smart door lock receives the trigger signal.
  • Step S206 the wireless networked smart door lock is changed from the standby or sleep state to the working state.
  • Step S208 the wireless networked smart door lock sends a request message to the wireless route.
  • Step S210 the wireless networked smart door lock receives the control command from the internet server through the wireless route.
  • a request message is sent to the wireless route to apply for wireless communication, and after receiving the request message sent by the door lock, the wireless route sends a door lock standby to the door lock.
  • the control commands may include: setting a new password command, clearing the old password command, setting a new unlock door card command, clearing the old unlock door card command, and the like.
  • the control command to be sent to the door lock can be issued by the Internet server in advance and cached in the wireless route, or can be stored in the Internet server.
  • the wireless router applies to the Internet server to issue a control command, and then the control command is executed.
  • the control command is executed in the time sequence generated by the control command and the execution success receipt is sent to the wireless route.
  • the instruction is sent and executed according to the time sequence generated by the control instruction because it is possible that the latter control instruction overwrites the execution result of the previous control instruction in the actual application process.
  • the previous control instruction sets an unlock password, one end After the time, the administrator modified the unlock password, and the smart door locks were in standby or hibernation during this period.
  • both control commands are sent to the smart door lock, and the correct execution result should be the smart door lock first executing the previous command to set the unlock password. Then execute the following command to modify the unlock password, in order to get the correct unlock password, in order to meet the actual situation.
  • the server After the server receives the instruction execution success receipt, it deletes the executed control instruction or marks it as executed.
  • Step S212 the wireless networked smart door lock executes the control instruction and sends the execution result to the internet server.
  • step S214 the wireless networked smart door lock waits for local operation.
  • Step S216 the wireless networked smart door lock sends the local operation result to the internet server.
  • the local operation result may include: a password input when unlocking, an unlocked door card information used, a fingerprint information, etc., a password, a door card, a fingerprint, etc., correct or incorrect, and the information such as success or failure of unlocking.
  • Step S218, the wireless networked smart door lock is changed from the working state to the standby state or the sleep state, and the process returns to step S202.
  • the door lock waiting for the local operation may be waiting to receive the password input from the PIN pad or the card information from the card reader, and determine whether the input password or the swipe card card is correct. Unlock the password or the correct door card. If yes, perform the unlock operation; if not, do not perform the unlock operation and the door lock sends an error reminder.
  • the error reminder may be the buzzer sound or the signal light flashing.
  • the door lock will input the password or the door card information and the opening result to the wireless router. When there is no user operation for a predetermined period of time, the door lock is automatically locked and puts into standby or hibernation again.
  • the door lock can store multiple unlocking passwords and multiple unlocking door cards.
  • the setting of the unlocking password or unlocking the door card can be completed by the server.
  • the door lock is a hotel or apartment door lock, and the user makes a room reservation through the Internet. After the reservation is successful, the Internet server generates an unlock password of the corresponding room according to the reservation information, sends the unlock password to the user, and sets the unlock password.
  • the control command with the effective time is sent to the corresponding door lock of the room through the wireless route.
  • the user checks in he arrives at the door of the designated room and presses the password keyboard to wake up the door lock.
  • the door lock will first communicate with the wireless router and the Internet server, obtain the control command for setting the password, update the unlock code of the local storage of the door lock, and then the user inputs the unlock.
  • the password opens.
  • the Internet server sends a control command to delete the password.
  • the control command is executed to delete the unlock password.
  • the hotel front desk uses the card issuing device to connect to the Internet server, and the server generates the unlocking card information, such as the unlocking password or password, and writes the unlocking information to the card through the card issuing device, and the Internet server simultaneously generates the setting unlocking door.
  • the control information of the card information is sent to the door lock through the wireless route.
  • the door lock receives the control command from the wireless router and executes, updates the door card information used for unlocking, and then compares the card card information of the user to unlock the card.
  • the Internet server sends a control command to delete the password, and the control command is executed after the next door lock wakes up.
  • an apparatus for controlling a wireless networked device is further provided.
  • the control device of the wireless networking device may be used to perform a method for controlling a wireless networking device in the embodiment of the present invention.
  • the control method of the wireless networking device in the embodiment of the present invention may be performed in a control device of the wireless networking device.
  • FIG. 3 is a schematic diagram of a control apparatus of a wireless networking device according to an embodiment of the present invention. As shown in FIG. 3, the apparatus may include:
  • the first detecting module 22 is configured to detect whether the wireless networking device receives the trigger signal, wherein the trigger signal is set to trigger the wireless networking device to transition from the standby or sleep state to the working state; the first control module 24, configured to control the wireless networking device to change from a standby or a sleep state to a working state when detecting that the wireless networking device receives the trigger signal, wherein the wireless networking device is not in wireless communication with the Internet when in the standby or sleep state Wireless communication with the Internet while in the working state; the second detecting module 26 is configured to detect whether the wireless networking device reaches a preset triggering sleep condition; and the second control module 28 is configured to detect that the wireless networking device is reached In the case of a preset trigger sleep condition, the wireless networking device is controlled to transition from the active state to the standby or sleep state.
  • the first detecting module 22 in this embodiment may be configured to perform step S102 in the embodiment of the present application, where the first control module 24 in the embodiment may be configured to perform the method in the embodiment of the present application.
  • the second detecting module 26 in this embodiment may be configured to perform step S106 in the embodiment of the present application.
  • the second control module 28 in this embodiment may be configured to perform step S108 in the embodiment of the present application.
  • the above modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the above embodiments.
  • wireless communication with the Internet may be implemented by using a module that is configured to establish a communication connection between the wireless networking device and the wireless route; the first receiving module is configured to pass The wireless router receives a control command from the Internet; the first determining module is configured to determine whether the wireless networking device successfully receives the control command; and the first sending module is configured to: when the wireless networking device successfully receives the control command, The Internet sends a feedback message, wherein the feedback message is set to notify the Internet wireless networking device to successfully receive the control command, and the Internet deletes the control command or marks the control command after receiving the feedback message.
  • the device may further include: a second receiving module configured to receive operation information corresponding to the user operation; and a second determining module configured to determine whether the operation information meets a preset condition in the control instruction; a module configured to control a wireless networking device to perform a preset action in the control command when the operation information meets a preset condition in the control instruction; the output module is set to be when the operation information does not meet a preset condition in the control instruction The preset action is not performed, and error alert information is output; and the second sending module is configured to send the operation result corresponding to the operation information and/or the user operation to the Internet through wireless routing.
  • a second receiving module configured to receive operation information corresponding to the user operation
  • a second determining module configured to determine whether the operation information meets a preset condition in the control instruction
  • a module configured to control a wireless networking device to perform a preset action in the control command when the operation information meets a preset condition in the control instruction
  • the output module is set to be when the operation information does not meet a prese
  • the first receiving module may include: a first sub-transmission module, configured to send, by the wireless networking device, a request message to the wireless router, where the request message is a message that is set to request an Internet delivery control instruction;
  • the receiving module is configured to receive a control command sent by the wireless router, where a control command is pre-stored on the Internet or sent by the Internet and cached in the wireless route, and the wireless router sends a control command to the wireless networking device after receiving the request message.
  • a second sub-receiving module configured to receive a transmission completion message sent by the wireless router, wherein the transmission completion message is set to notify the wireless networking device that the control instruction has been sent.
  • the first detecting module 22 may include at least one of the following: the first sub detecting module is configured to check Detecting whether the wireless communication process of the wireless networking device and the Internet ends; the second sub-detection module is configured to detect whether the time for continuously receiving the operation information corresponding to the user operation exceeds a preset time; the third sub-detection module is set to Detecting whether the wireless networking device is unlocked; the fourth sub-detecting module is configured to detect whether a trigger input signal input by the user is received.
  • the control device of the wireless networking device of the embodiment of the present invention detects whether the wireless networking device receives the trigger signal by using the first detecting module 22, wherein the trigger signal is set to trigger the wireless networking device to change from the standby or the sleep state to the working state;
  • the first control module 24 controls the wireless networking device to change from a standby or a sleep state to an active state when detecting that the wireless networking device receives the trigger signal, wherein the wireless networking device does not perform wireless communication with the Internet when in the standby or sleep state.
  • Wireless communication with the Internet when in the working state detecting whether the wireless networking device reaches the preset triggering sleep condition by the second detecting module 26; detecting, by the second control module 28, that the wireless networking device reaches the preset triggering sleep condition
  • the wireless networking device is controlled to change from a working state to a standby or a sleep state.
  • the control device of the wireless networking device of the embodiment solves the technical problem that the wireless networking device using the battery in the related art has a short battery consumption time due to a large power consumption in the wireless communication process, and reduces the consumption of the wireless communication process.
  • the battery power of the wireless networking device thereby realizing the technical effect of prolonging the battery life of the wireless networking device and improving the user experience.
  • the disclosed technical contents may be implemented in other manners.
  • the device embodiments described above are only schematic.
  • the division of the unit may be a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .

Abstract

Disclosed in the present invention are a control method and device for a wireless networking apparatus. The method comprises: detecting whether a wireless networking apparatus receives a trigger signal; upon detection of a trigger signal received by the wireless networking apparatus, controlling the wireless networking apparatus to switch from a standby or hibernation state to an operating state, wherein the wireless networking apparatus does not perform wireless communication with the Internet while in the standby or hibernation state, and performs wireless communication with the Internet while in the operating state; detecting whether the wireless networking apparatus meets a predetermined condition for triggering hibernation; and upon detection of the wireless networking apparatus meeting the predetermined condition for triggering hibernation, controlling the wireless networking apparatus to switch from the operating state to the standby or hibernation state. The present invention solves the technical problem in the related art in which a wireless networking apparatus running on a battery has a short battery run-time due to large power consumption during a wireless communication process.

Description

无线联网设备的控制方法和装置Method and device for controlling wireless networked device 技术领域Technical field
本发明涉及无线联网设备领域,具体而言,涉及一种无线联网设备的控制方法和装置。The present invention relates to the field of wireless networking devices, and in particular, to a method and apparatus for controlling a wireless networking device.
背景技术Background technique
目前,使用电池的无线联网设备应用越来越广泛,比如酒店房间的智能门锁、挂锁等。但是,使用电池的无线联网设备通常体积较小,不能安装大容量电池,受到电池电量的限制,在电池电量一定的情况下,无线联网设备的无线通信过程的耗电量较大,占无线联网设备总耗电量的大部分,进而导致了无线联网设备续航能力较差,电池使用时间较短。为了使用电池的维持无线联网设备的正常使用,必须需要经常充电或者更换电池,为使用造成了极大地不便,严重影响了用户的使用体验。At present, wireless networking devices using batteries are becoming more and more widely used, such as smart door locks and padlocks in hotel rooms. However, wireless networking devices that use batteries are usually small in size and cannot be installed with large-capacity batteries. They are limited by the battery power. In the case of a certain battery power, the wireless communication process of wireless networking devices consumes a large amount of power, accounting for wireless networking. The majority of the total power consumption of the device leads to poor battery life and short battery life. In order to maintain the normal use of the wireless networking device by using the battery, it is necessary to frequently charge or replace the battery, which causes great inconvenience for use and seriously affects the user experience.
针对相关技术中使用电池的无线联网设备由于无线通信过程耗电量较大导致无线联网设备电池使用时间较短的问题,目前尚未提出有效的解决方案。For the wireless networking device using the battery in the related art, the wireless networking device has a short battery life due to the large power consumption of the wireless communication process, and no effective solution has been proposed yet.
发明内容Summary of the invention
本发明实施例提供了一种无线联网设备的控制方法和装置,以至少解决相关技术中使用电池的无线联网设备由于无线通信过程耗电量较大导致无线联网设备电池使用时间较短的技术问题。The embodiment of the invention provides a method and a device for controlling a wireless networked device, so as to at least solve the technical problem that the wireless networking device using the battery in the related art has a short battery consumption time due to a large power consumption in the wireless communication process. .
根据本发明实施例的一个方面,提供了一种无线联网设备的控制方法,包括:检测无线联网设备是否接收到触发信号,其中,触发信号用于触发无线联网设备由待机或者休眠状态转变为工作状态;在检测到无线联网设备接收到触发信号的情况下,控制无线联网设备由待机或者休眠状态转变为工作状态,其中,无线联网设备处于待机或者休眠状态时与互联网不进行无线通信,处于工作状态时与互联网进行无线通信;检测无线联网设备是否达到预设的触发休眠条件;以及在检测到无线联网设备达到预设的触发休眠条件的情况下,控制无线联网设备由工作状态转变为待机或者休眠状态。According to an aspect of the embodiments of the present invention, a method for controlling a wireless networking device includes: detecting whether a wireless networking device receives a trigger signal, wherein the trigger signal is used to trigger a wireless networking device to transition from a standby or a sleep state to a work a state; controlling the wireless networking device to change from a standby or a sleep state to a working state when detecting that the wireless networking device receives the trigger signal, wherein the wireless networking device is not in wireless communication with the Internet when in the standby or sleep state, is in a working state Wireless communication with the Internet; detecting whether the wireless networking device reaches a preset triggering sleep condition; and controlling the wireless networking device to change from the working state to standby or detecting that the wireless networking device reaches the preset triggering sleep condition Sleep state.
进一步地,无线联网设备处于工作状态时与互联网进行无线通信包括:建立无线联网设备与无线路由之间的通信连接;通过无线路由接收来自互联网的控制指令;判 断无线联网设备是否成功接收到控制指令;在无线联网设备成功接收控制指令时,通过无线路由向互联网发送反馈消息,其中,反馈消息用于通知互联网无线联网设备成功接收到控制指令,互联网在接收到反馈消息后删除控制指令或者将控制指令进行标记。Further, wirelessly communicating with the Internet when the wireless networking device is in an active state includes: establishing a communication connection between the wireless networking device and the wireless route; receiving a control instruction from the Internet through the wireless route; Whether the wireless networking device successfully receives the control command; when the wireless networking device successfully receives the control command, sends a feedback message to the Internet through the wireless route, wherein the feedback message is used to notify the wireless wireless networking device to successfully receive the control command, and the Internet is receiving Delete the control command or mark the control command after the feedback message.
进一步地,在通过无线路由向互联网发送反馈消息之后,该方法还包括:接收用户操作对应的操作信息;判断操作信息是否符合控制指令中的预设条件;在操作信息符合控制指令中的预设条件时,控制无线联网设备执行控制指令中的预设动作;在操作信息不符合控制指令中的预设条件时,不执行预设动作,并输出错误提醒信息;以及通过无线路由将操作信息和/或用户操作对应的执行结果发送至互联网。Further, after sending the feedback message to the Internet through the wireless routing, the method further includes: receiving operation information corresponding to the user operation; determining whether the operation information meets a preset condition in the control instruction; and the operation information conforms to the preset in the control instruction In the condition, the wireless networking device is controlled to execute the preset action in the control instruction; when the operation information does not meet the preset condition in the control instruction, the preset action is not performed, and the error reminding information is output; and the operation information is / or the corresponding execution result of the user operation is sent to the Internet.
进一步地,通过无线路由接收来自互联网的控制指令包括:无线联网设备向无线路由发送请求消息,其中,请求消息为用于请求互联网下发控制指令的消息;接收无线路由发送的控制指令,其中,控制指令预先存储在互联网或者由互联网下发并缓存在无线路由中,无线路由接收到请求消息后向无线联网设备发送控制指令;以及接收无线路由发送的发送完成消息,其中,发送完成消息用于通知无线联网设备控制指令已经发送完成。Further, the receiving, by the wireless routing, the control command from the Internet includes: the wireless networking device sending a request message to the wireless route, where the request message is a message for requesting the Internet to send a control command; and receiving a control command sent by the wireless route, where The control instruction is pre-stored on the Internet or sent by the Internet and cached in the wireless route, and the wireless route sends a control command to the wireless networking device after receiving the request message; and receives a transmission completion message sent by the wireless route, wherein the sending completion message is used for The notification wireless network device control command has been sent.
进一步地,检测无线联网设备是否达到预设的触发休眠条件包括以下至少之一:检测无线联网设备与互联网的无线通信过程是否结束;检测连续未接收到用户操作对应的操作信息的时间是否超过预设时间;检测无线联网设备是否已反锁;检测是否接收到用户输入的触发休眠信号。Further, detecting whether the wireless networking device reaches the preset triggering sleep condition comprises at least one of: detecting whether the wireless communication process of the wireless networking device and the Internet ends; and detecting whether the time for continuously receiving the operation information corresponding to the user operation exceeds the pre- Set the time; detect whether the wireless networking device has been locked; detect whether the user receives the triggering sleep signal.
根据本发明实施例的另一方面,还提供了一种无线联网设备的控制装置,包括:第一检测模块,被设置为检测无线联网设备是否接收到触发信号,其中,触发信号被设置为触发无线联网设备由待机或者休眠状态转变为工作状态;第一控制模块,被设置为在检测到无线联网设备接收到触发信号的情况下,控制无线联网设备由待机或者休眠状态转变为工作状态,其中,无线联网设备处于待机或者休眠状态时与互联网不进行无线通信,处于工作状态时与互联网进行无线通信;第二检测模块,被设置为检测无线联网设备是否达到预设的触发休眠条件;以及第二控制模块,被设置为在检测到无线联网设备达到预设的触发休眠条件的情况下,控制无线联网设备由工作状态转变为待机或者休眠状态。According to another aspect of the embodiments of the present invention, there is provided a control apparatus for a wireless networking device, including: a first detecting module configured to detect whether a wireless networking device receives a trigger signal, wherein the trigger signal is set to trigger The wireless networking device transitions from a standby or a sleep state to a working state; the first control module is configured to control the wireless networking device to transition from a standby or a sleep state to a working state when detecting that the wireless networking device receives the trigger signal, wherein The wireless networking device does not perform wireless communication with the Internet when in a standby or hibernation state, and performs wireless communication with the Internet when in a working state; the second detection module is configured to detect whether the wireless networking device reaches a preset triggering sleep condition; The second control module is configured to control the wireless networking device to transition from the working state to the standby or sleep state when detecting that the wireless networking device reaches the preset triggering sleep condition.
进一步地,无线联网设备处于工作状态时通过以下模块实现与互联网进行无线通信:建立模块,被设置为建立无线联网设备与无线路由之间的通信连接;第一接收模块,被设置为通过无线路由接收来自互联网的控制指令;第一判断模块,被设置为判断无线联网设备是否成功接收到控制指令;第一发送模块,被设置为在无线联网设备 成功接收控制指令时,通过无线路由向互联网发送反馈消息,其中,反馈消息被设置为通知互联网无线联网设备成功接收到控制指令,互联网在接收到反馈消息后删除控制指令或者将控制指令进行标记。Further, when the wireless networking device is in an active state, wireless communication with the Internet is implemented by the following module: an establishing module configured to establish a communication connection between the wireless networking device and the wireless route; and the first receiving module configured to be wirelessly routed Receiving a control instruction from the Internet; the first determining module is configured to determine whether the wireless networking device successfully receives the control instruction; the first sending module is configured to be in the wireless networking device When the control command is successfully received, the feedback message is sent to the Internet through the wireless route, wherein the feedback message is set to notify the Internet wireless networking device to successfully receive the control command, and the Internet deletes the control command or marks the control command after receiving the feedback message.
进一步地,该装置还包括:第二接收模块,被设置为接收用户操作对应的操作信息;第二判断模块,被设置为判断操作信息是否符合控制指令中的预设条件;第三控制模块,被设置为在操作信息符合控制指令中的预设条件时,控制无线联网设备执行控制指令中的预设动作;输出模块,被设置为在操作信息不符合控制指令中的预设条件时,不执行预设动作,并输出错误提醒信息;以及第二发送模块,被设置为通过无线路由将操作信息和/或用户操作对应的执行结果发送至互联网。Further, the device further includes: a second receiving module, configured to receive operation information corresponding to the user operation; and a second determining module configured to determine whether the operation information meets a preset condition in the control instruction; the third control module, Is configured to control the wireless networking device to perform a preset action in the control instruction when the operation information meets the preset condition in the control instruction; the output module is set to not when the operation information does not meet the preset condition in the control instruction, Executing a preset action and outputting an error reminder message; and the second sending module is configured to send the operation result corresponding to the operation information and/or the user operation to the Internet through wireless routing.
进一步地,第一接收模块包括:第一子发送模块,被设置为无线联网设备向无线路由发送请求消息,其中,请求消息为被设置为请求互联网下发控制指令的消息;第一子接收模块,被设置为接收无线路由发送的控制指令,其中,控制指令预先存储在互联网或者由互联网下发并缓存在无线路由中,无线路由接收到请求消息后向无线联网设备发送控制指令;以及第二子接收模块,被设置为接收无线路由发送的发送完成消息,其中,发送完成消息被设置为通知无线联网设备控制指令已经发送完成。Further, the first receiving module includes: a first sub-transmission module, configured to send a request message to the wireless router by the wireless networking device, where the request message is a message that is set to request an Internet delivery control instruction; the first sub-receiving module And being configured to receive a control command sent by the wireless route, wherein the control instruction is pre-stored on the Internet or sent by the Internet and cached in the wireless route, and the wireless route sends the control command to the wireless networking device after receiving the request message; and the second The sub-receiving module is configured to receive a transmission completion message sent by the wireless router, wherein the transmission completion message is set to notify the wireless networking device that the control instruction has been sent.
进一步地,第一检测模块包括以下至少之一:第一子检测模块,被设置为检测无线联网设备与互联网的无线通信过程是否结束;第二子检测模块,被设置为检测连续未接收到用户操作对应的操作信息的时间是否超过预设时间;第三子检测模块,被设置为检测无线联网设备是否已反锁;第四子检测模块,被设置为检测是否接收到用户输入的触发休眠信号。Further, the first detecting module includes at least one of: a first sub detecting module configured to detect whether a wireless communication process of the wireless networking device and the Internet ends; and a second sub detecting module configured to detect that the user is not continuously received Whether the time for operating the corresponding operation information exceeds a preset time; the third sub-detection module is configured to detect whether the wireless networking device has been unlocked; and the fourth sub-detection module is configured to detect whether a trigger input signal input by the user is received.
在本发明实施例中,采用检测无线联网设备是否接收到触发信号,其中,触发信号用于触发无线联网设备由待机或者休眠状态转变为工作状态;在检测到无线联网设备接收到触发信号的情况下,控制无线联网设备由待机或者休眠状态转变为工作状态,其中,无线联网设备处于待机或者休眠状态时与互联网不进行无线通信,处于工作状态时与互联网进行无线通信;检测无线联网设备是否达到预设的触发休眠条件;以及在检测到无线联网设备达到预设的触发休眠条件的情况下,控制无线联网设备由工作状态转变为待机或者休眠状态的方式,通过控制无线联网设备在待机或者休眠状态时不进行无线通信,达到了减少无线通信过程消耗无线联网设备电池电量的目的,从而实现了延长无线联网设备电池使用时间,提高用户使用体验的技术效果,进而解决了相关技术中使用电池的无线联网设备由于无线通信过程耗电量较大导致无线联网设备电池使用时间较短的技术问题。 In the embodiment of the present invention, detecting whether the wireless networking device receives the trigger signal, wherein the trigger signal is used to trigger the wireless networking device to transition from the standby or sleep state to the working state; and detecting that the wireless networking device receives the trigger signal The wireless networking device is controlled to change from a standby or a sleep state to a working state, wherein the wireless networking device does not perform wireless communication with the Internet when in a standby or a sleep state, and performs wireless communication with the Internet when in a working state; and detects whether the wireless networking device reaches a preset triggering sleep condition; and controlling the wireless networking device to change from a working state to a standby or a sleep state when detecting that the wireless networking device reaches a preset triggering sleep condition, by controlling the wireless networking device to stand by or sleeping When the state is not wireless communication, the purpose of reducing the battery power consumption of the wireless networking device during the wireless communication process is achieved, thereby realizing the technical effect of prolonging the battery life of the wireless networking device and improving the user experience, thereby solving the phase. Battery-art wireless networking equipment due to large power consumption of the wireless communication process results in wireless networking equipment battery short time technical problems.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的无线联网设备的控制方法的流程图;1 is a flowchart of a method of controlling a wireless networking device according to an embodiment of the present invention;
图2是根据本发明实施例的无线联网智能门锁的控制方法的流程图;以及2 is a flowchart of a method of controlling a wireless networked smart door lock according to an embodiment of the present invention;
图3是根据本发明实施例的无线联网设备的控制装置的示意图。3 is a schematic diagram of a control device of a wireless networking device in accordance with an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It is to be understood that the data so used may be interchanged where appropriate, so that the embodiments of the invention described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
根据本发明实施例,提供了一种无线联网设备的控制方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。In accordance with an embodiment of the present invention, a method embodiment of a method of controlling a wireless networking device is provided, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions And, although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图1是根据本发明实施例的无线联网设备的控制方法的流程图,如图1所示,该方法包括如下步骤:FIG. 1 is a flowchart of a method for controlling a wireless networking device according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
步骤S102,检测无线联网设备是否接收到触发信号,其中,触发信号用于触发无线联网设备由待机或者休眠状态转变为工作状态。Step S102: Detect whether the wireless networking device receives the trigger signal, where the trigger signal is used to trigger the wireless networking device to transition from the standby or sleep state to the working state.
在步骤S102提供的方案中,无线联网设备可以与互联网进行无线通信,且通过电 池供电,无线联网设备可以为无线联网智能门锁,比如密码锁或者挂锁等。无线联网设备可以有待机或者休眠状态以及工作状态,无线联网设备处于待机或者工作状态时实时检测是否接收到触发信号,该触发信号为用于触发无线联网设备由待机或者休眠状态转变为工作状态的信号。在检测到该触发信号后,无线联网设备将由待机或者休眠状态转变为工作状态。In the solution provided in step S102, the wireless networking device can wirelessly communicate with the Internet and pass the electricity. The pool is powered, and the wireless networking device can be a wireless networked smart door lock, such as a password lock or a padlock. The wireless networking device may have a standby or hibernation state and a working state, and the wireless networking device detects whether a trigger signal is received in a standby or working state, and the trigger signal is used to trigger the wireless networking device to change from a standby or a sleep state to a working state. signal. After detecting the trigger signal, the wireless networking device will transition from the standby or sleep state to the active state.
需要说明的是,为了降低无线联网设备的电池消耗,该实施例优选地控制无线联网设备在处于待机或者休眠状态时只执行检测触发信号,并不执行与互联网进行无线通信,大大降低了无线通信所消耗的电池电量,进而达到延长无线联网设备电池使用时间的效果。It should be noted that, in order to reduce the battery consumption of the wireless networking device, the embodiment preferably controls the wireless networking device to perform only the detection trigger signal when in the standby or sleep state, and does not perform wireless communication with the Internet, thereby greatly reducing the wireless communication. The amount of battery power consumed, which in turn extends the battery life of wireless networking devices.
检测无线联网设备是否接收到触发信号可以通过以下任意一种或者多种方式:按密码键盘上的专门用于触发无线联网设备的按键,或者按密码键盘上的任意按键触发无线联网设备,或者通过红外人体探测器探测到有人接近时触发无线联网设备,或者通过传感器感应有人接近时触发无线联网设备,比如通过电容传感器设置在门把手上,通过电容传感器感应有人握门把手时触发无线联网设备等。需要说明的是,本发明实施例并不对如何检测无线联网设备是否接收到触发信号做限定,上述只列举了几种典型的例子,本发明实施例还可以通过其他方式检测无线联网设备是否接收到触发信号,对于其他检测方式此处不再一一举例说明。Detecting whether the wireless networking device receives the trigger signal may be performed by one or more of the following methods: pressing a button on the password keyboard dedicated to triggering the wireless networking device, or pressing any button on the password keyboard to trigger the wireless networking device, or The infrared human body detector detects that a wireless networking device is triggered when someone approaches, or triggers a wireless networking device when a sensor is approached by a sensor, such as a capacitive sensor disposed on the door handle, and a capacitive sensor that triggers a wireless networking device when a person holds the door handle. . It should be noted that the embodiment of the present invention does not limit how to detect whether the wireless networking device receives the trigger signal. The foregoing only enumerates several typical examples, and the embodiment of the present invention may also detect whether the wireless networking device receives the network connectivity device by using other methods. The trigger signal is not illustrated here for other detection methods.
步骤S104,在检测到无线联网设备接收到触发信号的情况下,控制无线联网设备由待机或者休眠状态转变为工作状态,其中,无线联网设备处于待机或者休眠状态时与互联网不进行无线通信,处于工作状态时与互联网进行无线通信。Step S104, in the case that detecting that the wireless networking device receives the trigger signal, controlling the wireless networking device to transition from the standby or sleep state to the working state, wherein the wireless networking device is not in wireless communication with the Internet when in the standby or sleep state, Wireless communication with the Internet while in working condition.
在步骤S104提供的方案中,当检测到无线联网设备接收到触发信号时,无线联网设备将由待机或者休眠状态转变为工作状态,此时,无线联网设备与互联网进行无线通信,可选地,无线联网设备可以通过GPRS、3G、4G等无线网络连接到互联网进行无线通信,直接从互联网获取数据,也可以通过无线路由或网关与互联网进行无线通信。无线联网设备与无线路由的通信方式可以是wifi、蓝牙、zigbee、2.4g、433Mhz等,无线路由或网关通过有线或无线方式连接到互联网。具体地,无线联网设备通过无线路由与互联网进行无线通信的过程可以包括以下步骤:In the solution provided in step S104, when it is detected that the wireless networking device receives the trigger signal, the wireless networking device will be changed from the standby or sleep state to the working state. At this time, the wireless networking device performs wireless communication with the Internet, optionally, wireless. Networked devices can connect to the Internet via GPRS, 3G, 4G and other wireless networks for wireless communication, obtain data directly from the Internet, or communicate wirelessly via the wireless router or gateway to the Internet. The wireless networking device can communicate with the wireless router by wifi, bluetooth, zigbee, 2.4g, 433Mhz, etc., and the wireless router or gateway connects to the Internet through wired or wireless means. Specifically, the process of wirelessly connecting the wireless networking device to the Internet through wireless routing may include the following steps:
步骤S1,建立无线联网设备与无线路由之间的通信连接。In step S1, a communication connection between the wireless networking device and the wireless route is established.
无线联网设备与无线路由之间的通信连接可以为无线通信连接,无线联网设备处于工作状态时,会向无线路由发送通信连接请求,无线路由接收到该通信连接请求后向无线联网设备发送确认消息,无线联网设备接收到该确认消息后无线联网设备与无 线路由之间的通信连接建立成功。The communication connection between the wireless networking device and the wireless router may be a wireless communication connection, and when the wireless networking device is in a working state, a communication connection request is sent to the wireless route, and the wireless route sends an acknowledgement message to the wireless networking device after receiving the communication connection request. After the wireless networking device receives the confirmation message, the wireless networking device and the wireless device The line was successfully established by the communication connection between the lines.
步骤S2,通过无线路由接收来自互联网的控制指令;Step S2, receiving a control instruction from the Internet through a wireless router;
在无线联网设备与无线路由之间的通信连接上,无线联网设备通过无线路由接收来自互联网下发的控制指令,控制指令的个数可以是一个,也可以是多个,当互联网下发多个控制指令时,优选地按照采用串发方式,也可以采用并发方式。需要说明的是,在无线联网设备与无线路由之间的通信连接建立之后,可能存在没有互联网的控制指令的情况,此时则不需要通过无线路由接收来自互联网的控制指令,无线联网设备继续按照之前的控制指令操作,例如,智能门锁通过互联网服务器设定好开锁密码后,直到下次客户使用密码开门之前智能门锁并未收到新的更改密码或者删除密码的控制指令,则客户通过按动密码键盘唤醒智能门锁时,即通过按动密码键盘触发智能门锁由待机或者休眠状态转变为工作状态时,智能门锁只与互联网服务器建立通信连接,但是互联网服务器并没有新的控制指令发送给智能门锁,此时,智能门锁按照原来设置的密码进行密码校验。In the communication connection between the wireless networking device and the wireless router, the wireless networking device receives the control command sent from the Internet through the wireless routing, and the number of the control commands may be one or more, when the Internet issues multiple When the command is controlled, it is preferable to adopt the serial transmission method or the concurrent transmission method. It should be noted that after the communication connection between the wireless networking device and the wireless router is established, there may be no control command of the Internet. In this case, the control command from the Internet is not required to be received through the wireless router, and the wireless networking device continues to follow. The previous control command operation, for example, after the smart door lock sets the unlock password through the Internet server, until the next time the customer opens the door with the password, the smart door lock does not receive the new control code for changing the password or deleting the password, then the customer passes the When the smart keyboard lock is activated by pressing the password keyboard, the smart door lock only establishes a communication connection with the Internet server when the smart door lock is triggered to change from standby or hibernation state to the working state by pressing the password keyboard, but the Internet server has no new control. The command is sent to the smart door lock. At this time, the smart door lock performs password verification according to the originally set password.
可选地,步骤S2可以包括以下步骤:Optionally, step S2 may include the following steps:
步骤S21,无线联网设备向无线路由发送请求消息。其中,请求消息为用于请求互联网下发控制指令的消息。In step S21, the wireless networking device sends a request message to the wireless router. The request message is a message for requesting the Internet to issue a control command.
步骤S22,接收无线路由发送的控制指令。其中,控制指令预先存储在互联网或者由互联网下发并缓存在无线路由中,无线路由接收到请求消息后向无线联网设备发送控制指令。无线路由可以采用串发方式逐条地向无线联网设备发送控制指令,直到将所有的控制指令全部发送完毕。Step S22, receiving a control instruction sent by the wireless route. The control command is pre-stored on the Internet or sent by the Internet and cached in the wireless route. After receiving the request message, the wireless route sends a control command to the wireless networking device. The wireless router can send control commands to the wireless networking device one by one in a serial transmission manner until all control commands are completely transmitted.
需要说明的是,控制指令下发至无线联网设备可以有两种方式:第一种下发方式,控制指令预先存储在互联网服务器中,控制指令可以来自具有权限的客户终端,例如,具有权限的用户通过手机终端中的应用程序设置或修改智能门锁密码,设置或修改密码的控制指令由用户手机终端通过互联网发送到服务器,服务器存储该控制指令,等待智能门锁的通信请求。当智能门锁被唤醒由待机或者休眠状态转变为工作状态时,智能门锁建立与服务器之间的通信连接,利用该通信连接进行通信。服务器将存储的控制指令发送给智能门锁,服务器中可能存在多条待发送的控制指令,则服务器可以按照这些多条控制指令生成的时间顺序发送给智能门锁,智能门锁按控制指令生成的时间顺序执行这些控制指令。在智能门锁建立与服务器之间的通信连接进行通信时,也有可能服务器中不存在任何控制指令,此时服务器向智能门锁发送无新的控制指令的信息,智能门锁按原有状态运行。第二种下发方式,控制指令缓存在无线路由或网 关,即每当有需要发送给无线联网设备的控制指令时,服务器都会将待发送的控制指令下发给与无线联网设备连接的无线路由或网关,当无线联网设备由待机或则休眠状态转变为工作状态时,无线联网设备通过无线路由或网关与服务器进行通信,已存储在无线路由或网关中的控制指令直接从无线路由或网关发送给无线联网设备。It should be noted that there are two ways for the control command to be sent to the wireless networking device: the first delivery mode, the control command is pre-stored in the Internet server, and the control command may be from a client terminal having rights, for example, having rights The user sets or modifies the smart door lock password through the application in the mobile terminal, and the control command for setting or modifying the password is sent by the user mobile terminal to the server via the Internet, and the server stores the control command and waits for the communication request of the smart door lock. When the smart door lock is awakened from standby or hibernation to a working state, the smart door lock establishes a communication connection with the server, and communicates using the communication connection. The server sends the stored control instruction to the smart door lock. There may be multiple control commands to be sent in the server, and the server may send the smart door lock according to the time sequence generated by the multiple control commands, and the smart door lock is generated according to the control command. The chronological order executes these control instructions. When the smart door lock establishes communication with the server for communication, it is also possible that there is no control command in the server. At this time, the server sends no new control command information to the smart door lock, and the smart door lock operates according to the original state. . The second way of sending, the control command is cached in the wireless router or network. Off, that is, whenever there is a control command that needs to be sent to the wireless networking device, the server sends the control command to be sent to the wireless router or gateway connected to the wireless networking device, when the wireless networking device changes from standby or sleep state In the active state, the wireless networking device communicates with the server via a wireless router or gateway, and control commands already stored in the wireless router or gateway are sent directly from the wireless router or gateway to the wireless networking device.
步骤S23,接收无线路由发送的发送完成消息。其中,发送完成消息用于通知无线联网设备控制指令已经发送完成。无线路由在将所有的控制指令发送至无线联网设备之后,会向无线联网设备发送一条发送完成消息,以通知无线联网设备控制指令已经发送完毕。Step S23, receiving a transmission completion message sent by the wireless route. The sending completion message is used to notify the wireless networking device that the control command has been sent. After transmitting all control commands to the wireless networking device, the wireless router sends a transmission completion message to the wireless networking device to notify the wireless networking device that the control command has been sent.
步骤S3,判断无线联网设备是否成功接收到控制指令。In step S3, it is determined whether the wireless networking device successfully receives the control command.
判断无线联网设备是否成功接收到控制指令可以通过判断无线联网设备是否接收到无线路由发送的发送完成消息,如果接收到该发送完成消息,则确定无线联网设备成功接收到控制指令;如果未接收到该发送完成消息,则确定无线联网设备未成功接收到控制指令。Determining whether the wireless networking device successfully receives the control command may determine whether the wireless networking device receives the transmission completion message sent by the wireless router, and if receiving the transmission completion message, determining that the wireless networking device successfully receives the control instruction; if not received The sending completion message determines that the wireless networking device has not successfully received the control command.
步骤S4,在无线联网设备成功接收控制指令时,通过无线路由向互联网发送反馈消息。其中,反馈消息用于通知互联网无线联网设备成功接收到控制指令,互联网在接收到反馈消息后删除控制指令或者将控制指令进行标记,可以将其标记为已执行指令。Step S4: When the wireless networking device successfully receives the control instruction, send a feedback message to the Internet through the wireless route. The feedback message is used to notify the Internet wireless networking device to successfully receive the control instruction, and the Internet deletes the control instruction or marks the control instruction after receiving the feedback message, and can mark it as the executed instruction.
可选地,在步骤S4之后,该实施例的无线联网设备的控制方法还可以包括以下步骤:Optionally, after the step S4, the control method of the wireless networking device of the embodiment may further include the following steps:
步骤S5,接收用户操作对应的操作信息。用户操作可以是输入开门密码,输入指纹,人脸或者刷门卡等。相应地,用户操作对应的操作信息中可以包括用户输入的密码,指纹信息,人脸信息或者门卡信息等。Step S5, receiving operation information corresponding to the user operation. The user operation can be inputting a door opening password, inputting a fingerprint, a face or a door card. Correspondingly, the operation information corresponding to the user operation may include a password, a fingerprint information, a face information or a door card information input by the user.
步骤S6,判断操作信息是否符合控制指令中的预设条件。In step S6, it is judged whether the operation information meets the preset condition in the control instruction.
无线联网设备在接收到用户操作对应的操作信息后,将操作信息与控制指令中的预设条件进行比较,其中,控制指令中可以包括一个或者多个预设条件,比如,门锁开门密码,开门所需的指纹信息,人脸信息,开门门卡信息等。判断操作信息与控制指令中的预设条件是否相符可以是判断输入的开门密码是否与预设的门锁开门密码相同,指纹信息是否与预设的开门所需的指纹信息相同等。需要说明的是,控制指令中的预设条件可以根据实际需求进行设定。After receiving the operation information corresponding to the user operation, the wireless networking device compares the operation information with a preset condition in the control instruction, wherein the control instruction may include one or more preset conditions, such as a door lock opening password, Fingerprint information, face information, door opening card information, etc. required to open the door. Determining whether the operation information and the preset condition in the control instruction are consistent may be determining whether the input opening password is the same as the preset door lock opening password, and whether the fingerprint information is the same as the preset fingerprint information required for opening the door. It should be noted that the preset conditions in the control command can be set according to actual needs.
步骤S7,在操作信息符合控制指令中的预设条件时,控制无线联网设备执行控制 指令中的预设动作。Step S7, controlling the wireless networking device to perform control when the operation information meets a preset condition in the control instruction The default action in the command.
步骤S8,在操作信息不符合控制指令中的预设条件时,不执行预设动作,并输出错误提醒信息。In step S8, when the operation information does not meet the preset condition in the control instruction, the preset action is not executed, and the error reminding information is output.
在执行判断操作信息是否符合控制指令中的预设条件之后,如果符合,则无线联网设备会执行与预设条件向对应的预设动作,比如门锁打开;如果不符合,则不执行与预设条件向对应的预设动作,比如门锁未打开。优选地,该实施例在判断出操作信息不符合控制指令中的预设条件时,会输出错误提醒信息,比如蜂鸣报警,或者显示屏显示密码输入错误等,极大地提高了用户使用体验。After performing the judgment whether the operation information meets the preset condition in the control instruction, if it is met, the wireless networking device performs a preset action corresponding to the preset condition, such as the door lock is opened; if not, the execution is not performed Set the condition to the corresponding preset action, such as the door lock is not open. Preferably, when determining that the operation information does not meet the preset condition in the control instruction, the embodiment may output an error reminding message, such as a buzzer alarm, or the display screen displays a password input error, etc., which greatly improves the user experience.
步骤S9,通过无线路由将操作信息和/或用户操作对应的执行结果发送至互联网。In step S9, the operation information and/or the execution result corresponding to the user operation are sent to the Internet through wireless routing.
该实施例无论操作信息是否符合预设条件,均会将操作信息以及操作信息对应的执行结果发送至互联网,以告知互联网无线联网设备对控制指令的执行结果。比如,用户输入开门密码后,无线路由设备判断出输入的开门密码符合预设的开门密码,则门锁打开,并将输入的开门密码以及门锁打开这一执行结果发送至互联网。In this embodiment, regardless of whether the operation information meets the preset condition, the operation information and the execution result corresponding to the operation information are sent to the Internet to inform the Internet wireless networking device of the execution result of the control instruction. For example, after the user inputs the opening password, the wireless routing device determines that the input opening password conforms to the preset opening password, the door lock is opened, and the execution result of the input opening password and the door lock is sent to the Internet.
该实施例的无线联网设备的控制方法中无线联网设备与互联网之间的无线通信过程采用交互式方式能够方便无线联网设备和互联网及时获取消息发送结果或者控制指令执行结果,如果中间过程出现故障能够及时采取措施进行补救,进而达到了极大地提高用户使用体验的效果。In the control method of the wireless networking device of the embodiment, the wireless communication process between the wireless networking device and the Internet adopts an interactive manner, which can facilitate the wireless networking device and the Internet to timely obtain the message transmission result or control the instruction execution result, and if the intermediate process fails, Take timely measures to remedy, and thus achieve the effect of greatly improving the user experience.
步骤S106,检测无线联网设备是否达到预设的触发休眠条件。Step S106: Detect whether the wireless networking device reaches a preset triggering sleep condition.
在步骤S106提供的方案中,预设的触发休眠条件可以为无线联网设备与互联网的无线通信过程结束;或者连续一段时间内未接收到任何用户操作;或者无线联网设备已经反锁;或者接收到用户按动休眠按键触发的信号等。需要说明的数,上述只是列举了部分预设的触发休眠条件,并不代表本发明实施例中的预设的触发休眠条件至包括上述内容,本发明实施例中的预设的触发休眠条件还可以包括其他内容,此处不再一一举例说明。In the solution provided in step S106, the preset triggering sleep condition may be the end of the wireless communication process of the wireless networking device and the Internet; or no user operation is received for a continuous period of time; or the wireless networking device has been locked; or the user is received Press the signal triggered by the sleep button. The foregoing description only refers to a part of the preset triggering sleep condition, and does not represent the preset triggering sleep condition in the embodiment of the present invention to include the foregoing content, and the preset triggering sleep condition in the embodiment of the present invention is further Other content may be included, and will not be exemplified herein.
可选地,检测无线联网设备是否达到预设的触发休眠条件可以包括以下至少之一:检测无线联网设备与互联网的无线通信过程是否结束;检测连续未接收到用户操作对应的操作信息的时间是否超过预设时间;检测无线联网设备是否已反锁;检测是否接收到用户输入的触发休眠信号。需要说明的是,检测连续未接收到用户操作对应的操作信息的时间是否超过预设时间,其中,预设时间可以根据实际需求进行设定,比如5分钟或者10分钟等。检测是否接收到用户输入的触发休眠信号,触发休眠信号可以为用户按动休眠案件所触发的信号。该实施例在检测到无线联网设备与互联网的无线 通信过程已经结束;或者连续未接收到用户操作对应的操作信息的时间超过预设时间;或者无线联网设备已反锁;或者接收到用户输入的触发休眠信号时,则可以确定无线联网设备与互联网的无线通信过程结束。Optionally, detecting whether the wireless networking device reaches the preset triggering sleep condition may include at least one of: detecting whether the wireless communication process of the wireless networking device and the Internet ends; and detecting whether the time for continuously receiving the operation information corresponding to the user operation is detected Exceeding the preset time; detecting whether the wireless networking device has been unlocked; detecting whether a trigger input signal input by the user is received. It should be noted that the time for detecting the operation information corresponding to the user operation is not exceeded for a preset time. The preset time may be set according to actual requirements, such as 5 minutes or 10 minutes. It is detected whether a trigger input signal input by the user is received, and the trigger sleep signal may be a signal triggered by the user pressing the sleep case. This embodiment detects the wireless connection between the wireless networking device and the Internet. The communication process has ended; or the time when the operation information corresponding to the user operation is not continuously received exceeds the preset time; or the wireless networking device has been unlocked; or when the trigger input signal input by the user is received, the wireless networking device and the Internet can be determined. The wireless communication process ends.
需要说明的是,该实施例的无线联网设备的控制方法还可以采用其他方式检测无线联网设备与互联网的无线通信过程是否结束,本发明实施例并不对如何检测无线联网设备与互联网的无线通信过程是否结束做具体限定。It should be noted that the method for controlling the wireless networking device of the embodiment may further detect whether the wireless communication process between the wireless networking device and the Internet ends. The embodiment of the present invention does not detect how to detect the wireless communication process between the wireless networking device and the Internet. Whether to end the specific limit.
步骤S108,在检测到无线联网设备达到预设的触发休眠条件的情况下,控制无线联网设备由工作状态转变为待机或者休眠状态。Step S108, in the case that it is detected that the wireless networking device reaches the preset triggering sleep condition, the wireless networking device is controlled to change from the working state to the standby or the sleeping state.
在步骤S108提供的方案中,当无线联网设备达到预设的触发休眠条件时,无线联网设备将会立即由工作状态转变为待机或者休眠状态,无线联网设备停止与互联网进行无线通信,重新执行步骤S102检测无线联网设备是否接收到触发信号,在接收到触发信息时执行步骤S104至步骤S108,如此循环下去。In the solution provided in step S108, when the wireless networking device reaches the preset triggering sleep condition, the wireless networking device will immediately transition from the working state to the standby or sleeping state, and the wireless networking device stops wireless communication with the Internet, and performs the steps again. S102 detects whether the wireless networking device receives the trigger signal, and performs step S104 to step S108 when receiving the trigger information, and thus loops.
通过上述步骤S102至步骤S108,无线联网设备处于待机或休眠状态时,仅检测是否接收到触发信号,在接收到触发信号后,与无线路由进行通讯,从无线路由接收来自互联网服务器的指令,接收并执行来自互联网服务器的指令后向,向互联网服务器发送回执,等待本地用户的本地操作,执行本地操作后,向互联网服务器发送用户操作记录,再次转入待机或休眠状态。本发明实施例解决了相关技术中使用电池的无线联网设备由于无线通信过程耗电量较大导致无线联网设备电池使用时间较短的技术问题,达到了减少无线通信过程消耗无线联网设备电池电量,进而实现延长无线联网设备电池使用时间,提高用户使用体验的技术效果。Through the above steps S102 to S108, when the wireless networking device is in the standby or sleep state, it only detects whether a trigger signal is received, communicates with the wireless route after receiving the trigger signal, receives an instruction from the Internet server from the wireless route, and receives And executing the instruction from the Internet server, sending a receipt to the Internet server, waiting for the local operation of the local user, performing the local operation, sending the user operation record to the Internet server, and then going to the standby or hibernation state again. The embodiment of the invention solves the technical problem that the wireless networking device using the battery in the related art has a short battery consumption time due to the large power consumption of the wireless communication process, and reduces the battery power consumption of the wireless networking device during the wireless communication process. In turn, the technical effect of extending the battery life of the wireless networking device and improving the user experience is realized.
需要说明的是,本发明实施例的无线联网设备的控制方法可以应用于酒店房间无线联网智能门锁中,以达到降低无线联网智能门锁电池消耗,延长电池使用时间,提高用户使用体验的效果。It should be noted that the control method of the wireless networking device according to the embodiment of the present invention can be applied to a wireless connection smart door lock of a hotel room, so as to reduce the battery consumption of the wireless networked smart door lock, prolong the battery use time, and improve the user experience. .
根据本发明实施例,还提供了一种无线联网智能门锁的控制方法的方法实施例,图2是根据本发明实施例的无线联网智能门锁的控制方法的流程图,如图2所示,该无线联网智能门锁的控制方法可以包括以下步骤:According to an embodiment of the present invention, a method for controlling a wireless networked smart door lock is also provided. FIG. 2 is a flowchart of a method for controlling a wireless networked smart door lock according to an embodiment of the present invention, as shown in FIG. The wireless networked smart door lock control method may include the following steps:
步骤S202,无线联网智能门锁处于待机或者休眠状态。In step S202, the wireless networked smart door lock is in a standby or sleep state.
无线联网智能门锁中可以包括触发装置,该触发装置用于触发无线联网智能门锁从待机或者休眠状态转变为工作状态。需要说明的是,无线联网智能门锁处于待机或者休眠状态时只有触发装置工作,其内部的处理器和通信装置均不工作。可选地,触发装置可以是密码键盘、读卡器、红外人体感应装置、用于感应人手触摸的电容传感 器等。例如,按密码键盘上专门的触发按键触发门锁,或者按密码键盘上的任意键均可以触发门锁;或者,红外人体感应装置探测到有人在门前时触发门锁,有人握住门把手准备开门时通过电容传感器触发门锁,门卡接近读卡器时触发门锁并读取门卡信息。The wireless networking smart door lock may include a triggering device for triggering the wireless networked smart door lock to transition from a standby or a sleep state to a working state. It should be noted that when the wireless networked smart door lock is in the standby or sleep state, only the trigger device works, and the internal processor and the communication device do not work. Optionally, the triggering device may be a PIN pad, a card reader, an infrared human body sensing device, and a capacitive sensing for sensing a human hand touch. And so on. For example, pressing a special trigger button on the password keyboard to trigger the door lock, or pressing any key on the password keyboard can trigger the door lock; or, the infrared human body sensing device detects that someone is in front of the door to trigger the door lock, and someone holds the door handle When the door is ready to open, the door lock is triggered by the capacitive sensor. When the door card approaches the card reader, the door lock is triggered and the door card information is read.
步骤S204,无线联网智能门锁接收到触发信号。Step S204, the wireless networked smart door lock receives the trigger signal.
步骤S206,无线联网智能门锁从待机或者休眠状态转变为工作状态。Step S206, the wireless networked smart door lock is changed from the standby or sleep state to the working state.
步骤S208,无线联网智能门锁向无线路由发送请求消息。Step S208, the wireless networked smart door lock sends a request message to the wireless route.
步骤S210,无线联网智能门锁通过无线路由接收来自互联网服务器的控制指令。Step S210, the wireless networked smart door lock receives the control command from the internet server through the wireless route.
在上述步骤S204至步骤S210提供的技术方案中,门锁被触发后,向无线路由发送请求消息,申请进行无线通信,无线路由接收到门锁发送的请求消息后,向门锁发送门锁待机或者休眠期间来自互联网服务器的对门锁的控制指令,这些控制指令可以包括:设置新密码指令、清除旧密码指令、设置新开锁门卡指令、清除旧开锁门卡指令等。待发送给门锁的控制指令可以提前由互联网服务器下发并缓存在无线路由,也可以存储在互联网服务器中,门锁申请通信后由无线路由向互联网服务器申请下发控制指令,然后将控制指令发送给门锁。如果同时存在多条控制指令,将根据控制指令生成的时间顺序发送给门锁,如果没有新的待执行控制指令,则向门锁发送无指令的信息。门锁接到控制指令后,按控制指令生成的时间顺序执行控制指令并向无线路由发送执行成功回执。按照控制指令生成的时间顺序进行指令的发送和执行是因为在实际应用过程中有可能出现后一条控制指令覆盖前一条控制指令执行结果的情况,例如前一条控制指令设定了一个开锁密码,一端时间后,管理者修改了该开锁密码,且这期间智能门锁均处于待机或者休眠状态。当智能门锁被激活由待机或者休眠状态转变为工作状态时,这两条控制指令均为发送至智能门锁,则正确的执行结果应该为智能门锁先执行前一条设定开锁密码的指令,再执行后一条修改开锁密码的指令,这样才能给得到正确的开锁密码,才能符合实际情况。服务器收到指令执行成功回执后对已执行的控制指令做删除操作或者标记为已执行指令。In the technical solution provided in the foregoing steps S204 to S210, after the door lock is triggered, a request message is sent to the wireless route to apply for wireless communication, and after receiving the request message sent by the door lock, the wireless route sends a door lock standby to the door lock. Or control commands from the Internet server to the door lock during sleep. The control commands may include: setting a new password command, clearing the old password command, setting a new unlock door card command, clearing the old unlock door card command, and the like. The control command to be sent to the door lock can be issued by the Internet server in advance and cached in the wireless route, or can be stored in the Internet server. After the door lock applies for communication, the wireless router applies to the Internet server to issue a control command, and then the control command is executed. Send to the door lock. If there are multiple control commands at the same time, they will be sent to the door lock according to the time sequence generated by the control command. If there is no new control command to be executed, no message will be sent to the door lock. After the door lock is connected to the control command, the control command is executed in the time sequence generated by the control command and the execution success receipt is sent to the wireless route. The instruction is sent and executed according to the time sequence generated by the control instruction because it is possible that the latter control instruction overwrites the execution result of the previous control instruction in the actual application process. For example, the previous control instruction sets an unlock password, one end After the time, the administrator modified the unlock password, and the smart door locks were in standby or hibernation during this period. When the smart door lock is activated from the standby or sleep state to the working state, both control commands are sent to the smart door lock, and the correct execution result should be the smart door lock first executing the previous command to set the unlock password. Then execute the following command to modify the unlock password, in order to get the correct unlock password, in order to meet the actual situation. After the server receives the instruction execution success receipt, it deletes the executed control instruction or marks it as executed.
步骤S212,无线联网智能门锁执行控制指令并向互联网服务器发送执行结果。Step S212, the wireless networked smart door lock executes the control instruction and sends the execution result to the internet server.
步骤S214,无线联网智能门锁等待本地操作。In step S214, the wireless networked smart door lock waits for local operation.
步骤S216,无线联网智能门锁将本地操作结果发送至互联网服务器。本地操作结果可以包括:开锁时输入的密码,使用的开锁门卡信息、指纹信息等,密码、门卡、指纹等正确或错误,开锁成功或失败等信息。 Step S216, the wireless networked smart door lock sends the local operation result to the internet server. The local operation result may include: a password input when unlocking, an unlocked door card information used, a fingerprint information, etc., a password, a door card, a fingerprint, etc., correct or incorrect, and the information such as success or failure of unlocking.
步骤S218,无线联网智能门锁由工作状态转变为待机或者休眠状态,返回步骤S202。Step S218, the wireless networked smart door lock is changed from the working state to the standby state or the sleep state, and the process returns to step S202.
在上述步骤S212至步骤S218提供的技术方案中,门锁等待本地操作可以是等待接收来自密码键盘输入的密码或者来自读卡器的门卡信息,判断输入的密码或刷卡门卡是否是正确的开锁密码或正确的门卡,如果是,则执行开锁操作;如果不是,不执行开锁操作并且门锁发出错误提醒,错误提醒可以是蜂鸣器声音或信号灯闪烁等信息。本地操作执行完毕后,门锁将输入密码或门卡信息以及开门结果发送给无线路由。等待预先设定的时间内均无任何用户操作时,门锁自动上锁并再次转入待机或者休眠状态。In the technical solution provided in the above step S212 to step S218, the door lock waiting for the local operation may be waiting to receive the password input from the PIN pad or the card information from the card reader, and determine whether the input password or the swipe card card is correct. Unlock the password or the correct door card. If yes, perform the unlock operation; if not, do not perform the unlock operation and the door lock sends an error reminder. The error reminder may be the buzzer sound or the signal light flashing. After the local operation is completed, the door lock will input the password or the door card information and the opening result to the wireless router. When there is no user operation for a predetermined period of time, the door lock is automatically locked and puts into standby or hibernation again.
门锁可以存储多个开锁密码以及多个开锁门卡,对开锁密码或开锁门卡的设置可以通过服务器完成。典型的应用场景下,门锁为酒店或公寓门锁,用户通过互联网进行房间预订,预订成功后由互联网服务器根据预订信息生成相应房间的开锁密码,将开锁密码发送给用户,并且将设置开锁密码和生效时间的控制指令通过无线路由发送给房间对应的门锁。用户入住时,到达指定房间门口,按密码键盘唤醒门锁,此时门锁会先与无线路由和互联网服务器通信,获取设置密码的控制指令,更新门锁本地存储的开锁密码,然后用户输入开锁密码开门。用户退房或预订时间到达后,互联网服务器发送删除该条密码的控制指令,下次门锁唤醒后会执行该控制指令,删除该开锁密码。或者,用户办理门卡进行入住时,酒店前台使用发卡设备连接到互联网服务器,服务器生成开锁门卡信息,比如开锁密码或口令,将开锁信息通过发卡设备写入门卡,互联网服务器同时生成设置开锁门卡信息的控制指令,通过无线路由发送给门锁。用户入住时,使用门卡刷卡触发门锁,门锁从无线路由接收控制指令并执行,更新用于开锁的门卡信息,然后对比用户刷卡的门卡信息,实现开锁。用户退房或预订时间到达后,互联网服务器发送删除该条密码的控制指令,下次门锁唤醒后会执行该控制指令。The door lock can store multiple unlocking passwords and multiple unlocking door cards. The setting of the unlocking password or unlocking the door card can be completed by the server. In a typical application scenario, the door lock is a hotel or apartment door lock, and the user makes a room reservation through the Internet. After the reservation is successful, the Internet server generates an unlock password of the corresponding room according to the reservation information, sends the unlock password to the user, and sets the unlock password. The control command with the effective time is sent to the corresponding door lock of the room through the wireless route. When the user checks in, he arrives at the door of the designated room and presses the password keyboard to wake up the door lock. At this time, the door lock will first communicate with the wireless router and the Internet server, obtain the control command for setting the password, update the unlock code of the local storage of the door lock, and then the user inputs the unlock. The password opens. After the user leaves or the reservation time arrives, the Internet server sends a control command to delete the password. After the next door lock wakes up, the control command is executed to delete the unlock password. Alternatively, when the user checks in the card, the hotel front desk uses the card issuing device to connect to the Internet server, and the server generates the unlocking card information, such as the unlocking password or password, and writes the unlocking information to the card through the card issuing device, and the Internet server simultaneously generates the setting unlocking door. The control information of the card information is sent to the door lock through the wireless route. When the user checks in, the door card is used to trigger the door lock, the door lock receives the control command from the wireless router and executes, updates the door card information used for unlocking, and then compares the card card information of the user to unlock the card. After the user leaves or the reservation time arrives, the Internet server sends a control command to delete the password, and the control command is executed after the next door lock wakes up.
根据本发明实施例,还提供了一种无线联网设备的控制的装置实施例,需要说明的是,该无线联网设备的控制装置可以用于执行本发明实施例中的无线联网设备的控制方法,本发明实施例中的无线联网设备的控制方法可以在该无线联网设备的控制装置中执行。According to an embodiment of the present invention, an apparatus for controlling a wireless networked device is further provided. The control device of the wireless networking device may be used to perform a method for controlling a wireless networking device in the embodiment of the present invention. The control method of the wireless networking device in the embodiment of the present invention may be performed in a control device of the wireless networking device.
图3是根据本发明实施例的无线联网设备的控制装置的示意图,如图3所示,该装置可以包括:FIG. 3 is a schematic diagram of a control apparatus of a wireless networking device according to an embodiment of the present invention. As shown in FIG. 3, the apparatus may include:
第一检测模块22,被设置为检测无线联网设备是否接收到触发信号,其中,触发信号被设置为触发无线联网设备由待机或者休眠状态转变为工作状态;第一控制模块 24,被设置为在检测到无线联网设备接收到触发信号的情况下,控制无线联网设备由待机或者休眠状态转变为工作状态,其中,无线联网设备处于待机或者休眠状态时与互联网不进行无线通信,处于工作状态时与互联网进行无线通信;第二检测模块26,被设置为检测无线联网设备是否达到预设的触发休眠条件;以及第二控制模块28,被设置为在检测到无线联网设备达到预设的触发休眠条件的情况下,控制无线联网设备由工作状态转变为待机或者休眠状态。The first detecting module 22 is configured to detect whether the wireless networking device receives the trigger signal, wherein the trigger signal is set to trigger the wireless networking device to transition from the standby or sleep state to the working state; the first control module 24, configured to control the wireless networking device to change from a standby or a sleep state to a working state when detecting that the wireless networking device receives the trigger signal, wherein the wireless networking device is not in wireless communication with the Internet when in the standby or sleep state Wireless communication with the Internet while in the working state; the second detecting module 26 is configured to detect whether the wireless networking device reaches a preset triggering sleep condition; and the second control module 28 is configured to detect that the wireless networking device is reached In the case of a preset trigger sleep condition, the wireless networking device is controlled to transition from the active state to the standby or sleep state.
需要说明的是,该实施例中的第一检测模块22可以被设置为执行本申请实施例中的步骤S102,该实施例中的第一控制模块24可以被设置为执行本申请实施例中的步骤S104,该实施例中的第二检测模块26可以被设置为执行本申请实施例中的步骤S106,该实施例中的第二控制模块28可以被设置为执行本申请实施例中的步骤S108。上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所公开的内容。It should be noted that the first detecting module 22 in this embodiment may be configured to perform step S102 in the embodiment of the present application, where the first control module 24 in the embodiment may be configured to perform the method in the embodiment of the present application. In step S104, the second detecting module 26 in this embodiment may be configured to perform step S106 in the embodiment of the present application. The second control module 28 in this embodiment may be configured to perform step S108 in the embodiment of the present application. . The above modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the above embodiments.
可选地,无线联网设备处于工作状态时可以通过以下模块实现与互联网进行无线通信:建立模块,被设置为建立无线联网设备与无线路由之间的通信连接;第一接收模块,被设置为通过无线路由接收来自互联网的控制指令;第一判断模块,被设置为判断无线联网设备是否成功接收到控制指令;第一发送模块,被设置为在无线联网设备成功接收控制指令时,通过无线路由向互联网发送反馈消息,其中,反馈消息被设置为通知互联网无线联网设备成功接收到控制指令,互联网在接收到反馈消息后删除控制指令或者将控制指令进行标记。Optionally, when the wireless networking device is in an active state, wireless communication with the Internet may be implemented by using a module that is configured to establish a communication connection between the wireless networking device and the wireless route; the first receiving module is configured to pass The wireless router receives a control command from the Internet; the first determining module is configured to determine whether the wireless networking device successfully receives the control command; and the first sending module is configured to: when the wireless networking device successfully receives the control command, The Internet sends a feedback message, wherein the feedback message is set to notify the Internet wireless networking device to successfully receive the control command, and the Internet deletes the control command or marks the control command after receiving the feedback message.
可选地,该装置还可以包括:第二接收模块,被设置为接收用户操作对应的操作信息;第二判断模块,被设置为判断操作信息是否符合控制指令中的预设条件;第三控制模块,被设置为在操作信息符合控制指令中的预设条件时,控制无线联网设备执行控制指令中的预设动作;输出模块,被设置为在操作信息不符合控制指令中的预设条件时,不执行预设动作,并输出错误提醒信息;以及第二发送模块,被设置为通过无线路由将操作信息和/或用户操作对应的执行结果发送至互联网。Optionally, the device may further include: a second receiving module configured to receive operation information corresponding to the user operation; and a second determining module configured to determine whether the operation information meets a preset condition in the control instruction; a module configured to control a wireless networking device to perform a preset action in the control command when the operation information meets a preset condition in the control instruction; the output module is set to be when the operation information does not meet a preset condition in the control instruction The preset action is not performed, and error alert information is output; and the second sending module is configured to send the operation result corresponding to the operation information and/or the user operation to the Internet through wireless routing.
可选地,第一接收模块可以包括:第一子发送模块,被设置为无线联网设备向无线路由发送请求消息,其中,请求消息为被设置为请求互联网下发控制指令的消息;第一子接收模块,被设置为接收无线路由发送的一条控制指令,其中,一条控制指令预先存储在互联网或者由互联网下发并缓存在无线路由中,无线路由接收到请求消息后向无线联网设备发送控制指令;以及第二子接收模块,被设置为接收无线路由发送的发送完成消息,其中,发送完成消息被设置为通知无线联网设备控制指令已经发送完成。Optionally, the first receiving module may include: a first sub-transmission module, configured to send, by the wireless networking device, a request message to the wireless router, where the request message is a message that is set to request an Internet delivery control instruction; The receiving module is configured to receive a control command sent by the wireless router, where a control command is pre-stored on the Internet or sent by the Internet and cached in the wireless route, and the wireless router sends a control command to the wireless networking device after receiving the request message. And a second sub-receiving module configured to receive a transmission completion message sent by the wireless router, wherein the transmission completion message is set to notify the wireless networking device that the control instruction has been sent.
可选地,第一检测模块22可以包括以下至少之一:第一子检测模块,被设置为检 测无线联网设备与互联网的无线通信过程是否结束;第二子检测模块,被设置为检测连续未接收到用户操作对应的操作信息的时间是否超过预设时间;第三子检测模块,被设置为检测无线联网设备是否已反锁;第四子检测模块,被设置为检测是否接收到用户输入的触发休眠信号。Optionally, the first detecting module 22 may include at least one of the following: the first sub detecting module is configured to check Detecting whether the wireless communication process of the wireless networking device and the Internet ends; the second sub-detection module is configured to detect whether the time for continuously receiving the operation information corresponding to the user operation exceeds a preset time; the third sub-detection module is set to Detecting whether the wireless networking device is unlocked; the fourth sub-detecting module is configured to detect whether a trigger input signal input by the user is received.
本发明实施例的无线联网设备的控制装置,通过第一检测模块22检测无线联网设备是否接收到触发信号,其中,触发信号被设置为触发无线联网设备由待机或者休眠状态转变为工作状态;通过第一控制模块24在检测到无线联网设备接收到触发信号的情况下,控制无线联网设备由待机或者休眠状态转变为工作状态,其中,无线联网设备处于待机或者休眠状态时与互联网不进行无线通信,处于工作状态时与互联网进行无线通信;通过第二检测模块26检测无线联网设备是否达到预设的触发休眠条件;通过第二控制模块28在检测到无线联网设备达到预设的触发休眠条件的情况下,控制无线联网设备由工作状态转变为待机或者休眠状态。该实施例的无线联网设备的控制装置解决了相关技术中使用电池的无线联网设备由于无线通信过程耗电量较大导致无线联网设备电池使用时间较短的技术问题,达到了减少无线通信过程消耗无线联网设备电池电量,进而实现延长无线联网设备电池使用时间,提高用户使用体验的技术效果。The control device of the wireless networking device of the embodiment of the present invention detects whether the wireless networking device receives the trigger signal by using the first detecting module 22, wherein the trigger signal is set to trigger the wireless networking device to change from the standby or the sleep state to the working state; The first control module 24 controls the wireless networking device to change from a standby or a sleep state to an active state when detecting that the wireless networking device receives the trigger signal, wherein the wireless networking device does not perform wireless communication with the Internet when in the standby or sleep state. Wireless communication with the Internet when in the working state; detecting whether the wireless networking device reaches the preset triggering sleep condition by the second detecting module 26; detecting, by the second control module 28, that the wireless networking device reaches the preset triggering sleep condition In this case, the wireless networking device is controlled to change from a working state to a standby or a sleep state. The control device of the wireless networking device of the embodiment solves the technical problem that the wireless networking device using the battery in the related art has a short battery consumption time due to a large power consumption in the wireless communication process, and reduces the consumption of the wireless communication process. The battery power of the wireless networking device, thereby realizing the technical effect of prolonging the battery life of the wireless networking device and improving the user experience.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the descriptions of the various embodiments are different, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed technical contents may be implemented in other manners. The device embodiments described above are only schematic. For example, the division of the unit may be a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.

Claims (10)

  1. 一种无线联网设备的控制方法,其中,包括:A method for controlling a wireless networked device, comprising:
    检测无线联网设备是否接收到触发信号,其中,所述触发信号用于触发所述无线联网设备由待机或者休眠状态转变为工作状态;Detecting whether the wireless networking device receives the trigger signal, where the trigger signal is used to trigger the wireless networking device to transition from the standby or sleep state to the working state;
    在检测到所述无线联网设备接收到所述触发信号的情况下,控制所述无线联网设备由待机或者休眠状态转变为工作状态,其中,所述无线联网设备处于待机或者休眠状态时与互联网不进行无线通信,处于工作状态时与所述互联网进行无线通信;After detecting that the wireless networking device receives the trigger signal, controlling the wireless networking device to transition from a standby or a sleep state to an active state, wherein the wireless networking device is in a standby or dormant state and does not communicate with the Internet Performing wireless communication, and performing wireless communication with the Internet while in a working state;
    检测所述无线联网设备是否达到预设的触发休眠条件;以及Detecting whether the wireless networking device reaches a preset trigger sleep condition;
    在检测到所述无线联网设备达到所述预设的触发休眠条件的情况下,控制所述无线联网设备由工作状态转变为待机或者休眠状态。And detecting that the wireless networking device changes from a working state to a standby or a sleep state, when detecting that the wireless networking device reaches the preset triggering sleep condition.
  2. 根据权利要求1所述的方法,其中,所述无线联网设备处于工作状态时与所述互联网进行无线通信包括:The method of claim 1 wherein wirelessly communicating with the Internet while the wireless networking device is in an active state comprises:
    建立所述无线联网设备与无线路由之间的通信连接;Establishing a communication connection between the wireless networking device and a wireless router;
    通过所述无线路由接收来自所述互联网的控制指令;Receiving, by the wireless routing, a control instruction from the Internet;
    判断所述无线联网设备是否成功接收到所述控制指令;Determining whether the wireless networking device successfully receives the control instruction;
    在所述无线联网设备成功接收所述控制指令时,通过所述无线路由向所述互联网发送反馈消息,其中,所述反馈消息用于通知所述互联网所述无线联网设备成功接收到所述控制指令,所述互联网在接收到所述反馈消息后删除所述控制指令或者将所述控制指令进行标记。Sending, by the wireless routing, a feedback message to the Internet when the wireless networking device successfully receives the control instruction, wherein the feedback message is used to notify the wireless network device to successfully receive the control And instructing, by the Internet, to delete the control instruction or mark the control instruction after receiving the feedback message.
  3. 根据权利要求2所述的方法,其中,在通过所述无线路由向所述互联网发送反馈消息之后,所述方法还包括:The method of claim 2, wherein after the sending the feedback message to the Internet via the wireless routing, the method further comprises:
    接收用户操作对应的操作信息;Receiving operation information corresponding to the user operation;
    判断所述操作信息是否符合所述控制指令中的预设条件;Determining whether the operation information meets a preset condition in the control instruction;
    在所述操作信息符合所述控制指令中的预设条件时,控制所述无线联网设备执行所述控制指令中的预设动作;Controlling, by the wireless networking device, a preset action in the control instruction when the operation information meets a preset condition in the control instruction;
    在所述操作信息不符合所述控制指令中的预设条件时,不执行所述预设动作, 并输出错误提醒信息;以及When the operation information does not meet the preset condition in the control instruction, the preset action is not performed, And output an error reminder; and
    通过所述无线路由将所述操作信息和/或所述用户操作对应的执行结果发送至所述互联网。The operation information and/or the execution result corresponding to the user operation are transmitted to the Internet through the wireless route.
  4. 根据权利要求2所述的方法,其中,通过所述无线路由接收来自所述互联网的控制指令包括:The method of claim 2 wherein receiving control instructions from said internet via said wireless route comprises:
    所述无线联网设备向所述无线路由发送请求消息,其中,所述请求消息为用于请求所述互联网下发所述控制指令的消息;The wireless networking device sends a request message to the wireless route, where the request message is a message for requesting the Internet to send the control instruction;
    接收所述无线路由发送的所述控制指令,其中,所述控制指令预先存储在所述互联网或者由所述互联网下发并缓存在所述无线路由中,所述无线路由接收到所述请求消息后向所述无线联网设备发送所述控制指令;以及Receiving the control instruction sent by the wireless router, where the control instruction is pre-stored in the Internet or is sent by the Internet and cached in the wireless route, and the wireless route receives the request message Transmitting the control instruction to the wireless networking device; and
    接收所述无线路由发送的发送完成消息,其中,所述发送完成消息用于通知所述无线联网设备所述控制指令已经发送完成。Receiving a transmission completion message sent by the wireless router, wherein the sending completion message is used to notify the wireless networking device that the control instruction has been sent.
  5. 根据权利要求1所述的方法,其中,检测所述无线联网设备是否达到预设的触发休眠条件包括以下至少之一:The method of claim 1, wherein detecting whether the wireless networking device reaches a preset triggering sleep condition comprises at least one of the following:
    检测所述无线联网设备与互联网的无线通信过程是否结束;Detecting whether the wireless communication process of the wireless networking device and the Internet ends;
    检测连续未接收到用户操作对应的操作信息的时间是否超过预设时间;Detecting whether the time for continuously receiving the operation information corresponding to the user operation exceeds a preset time;
    检测所述无线联网设备是否已反锁;Detecting whether the wireless networking device is locked;
    检测是否接收到用户输入的触发休眠信号。It is detected whether a trigger sleep signal input by the user is received.
  6. 一种无线联网设备的控制装置,其中,包括:A control device for a wireless networked device, comprising:
    第一检测模块,被设置为检测无线联网设备是否接收到触发信号,其中,所述触发信号用于触发所述无线联网设备由待机或者休眠状态转变为工作状态;The first detecting module is configured to detect whether the wireless networking device receives the trigger signal, where the trigger signal is used to trigger the wireless networking device to transition from the standby or sleep state to the working state;
    第一控制模块,被设置为在检测到所述无线联网设备接收到所述触发信号的情况下,控制所述无线联网设备由待机或者休眠状态转变为工作状态,其中,所述无线联网设备处于待机或者休眠状态时与互联网不进行无线通信,处于工作状态时与所述互联网进行无线通信;a first control module configured to control the wireless networking device to transition from a standby or a sleep state to an active state in a case where the wireless networking device is detected to receive the trigger signal, wherein the wireless networking device is No wireless communication with the Internet during standby or hibernation, and wireless communication with the Internet when in working state;
    第二检测模块,被设置为检测所述无线联网设备是否达到预设的触发休眠条件;以及a second detecting module, configured to detect whether the wireless networking device reaches a preset triggering sleep condition;
    第二控制模块,被设置为在检测到所述无线联网设备达到所述预设的触发休 眠条件时,控制所述无线联网设备由工作状态转变为待机或者休眠状态。a second control module, configured to detect that the wireless networking device reaches the preset trigger In the sleep condition, the wireless networking device is controlled to transition from a working state to a standby or a sleep state.
  7. 根据权利要求6所述的装置,其中,所述无线联网设备处于工作状态时通过以下模块实现与所述互联网进行无线通信:The apparatus of claim 6, wherein the wireless networking device is in an active state to enable wireless communication with the Internet through the following modules:
    建立模块,被设置为建立所述无线联网设备与无线路由之间的通信连接;Establishing a module configured to establish a communication connection between the wireless networking device and a wireless router;
    第一接收模块,被设置为通过所述无线路由接收来自所述互联网的控制指令;a first receiving module configured to receive a control command from the Internet via the wireless router;
    第一判断模块,被设置为判断所述无线联网设备是否成功接收到所述控制指令;The first determining module is configured to determine whether the wireless networking device successfully receives the control instruction;
    第一发送模块,被设置为在所述无线联网设备成功接收所述控制指令时,通过所述无线路由向所述互联网发送反馈消息,其中,所述反馈消息用于通知所述互联网所述无线联网设备成功接收到所述控制指令,所述互联网在接收到所述反馈消息后删除所述控制指令或者将所述控制指令进行标记。a first sending module, configured to send a feedback message to the Internet by using the wireless route when the wireless networking device successfully receives the control instruction, where the feedback message is used to notify the wireless The networked device successfully receives the control command, and the Internet deletes the control command or marks the control command after receiving the feedback message.
  8. 根据权利要求7所述的装置,其中,所述装置还包括:The apparatus of claim 7 wherein said apparatus further comprises:
    第二接收模块,被设置为接收用户操作对应的操作信息;a second receiving module, configured to receive operation information corresponding to the user operation;
    第二判断模块,被设置为判断所述操作信息是否符合所述控制指令中的预设条件;a second determining module, configured to determine whether the operation information meets a preset condition in the control instruction;
    第三控制模块,被设置为在所述操作信息符合所述控制指令中的预设条件时,控制所述无线联网设备执行所述控制指令中的预设动作;The third control module is configured to control the wireless networking device to perform a preset action in the control instruction when the operation information meets a preset condition in the control instruction;
    输出模块,被设置为在所述操作信息不符合所述控制指令中的预设条件时,不执行所述预设动作,并输出错误提醒信息;以及The output module is configured to not perform the preset action and output an error reminding message when the operation information does not meet a preset condition in the control instruction;
    第二发送模块,被设置为通过所述无线路由将所述操作信息和/或所述用户操作对应的执行结果发送至所述互联网。The second sending module is configured to send the operation information and/or the execution result corresponding to the user operation to the Internet through the wireless routing.
  9. 根据权利要求7所述的装置,其中,所述第一接收模块包括:The apparatus of claim 7, wherein the first receiving module comprises:
    第一子发送模块,被设置为所述无线联网设备向所述无线路由发送请求消息,其中,所述请求消息为用于请求所述互联网下发所述控制指令的消息;a first sub-transmission module, configured to send, by the wireless networking device, a request message to the wireless router, where the request message is a message for requesting the Internet to send the control instruction;
    第一子接收模块,被设置为接收所述无线路由发送的所述控制指令,其中,所述控制指令预先存储在所述互联网或者由所述互联网下发并缓存在所述无线路由中,所述无线路由接收到所述请求消息后向所述无线联网设备发送所述控制指令;以及 a first sub-receiving module, configured to receive the control command sent by the wireless route, where the control instruction is pre-stored in the Internet or sent by the Internet and cached in the wireless router, where Transmitting, by the wireless router, the control command to the wireless networking device after receiving the request message;
    第二子接收模块,被设置为接收所述无线路由发送的发送完成消息,其中,所述发送完成消息用于通知所述无线联网设备所述控制指令已经发送完成。The second sub-receiving module is configured to receive a transmission completion message sent by the wireless router, where the sending completion message is used to notify the wireless networking device that the control instruction has been sent.
  10. 根据权利要求6所述的装置,其中,所述第一检测模块包括以下至少之一:The apparatus of claim 6, wherein the first detection module comprises at least one of:
    第一子检测模块,被设置为检测所述无线联网设备与互联网的无线通信过程是否结束;a first sub-detection module configured to detect whether a wireless communication process of the wireless networking device and the Internet ends;
    第二子检测模块,被设置为检测连续未接收到用户操作对应的操作信息的时间是否超过预设时间;The second sub-detection module is configured to detect whether the time for continuously receiving the operation information corresponding to the user operation exceeds a preset time;
    第三子检测模块,被设置为检测所述无线联网设备是否已反锁;a third sub-detection module configured to detect whether the wireless networking device has been locked;
    第四子检测模块,被设置为检测是否接收到用户输入的触发休眠信号。 The fourth sub-detection module is configured to detect whether a trigger input signal of the user input is received.
PCT/CN2016/106778 2016-02-25 2016-11-22 Control method and device for wireless networking apparatus WO2017143809A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610105163.5A CN105722197A (en) 2016-02-25 2016-02-25 Method and device for controlling wireless networking device
CN201610105163.5 2016-02-25

Publications (1)

Publication Number Publication Date
WO2017143809A1 true WO2017143809A1 (en) 2017-08-31

Family

ID=56156118

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/106778 WO2017143809A1 (en) 2016-02-25 2016-11-22 Control method and device for wireless networking apparatus

Country Status (2)

Country Link
CN (1) CN105722197A (en)
WO (1) WO2017143809A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540356A (en) * 2018-03-30 2018-09-14 联想(北京)有限公司 Processing method and processing equipment
CN109038703A (en) * 2018-06-20 2018-12-18 南京云家物联网研究院有限公司 Low-power consumption long standby battery management system and its working method for smart lock
CN113965607A (en) * 2021-08-30 2022-01-21 广东南方通信建设有限公司 NB-IOT-based equipment intelligent control method, IOT control platform and system

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105722197A (en) * 2016-02-25 2016-06-29 张泽 Method and device for controlling wireless networking device
CN108199918B (en) * 2017-12-28 2021-06-15 Tcl家用电器(合肥)有限公司 Method and system for testing washing machine
CN108834114A (en) * 2018-06-27 2018-11-16 深圳市银河风云网络系统股份有限公司 A kind of Internet of Things communication means, equipment, base station and system
CN111007936B (en) * 2018-10-08 2023-07-25 盒马(中国)有限公司 Terminal equipment in physical store and information processing method, device and system thereof
CN111031595B (en) * 2019-12-17 2022-07-05 北京必创科技股份有限公司 Wireless dormancy control system and method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930625A (en) * 2012-11-16 2013-02-13 珠海天威技术开发有限公司 Gate lock control system and gate lock control method
CN102955453A (en) * 2011-08-19 2013-03-06 比亚迪股份有限公司 Remote control system and remote control method for flameout automobiles
CN103871135A (en) * 2014-03-07 2014-06-18 深圳市同创新佳科技有限公司 Wireless control method and system of electronic lock
CN104217478A (en) * 2014-08-13 2014-12-17 王波 Hotel Bluetooth access control intelligent management method
CN104847176A (en) * 2015-04-23 2015-08-19 张泽 Electronic lock controlling method and device
CN104881909A (en) * 2014-02-28 2015-09-02 上海斐讯数据通信技术有限公司 Intelligent access control system and method thereof
CN205121666U (en) * 2015-10-10 2016-03-30 王颖 Remote control's intelligent lock
CN105722197A (en) * 2016-02-25 2016-06-29 张泽 Method and device for controlling wireless networking device
CN205486380U (en) * 2016-02-25 2016-08-17 张泽 Wireless networking device and control system thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103886658B (en) * 2014-01-28 2016-04-13 北京中科虹霸科技有限公司 Based on distributed Internet of Things lock device and the method for unlocking thereof of multimodal Biometrics
CN104574598B (en) * 2014-12-29 2018-02-09 托斯卡尼(上海)酒店管理有限公司 A kind of centralized Control method and system of intelligent door lock

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955453A (en) * 2011-08-19 2013-03-06 比亚迪股份有限公司 Remote control system and remote control method for flameout automobiles
CN102930625A (en) * 2012-11-16 2013-02-13 珠海天威技术开发有限公司 Gate lock control system and gate lock control method
CN104881909A (en) * 2014-02-28 2015-09-02 上海斐讯数据通信技术有限公司 Intelligent access control system and method thereof
CN103871135A (en) * 2014-03-07 2014-06-18 深圳市同创新佳科技有限公司 Wireless control method and system of electronic lock
CN104217478A (en) * 2014-08-13 2014-12-17 王波 Hotel Bluetooth access control intelligent management method
CN104847176A (en) * 2015-04-23 2015-08-19 张泽 Electronic lock controlling method and device
CN205121666U (en) * 2015-10-10 2016-03-30 王颖 Remote control's intelligent lock
CN105722197A (en) * 2016-02-25 2016-06-29 张泽 Method and device for controlling wireless networking device
CN205486380U (en) * 2016-02-25 2016-08-17 张泽 Wireless networking device and control system thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540356A (en) * 2018-03-30 2018-09-14 联想(北京)有限公司 Processing method and processing equipment
CN109038703A (en) * 2018-06-20 2018-12-18 南京云家物联网研究院有限公司 Low-power consumption long standby battery management system and its working method for smart lock
CN109038703B (en) * 2018-06-20 2023-07-04 南京云家物联网研究院有限公司 Low-power-consumption long-standby battery management system for intelligent lock and working method thereof
CN113965607A (en) * 2021-08-30 2022-01-21 广东南方通信建设有限公司 NB-IOT-based equipment intelligent control method, IOT control platform and system

Also Published As

Publication number Publication date
CN105722197A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
WO2017143809A1 (en) Control method and device for wireless networking apparatus
US10244478B2 (en) Systems and methods for controlling electronically operable access devices using WI-FI and radio frequency technology
CN205486380U (en) Wireless networking device and control system thereof
WO2017075952A1 (en) Method and device for controlling intelligent door lock, and intelligent door control system
CN103886658B (en) Based on distributed Internet of Things lock device and the method for unlocking thereof of multimodal Biometrics
CN104517338B (en) Distance entrance and its implementation based on wireless network
CN104240346B (en) A kind of intelligent anti-theft lock system based on intelligent mobile terminal interconnection
EP3779105B1 (en) Door lock, door lock control method
CN205942833U (en) Can be used to intelligent system of robot among estate management
CN106968525A (en) The remote control exchange method and system of a kind of intelligent door lock
CN106846561A (en) A kind of intelligent lock and the method for opening intelligent lock
CN107749097A (en) A kind of blue-tooth intelligence door lock awakening method and method for unlocking
CN103955968A (en) Compound security attendance device and system based on android platform
CN106548553A (en) Intelligent door lock control system
CN104865870A (en) Intelligent iris recognition gun locker control system
CN107481377A (en) A kind of visual intelligent lock system based on radio communication
CN109903446A (en) A kind of smart lock long-distance video exchange method
CN106761272A (en) A kind of intelligent anti-theft door
CN106097490A (en) A kind of intelligent lock, the door-locking system being made up of lockset and method for unlocking
CN107967731A (en) Door-locking system based on two-dimensional code scanning unlock
CN205563764U (en) Intelligent gate inhibition system
JP4274283B1 (en) ID signal transmission device provided with biometric authentication means
CN204557143U (en) A kind of intelligent iris recognition rifle cabinet control system
US20210209211A1 (en) Pin verification
CN107292998B (en) Hotel self-service check-in control system and method

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16891257

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16891257

Country of ref document: EP

Kind code of ref document: A1