WO2019119846A1 - Low power consumption device, keep-alive server, and message pushing method and system - Google Patents

Low power consumption device, keep-alive server, and message pushing method and system Download PDF

Info

Publication number
WO2019119846A1
WO2019119846A1 PCT/CN2018/102068 CN2018102068W WO2019119846A1 WO 2019119846 A1 WO2019119846 A1 WO 2019119846A1 CN 2018102068 W CN2018102068 W CN 2018102068W WO 2019119846 A1 WO2019119846 A1 WO 2019119846A1
Authority
WO
WIPO (PCT)
Prior art keywords
keep
message
alive
external event
data packet
Prior art date
Application number
PCT/CN2018/102068
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 WO2019119846A1 publication Critical patent/WO2019119846A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • 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
    • 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 low power consumption, and in particular, to a low power consumption device, a keep alive server, a message pushing method and a system.
  • ultra-low-power battery-powered products are considered for power consumption.
  • the main control power supply will be turned off, and WiFi enters a low-power mode, and the heartbeat is sent intermittently with the background keep-alive server to maintain connection.
  • the low-power device is triggered by an external event, such as the doorbell button being pressed, the mobile alarm is detected, etc., the message needs to be pushed to the user's smartphone.
  • the main control when an external event is detected, the main control needs to be woken up, after the main control wakes up, and then reconnected to the push server, after obtaining the authorization of the push server, the message is sent to the push server, and the server is pushed again. Send the message to the user's smartphone.
  • the present invention provides a low power consumption device, a keep alive server, a message pushing method and a system, and solves the problem that the message pushing time of the low power consumption device is too long and the message pushing is unstable.
  • a low power consumption device provided by the present invention includes:
  • a micro processing unit configured to detect whether an external event is triggered when the low power consumption device is in a sleep state
  • a low-power WIFI module configured to: when an external event is triggered, push the external event trigger message to the keep-alive server through a keep-alive link;
  • the keep-alive link is a pre-established keep-alive link between the low-power device and the keep-alive server through a network transmission protocol.
  • a message pushing method provided by the present invention includes:
  • the external event trigger message is pushed to the keep-alive server through the keep-alive link;
  • the keep-alive link is a network transmission protocol between the low-power device and the keep-alive server in advance set up.
  • the keep-alive server provided by the present invention includes:
  • a receiving module configured to receive a specific data packet pushed by the low-power device, and determine whether the specific data packet is a heartbeat packet
  • a decryption module configured to: when the specific data packet is not a heartbeat packet, decrypt the data packet, and analyze a message type of the specific data packet;
  • a pushing module configured to transparently transmit the specific data packet to the push server according to the message type of the specific data packet.
  • Another message pushing method provided by the present invention includes:
  • the specific data packet is not a heartbeat packet, decrypting the data packet, and analyzing a message type of the specific data packet;
  • the specific data packet is transparently transmitted to the push server according to the message type of the specific data packet.
  • a message push system provided by the present invention includes the above low power consumption device and the above-mentioned keep-alive server, and further includes:
  • a push server configured to receive a specific data packet transparently transmitted by the keep-alive server, and push the specific data packet to the user end.
  • the time for the low-power device to push the detection message to the user end is increased to less than 1 second, which greatly improves the user experience.
  • the detection accuracy of the detection message is as high as 99.99%, and the hardware cost is not required, and the implementation cost is low, which greatly improves the user experience.
  • FIG. 1 is a schematic flowchart of a first embodiment of a message pushing method according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a message pushing method according to the present invention.
  • FIG. 3 is a schematic flowchart of a third embodiment of a message pushing method according to the present invention.
  • FIG. 4 is a schematic flowchart of a fourth embodiment of a message pushing method according to the present invention.
  • FIG. 5 is a schematic flowchart diagram of a fifth embodiment of a message pushing method according to the present invention.
  • FIG. 6 is a schematic flowchart of a sixth embodiment of a message pushing method according to the present invention.
  • FIG. 7 is a schematic structural diagram of a first embodiment of a low power consumption device according to the present invention.
  • FIG. 8 is a schematic structural diagram of a second embodiment of a low power consumption device according to the present invention.
  • FIG. 9 is a schematic structural diagram of an embodiment of a keep-alive server according to the present invention.
  • FIG. 10 is a schematic structural diagram of an embodiment of a message pushing system according to the present invention.
  • FIG. 11 is a schematic diagram of a push message in the prior art
  • FIG. 12 is a schematic diagram of an embodiment of a message push system push message according to the present invention.
  • FIG. 13 is a delay analysis diagram of message push according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of another embodiment of a message push system push message according to the present invention.
  • FIG. 1 is a schematic flowchart of a first embodiment of a message pushing method according to the present invention.
  • the message pushing method comprises the following steps:
  • step S101 when in the sleep state, detecting whether an external event is triggered;
  • step S102 when an external event is triggered, the external event trigger message is pushed to the keep-alive server through the keep-alive link.
  • the keep-alive link is established in advance between the low-power device and the keep-alive server by a network transmission protocol, so that the low-power device and the keep-alive server pass the keep-alive chain
  • the low power consumption device normally turns off the main control power of the low power consumption device when the low power consumption device is in sleep, in order to reduce power consumption.
  • the main control power is turned off, the low-power device cannot push the message to the client.
  • External event triggering generally includes the occurrence of a sudden event, such as when the low-power device is an intelligent low-power doorbell, then the external event trigger may be a doorbell press, and if the low-power device is a smart low-power camera,
  • the external event trigger can be a human body infrared sensor (PIR) trigger.
  • PIR human body infrared sensor
  • the process of pushing the message through the keep-alive link to the user side saves the process of waking up the main control power-on and the server authentication, saving time.
  • the message pushing method provided in this embodiment establishes a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol, so that the time for the low-power device to push the detection message to the user end is raised to less than 1 second. And the detection rate of the detection message is as high as 99.99%, and the hardware cost is not required, and the implementation cost is low, which greatly improves the user experience.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a message pushing method according to the present invention.
  • the message pushing method includes the following steps:
  • a keep-alive link is established between the low-power device and the keep-alive server by a Transmission Control Protocol (TCP) long connection or a User Datagram Protocol (UDP) short connection;
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • TCP transmission control protocol
  • UDP User Datagram Protocol
  • step S202 when the low power consumption device in the sleep state is triggered by an external event, the message is sent to the keep alive through the keep alive link and using Transmission Control Protocol (TCP) or User Datagram Protocol (UDP). server.
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • a keep-alive link is established between the low-power device and the keep-alive server by using a Transmission Control Protocol (TCP) or a User Datagram Protocol (UDP), so that the low-power device can push the detection message to the user.
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • the time of the terminal is increased to less than 1 second, and the push rate of the detection message is as high as 99.99%, and the hardware cost is not required, and the implementation cost is low, which greatly improves the user experience.
  • FIG. 3 is a schematic flowchart of a third embodiment of a message pushing method according to the present invention. Based on the foregoing embodiment shown in FIG. 1 or FIG. 2, a third embodiment of the message pushing method of the present invention is proposed.
  • the message is pushed to the keepalive through the keepalive link.
  • the method of the server specifically includes:
  • step S301 entering a sleep mode, and maintaining a long connection with the keep-alive server through the keep-alive link;
  • step S302 when in the sleep mode, detecting whether the external event is triggered, and triggering the wake-up mechanism when the external event is triggered;
  • step S303 after the wake-up mechanism is triggered, the real-time operating system RTOS is started and the secure digital input/output interface SDIO module is initialized, and the external event trigger message is pushed through the secure digital input/output interface SDIO.
  • TCP Transmission Control Protocol
  • the low-power device when the low-power device enters the sleep mode, it maintains a long connection with the keep-alive server through the keep-alive link.
  • the external event triggering generally includes the occurrence of a sudden event, such as when the low-power device is a smart low-power doorbell, then the external event triggering may be a doorbell press, and the low-power device is, for example, a smart low.
  • the external event trigger can be triggered by a human body infrared sensor (PIR).
  • the real-time operating system RTOS is started and the secure digital input/output interface SDIO module is initialized.
  • the main control initialization complex network protocol stack is omitted, only For simple initialization, the initialization process takes much less time.
  • the keep-alive link is established by using the Transmission Control Protocol (TCP).
  • TCP Transmission Control Protocol
  • the complex initialization of the network protocol stack is omitted, which saves the time of message push and improves the user experience.
  • FIG. 4 is a schematic flowchart diagram of a message pushing method according to a fourth embodiment of the present invention. Based on the foregoing embodiment shown in FIG. 1 or FIG. 2, a fourth embodiment of the message pushing method of the present invention is proposed.
  • the message is pushed to the keep-alive through the keep-alive link.
  • the method of the server specifically includes:
  • step S401 entering a sleep mode, and maintaining a long connection with the keep-alive server through the keep-alive link;
  • step S402 when in the sleep mode, detecting whether the external event is triggered, and pushing the external event trigger message through the general-purpose input/output interface GPIO when the external event is triggered.
  • UDP User Datagram Protocol
  • the low-power device When the low-power device enters sleep mode, it maintains a long connection with the keep-alive server through the keep-alive link.
  • the external event triggering generally includes the occurrence of a sudden event, such as when the low-power device is a smart low-power doorbell, then the external event triggering may be a doorbell press, and the low-power device is, for example, a smart low.
  • the external event trigger can be triggered by a human body infrared sensor (PIR).
  • the wake-up mechanism when an external event is triggered, the wake-up mechanism is not required to be triggered, and the external event trigger message can be directly pushed through the general-purpose input/output interface GPIO of the low-power device.
  • the keepalive link is established by using the User Datagram Protocol (UDP).
  • UDP User Datagram Protocol
  • the wake-up mechanism is not required, and the complex network protocol stack is initialized by the main control, which saves the message push time.
  • TCP Transmission Control Protocol
  • FIG. 5 is a schematic flowchart of a fifth embodiment of a message pushing method according to the present invention. Based on the embodiment shown in FIG. 3 or FIG. 4, a fifth embodiment of the message pushing method of the present invention is proposed.
  • the external event triggering message is sent to the keep-alive server through the keep-alive link.
  • step S501 the external event trigger message is received, and a specific data packet is constructed according to the message type of the external event trigger message;
  • step S502 the specific data packet is encrypted, and the encrypted specific data packet is pushed to the keep-alive server through the keep-alive link.
  • the external event trigger information needs to be processed in a certain manner to prevent mis-issue or missed transmission or The risk of being intercepted.
  • the message type of the external event trigger message includes a doorbell button trigger, a human body infrared sensor trigger, or a mobile alarm trigger.
  • the encryption method can be various data encryption methods such as hash algorithm encryption, MD5 algorithm encryption or AES encryption algorithm encryption.
  • the encrypted specific data packet is directly pushed to the keep-alive server through the keep-alive link, and in the prior art, the keep-alive link is not used for data transmission.
  • the message pushing method provided by the invention realizes the quickness of pushing a message to the keep-alive server through the keep-alive link, thereby greatly saving time.
  • FIG. 6 is a schematic flowchart diagram of a sixth embodiment of a message pushing method according to the present invention.
  • step S601 receiving a specific data packet pushed by the low power consumption device, and determining whether the specific data packet is a heartbeat packet;
  • step S602 when the specific data packet is not a heartbeat packet, the data packet is decrypted, and the message type of the specific data packet is analyzed;
  • step S603 the specific data packet is transparently transmitted to the push server according to the message type of the specific data packet.
  • the specific data packet is a heartbeat packet
  • the decryption operation is not performed, and the original state is continued to receive the data packet
  • the message type includes a doorbell button trigger, a human body infrared sensor trigger, or a mobile alarm trigger.
  • the message pushing method provided by the embodiment of the present invention decrypts the message type of a specific data packet, and then transparently transmits the message to the push server.
  • the transparent transmission process is very fast, and the whole process is transparent.
  • the latency of the message push process is very small, which greatly speeds up message push and provides security due to technical encryption.
  • FIG. 7 is a schematic structural diagram of a first embodiment of a low power consumption device according to the present invention.
  • the low-power device of the present invention includes a micro-processing unit 110 and a low-power WIFI module 120.
  • the micro-processing unit 110 can be, but not limited to, a micro-processing unit MCU.
  • the low-power WIFI module 120 can be, but not limited to, wireless with WIFI. Functional interface module.
  • the micro processing unit 110 is configured to detect whether an external event is triggered when the low power consumption device is in a sleep state.
  • the low power WIFI module 120 is configured to push the external event trigger message to the keep alive server through a keep alive link when an external event is triggered.
  • the keep-alive link is a pre-established keep-alive link between the low-power device and the keep-alive server through a network transmission protocol.
  • the low power consumption device normally turns off the main control power of the low power consumption device when the low power consumption device is in sleep, in order to reduce power consumption.
  • the main control power is turned off, the low-power device cannot push the message to the client.
  • External event triggering generally includes the occurrence of a sudden event, such as when the low-power device is an intelligent low-power doorbell, then the external event trigger may be a doorbell press, and if the low-power device is a smart low-power camera,
  • the external event trigger can be a human body infrared sensor (PIR) trigger.
  • PIR human body infrared sensor
  • the process of pushing the message through the keep-alive link to the user side saves the process of waking up the main control power-on and the server authentication, saving time.
  • the network transmission protocol is a transmission control protocol long connection TCP or a user datagram protocol UDP.
  • Transmission Control Protocol is a connection-oriented, reliable, byte stream-based transport layer communication protocol
  • UDP User Datagram Protocol
  • the low-power WIFI module 120 When the keep-alive link between the low-power WIFI module 120 and the keep-alive server is connected through a datagram protocol UDP, the low-power WIFI module 120 is further used when the low-power device is in a sleep state. Entering a sleep mode, and maintaining a long connection with the keep-alive server through the keep-alive link;
  • the micro processing unit 110 is further configured to detect whether the external event is triggered when the low power consumption WIFI module is in a sleep mode, and trigger the external event triggering by using a universal input/output interface GPIO when the external event is triggered. The message is sent to the low power WIFI module.
  • the low-power device When the low-power device enters sleep mode, it maintains a long connection with the keep-alive server through the keep-alive link.
  • the external event triggering generally includes the occurrence of a sudden event, such as when the low-power device is a smart low-power doorbell, then the external event triggering may be a doorbell press, and the low-power device is, for example, a smart low.
  • the external event trigger can be triggered by a human body infrared sensor (PIR).
  • the wake-up mechanism when an external event is triggered, the wake-up mechanism is not required to be triggered, and the external event trigger message can be directly pushed through the general-purpose input/output interface GPIO of the low-power device.
  • the low-power WIFI module 120 is further configured to receive the external event trigger message, construct a specific data packet according to the message type of the external event trigger message, encrypt the specific data packet, and The encrypted specific data packet is pushed to the keep-alive server through the keep-alive link.
  • the external event trigger information needs to be processed in a certain manner to prevent mis-issue or missed transmission or The risk of being intercepted.
  • the message type of the external event trigger message includes a doorbell button trigger, a human body infrared sensor trigger, or a mobile alarm trigger.
  • the encryption method can be various data encryption methods such as hash algorithm encryption, MD5 algorithm encryption or AES encryption algorithm encryption.
  • the encrypted specific data packet is directly pushed to the keep-alive server through the keep-alive link, and in the prior art, the keep-alive link is not used for data transmission.
  • the low-power device provided by the present invention establishes a protection link with the keep-alive server, and establishes a keep-alive link by using the user datagram protocol UDP as a network transmission protocol, so that the low-power device pushes the detection message to the user terminal. Increased to less than 1 second, and the detection accuracy of the detection message is as high as 99.99%, and no hardware cost is required, and the implementation cost is low, which greatly improves the user experience.
  • FIG. 8 is a schematic structural diagram of a second embodiment of a low power consumption device according to the present invention.
  • the low-power device of the present invention includes a micro-processing unit 110', a low-power WIFI module 120', and a main control unit 130.
  • the micro-processing unit 110' may be, but not limited to, a micro-processing unit MCU, and a low-power WIFI module 120'. It can be, but is not limited to, an interface module having a wireless function such as WIFI, and the main control unit 130 has a control function.
  • the micro processing unit 110' is configured to detect whether an external event is triggered when the low power consumption device is in a sleep state.
  • the low power WIFI module 120' is configured to push the external event trigger message to the keep alive server through a keep alive link when an external event is triggered.
  • the keep-alive link is a pre-established keep-alive link between the low-power device and the keep-alive server through a network transmission protocol.
  • the low power consumption device normally turns off the main control power of the low power consumption device when the low power consumption device is in sleep, in order to reduce power consumption.
  • the main control power is turned off, the low-power device cannot push the message to the client.
  • external event triggering generally includes the occurrence of a sudden event, such as when the low-power device is a smart low-power doorbell, then the external event trigger can be a doorbell press, and the low-power device is a smart low-power device.
  • the external event trigger can be triggered by the human body infrared sensor (PIR).
  • the process of pushing the message through the keep-alive link to the user side saves the process of waking up the main control power-on and the server authentication, saving time.
  • the network transmission protocol is a transmission control protocol long connection TCP or a user datagram protocol UDP.
  • Transmission Control Protocol is a connection-oriented, reliable, byte stream-based transport layer communication protocol
  • UDP User Datagram Protocol
  • the low-power WIFI module 120' When the keep-alive link between the low-power device and the keep-alive server is connected through a transmission control protocol TCP, the low-power WIFI module 120' is also used when the low-power device is in a sleep state. Entering a sleep mode and maintaining a long connection with the keep-alive server through the keep-alive link;
  • the micro processing unit 110' is further configured to detect whether the external event is triggered when the low power consumption WIFI module 120' is in a sleep mode, and wake up the main control unit 130 when an external event is triggered;
  • the main control unit 130 is configured to start a real-time operating system RTOS and initialize a secure digital input/output interface SDIO module after being woken up, and transmit the external event trigger message to the low power through the secure digital input/output interface SDIO.
  • the WIFI module 120' is consumed.
  • TCP Transmission Control Protocol
  • the low-power device When the low-power device enters sleep mode, it maintains a long connection with the keep-alive server through the keep-alive link.
  • the external event triggering generally includes the occurrence of a sudden event, such as when the low-power device is a smart low-power doorbell, then the external event triggering may be a doorbell press, and the low-power device is, for example, a smart low.
  • the external event trigger can be triggered by a human body infrared sensor (PIR).
  • the real-time operating system RTOS is started and the secure digital input/output interface SDIO module is initialized.
  • the main control initialization complex network protocol stack is omitted, only For simple initialization, the initialization process takes much less time.
  • the low-power WIFI module 120' is further configured to receive the external event trigger message, construct a specific data packet according to the message type of the external event trigger message, encrypt the specific data packet, and The encrypted specific data packet is pushed to the keep-alive server through the keep-alive link.
  • the external event trigger information needs to be processed in a certain manner to prevent mis-issue or missed transmission or The risk of being intercepted.
  • the message type of the external event trigger message includes a doorbell button trigger, a human body infrared sensor trigger, or a mobile alarm trigger.
  • the encryption method can be various data encryption methods such as hash algorithm encryption, MD5 algorithm encryption or AES encryption algorithm encryption.
  • the encrypted specific data packet is directly pushed to the flower-saved server through the keep-alive link, and in the prior art, the keep-alive link is not used for data transmission.
  • the low-power device provided by the present invention establishes a protection link with the keep-alive server, and establishes a keep-alive link by using the transmission control protocol TCP as a network transmission protocol, so that the time for the low-power device to push the detection message to the user end is increased. It is less than 1 second, and the detection accuracy of the detection message is as high as 99.99%, and the hardware cost is not required, and the implementation cost is low, which greatly improves the user experience.
  • FIG. 9 is a schematic structural diagram of an embodiment of a keep-alive server according to the present invention.
  • the keep-alive server includes a receiving module 210, a decrypting module 220, and a pushing module 230.
  • the receiving module 210 is configured to receive a specific data packet pushed by the low power consumption device, and determine whether the specific data packet is a heartbeat packet;
  • the decryption module 220 is configured to decrypt the data packet when the specific data packet is not a heartbeat packet, and analyze a message type of the specific data packet;
  • the pushing module 230 is configured to transparently transmit the specific data packet to the push server according to the message type of the specific data packet.
  • the decryption module 220 does not perform the decryption operation, and the receiving module 210 maintains the original state to continue receiving the data packet, and the message type includes a doorbell button trigger, a human body infrared sensor trigger, or a mobile device. The alarm is triggered.
  • the keep-alive server decrypts the message type of the specific data packet, and then transparently transmits the message to the push server. Considering that the keep-alive server and the push server are in the same physical server group, the transparent transmission process is very fast, and the whole process is transparent. The latency of the message push process is very small, which greatly speeds up message push and provides security due to technical encryption.
  • FIG. 10 is a schematic structural diagram of an embodiment of a message pushing system according to the present invention.
  • the message pushing system in the embodiment of the present invention includes a low power consumption device 10, a keep alive server 20, and a push server 30.
  • the low-power device 10 and the keep-alive server 20 establish a keep-alive link through a network transmission protocol.
  • the external event triggering generally includes the occurrence of a sudden event.
  • the external event triggering may be a doorbell pressing, and the low power consumption device 10 is a smart low.
  • the external event trigger can be triggered by a human body infrared sensor (PIR).
  • the process of pushing the message through the keep-alive link to the user side saves the process of waking up the main control power-on and the server authentication, saving time.
  • the low-power device 10 is configured to detect whether an external event is triggered when in a sleep state, and when the external event is triggered, push the external event trigger message to the keep-alive server 20 through the keep-alive link;
  • the network transmission protocol is a transmission control protocol long connection TCP or a user datagram protocol UDP.
  • the keep-alive server 20 is configured to receive a push message including the external event trigger message, and transparently transmit the push message to the push server 30;
  • keep-alive server 20 and the push server 30 are in the same physical server group, the transparent transmission process is very fast, and the delay of the entire message pushing process is very small.
  • the push server 30 is configured to receive the push message and push the push message to the client 40.
  • the push server 30 can be a push server for a public service provided by a well-known enterprise or a message push server for other enterprises to serve the enterprise.
  • the client 40 can be, but is not limited to, a user terminal such as a smart phone, a smart watch, a smart bracelet, or other smart terminal device.
  • the message pushing system provided by the embodiment of the present invention establishes a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol, so that the time for the low-power device to push the detection message to the user end is raised to less than 1. Seconds, and the detection message push rate is as high as 99.99%, and no hardware cost is required, and the implementation cost is low, which greatly improves the user experience.
  • FIG. 11 is a schematic diagram of a push message in the prior art.
  • the micro processing unit MCU detects an external event trigger.
  • the micro processing unit MCU powers up the main control unit
  • the master starts to restore the low-power Wi-Fi from the low-power mode to the normal working mode
  • the main control After the main control initializes the network protocol stack, it connects to the push server, performs authentication processing, and obtains push authorization;
  • the master pushes the message to the push server
  • the push server will push the message to the client
  • the client receives the push message.
  • the complete network protocol stack needs to be initialized after the master is started and the WiFi needs to be restored to the normal working mode, even if the optimized RTOS system is used, it takes up to 800 ms or more, after the main control initialization is completed. Need to reconnect to the push server and need to have an authentication process, the entire time will also exceed 1.6s, the delay of the entire message push using the program is about 3s.
  • the success rate of the message push is not guaranteed. After the external event is triggered, the host controller needs to wake up and reconnect to the server. Due to the unreliable nature of the network, the success rate of message push is not guaranteed, and there is a risk of losing the message.
  • FIG. 12 is a schematic diagram of an embodiment of a message push system push message according to the present invention.
  • the process of pushing a message by the message pushing system in the embodiment of the present invention includes:
  • the micro processor unit MCU detects an external event trigger.
  • the MCU of the micro processing unit powers up the main control unit, the main control starts, and the necessary real-time operating system RTOS is started and the SDIO module is initialized;
  • the master notifies the low-power Wi-Fi module to send a specific data packet to the keep-alive server;
  • the keep-alive server will be transparently transmitted to the push server
  • the push server sends a message to the client
  • the client receives the push message.
  • the new scheme eliminates the process of initializing a complex network protocol stack and establishing a connection and authentication with the push server, and at the same time, because the keep-alive server and the push server are in the same physical server.
  • the transparent transmission process is very fast, and the delay of the entire message pushing process is very small.
  • APN/GCM is the push server of the enterprise, and the smart phone is the client.
  • the total delay of the message push using the present invention is about 720 ms, and the message push can be reached for 1 s, which greatly saves the time for message push.
  • the embodiment of the present invention establishes a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol, so that the time for the low-power device to push the detection message to the user end is raised to Less than 1 second, and the detection accuracy of the detection message is as high as 99.99%, and no hardware cost is required, and the implementation cost is low, which greatly improves the user experience.
  • FIG. 14 is a schematic diagram of another embodiment of a message push system push message according to the present invention.
  • the process of pushing a message by the message pushing system in the embodiment of the present invention includes:
  • the micro processing unit MCU detects an external event trigger, and the micro processing unit MCU sends a specific data packet to the low power Wi-Fi module;
  • the master notifies the low-power Wi-Fi module to send a specific data packet to the keep-alive server;
  • the keep-alive server will be transparently transmitted to the push server
  • the push server sends a message to the client
  • the client receives the push message.
  • the new scheme eliminates the process of initializing a complex network protocol stack, mastering the power-on and establishing a connection and authentication with the push server, and at the same time
  • the push server is in the same physical server group.
  • the transparent transmission process is very fast, and the delay of the entire message push process is very small.
  • the embodiment of the present invention establishes a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol, so that the time for the low-power device to push the detection message to the user end is raised to Less than 1 second, and the detection accuracy of the detection message is as high as 99.99%, and no hardware cost is required, and the implementation cost is low, which greatly improves the user experience.
  • the message pushing method provided by the embodiment of the present invention establishes a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol, so that the time for the low-power device to push the detection message to the user end is raised to less than 1. Seconds, and the detection message push rate is as high as 99.99%, and no hardware cost is required, and the implementation cost is low, which greatly improves the user experience.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)
  • Small-Scale Networks (AREA)

Abstract

Disclosed are a low power consumption device, a keep-alive server, and a message pushing method and system. The message pushing method comprises: detecting whether an external event is triggered or not in a dormant state; and if the external event is triggered, pushing an external event triggering message to the keep-alive server by means of a keep-alive link. The keep-alive link is established between the low power consumption device and the keep-alive server in advance by means of a network transmission protocol. According to the low power consumption device, the keep-alive server, and the message pushing method and system, the time that the low power consumption device pushes a detection message to a client is reduced to be less than 1 second, the pushing accuracy of the detection message can reach 99.99%, hardware cost is not needed, the implementation cost is low, and the user experience is improved greatly.

Description

一种低功耗设备、保活服务器、消息推送方法及系统Low-power device, keep-alive server, message push method and system 技术领域Technical field
本发明涉及低功耗领域,尤其涉及一种低功耗设备、保活服务器、消息推送方法及系统。The present invention relates to the field of low power consumption, and in particular, to a low power consumption device, a keep alive server, a message pushing method and a system.
背景技术Background technique
目前,超低功耗电池供电的产品出于功耗考虑,在休眠状态下主控电源会关掉,同时WiFi进入低功耗模式,间隙性地跟后台保活服务器之间发送心跳,以维持连接。这种情况下,如果低功耗设备被外部事件触发,如门铃按键被按下、侦测到移动报警等,需要推送消息到用户的智能手机。At present, ultra-low-power battery-powered products are considered for power consumption. In the sleep state, the main control power supply will be turned off, and WiFi enters a low-power mode, and the heartbeat is sent intermittently with the background keep-alive server to maintain connection. In this case, if the low-power device is triggered by an external event, such as the doorbell button being pressed, the mobile alarm is detected, etc., the message needs to be pushed to the user's smartphone.
现有的技术方案中,当侦测到外部事件时,需要唤醒主控,主控唤醒后,再重新连接到推送服务器,取得推送服务器授权后,再将消息发送到推送服务器上,推送服务器再将消息发送到用户的智能手机上。In the existing technical solution, when an external event is detected, the main control needs to be woken up, after the main control wakes up, and then reconnected to the push server, after obtaining the authorization of the push server, the message is sent to the push server, and the server is pushed again. Send the message to the user's smartphone.
但是,现有的推送消息的方法存在以下缺陷:However, existing methods of pushing messages have the following drawbacks:
(1)整个消息推送过程,由于涉及到主控启动的时间、服务器连接鉴权的时间,消息发送的时间,从事件发生到手机接收到消息的延时会超过3s,对于低功耗智能产品而言,非常影响用户体验;(1) The whole message push process, because it involves the time when the master starts, the time when the server is connected for authentication, the time when the message is sent, the delay from the event to the time the message is received by the mobile phone will exceed 3s, for low-power smart products. In terms of it, it greatly affects the user experience;
(2)由于外部事件触发后需要唤醒主控然后重新建立网络连接并联接服务器,又因为网络环境的不可靠特性,使得消息推送的成功率没有保障,存在丢失消息的风险。(2) Since the external event triggers the need to wake up the master and then re-establish the network connection and connect to the server, and because of the unreliable nature of the network environment, the success rate of message push is not guaranteed, and there is a risk of losing the message.
发明内容Summary of the invention
为了克服现有技术的不足,本发明提供了一种低功耗设备、保活服务器、消息推送方法及系统,在于解决低功耗设备的消息推送时间过长以及消息推送不稳定的问题。In order to overcome the deficiencies of the prior art, the present invention provides a low power consumption device, a keep alive server, a message pushing method and a system, and solves the problem that the message pushing time of the low power consumption device is too long and the message pushing is unstable.
本发明提供的一种低功耗设备包括:A low power consumption device provided by the present invention includes:
微处理单元,用于在所述低功耗设备处于休眠状态时,检测外部事件是否触发;a micro processing unit, configured to detect whether an external event is triggered when the low power consumption device is in a sleep state;
低功耗WIFI模块,用于当有外部事件触发时,通过保活链路将所述外部事件触发消息推送给保活服务器;a low-power WIFI module, configured to: when an external event is triggered, push the external event trigger message to the keep-alive server through a keep-alive link;
其中,所述保活链路是预先在所述低功耗设备与所述保活服务器之间通过网络传输协议建立保活链路。The keep-alive link is a pre-established keep-alive link between the low-power device and the keep-alive server through a network transmission protocol.
本发明提供的一种消息推送方法包括:A message pushing method provided by the present invention includes:
处于休眠状态时,检测外部事件是否触发;When it is in the sleep state, it detects whether an external event is triggered;
当有外部事件触发时,通过保活链路将所述外部事件触发消息推送给保活服务器;所述 保活链路是预先在低功耗设备与所述保活服务器之间通过网络传输协议建立。When an external event is triggered, the external event trigger message is pushed to the keep-alive server through the keep-alive link; the keep-alive link is a network transmission protocol between the low-power device and the keep-alive server in advance set up.
本发明提供的保活服务器包括:The keep-alive server provided by the present invention includes:
接收模块,用于接收低功耗设备推送的特定数据包,并判断所述特定数据包是否为心跳包;a receiving module, configured to receive a specific data packet pushed by the low-power device, and determine whether the specific data packet is a heartbeat packet;
解密模块,用于当所述特定数据包不是心跳包时,对所述数据包进行解密,并分析所述特定数据包的消息类型;a decryption module, configured to: when the specific data packet is not a heartbeat packet, decrypt the data packet, and analyze a message type of the specific data packet;
推送模块,用于依据所述特定数据包的消息类型将所述特定数据包透传给推送服务器。And a pushing module, configured to transparently transmit the specific data packet to the push server according to the message type of the specific data packet.
本发明提供的另一个消息推送方法包括:Another message pushing method provided by the present invention includes:
接收低功耗设备推送的特定数据包,并判断所述特定数据包是否为心跳包;Receiving a specific data packet pushed by the low power device, and determining whether the specific data packet is a heartbeat packet;
当所述特定数据包不是心跳包时,对所述数据包进行解密,并分析所述特定数据包的消息类型;When the specific data packet is not a heartbeat packet, decrypting the data packet, and analyzing a message type of the specific data packet;
依据所述特定数据包的消息类型将所述特定数据包透传给推送服务器。The specific data packet is transparently transmitted to the push server according to the message type of the specific data packet.
本发明提供的一个消息推送系统包括上述低功耗设备以及上述的保活服务器,还包括:A message push system provided by the present invention includes the above low power consumption device and the above-mentioned keep-alive server, and further includes:
推送服务器,用于接收所述保活服务器透传的特定数据包,并将所述特定数据包推送给用户端。And a push server, configured to receive a specific data packet transparently transmitted by the keep-alive server, and push the specific data packet to the user end.
相比现有技术,本发明的有益效果在于:Compared with the prior art, the beneficial effects of the present invention are:
(1)能够使得低功耗设备将侦测消息推送到用户端的时间提升到小于1秒,大大提高了用户体验。(1) The time for the low-power device to push the detection message to the user end is increased to less than 1 second, which greatly improves the user experience.
(2)侦测消息的推送准确率高达99.99%,且无需硬件成本,实施成本低,大大提高了用户体验。(2) The detection accuracy of the detection message is as high as 99.99%, and the hardware cost is not required, and the implementation cost is low, which greatly improves the user experience.
附图说明DRAWINGS
图1为本发明消息推送方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a message pushing method according to the present invention;
图2为本发明消息推送方法第二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a message pushing method according to the present invention;
图3为本发明消息推送方法第三实施例的流程示意图;3 is a schematic flowchart of a third embodiment of a message pushing method according to the present invention;
图4为本发明消息推送方法第四实施例的流程示意图;4 is a schematic flowchart of a fourth embodiment of a message pushing method according to the present invention;
图5为本发明消息推送方法第五实施例的流程示意图;FIG. 5 is a schematic flowchart diagram of a fifth embodiment of a message pushing method according to the present invention; FIG.
图6为本发明消息推送方法第六实施例的流程示意图;6 is a schematic flowchart of a sixth embodiment of a message pushing method according to the present invention;
图7为本发明低功耗设备第一实施方式的结构示意图;7 is a schematic structural diagram of a first embodiment of a low power consumption device according to the present invention;
图8为本发明低功耗设备第二实施方式的结构示意图;8 is a schematic structural diagram of a second embodiment of a low power consumption device according to the present invention;
图9为本发明保活服务器一实施方式的结构示意图;9 is a schematic structural diagram of an embodiment of a keep-alive server according to the present invention;
图10为本发明消息推送系统一实施方式的结构示意图;10 is a schematic structural diagram of an embodiment of a message pushing system according to the present invention;
图11为现有技术中推送消息示意图;11 is a schematic diagram of a push message in the prior art;
图12为本发明消息推送系统推送消息一实施方式的示意图;12 is a schematic diagram of an embodiment of a message push system push message according to the present invention;
图13为本发明实施例的消息推送的延时分析图;FIG. 13 is a delay analysis diagram of message push according to an embodiment of the present invention; FIG.
图14为本发明消息推送系统推送消息另一实施方式的示意图。FIG. 14 is a schematic diagram of another embodiment of a message push system push message according to the present invention.
具体实施方式Detailed ways
下面,结合附图以及具体实施方式,对发明做进一步描述,需要说明的是,在不相冲突的前提下,以下描述的各实施例之间或各技术特征之间可以任意组合形成新的实施例。In the following, the invention will be further described with reference to the accompanying drawings and specific embodiments. It should be noted that, in the case of non-collision, the embodiments described below or the technical features can be arbitrarily combined to form a new embodiment. .
参照图1,图1为本发明消息推送方法第一实施例的流程示意图。Referring to FIG. 1, FIG. 1 is a schematic flowchart of a first embodiment of a message pushing method according to the present invention.
在第一实施例中,所述消息推送方法包括以下步骤:In a first embodiment, the message pushing method comprises the following steps:
在步骤S101,处于休眠状态时,检测外部事件是否触发;In step S101, when in the sleep state, detecting whether an external event is triggered;
在步骤S102,当有外部事件触发时,通过保活链路将所述外部事件触发消息推送给保活服务器。In step S102, when an external event is triggered, the external event trigger message is pushed to the keep-alive server through the keep-alive link.
其中,所述保活链路是预先在低功耗设备与所述保活服务器之间通过网络传输协议建立,使得所述低功耗设备与所述保活服务器之间通过所述保活链路保持长连接。Wherein the keep-alive link is established in advance between the low-power device and the keep-alive server by a network transmission protocol, so that the low-power device and the keep-alive server pass the keep-alive chain The road stays connected for a long time.
可以理解的是,低功耗设备在出于降低功耗的考虑下,通常在所述低功耗设备处于休眠时,关掉所述低功耗设备的主控电源。当主控电源被关掉时,低功耗设备无法将消息推送给用户端。It can be understood that the low power consumption device normally turns off the main control power of the low power consumption device when the low power consumption device is in sleep, in order to reduce power consumption. When the main control power is turned off, the low-power device cannot push the message to the client.
进一步理解的是,在低功耗设备与保活服务器之间通过网络传输协议建立一条保活链路使得处于休眠状态的低功耗设备能够拥有一个消息传输的通道。It is further understood that establishing a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol enables the sleepy low-power device to have a message transmission channel.
外部事件触发一般包括突然事件的发生,比如当低功耗设备为智能低功耗门铃时,则外部事件触发可以是门铃按下,又比如所述低功耗设备为智能低功耗摄像机,则外部事件触发可以是人体红外传感器(PIR)触发。External event triggering generally includes the occurrence of a sudden event, such as when the low-power device is an intelligent low-power doorbell, then the external event trigger may be a doorbell press, and if the low-power device is a smart low-power camera, The external event trigger can be a human body infrared sensor (PIR) trigger.
进一步理解的是,通过所述保活链路推送消息给用户端省去了唤醒主控上电以及服务器鉴权的过程,节省了时间。It is further understood that the process of pushing the message through the keep-alive link to the user side saves the process of waking up the main control power-on and the server authentication, saving time.
本实施例中提供的消息推送方法通过网络传输协议在低功耗设备与保活服务器之间建立保活链路,能够使得低功耗设备将侦测消息推送到用户端的时间提升到小于1秒,并且侦测消息的推送准确率高达99.99%,且无需硬件成本,实施成本低,大大提高了用户体验。The message pushing method provided in this embodiment establishes a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol, so that the time for the low-power device to push the detection message to the user end is raised to less than 1 second. And the detection rate of the detection message is as high as 99.99%, and the hardware cost is not required, and the implementation cost is low, which greatly improves the user experience.
参照图2,图2为本发明消息推送方法第二实施例的流程示意图。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a second embodiment of a message pushing method according to the present invention.
在第二实施例中,所述消息推送方法包括以下步骤:In the second embodiment, the message pushing method includes the following steps:
在步骤S201,通过传输控制协议(TCP)长连接或者用户数据报协议(UDP)短连接在所述低功耗设备与所述保活服务器之间建立保活链路;In step S201, a keep-alive link is established between the low-power device and the keep-alive server by a Transmission Control Protocol (TCP) long connection or a User Datagram Protocol (UDP) short connection;
可以理解,传输控制协议(TCP,Transmission Control Protocol)是一种面向连接的、可靠的、基于字节流的传输层通信协议,而用户数据报协议(UDP,User Datagram Protocol)是一种无连接的传输层协议,两者均为传输层协议。It can be understood that the Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte stream-based transport layer communication protocol, and the User Datagram Protocol (UDP) is a connectionless connection. Transport layer protocol, both of which are transport layer protocols.
值得理解的是,依靠保活链路使得所述低功耗设备与所述保活服务器之间保持传输控制协议(TCP)长连接,或者保持用户数据报协议(UDP)短连接。It is to be understood that relying on the keep alive link allows a low transmission control protocol (TCP) long connection between the low power device and the keep alive server, or a User Datagram Protocol (UDP) short connection.
在步骤S202,当处于休眠状态下的所述低功耗设备被外部事件触发时,通过所述保活链路并利用传输控制协议(TCP)或者用户数据报协议(UDP)推送消息给保活服务器。In step S202, when the low power consumption device in the sleep state is triggered by an external event, the message is sent to the keep alive through the keep alive link and using Transmission Control Protocol (TCP) or User Datagram Protocol (UDP). server.
本实施例中通过传输控制协议(TCP)或者用户数据报协议(UDP)在低功耗设备与保活服务器之间建立一个保活链路,能够使得低功耗设备将侦测消息推送到用户端的时间提升到小于1秒,并且侦测消息的推送准确率高达99.99%,且无需硬件成本,实施成本低,大大提高了用户体验。In this embodiment, a keep-alive link is established between the low-power device and the keep-alive server by using a Transmission Control Protocol (TCP) or a User Datagram Protocol (UDP), so that the low-power device can push the detection message to the user. The time of the terminal is increased to less than 1 second, and the push rate of the detection message is as high as 99.99%, and the hardware cost is not required, and the implementation cost is low, which greatly improves the user experience.
参照图3,图3为本发明消息推送方法第三实施例的流程示意图,基于上述图1或/和图2所示的实施例,提出本发明消息推送方法的第三实施例。Referring to FIG. 3, FIG. 3 is a schematic flowchart of a third embodiment of a message pushing method according to the present invention. Based on the foregoing embodiment shown in FIG. 1 or FIG. 2, a third embodiment of the message pushing method of the present invention is proposed.
在第三实施例中,当所述低功耗设备与所述保活服务器之间的保活链路是通过传输控制协议TCP连接时,通过所述保活链路推送消息给所述保活服务器的方法具体包括:In the third embodiment, when the keep alive link between the low power consumption device and the keep alive server is connected through a transmission control protocol TCP, the message is pushed to the keepalive through the keepalive link. The method of the server specifically includes:
在步骤S301,进入休眠模式,并通过所述保活链路与所述保活服务器保持长连接;In step S301, entering a sleep mode, and maintaining a long connection with the keep-alive server through the keep-alive link;
在步骤S302,处于休眠模式时,检测所述外部事件是否触发,并在所述外部事件触发时触发唤醒机制;In step S302, when in the sleep mode, detecting whether the external event is triggered, and triggering the wake-up mechanism when the external event is triggered;
在步骤S303,在所述唤醒机制被触发后启动实时操作系统RTOS并初始化安全数字输入输出接口SDIO模块,并通过所述安全数字输入输出接口SDIO将所述外部事件触发消息进行推送。In step S303, after the wake-up mechanism is triggered, the real-time operating system RTOS is started and the secure digital input/output interface SDIO module is initialized, and the external event trigger message is pushed through the secure digital input/output interface SDIO.
可以理解的是,传输控制协议(TCP,Transmission Control Protocol)是一种面向连接的、可靠的、基于字节流的传输层通信协议。It can be understood that the Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte stream-based transport layer communication protocol.
可以理解的是,低功耗设备进入休眠模式时,与保活服务器通过保活链路保持长连接。It can be understood that when the low-power device enters the sleep mode, it maintains a long connection with the keep-alive server through the keep-alive link.
可以理解的是,外部事件触发一般包括突然事件的发生,比如当低功耗设备为智能低功耗门铃时,则外部事件触发可以是门铃按下,又比如所述低功耗设备为智能低功耗摄像机,则外部事件触发可以是人体红外传感器(PIR)触发。It can be understood that the external event triggering generally includes the occurrence of a sudden event, such as when the low-power device is a smart low-power doorbell, then the external event triggering may be a doorbell press, and the low-power device is, for example, a smart low. For power-consuming cameras, the external event trigger can be triggered by a human body infrared sensor (PIR).
值得说明的是,在所述唤醒机制被触发后启动实时操作系统RTOS并初始化安全数字输入输出接口SDIO模块,相比现有技术而言,省去了主控初始化复杂的网络协议栈,仅仅是 做简单的初始化,初始化过程所需要的时间会短得多。It is worth noting that after the wake-up mechanism is triggered, the real-time operating system RTOS is started and the secure digital input/output interface SDIO module is initialized. Compared with the prior art, the main control initialization complex network protocol stack is omitted, only For simple initialization, the initialization process takes much less time.
本实施例中通过传输控制协议(TCP)建立保活链路,相比现有技术而言,省去了主控初始化复杂的网络协议栈,节约了消息推送的时间,提高用户体验。In this embodiment, the keep-alive link is established by using the Transmission Control Protocol (TCP). Compared with the prior art, the complex initialization of the network protocol stack is omitted, which saves the time of message push and improves the user experience.
参照图4,图4为本发明消息推送方法第四实施例的流程示意图,基于上述图1或/和图2所示的实施例,提出本发明消息推送方法的第四实施例。Referring to FIG. 4, FIG. 4 is a schematic flowchart diagram of a message pushing method according to a fourth embodiment of the present invention. Based on the foregoing embodiment shown in FIG. 1 or FIG. 2, a fourth embodiment of the message pushing method of the present invention is proposed.
在第四实施例中,当所述低功耗设备与所述保活服务器之间的保活链路是通过数据报协议UDP连接时,通过所述保活链路推送消息给所述保活服务器的方法具体包括:In the fourth embodiment, when the keep-alive link between the low-power device and the keep-alive server is connected through a datagram protocol UDP, the message is pushed to the keep-alive through the keep-alive link. The method of the server specifically includes:
在步骤S401,进入休眠模式,并通过所述保活链路与所述保活服务器保持长连接;In step S401, entering a sleep mode, and maintaining a long connection with the keep-alive server through the keep-alive link;
在步骤S402,处于休眠模式时,检测所述外部事件是否触发,并在所述外部事件触发时通过通用输入输出接口GPIO推送所述外部事件触发消息。In step S402, when in the sleep mode, detecting whether the external event is triggered, and pushing the external event trigger message through the general-purpose input/output interface GPIO when the external event is triggered.
可以理解的是,用户数据报协议(UDP,User Datagram Protocol)是一种无连接的传输层协议。It can be understood that the User Datagram Protocol (UDP) is a connectionless transport layer protocol.
低功耗设备进入休眠模式时,与保活服务器通过保活链路保持长连接。When the low-power device enters sleep mode, it maintains a long connection with the keep-alive server through the keep-alive link.
可以理解的是,外部事件触发一般包括突然事件的发生,比如当低功耗设备为智能低功耗门铃时,则外部事件触发可以是门铃按下,又比如所述低功耗设备为智能低功耗摄像机,则外部事件触发可以是人体红外传感器(PIR)触发。It can be understood that the external event triggering generally includes the occurrence of a sudden event, such as when the low-power device is a smart low-power doorbell, then the external event triggering may be a doorbell press, and the low-power device is, for example, a smart low. For power-consuming cameras, the external event trigger can be triggered by a human body infrared sensor (PIR).
值得说明的是,本实施方式中,当外部事件触发时,不需要触发唤醒机制,可以直接通过低功耗设备的通用输入输出接口GPIO推送外部事件触发消息。It should be noted that, in this embodiment, when an external event is triggered, the wake-up mechanism is not required to be triggered, and the external event trigger message can be directly pushed through the general-purpose input/output interface GPIO of the low-power device.
本实施例中通过用户数据报协议(UDP)建立保活链路,相比现有技术而言,不需执行唤醒机制且省去了主控初始化复杂的网络协议栈,节约了消息推送的时间,相比通过传输控制协议(TCP)建立保活链路的方式节约的时间更多,大大提高用户体验。In this embodiment, the keepalive link is established by using the User Datagram Protocol (UDP). Compared with the prior art, the wake-up mechanism is not required, and the complex network protocol stack is initialized by the main control, which saves the message push time. Compared with the way of establishing a keep-alive link through Transmission Control Protocol (TCP), it saves more time and greatly improves the user experience.
参照图5,图5为本发明消息推送方法第五实施例的流程示意图,基于上述图3或图4所示的实施例,提出本发明消息推送方法的第五实施例。Referring to FIG. 5, FIG. 5 is a schematic flowchart of a fifth embodiment of a message pushing method according to the present invention. Based on the embodiment shown in FIG. 3 or FIG. 4, a fifth embodiment of the message pushing method of the present invention is proposed.
在本发明消息推送方法的第五实施例中,所述当有外部事件触发时,通过保活链路将所述外部事件触发消息推送给保活服务器还具体包括:In the fifth embodiment of the message pushing method of the present invention, when the external event is triggered, the external event triggering message is sent to the keep-alive server through the keep-alive link.
在步骤S501,接收所述外部事件触发消息,依据所述外部事件触发消息的消息类型构建特定数据包;In step S501, the external event trigger message is received, and a specific data packet is constructed according to the message type of the external event trigger message;
在步骤S502,对所述特定数据包进行加密,并将所述加密的特定数据包通过所述保活链路推送给所述保活服务器。In step S502, the specific data packet is encrypted, and the encrypted specific data packet is pushed to the keep-alive server through the keep-alive link.
可以理解的是,当外部事件触发消息通过安全数字输入输出接口SDIO或者通用输入输出接口GPIO被推送后,需要对所述外部事件触发信息进行一定的技术处理,以防止出现错 发、漏发或者被拦截的风险。It can be understood that after the external event trigger message is pushed through the secure digital input/output interface SDIO or the general-purpose input/output interface GPIO, the external event trigger information needs to be processed in a certain manner to prevent mis-issue or missed transmission or The risk of being intercepted.
可以理解的是,所述外部事件触发消息的消息类型包括门铃按键触发、人体红外传感器触发或者移动警报触发。It can be understood that the message type of the external event trigger message includes a doorbell button trigger, a human body infrared sensor trigger, or a mobile alarm trigger.
值得理解的是,加密的方法可以是哈希算法加密、MD5算法加密或者AES加密算法加密等各类数据加密方法。It is worth noting that the encryption method can be various data encryption methods such as hash algorithm encryption, MD5 algorithm encryption or AES encryption algorithm encryption.
进一步理解的是,所述加密的特定数据包是直接通过所述保活链路推送给所述保活服务器,而在现有技术中,保活链路并未被用作数据传输。It is further understood that the encrypted specific data packet is directly pushed to the keep-alive server through the keep-alive link, and in the prior art, the keep-alive link is not used for data transmission.
本发明提供的消息推送方法,通过保活链路来实现消息推送给保活服务器的快捷性,大大节约了时间。The message pushing method provided by the invention realizes the quickness of pushing a message to the keep-alive server through the keep-alive link, thereby greatly saving time.
参照图6,图6为本发明消息推送方法第六实施例的流程示意图。Referring to FIG. 6, FIG. 6 is a schematic flowchart diagram of a sixth embodiment of a message pushing method according to the present invention.
本发明消息推送方法第六实施例的具体方法包括:The specific method of the sixth embodiment of the message pushing method of the present invention includes:
在步骤S601,接收低功耗设备推送的特定数据包,并判断所述特定数据包是否为心跳包;In step S601, receiving a specific data packet pushed by the low power consumption device, and determining whether the specific data packet is a heartbeat packet;
在步骤S602,当所述特定数据包不是心跳包时,对所述数据包进行解密,并分析所述特定数据包的消息类型;In step S602, when the specific data packet is not a heartbeat packet, the data packet is decrypted, and the message type of the specific data packet is analyzed;
在步骤S603,依据所述特定数据包的消息类型将所述特定数据包透传给推送服务器。In step S603, the specific data packet is transparently transmitted to the push server according to the message type of the specific data packet.
可以理解的是,当所述特定数据包为心跳包时,不执行解密操作,维持原有的状态继续接收数据包,消息类型包括门铃按键触发、人体红外传感器触发或者移动警报触发。It can be understood that when the specific data packet is a heartbeat packet, the decryption operation is not performed, and the original state is continued to receive the data packet, and the message type includes a doorbell button trigger, a human body infrared sensor trigger, or a mobile alarm trigger.
进一步理解的是,所述特定数据包是经过加密处理的,因此安全性能够得到保障,可降低消息错发、漏发或者被拦截的概率。It is further understood that the specific data packet is encrypted, so security can be guaranteed, and the probability of message mis-sending, missing or being intercepted can be reduced.
本发明实施例提供的消息推送方法通过解密特定数据包的消息类型,然后通过透传给推送服务器,考虑到保活服务器和推送服务器处于同一个物理服务器群组内,透传过程非常快,整个消息推送过程的时延非常小,这样大大加快了消息推送的速度,并且由于经过技术加密也提供了安全性。The message pushing method provided by the embodiment of the present invention decrypts the message type of a specific data packet, and then transparently transmits the message to the push server. Considering that the keep-alive server and the push server are in the same physical server group, the transparent transmission process is very fast, and the whole process is transparent. The latency of the message push process is very small, which greatly speeds up message push and provides security due to technical encryption.
参阅图7,图7为本发明低功耗设备第一实施方式的结构示意图。Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a first embodiment of a low power consumption device according to the present invention.
本发明低功耗设备包括微处理单元110以及低功耗WIFI模块120,其中,微处理单元110可以为但不限于微型处理单元MCU,低功耗WIFI模块120可以为但不限于具有WIFI等无线功能的接口模块。The low-power device of the present invention includes a micro-processing unit 110 and a low-power WIFI module 120. The micro-processing unit 110 can be, but not limited to, a micro-processing unit MCU. The low-power WIFI module 120 can be, but not limited to, wireless with WIFI. Functional interface module.
在本实施方式中,微处理单元110用于在所述低功耗设备处于休眠状态时,检测外部事件是否触发。In this embodiment, the micro processing unit 110 is configured to detect whether an external event is triggered when the low power consumption device is in a sleep state.
低功耗WIFI模块120用于当有外部事件触发时,通过保活链路将所述外部事件触发消息推送给保活服务器。The low power WIFI module 120 is configured to push the external event trigger message to the keep alive server through a keep alive link when an external event is triggered.
其中,所述保活链路是预先在所述低功耗设备与所述保活服务器之间通过网络传输协议建立保活链路。The keep-alive link is a pre-established keep-alive link between the low-power device and the keep-alive server through a network transmission protocol.
可以理解的是,低功耗设备在出于降低功耗的考虑下,通常在所述低功耗设备处于休眠时,关掉为所述低功耗设备的主控电源。当主控电源被关掉时,低功耗设备无法将消息推送给用户端。It can be understood that the low power consumption device normally turns off the main control power of the low power consumption device when the low power consumption device is in sleep, in order to reduce power consumption. When the main control power is turned off, the low-power device cannot push the message to the client.
进一步需要理解的是,在低功耗设备与保活服务器之间通过网络传输协议建立一条保活链路使得处于休眠状态的低功耗设备能够拥有一个消息传输的通道。It should be further understood that establishing a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol enables the sleepy low-power device to have a message transmission channel.
外部事件触发一般包括突然事件的发生,比如当低功耗设备为智能低功耗门铃时,则外部事件触发可以是门铃按下,又比如所述低功耗设备为智能低功耗摄像机,则外部事件触发可以是人体红外传感器(PIR)触发。External event triggering generally includes the occurrence of a sudden event, such as when the low-power device is an intelligent low-power doorbell, then the external event trigger may be a doorbell press, and if the low-power device is a smart low-power camera, The external event trigger can be a human body infrared sensor (PIR) trigger.
进一步理解的是,通过所述保活链路推送消息给用户端省去了唤醒主控上电以及服务器鉴权的过程,节省了时间。It is further understood that the process of pushing the message through the keep-alive link to the user side saves the process of waking up the main control power-on and the server authentication, saving time.
网络传输协议为传输控制协议长连接TCP或者用户数据报协议UDP。The network transmission protocol is a transmission control protocol long connection TCP or a user datagram protocol UDP.
传输控制协议(TCP,Transmission Control Protocol)是一种面向连接的、可靠的、基于字节流的传输层通信协议,而用户数据报协议(UDP,User Datagram Protocol)是一种无连接的传输层协议,两者均为传输层协议。Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte stream-based transport layer communication protocol, and User Datagram Protocol (UDP) is a connectionless transport layer. Protocol, both are transport layer protocols.
当所述低功耗WIFI模块120与保活服务器之间的保活链路是通过数据报协议UDP连接时,所述低功耗WIFI模块120还用于当低功耗设备处于休眠状态时,进入休眠模式,并通过所述保活链路与所述保活服务器保持长连接;When the keep-alive link between the low-power WIFI module 120 and the keep-alive server is connected through a datagram protocol UDP, the low-power WIFI module 120 is further used when the low-power device is in a sleep state. Entering a sleep mode, and maintaining a long connection with the keep-alive server through the keep-alive link;
所述微处理单元110还用于当所述低功耗WIFI模块处于休眠模式时,检测所述外部事件是否触发,并在所述外部事件触发时通过通用输入输出接口GPIO触发所述外部事件触发消息给所述低功耗WIFI模块。The micro processing unit 110 is further configured to detect whether the external event is triggered when the low power consumption WIFI module is in a sleep mode, and trigger the external event triggering by using a universal input/output interface GPIO when the external event is triggered. The message is sent to the low power WIFI module.
低功耗设备进入休眠模式时,与保活服务器通过保活链路保持长连接。When the low-power device enters sleep mode, it maintains a long connection with the keep-alive server through the keep-alive link.
可以理解的是,外部事件触发一般包括突然事件的发生,比如当低功耗设备为智能低功耗门铃时,则外部事件触发可以是门铃按下,又比如所述低功耗设备为智能低功耗摄像机,则外部事件触发可以是人体红外传感器(PIR)触发。It can be understood that the external event triggering generally includes the occurrence of a sudden event, such as when the low-power device is a smart low-power doorbell, then the external event triggering may be a doorbell press, and the low-power device is, for example, a smart low. For power-consuming cameras, the external event trigger can be triggered by a human body infrared sensor (PIR).
值得说明的是,本实施方式中,当外部事件触发时,不需要触发唤醒机制,可以直接通过低功耗设备的通用输入输出接口GPIO推送外部事件触发消息。It should be noted that, in this embodiment, when an external event is triggered, the wake-up mechanism is not required to be triggered, and the external event trigger message can be directly pushed through the general-purpose input/output interface GPIO of the low-power device.
进一步地,所述低功耗WIFI模块120还用于接收所述外部事件触发消息,依据所述外部事件触发消息的消息类型构建特定数据包,对所述特定数据包进行加密,并将所述加密的特定数据包通过所述保活链路推送给所述保活服务器。Further, the low-power WIFI module 120 is further configured to receive the external event trigger message, construct a specific data packet according to the message type of the external event trigger message, encrypt the specific data packet, and The encrypted specific data packet is pushed to the keep-alive server through the keep-alive link.
可以理解的是,当外部事件触发消息通过安全数字输入输出接口SDIO或者通用输入输出接口GPIO被推送后,需要对所述外部事件触发信息进行一定的技术处理,以防止出现错发、漏发或者被拦截的风险。It can be understood that after the external event trigger message is pushed through the secure digital input/output interface SDIO or the general-purpose input/output interface GPIO, the external event trigger information needs to be processed in a certain manner to prevent mis-issue or missed transmission or The risk of being intercepted.
可以理解的是,所述外部事件触发消息的消息类型包括门铃按键触发、人体红外传感器触发或者移动警报触发。It can be understood that the message type of the external event trigger message includes a doorbell button trigger, a human body infrared sensor trigger, or a mobile alarm trigger.
值得理解的是,加密的方法可以是哈希算法加密、MD5算法加密或者AES加密算法加密等各类数据加密方法。It is worth noting that the encryption method can be various data encryption methods such as hash algorithm encryption, MD5 algorithm encryption or AES encryption algorithm encryption.
进一步理解的是,所述加密的特定数据包是直接通过所述保活链路推送给所述保活服务器,而在现有技术中,保活链路并未被拿来用作数据传输。It is further understood that the encrypted specific data packet is directly pushed to the keep-alive server through the keep-alive link, and in the prior art, the keep-alive link is not used for data transmission.
本发明提供的低功耗设备通过与保活服务器建立保护链路,并且当采用用户数据报协议UDP作为网络传输协议建立保活链路,使得低功耗设备将侦测消息推送到用户端的时间提升到小于1秒,并且侦测消息的推送准确率高达99.99%,且无需硬件成本,实施成本低,大大提高了用户体验。The low-power device provided by the present invention establishes a protection link with the keep-alive server, and establishes a keep-alive link by using the user datagram protocol UDP as a network transmission protocol, so that the low-power device pushes the detection message to the user terminal. Increased to less than 1 second, and the detection accuracy of the detection message is as high as 99.99%, and no hardware cost is required, and the implementation cost is low, which greatly improves the user experience.
参阅图8,图8为本发明低功耗设备第二实施方式的结构示意图。Referring to FIG. 8, FIG. 8 is a schematic structural diagram of a second embodiment of a low power consumption device according to the present invention.
本发明低功耗设备包括微处理单元110′、低功耗WIFI模块120′以及主控单元130,其中,微处理单元110′可以为但不限于微型处理单元MCU,低功耗WIFI模块120′可以为但不限于具有WIFI等无线功能的接口模块,所述主控单元130时具有控制作用的模块。The low-power device of the present invention includes a micro-processing unit 110', a low-power WIFI module 120', and a main control unit 130. The micro-processing unit 110' may be, but not limited to, a micro-processing unit MCU, and a low-power WIFI module 120'. It can be, but is not limited to, an interface module having a wireless function such as WIFI, and the main control unit 130 has a control function.
在本实施方式中,微处理单元110′用于在所述低功耗设备处于休眠状态时,检测外部事件是否触发。In this embodiment, the micro processing unit 110' is configured to detect whether an external event is triggered when the low power consumption device is in a sleep state.
低功耗WIFI模块120′用于当有外部事件触发时,通过保活链路将所述外部事件触发消息推送给保活服务器。The low power WIFI module 120' is configured to push the external event trigger message to the keep alive server through a keep alive link when an external event is triggered.
其中,所述保活链路是预先在所述低功耗设备与所述保活服务器之间通过网络传输协议建立保活链路。The keep-alive link is a pre-established keep-alive link between the low-power device and the keep-alive server through a network transmission protocol.
可以理解的是,低功耗设备在出于降低功耗的考虑下,通常在所述低功耗设备处于休眠时,关掉为所述低功耗设备的主控电源。当主控电源被关掉时,低功耗设备无法将消息推送给用户端。It can be understood that the low power consumption device normally turns off the main control power of the low power consumption device when the low power consumption device is in sleep, in order to reduce power consumption. When the main control power is turned off, the low-power device cannot push the message to the client.
进一步理解的是,在低功耗设备与保活服务器之间通过网络传输协议建立一条保活链路使得处于休眠状态的低功耗设备能够拥有一个消息传输的通道。It is further understood that establishing a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol enables the sleepy low-power device to have a message transmission channel.
进一步理解的是,外部事件触发一般包括突然事件的发生,比如当低功耗设备为智能低功耗门铃时,则外部事件触发可以是门铃按下,又比如低功耗设备为智能低功耗摄像机,则外部事件触发可以是人体红外传感器(PIR)触发。It is further understood that external event triggering generally includes the occurrence of a sudden event, such as when the low-power device is a smart low-power doorbell, then the external event trigger can be a doorbell press, and the low-power device is a smart low-power device. For the camera, the external event trigger can be triggered by the human body infrared sensor (PIR).
进一步理解的是,通过所述保活链路推送消息给用户端省去了唤醒主控上电以及服务器鉴权的过程,节省了时间。It is further understood that the process of pushing the message through the keep-alive link to the user side saves the process of waking up the main control power-on and the server authentication, saving time.
网络传输协议为传输控制协议长连接TCP或者用户数据报协议UDP。The network transmission protocol is a transmission control protocol long connection TCP or a user datagram protocol UDP.
传输控制协议(TCP,Transmission Control Protocol)是一种面向连接的、可靠的、基于字节流的传输层通信协议,而用户数据报协议(UDP,User Datagram Protocol)是一种无连接的传输层协议,两者均为传输层协议。Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte stream-based transport layer communication protocol, and User Datagram Protocol (UDP) is a connectionless transport layer. Protocol, both are transport layer protocols.
当所述低功耗设备与所述保活服务器之间的保活链路是通过传输控制协议TCP连接时,所述低功耗WIFI模块120′还用于当低功耗设备处于休眠状态时,进入休眠模式,并通过所述保活链路与所述保活服务器保持长连接;When the keep-alive link between the low-power device and the keep-alive server is connected through a transmission control protocol TCP, the low-power WIFI module 120' is also used when the low-power device is in a sleep state. Entering a sleep mode and maintaining a long connection with the keep-alive server through the keep-alive link;
所述微处理单元110′还用于当所述低功耗WIFI模块120′处于休眠模式时,检测所述外部事件是否触发,并在外部事件触发时唤醒主控单元130;The micro processing unit 110' is further configured to detect whether the external event is triggered when the low power consumption WIFI module 120' is in a sleep mode, and wake up the main control unit 130 when an external event is triggered;
所述主控单元130用于在被唤醒后启动实时操作系统RTOS并初始化安全数字输入输出接口SDIO模块,并通过所述安全数字输入输出接口SDIO将所述外部事件触发消息传输给所述低功耗WIFI模块120′。The main control unit 130 is configured to start a real-time operating system RTOS and initialize a secure digital input/output interface SDIO module after being woken up, and transmit the external event trigger message to the low power through the secure digital input/output interface SDIO. The WIFI module 120' is consumed.
可以理解的是,传输控制协议(TCP,Transmission Control Protocol)是一种面向连接的、可靠的、基于字节流的传输层通信协议。It can be understood that the Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte stream-based transport layer communication protocol.
低功耗设备进入休眠模式时,与保活服务器通过保活链路保持长连接。When the low-power device enters sleep mode, it maintains a long connection with the keep-alive server through the keep-alive link.
可以理解的是,外部事件触发一般包括突然事件的发生,比如当低功耗设备为智能低功耗门铃时,则外部事件触发可以是门铃按下,又比如所述低功耗设备为智能低功耗摄像机,则外部事件触发可以是人体红外传感器(PIR)触发。It can be understood that the external event triggering generally includes the occurrence of a sudden event, such as when the low-power device is a smart low-power doorbell, then the external event triggering may be a doorbell press, and the low-power device is, for example, a smart low. For power-consuming cameras, the external event trigger can be triggered by a human body infrared sensor (PIR).
值得说明的是,在所述唤醒机制被触发后启动实时操作系统RTOS并初始化安全数字输入输出接口SDIO模块,相比现有技术而言,省去了主控初始化复杂的网络协议栈,仅仅是做简单的初始化,初始化过程所需要的时间会短得多。It is worth noting that after the wake-up mechanism is triggered, the real-time operating system RTOS is started and the secure digital input/output interface SDIO module is initialized. Compared with the prior art, the main control initialization complex network protocol stack is omitted, only For simple initialization, the initialization process takes much less time.
进一步地,所述低功耗WIFI模块120′还用于接收所述外部事件触发消息,依据所述外部事件触发消息的消息类型构建特定数据包,对所述特定数据包进行加密,并将所述加密的特定数据包通过所述保活链路推送给所述保活服务器。Further, the low-power WIFI module 120' is further configured to receive the external event trigger message, construct a specific data packet according to the message type of the external event trigger message, encrypt the specific data packet, and The encrypted specific data packet is pushed to the keep-alive server through the keep-alive link.
可以理解的是,当外部事件触发消息通过安全数字输入输出接口SDIO或者通用输入输出接口GPIO被推送后,需要对所述外部事件触发信息进行一定的技术处理,以防止出现错发、漏发或者被拦截的风险。It can be understood that after the external event trigger message is pushed through the secure digital input/output interface SDIO or the general-purpose input/output interface GPIO, the external event trigger information needs to be processed in a certain manner to prevent mis-issue or missed transmission or The risk of being intercepted.
可以理解的是,所述外部事件触发消息的消息类型包括门铃按键触发、人体红外传感器触发或者移动警报触发。It can be understood that the message type of the external event trigger message includes a doorbell button trigger, a human body infrared sensor trigger, or a mobile alarm trigger.
值得理解的是,加密的方法可以是哈希算法加密、MD5算法加密或者AES加密算法加密等各类数据加密方法。It is worth noting that the encryption method can be various data encryption methods such as hash algorithm encryption, MD5 algorithm encryption or AES encryption algorithm encryption.
进一步理解的是,所述加密的特定数据包是直接通过所述保活链路推送给所花保活服务器,而在现有技术中,保活链路并未被拿来用作数据传输。It is further understood that the encrypted specific data packet is directly pushed to the flower-saved server through the keep-alive link, and in the prior art, the keep-alive link is not used for data transmission.
本发明提供的低功耗设备通过与保活服务器建立保护链路,并且当采用传输控制协议TCP作为网络传输协议建立保活链路,使得低功耗设备将侦测消息推送到用户端的时间提升到小于1秒,并且侦测消息的推送准确率高达99.99%,且无需硬件成本,实施成本低,大大提高了用户体验。The low-power device provided by the present invention establishes a protection link with the keep-alive server, and establishes a keep-alive link by using the transmission control protocol TCP as a network transmission protocol, so that the time for the low-power device to push the detection message to the user end is increased. It is less than 1 second, and the detection accuracy of the detection message is as high as 99.99%, and the hardware cost is not required, and the implementation cost is low, which greatly improves the user experience.
参阅图9,图9为本发明保活服务器一实施方式的结构示意图。在本实施方式中,保活服务器包括接收模块210,解密模块220以及推送模块230。Referring to FIG. 9, FIG. 9 is a schematic structural diagram of an embodiment of a keep-alive server according to the present invention. In this embodiment, the keep-alive server includes a receiving module 210, a decrypting module 220, and a pushing module 230.
在本实施方式中,接收模块210用于接收低功耗设备推送的特定数据包,并判断所述特定数据包是否为心跳包;In this embodiment, the receiving module 210 is configured to receive a specific data packet pushed by the low power consumption device, and determine whether the specific data packet is a heartbeat packet;
解密模块220用于当所述特定数据包不是心跳包时,对所述数据包进行解密,并分析所述特定数据包的消息类型;The decryption module 220 is configured to decrypt the data packet when the specific data packet is not a heartbeat packet, and analyze a message type of the specific data packet;
推送模块230用于依据所述特定数据包的消息类型将所述特定数据包透传给推送服务器。The pushing module 230 is configured to transparently transmit the specific data packet to the push server according to the message type of the specific data packet.
可以理解的是,当所述特定数据包为心跳包时,解密模块220不执行解密操作,接收模块210维持原有的状态继续接收数据包,消息类型包括门铃按键触发、人体红外传感器触发或者移动警报触发。It can be understood that, when the specific data packet is a heartbeat packet, the decryption module 220 does not perform the decryption operation, and the receiving module 210 maintains the original state to continue receiving the data packet, and the message type includes a doorbell button trigger, a human body infrared sensor trigger, or a mobile device. The alarm is triggered.
进一步理解的是,所述特定数据包是经过加密处理的,因此安全性能够得到保障,可降低消息错发、漏发或者被拦截的概率。It is further understood that the specific data packet is encrypted, so security can be guaranteed, and the probability of message mis-sending, missing or being intercepted can be reduced.
本发明实施例提供的保活服务器通过解密特定数据包的消息类型,然后通过透传给推送服务器,考虑到保活服务器和推送服务器处于同一个物理服务器群组内,透传过程非常快,整个消息推送过程的时延非常小,这样大大加快了消息推送的速度,并且由于经过技术加密也提供了安全性。The keep-alive server provided by the embodiment of the present invention decrypts the message type of the specific data packet, and then transparently transmits the message to the push server. Considering that the keep-alive server and the push server are in the same physical server group, the transparent transmission process is very fast, and the whole process is transparent. The latency of the message push process is very small, which greatly speeds up message push and provides security due to technical encryption.
参照图10,图10为本发明消息推送系统一实施例的结构示意图。Referring to FIG. 10, FIG. 10 is a schematic structural diagram of an embodiment of a message pushing system according to the present invention.
本发明实施例中的消息推送系统包括低功耗设备10、保活服务器20以及推送服务器30。The message pushing system in the embodiment of the present invention includes a low power consumption device 10, a keep alive server 20, and a push server 30.
低功耗设备10与保活服务器20之间通过网络传输协议建立保活链路。The low-power device 10 and the keep-alive server 20 establish a keep-alive link through a network transmission protocol.
可以理解的是,外部事件触发一般包括突然事件的发生,比如当低功耗设备10为智能低功耗门铃时,则外部事件触发可以是门铃按下,又比如低功耗设备10为智能低功耗摄像机,则外部事件触发可以是人体红外传感器(PIR)触发。It can be understood that the external event triggering generally includes the occurrence of a sudden event. For example, when the low power consumption device 10 is an intelligent low power doorbell, the external event triggering may be a doorbell pressing, and the low power consumption device 10 is a smart low. For power-consuming cameras, the external event trigger can be triggered by a human body infrared sensor (PIR).
进一步理解的是,通过所述保活链路推送消息给用户端省去了唤醒主控上电以及服务器鉴权的过程,节省了时间。It is further understood that the process of pushing the message through the keep-alive link to the user side saves the process of waking up the main control power-on and the server authentication, saving time.
低功耗设备10用于当处于休眠状态下时检测外部事件是否触发,并在外部事件触发时,通过保活链路将所述外部事件触发消息推送给所述保活服务器20;The low-power device 10 is configured to detect whether an external event is triggered when in a sleep state, and when the external event is triggered, push the external event trigger message to the keep-alive server 20 through the keep-alive link;
网络传输协议为传输控制协议长连接TCP或者用户数据报协议UDP。The network transmission protocol is a transmission control protocol long connection TCP or a user datagram protocol UDP.
所述保活服务器20用于接收包含所述外部事件触发消息的推送消息,并将所述推送消息透传给所述推送服务器30;The keep-alive server 20 is configured to receive a push message including the external event trigger message, and transparently transmit the push message to the push server 30;
可以理解的是,保活服务器20和推送服务器30处于同一个物理服务器群组内,透传过程非常快,整个消息推送过程的时延非常小。It can be understood that the keep-alive server 20 and the push server 30 are in the same physical server group, the transparent transmission process is very fast, and the delay of the entire message pushing process is very small.
所述推送服务器30用于接收推送消息,并将推送消息推送给用户端40。The push server 30 is configured to receive the push message and push the push message to the client 40.
可以理解的是,所述推送服务器30可以是知名企业为提供公众服务的推送服器或者其他小型企业为企业内部服务的消息推送服务器。It can be understood that the push server 30 can be a push server for a public service provided by a well-known enterprise or a message push server for other enterprises to serve the enterprise.
进一步理解的是,用户端40可以但不限于用户终端,如智能手机、智能手表、智能手环或者其他智能终端设备等。It is further understood that the client 40 can be, but is not limited to, a user terminal such as a smart phone, a smart watch, a smart bracelet, or other smart terminal device.
本发明实施例提供的消息推送系统通过网络传输协议在低功耗设备与保活服务器之间建立一个保活链路,能够使得低功耗设备将侦测消息推送到用户端的时间提升到小于1秒,并且侦测消息的推送准确率高达99.99%,且无需硬件成本,实施成本低,大大提高了用户体验。The message pushing system provided by the embodiment of the present invention establishes a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol, so that the time for the low-power device to push the detection message to the user end is raised to less than 1. Seconds, and the detection message push rate is as high as 99.99%, and no hardware cost is required, and the implementation cost is low, which greatly improves the user experience.
参阅图11,图11为现有技术中推送消息示意图。Referring to FIG. 11, FIG. 11 is a schematic diagram of a push message in the prior art.
现有技术中推送消息示意图包括以下步骤:The schematic diagram of pushing a message in the prior art includes the following steps:
1.微处理单元MCU检测外部事件触发。1. The micro processing unit MCU detects an external event trigger.
2.微处理单元MCU给主控单元上电;2. The micro processing unit MCU powers up the main control unit;
3.主控启动,将低功耗Wi-Fi从低功耗模式恢复到正常工作模式;3. The master starts to restore the low-power Wi-Fi from the low-power mode to the normal working mode;
4.主控初始化网络协议栈之后连接到推送服务器,并进行鉴权处理,获取推送授权;4. After the main control initializes the network protocol stack, it connects to the push server, performs authentication processing, and obtains push authorization;
5.主控将消息推送给推送服务器;5. The master pushes the message to the push server;
6.推送服务器将推送消息给用户端;6. The push server will push the message to the client;
7用户端接收到推送消息。7 The client receives the push message.
在现有技术中,由于主控启动后需要初始化完整的网络协议栈并且需要将WiFi恢复到正常工作模式,因此即使采用优化过的RTOS系统,也需要长达800ms以上,主控初始化完成后由于需要重新连接到推送服务器并且需要有鉴权的过程,整个耗时也将超过1.6s,采用该方案整个消息推送的时延约3s。In the prior art, since the complete network protocol stack needs to be initialized after the master is started and the WiFi needs to be restored to the normal working mode, even if the optimized RTOS system is used, it takes up to 800 ms or more, after the main control initialization is completed. Need to reconnect to the push server and need to have an authentication process, the entire time will also exceed 1.6s, the delay of the entire message push using the program is about 3s.
且消息推送成功率没有保障,由于外部事件触发后需要唤醒主控后重新连接到服务器, 由于网络的不可靠特性,使得消息推送的成功率没有保障,存在丢失消息的风险。The success rate of the message push is not guaranteed. After the external event is triggered, the host controller needs to wake up and reconnect to the server. Due to the unreliable nature of the network, the success rate of message push is not guaranteed, and there is a risk of losing the message.
参阅图12,图12为本发明消息推送系统推送消息一实施方式的示意图。在本发明实施例消息推送系统推送消息的流程包括:Referring to FIG. 12, FIG. 12 is a schematic diagram of an embodiment of a message push system push message according to the present invention. The process of pushing a message by the message pushing system in the embodiment of the present invention includes:
微处理单元MCU检测外部事件触发。The micro processor unit MCU detects an external event trigger.
微处理单元MCU给主控单元上电,主控启动,进行必要的启动实时操作系统RTOS并初始化SDIO模块;The MCU of the micro processing unit powers up the main control unit, the main control starts, and the necessary real-time operating system RTOS is started and the SDIO module is initialized;
主控通知低功耗Wi-Fi模块往保活服务器发送特定的数据包;The master notifies the low-power Wi-Fi module to send a specific data packet to the keep-alive server;
保活服务器将透传给推送服务器;The keep-alive server will be transparently transmitted to the push server;
推送服务器将消息发送给用户端;The push server sends a message to the client;
用户端接收到推送消息。The client receives the push message.
从以上流程可以看出,采用新的方案,省去了主控初始化复杂的网络协议栈以及跟推送服务器之间建立连接和鉴权的过程,同时由于保活服务器和推送服务器处于同一个物理服务器群组内,透传过程非常快,整个消息推送过程的时延非常小。It can be seen from the above process that the new scheme eliminates the process of initializing a complex network protocol stack and establishing a connection and authentication with the push server, and at the same time, because the keep-alive server and the push server are in the same physical server. In the group, the transparent transmission process is very fast, and the delay of the entire message pushing process is very small.
按照本发明实施例的消息推送的延时分析如图13:The delay analysis of message push according to an embodiment of the present invention is shown in Figure 13:
其中,APN/GCM为企业的推送服务器,智能手机为用户端,Among them, APN/GCM is the push server of the enterprise, and the smart phone is the client.
因此,采用本发明的消息推送总的时延约720ms,可以实现消息推送1s到达,大大节省了消息推送的时间。Therefore, the total delay of the message push using the present invention is about 720 ms, and the message push can be reached for 1 s, which greatly saves the time for message push.
本发明实施例与现有技术相比,通过网络传输协议在低功耗设备与保活服务器之间建立一个保活链路,能够使得低功耗设备将侦测消息推送到用户端的时间提升到小于1秒,并且侦测消息的推送准确率高达99.99%,且无需硬件成本,实施成本低,大大提高了用户体验。Compared with the prior art, the embodiment of the present invention establishes a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol, so that the time for the low-power device to push the detection message to the user end is raised to Less than 1 second, and the detection accuracy of the detection message is as high as 99.99%, and no hardware cost is required, and the implementation cost is low, which greatly improves the user experience.
参阅图14,图14为本发明消息推送系统推送消息另一实施方式的示意图。在本发明实施例消息推送系统推送消息的流程包括:Referring to FIG. 14, FIG. 14 is a schematic diagram of another embodiment of a message push system push message according to the present invention. The process of pushing a message by the message pushing system in the embodiment of the present invention includes:
微处理单元MCU检测外部事件触发,微处理单元MCU发送特定的数据包给低功耗Wi-Fi模块;The micro processing unit MCU detects an external event trigger, and the micro processing unit MCU sends a specific data packet to the low power Wi-Fi module;
主控通知低功耗Wi-Fi模块往保活服务器发送特定的数据包;The master notifies the low-power Wi-Fi module to send a specific data packet to the keep-alive server;
保活服务器将透传给推送服务器;The keep-alive server will be transparently transmitted to the push server;
推送服务器将消息发送给用户端;The push server sends a message to the client;
用户端接收到推送消息。The client receives the push message.
从以上流程可以看出,采用新的方案,省去了主控初始化复杂的网络协议栈、主控上电的过程以及跟推送服务器之间建立连接和鉴权的过程,同时由于保活服务器和推送服务器处于同一个物理服务器群组内,透传过程非常快,整个消息推送过程的时延非常小。It can be seen from the above process that the new scheme eliminates the process of initializing a complex network protocol stack, mastering the power-on and establishing a connection and authentication with the push server, and at the same time The push server is in the same physical server group. The transparent transmission process is very fast, and the delay of the entire message push process is very small.
本发明实施例与现有技术相比,通过网络传输协议在低功耗设备与保活服务器之间建立一个保活链路,能够使得低功耗设备将侦测消息推送到用户端的时间提升到小于1秒,并且侦测消息的推送准确率高达99.99%,且无需硬件成本,实施成本低,大大提高了用户体验。Compared with the prior art, the embodiment of the present invention establishes a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol, so that the time for the low-power device to push the detection message to the user end is raised to Less than 1 second, and the detection accuracy of the detection message is as high as 99.99%, and no hardware cost is required, and the implementation cost is low, which greatly improves the user experience.
本发明实施例提供的消息推送方法通过网络传输协议在低功耗设备与保活服务器之间建立一个保活链路,能够使得低功耗设备将侦测消息推送到用户端的时间提升到小于1秒,并且侦测消息的推送准确率高达99.99%,且无需硬件成本,实施成本低,大大提高了用户体验。The message pushing method provided by the embodiment of the present invention establishes a keep-alive link between the low-power device and the keep-alive server through the network transmission protocol, so that the time for the low-power device to push the detection message to the user end is raised to less than 1. Seconds, and the detection message push rate is as high as 99.99%, and no hardware cost is required, and the implementation cost is low, which greatly improves the user experience.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。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.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
上述实施方式仅为本发明的优选实施方式,不能以此来限定本发明保护的范围,本领域的技术人员在本发明的基础上所做的任何非实质性的变化及替换均属于本发明所要求保护的范围。The above embodiments are merely preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention belong to the present invention. The scope of the claim.

Claims (20)

  1. 一种低功耗设备,其特征在于,包括:A low power device characterized by comprising:
    微处理单元,用于在所述低功耗设备处于休眠状态时,检测外部事件是否触发;a micro processing unit, configured to detect whether an external event is triggered when the low power consumption device is in a sleep state;
    低功耗WIFI模块,用于当有外部事件触发时,通过保活链路将所述外部事件触发消息推送给保活服务器;a low-power WIFI module, configured to: when an external event is triggered, push the external event trigger message to the keep-alive server through a keep-alive link;
    其中,所述保活链路是预先在所述低功耗设备与所述保活服务器之间通过网络传输协议建立的。The keep-alive link is established in advance by the network transmission protocol between the low-power device and the keep-alive server.
  2. 如权利要求1所述的低功耗设备,其特征在于,所述网络传输协议为传输控制协议TCP或者用户数据报协议UDP。The low power consumption device according to claim 1, wherein the network transmission protocol is a Transmission Control Protocol (TCP) or a User Datagram Protocol (UDP).
  3. 如权利要求2所述的低功耗设备,其特征在于,当所述低功耗WIFI模块与所述保活服务器之间的保活链路是通过传输控制协议TCP连接时,所述低功耗设备还包括主控单元,其中:The low power consumption device according to claim 2, wherein when the keep alive link between the low power consumption WIFI module and the keep-alive server is connected through a transmission control protocol TCP, the low power The device also includes a master unit, where:
    所述低功耗WIFI模块还用于当低功耗设备处于休眠状态时,进入休眠模式,并通过所述保活链路与所述保活服务器保持长连接;The low-power WIFI module is further configured to enter a sleep mode when the low-power device is in a sleep state, and maintain a long connection with the keep-alive server through the keep-alive link;
    所述微处理单元还用于当所述低功耗WIFI模块处于休眠模式时,检测所述外部事件是否触发,并在所述外部事件触发时唤醒所述主控单元;The micro processing unit is further configured to detect whether the external event is triggered when the low power consumption WIFI module is in a sleep mode, and wake up the main control unit when the external event is triggered;
    所述主控单元用于在被唤醒后启动实时操作系统RTOS并初始化安全数字输入输出接口SDIO模块,并通过所述安全数字输入输出接口SDIO将所述外部事件触发消息传输给所述低功耗WIFI模块。The main control unit is configured to start a real-time operating system RTOS and initialize a secure digital input/output interface SDIO module after being woken up, and transmit the external event trigger message to the low power consumption through the secure digital input/output interface SDIO WIFI module.
  4. 如权利要求2所述的低功耗设备,其特征在于,当所述低功耗WIFI模块与所述保活服务器之间的保活链路是通过数据报协议UDP连接时,其中:The low power consumption device according to claim 2, wherein when the keep alive link between the low power consumption WIFI module and the keep alive server is connected by a datagram protocol UDP, wherein:
    所述低功耗WIFI模块还用于当低功耗设备处于休眠状态时,进入休眠模式,并通过所述保活链路与所述保活服务器保持长连接;The low-power WIFI module is further configured to enter a sleep mode when the low-power device is in a sleep state, and maintain a long connection with the keep-alive server through the keep-alive link;
    所述微处理单元还用于当所述低功耗WIFI模块处于休眠模式时,检测所述外部事件是否触发,并在所述外部事件触发时通过通用输入输出接口GPIO触发所述外部事件触发消息给所述低功耗WIFI模块。The micro processing unit is further configured to detect whether the external event is triggered when the low power consumption WIFI module is in a sleep mode, and trigger the external event trigger message by using a universal input/output interface GPIO when the external event is triggered. Give the low power WIFI module.
  5. 如权利要求3-4任一项所述的低功耗设备,其特征在于,所述低功耗WIFI模块还用于接收所述外部事件触发消息,依据所述外部事件触发消息的消息类型构建特定数据包,对所述特定数据包进行加密,并将加密的所述特定数据包通过所述保活链路推送给所述保活服务器。The low-power consumption device according to any one of claims 3 to 4, wherein the low-power WIFI module is further configured to receive the external event trigger message, and construct a message type according to the external event trigger message. a specific data packet, encrypting the specific data packet, and pushing the encrypted specific data packet to the keep-alive server through the keep-alive link.
  6. 如权利要求5所述的低功耗设备,其特征在于,所述外部事件触发消息的消息类型包括门铃按键触发、人体红外传感器触发或者移动警报触发。The low power consumption device of claim 5, wherein the message type of the external event trigger message comprises a doorbell button trigger, a human body infrared sensor trigger, or a mobile alarm trigger.
  7. 如权利要求5所述的低功耗设备,其特征在于,所述加密为哈希算法加密、MD5算法加密或者AES加密算法加密。The low power consumption device according to claim 5, wherein the encryption is hash algorithm encryption, MD5 algorithm encryption, or AES encryption algorithm encryption.
  8. 一种消息推送方法,其特征在于,所述方法包括:A message pushing method, characterized in that the method comprises:
    处于休眠状态时,检测外部事件是否触发;When it is in the sleep state, it detects whether an external event is triggered;
    当有外部事件触发时,通过保活链路将所述外部事件触发消息推送给保活服务器;所述保活链路是预先在低功耗设备与所述保活服务器之间通过网络传输协议建立的。When an external event is triggered, the external event trigger message is pushed to the keep-alive server through the keep-alive link; the keep-alive link is a network transmission protocol between the low-power device and the keep-alive server in advance built.
  9. 如权利要求8所述的消息推送方法,其特征在于,所述网络传输协议为传输控制协议TCP或者用户数据报协议UDP。The message pushing method according to claim 8, wherein the network transmission protocol is a Transmission Control Protocol (TCP) or a User Datagram Protocol (UDP).
  10. 如权利要求9所述的消息推送方法,其特征在于,当所述低功耗设备与所述保活服务器之间的保活链路是通过传输控制协议TCP连接时,通过所述保活链路推送消息给所述保活服务器的方法包括:The message pushing method according to claim 9, wherein when the keep alive link between the low power consumption device and the keep alive server is connected through a transmission control protocol TCP, the keepalive chain is passed The method for pushing a message to the keep-alive server includes:
    进入休眠模式,并通过所述保活链路与所述保活服务器保持长连接;Entering a sleep mode, and maintaining a long connection with the keep-alive server through the keep-alive link;
    处于休眠模式时,检测所述外部事件是否触发,并在所述外部事件触发时触发唤醒机制;When in the sleep mode, detecting whether the external event is triggered, and triggering a wake-up mechanism when the external event is triggered;
    在所述唤醒机制被触发后启动实时操作系统RTOS并初始化安全数字输入输出接口SDIO模块,并通过所述安全数字输入输出接口SDIO将所述外部事件触发消息进行推送。After the wake-up mechanism is triggered, the real-time operating system RTOS is started and the secure digital input/output interface SDIO module is initialized, and the external event trigger message is pushed through the secure digital input/output interface SDIO.
  11. 如权利要求9所述的消息推送方法,其特征在于,当所述低功耗设备与所述保活服务器之间的保活链路是通过数据报协议UDP连接时,通过所述保活链路推送消息给所述保活服务器的方法包括:The message pushing method according to claim 9, wherein when the keep alive link between the low power consumption device and the keep alive server is connected by a datagram protocol UDP, the keepalive chain is passed The method for pushing a message to the keep-alive server includes:
    进入休眠模式,并通过所述保活链路与所述保活服务器保持长连接;Entering a sleep mode, and maintaining a long connection with the keep-alive server through the keep-alive link;
    处于休眠模式时,检测所述外部事件是否触发,并在所述外部事件触发时通过通用输入输出接口GPIO推送所述外部事件触发消息。When in the sleep mode, detecting whether the external event is triggered, and pushing the external event trigger message through the universal input/output interface GPIO when the external event is triggered.
  12. 如权利要求10-11任一项所述的消息推送方法,其特征在于,所述当有外部事件触发时,通过保活链路将所述外部事件触发消息推送给保活服务器还包括:The message pushing method according to any one of claims 10 to 11, wherein when the external event is triggered, the external event triggering message is sent to the keep-alive server through the keep-alive link.
    接收所述外部事件触发消息,依据所述外部事件触发消息的消息类型构建特定数据包;Receiving the external event trigger message, and constructing a specific data packet according to the message type of the external event trigger message;
    对所述特定数据包进行加密,并将加密的所述特定数据包通过所述保活链路推送给所述保活服务器。Encrypting the specific data packet, and pushing the encrypted specific data packet to the keep-alive server through the keep-alive link.
  13. 如权利要求12所述的消息推送方法,其特征在于,所述外部事件触发消息的消息类型包括门铃按键触发、人体红外传感器触发或者移动警报触发。The message pushing method according to claim 12, wherein the message type of the external event trigger message comprises a doorbell button trigger, a human body infrared sensor trigger or a mobile alarm trigger.
  14. 如权利要求12所述的消息推送方法,其特征在于,所述加密方法为哈希算法加密、MD5算法加密或者AES加密算法加密的加密方法。The message pushing method according to claim 12, wherein the encryption method is an encryption method of hash algorithm encryption, MD5 algorithm encryption, or AES encryption algorithm encryption.
  15. 一种保活服务器,其特征在于,包括:A keep-alive server, comprising:
    接收模块,用于接收低功耗设备推送的特定数据包,并判断所述特定数据包是否为心跳包;a receiving module, configured to receive a specific data packet pushed by the low-power device, and determine whether the specific data packet is a heartbeat packet;
    解密模块,用于当所述特定数据包不是心跳包时,对所述数据包进行解密,并分析所述特定数据包的消息类型;a decryption module, configured to: when the specific data packet is not a heartbeat packet, decrypt the data packet, and analyze a message type of the specific data packet;
    推送模块,用于依据所述特定数据包的消息类型将所述特定数据包透传给推送服务器。And a pushing module, configured to transparently transmit the specific data packet to the push server according to the message type of the specific data packet.
  16. 如权利要求15所述的保活服务器,其特征在于,所述特定数据包的消息类型包括门铃按键触发、人体红外传感器触发或者移动警报触发。The keep-alive server according to claim 15, wherein the message type of the specific data packet comprises a doorbell button trigger, a human body infrared sensor trigger or a mobile alarm trigger.
  17. 一种消息推送方法,其特征在于,所述方法包括:A message pushing method, characterized in that the method comprises:
    接收低功耗设备推送的特定数据包,并判断所述特定数据包是否为心跳包;Receiving a specific data packet pushed by the low power device, and determining whether the specific data packet is a heartbeat packet;
    当所述特定数据包不是心跳包时,对所述数据包进行解密,并分析所述特定数据包的消息类型;When the specific data packet is not a heartbeat packet, decrypting the data packet, and analyzing a message type of the specific data packet;
    依据所述特定数据包的消息类型将所述特定数据包透传给推送服务器。The specific data packet is transparently transmitted to the push server according to the message type of the specific data packet.
  18. 根据权利要求17所述的消息推送方法,其特征在于,所述方法还包括:The message pushing method according to claim 17, wherein the method further comprises:
    当所述特定数据包为心跳包时,不执行解密操作,维持原有的状态继续接收数据包。When the specific data packet is a heartbeat packet, the decryption operation is not performed, and the original state is maintained to continue receiving the data packet.
  19. 如权利要求17所述的消息推送方法,其特征在于,所述外部事件触发消息的消息类型包括门铃按键触发、人体红外传感器触发或者移动警报触发。The message pushing method according to claim 17, wherein the message type of the external event trigger message comprises a doorbell button trigger, a human body infrared sensor trigger or a mobile alarm trigger.
  20. 一种消息推送系统,其特征在于,包括权利要求1-6任一项所述的低功耗设备以及15-16任一项所述的保活服务器,所述系统还包括:A message pushing system, comprising: the low-power device according to any one of claims 1 to 6 and the keep-alive server according to any one of 15 to 16, the system further comprising:
    推送服务器,用于接收所述保活服务器透传的特定数据包,并将所述特定数据包推送给用户端。And a push server, configured to receive a specific data packet transparently transmitted by the keep-alive server, and push the specific data packet to the user end.
PCT/CN2018/102068 2017-12-21 2018-10-24 Low power consumption device, keep-alive server, and message pushing method and system WO2019119846A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711397626.0 2017-12-21
CN201711397626.0A CN108270770B (en) 2017-12-21 2017-12-21 Low-power consumption equipment, keep-alive server, message pushing method and system

Publications (1)

Publication Number Publication Date
WO2019119846A1 true WO2019119846A1 (en) 2019-06-27

Family

ID=62772175

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/102068 WO2019119846A1 (en) 2017-12-21 2018-10-24 Low power consumption device, keep-alive server, and message pushing method and system

Country Status (2)

Country Link
CN (1) CN108270770B (en)
WO (1) WO2019119846A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111417179A (en) * 2020-03-17 2020-07-14 上海泰辑软件有限公司 Embedded low-power-consumption dual-chip 4G Internet of things communication method and system
CN113992737A (en) * 2020-07-09 2022-01-28 青岛海信宽带多媒体技术有限公司 Internet of things connection method, gateway server and gateway
CN114531497A (en) * 2020-10-30 2022-05-24 华为技术有限公司 TCP keep-alive method, device and system

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270770B (en) * 2017-12-21 2021-08-13 深圳市芯睿视科技有限公司 Low-power consumption equipment, keep-alive server, message pushing method and system
CN111194702A (en) * 2018-11-20 2020-05-26 广州佳可电子科技有限公司 Low-power consumption smart pet accompanies robot
CN111355685A (en) * 2018-12-21 2020-06-30 杭州登虹科技有限公司 Double-chain keep-alive scheme for low-power-consumption product
CN111355982B (en) * 2018-12-21 2022-04-01 杭州登虹科技有限公司 Low-power-consumption product real-time pushing system
CN113133095B (en) * 2020-01-15 2022-08-26 华为技术有限公司 Method for reducing power consumption of mobile terminal and mobile terminal
CN112637940B (en) * 2020-12-31 2024-03-08 南京佑川网络技术有限公司 Low-power-consumption equipment dormancy keep-alive system and method
CN113115416A (en) * 2021-03-12 2021-07-13 广州安凯微电子股份有限公司 Control method, device and system for doorbell equipment
CN113721751A (en) * 2021-08-11 2021-11-30 威胜信息技术股份有限公司 Low-power-consumption management method and system based on event and dormancy timer
CN114222062A (en) * 2021-12-13 2022-03-22 杭州萤石软件有限公司 Stream taking method, low-power-consumption battery equipment, client, stream taking system and equipment
CN115412381B (en) * 2022-08-26 2024-03-19 普联技术有限公司 Notification method, intelligent access control equipment, doorbell module, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110255692A1 (en) * 2010-04-14 2011-10-20 Qualcomm Incorporated Power savings through cooperative operation of multiradio devices
CN104252136A (en) * 2014-10-10 2014-12-31 中国联合网络通信集团有限公司 Intelligent home control method and system
CN104469451A (en) * 2014-11-12 2015-03-25 海信集团有限公司 Method and device for awakening terminal equipment
CN107360362A (en) * 2017-06-16 2017-11-17 深圳市共进电子股份有限公司 Portable network video camera and wireless router operation method
CN108270770A (en) * 2017-12-21 2018-07-10 深圳市力科威尔智能科技有限公司 A kind of low power consuming devices, keep-alive server, information push method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8989818B2 (en) * 2011-11-04 2015-03-24 Facebook, Inc. Device actions based on device power
CN104113883B (en) * 2014-07-09 2017-09-26 深圳市双赢伟业科技股份有限公司 A kind of wireless network dormancy and the method and system waken up

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110255692A1 (en) * 2010-04-14 2011-10-20 Qualcomm Incorporated Power savings through cooperative operation of multiradio devices
CN104252136A (en) * 2014-10-10 2014-12-31 中国联合网络通信集团有限公司 Intelligent home control method and system
CN104469451A (en) * 2014-11-12 2015-03-25 海信集团有限公司 Method and device for awakening terminal equipment
CN107360362A (en) * 2017-06-16 2017-11-17 深圳市共进电子股份有限公司 Portable network video camera and wireless router operation method
CN108270770A (en) * 2017-12-21 2018-07-10 深圳市力科威尔智能科技有限公司 A kind of low power consuming devices, keep-alive server, information push method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111417179A (en) * 2020-03-17 2020-07-14 上海泰辑软件有限公司 Embedded low-power-consumption dual-chip 4G Internet of things communication method and system
CN111417179B (en) * 2020-03-17 2023-10-24 上海泰辑软件有限公司 Dual-chip 4G Internet of things communication method and system based on embedded low power consumption
CN113992737A (en) * 2020-07-09 2022-01-28 青岛海信宽带多媒体技术有限公司 Internet of things connection method, gateway server and gateway
CN114531497A (en) * 2020-10-30 2022-05-24 华为技术有限公司 TCP keep-alive method, device and system

Also Published As

Publication number Publication date
CN108270770A (en) 2018-07-10
CN108270770B (en) 2021-08-13

Similar Documents

Publication Publication Date Title
WO2019119846A1 (en) Low power consumption device, keep-alive server, and message pushing method and system
US9198217B2 (en) Method for maintaining connection between terminal and network server, terminal and network server
EP3258651B1 (en) Ip camera control method, apparatus, and system
EP3462802B1 (en) Bluetooth connection method and terminal
EP3201789B1 (en) Bluetooth low energy hostless private address resolution
US11843943B2 (en) Dynamic key exchange for moving target
TW200929942A (en) Low power operation of networked devices
EP2856698B1 (en) Network presence offload
CN110677899B (en) Data transmission method, device, terminal equipment and storage medium
WO2022022175A1 (en) Multimedia data processing method and apparatus, and electronic device and storage medium
WO2015077961A1 (en) Method for sending heartbeat message and mobile terminal
US20220394023A1 (en) Encryption for one-way data stream
WO2018214744A1 (en) Information processing method and related product
US20140254446A1 (en) Wireless personal area network device
US20080268880A1 (en) System and method for remote operation of a node
CN114584707A (en) Method for controlling power consumption of wireless communication module in camera
US11564162B2 (en) Access point wake up
WO2018176875A1 (en) Intelligent gnss power-saving device, positioning system, and method
CN109922440B (en) Data synchronization method, device, mobile terminal and storage medium
CN111866060A (en) TLS (transport layer service) connection method of communication equipment, communication equipment and communication system
US11907039B2 (en) Information handling system location wakeup radio interface synchronized communications
US11943712B2 (en) Information handling system and peripheral group wakeup radio interface synchronized communications
US11737026B2 (en) Information handling system and peripheral wakeup radio interface synchronized communications
US11665645B2 (en) Information handling system and peripheral wakeup radio interface configuration
US11435810B1 (en) Information handling system and peripheral bi-directional wakeup interface

Legal Events

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

Ref document number: 18890170

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18890170

Country of ref document: EP

Kind code of ref document: A1