CN116346881A - Connection method, system, device and medium of low-power consumption monitoring system - Google Patents

Connection method, system, device and medium of low-power consumption monitoring system Download PDF

Info

Publication number
CN116346881A
CN116346881A CN202310322583.9A CN202310322583A CN116346881A CN 116346881 A CN116346881 A CN 116346881A CN 202310322583 A CN202310322583 A CN 202310322583A CN 116346881 A CN116346881 A CN 116346881A
Authority
CN
China
Prior art keywords
client
connection
power consumption
low
network detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310322583.9A
Other languages
Chinese (zh)
Inventor
方彪
蔡乾盟
姚龙龙
金伟
应红力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Mirui Technology Co ltd
Original Assignee
Hangzhou Mirui Technology Co ltd
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 Hangzhou Mirui Technology Co ltd filed Critical Hangzhou Mirui Technology Co ltd
Publication of CN116346881A publication Critical patent/CN116346881A/en
Pending legal-status Critical Current

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/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a connection method, a system, a device and a storage medium of a low-power consumption monitoring system, which are applied to the field of low-power consumption monitoring systems. And after receiving the wake-up command, the monitoring equipment determines that the network detection is successful, and handshake request connection is established between the monitoring equipment and the client so that the client can acquire the audio and video from the monitoring equipment. By the method, the client wakes up the low-power-consumption equipment and firstly detects whether a bidirectional communication channel can be directly established with the low-power-consumption module, if the network detection is found to be successful, the master control can directly establish handshake connection according to the available contact address of the client, so that the time for connecting the server after the master control is electrified and then starting to establish a forwarding link or a new peer-to-peer (P2P) link through the server can be saved, the connection time of the client and the equipment is greatly shortened, the waiting time of the client for checking the low-power-consumption monitoring audio and video is shortened, the bandwidth is reduced, the operation cost of the server is saved, and the client experience is improved.

Description

Connection method, system, device and medium of low-power consumption monitoring system
Technical Field
The present disclosure relates to the field of low power consumption monitoring systems, and in particular, to a method, a system, a device, and a storage medium for connecting a low power consumption monitoring system.
Background
With the development of scientific technology, the low-power consumption monitoring equipment has the advantages of low power consumption, long standby time, remote real-time awakening and the like due to the fact that the low-power consumption monitoring equipment can be powered by a battery, and has high utilization rate.
At present, two working modes of the main low-power consumption monitoring equipment are a main control normal power-on working mode and a power-saving sleep mode, no matter whether the client and the equipment are in any network or not, the client is required to send a wake-up command to the server, the server transmits a message to the low-power consumption monitoring equipment through a corresponding link, the low-power consumption monitoring equipment wakes up the main control and is powered on after receiving the command, the main control is powered on and is connected to the server, the client can start to establish a forwarding link with the main control at the moment or start to establish a P2P link, after the link is established successfully, the client finally requests the equipment to send audio and video, and the client decodes and plays the audio and video after receiving the audio and video stream, so that the total time from waking up the low-power consumption equipment to receiving the audio and video of the equipment is relatively long, and the experience brought to the client is general.
In view of the above problems, a solution to the above technical problems is sought for by those skilled in the art.
Disclosure of Invention
The application aims to provide a connection method, a system, a device and a storage medium of a low-power consumption monitoring system.
According to the method, after the monitoring equipment receives the wake-up command, network detection success is determined, a handshake request is sent to the client based on network detection success information, handshake response data sent by the client are obtained, connection success with the client is determined, and handshake response confirmation data are returned to the client so that the client can conveniently obtain audio and video from the monitoring equipment. By the method, the client wakes up the low-power-consumption equipment and firstly detects whether a bidirectional communication channel can be directly established with the low-power-consumption module, if the network detection is found to be successful, the master control can directly establish handshake connection according to the available contact address of the client, so that the time for connecting the server after the master control is electrified and then starting to establish a forwarding link or a new P2P link through the server is saved, the connection time of the client and the equipment is greatly shortened, the waiting time of a client for checking and monitoring audio and video is shortened, the bandwidth is reduced, the cost is saved, and the client experience is improved.
In order to solve the above technical problems, the present application provides a connection method of a low power consumption monitoring system, applied to a monitoring device, the method includes:
acquiring a wake-up command from a client forwarded by a server;
sending a network detection request message to the client according to the wake-up command;
sending a handshake request message to the client according to the network detection success message;
and establishing handshake request connection with the client so that the client can acquire the audio and video from the monitoring equipment.
Preferably, the monitoring device comprises: the system comprises a low-power-consumption module and a main control module, wherein the power consumption of the low-power-consumption module is far smaller than that of the main control module;
the low-power consumption module is used for acquiring a wake-up command from the client forwarded by the server and waking up the main control module according to the wake-up command.
Preferably, establishing the handshake request connection with the client comprises:
acquiring a handshake response message sent by a client;
returning a handshake response confirmation message to the client;
and determining that the connection with the client is successful.
Preferably, before sending the handshake request message to the client according to the network probe success message, the method further comprises:
sending a network detection request message with verification information to a client;
acquiring a network detection response message with verification information sent by a client and verifying the network detection response message;
if the verification is not qualified, discarding the network detection response data packet;
and if the verification is qualified, sending a network detection response confirmation message to the client and acquiring network detection success information.
Preferably, acquiring the wake-up command from the client forwarded by the server comprises:
acquiring a wake-up command carrying network detection request address information and network detection request verification information acquired from a server;
and waking up the main control module according to the wake-up command.
Preferably, sending the handshake request message to the client according to the network probe success message further comprises:
if the handshake request connection with the client fails to be established, judging whether the handshake request exceeds a preset duration;
if the preset time period is not exceeded, the step of sending a handshake request message to the client is re-entered.
In order to solve the above technical problems, the present application further provides a connection method of a low power consumption monitoring system, applied to a client, the method includes:
sending a wake-up command to the monitoring equipment through the server;
acquiring a network detection request message sent by monitoring equipment;
acquiring a handshake request message sent by monitoring equipment;
establishing handshake request connection with the monitoring equipment;
and acquiring audio and video data from the monitoring equipment.
In order to solve the above technical problem, the present application further provides a connection system of a low power consumption monitoring system, which is applied to a monitoring device, and includes:
the acquisition module is used for acquiring a wake-up command from the client forwarded by the server;
the first sending module is used for sending a network detection request message to the client according to the wake-up command;
the second sending module is used for sending a handshake request message to the client according to the network detection success message;
the establishing module is used for establishing handshake request connection with the client so that the client can acquire audio and video from the monitoring equipment.
In order to solve the technical problem, the application also provides a connection device of the low-power consumption monitoring system, which comprises a memory for storing a computer program;
and the processor is used for realizing the steps of the connection method of the low-power consumption monitoring system when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the connection method of the low power consumption monitoring system as described above.
According to the connection method of the low-power consumption monitoring system, after the monitoring equipment receives the wake-up command, network detection success is determined, a handshake request is sent to the client based on network detection success information, handshake response data sent by the client are obtained, connection success with the client is determined, and the handshake response confirmation data are returned to the client so that the client can obtain audio and video from the monitoring equipment. By the method, the client wakes up the low-power-consumption equipment and firstly detects whether a bidirectional communication channel can be directly established with the low-power-consumption module, if the network detection is found to be successful, the master control can directly establish handshake connection according to the available contact address of the client, so that the time for connecting the server after the master control is electrified and then starting to establish a forwarding link or a new P2P link through the server is saved, the connection time of the client and the equipment is greatly shortened, the waiting time of a client for checking and monitoring audio and video is shortened, the bandwidth is reduced, the cost is saved, and the client experience is improved.
The application also provides a connection system, a device and a computer readable storage medium of the low-power consumption monitoring system, which correspond to the method and have the same beneficial effects as the method.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a connection method of a low power consumption monitoring system provided by the present application;
FIG. 2 is a flow chart of a scheme for fast connection between a client and a monitoring device;
FIG. 3 is a flowchart of a connection method of a low power consumption monitoring system according to another embodiment of the present application;
FIG. 4 is a block diagram of a connection system of a low power monitoring system provided in the present application;
fig. 5 is a block diagram of a connection device of a low power consumption monitoring system according to another embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
The core of the application is to provide a connection method, a system, a device and a storage medium of a low-power consumption monitoring system.
According to the method, after the monitoring equipment receives the wake-up command, network detection success is determined, a handshake request is sent to the client based on network detection success information, handshake response data sent by the client are obtained, connection success with the client is determined, and handshake response confirmation data are returned to the client so that the client can conveniently obtain audio and video from the monitoring equipment. By the method, the client wakes up the low-power-consumption equipment and firstly detects whether a bidirectional communication channel can be directly established with the low-power-consumption module, if the network detection is found to be successful, the master control can directly establish handshake connection according to the available contact address of the client, so that the time for connecting the server after the master control is electrified and then starting to establish a forwarding link or a new P2P link through the server is saved, the connection time of the client and the equipment is greatly shortened, the waiting time of a client for checking and monitoring audio and video is shortened, the bandwidth is reduced, the cost is saved, and the client experience is improved.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
Fig. 1 is a flowchart of a connection method of a low power consumption monitoring system provided in the present application, which is applied to a monitoring device, as shown in fig. 1, and the method includes:
s10: acquiring a wake-up command from a client forwarded by a server;
it should be noted that, when the monitoring device is in a power-down state when not in use, when the client wants to acquire the audio and video in the monitoring device, the corresponding wake-up command needs to be sent to the monitoring device through the server so as to enable the monitoring device to be in a power-on state, and after the monitoring device acquires the wake-up command forwarded by the server, the monitoring device is in a state of waking up the main control and powering up. The embodiment of the application does not limit specific modules contained in the monitoring device, and the embodiment of the application does not limit a mode of waking up the monitoring device. In addition, the embodiment of the application does not limit the mode of forwarding the wake-up command by the server and does not limit the type of the server.
S11: sending a network detection request message to the client according to the wake-up command;
s12: sending a handshake request message to the client according to the network detection success message;
s13: and establishing handshake request connection with the client so that the client can acquire the audio and video from the monitoring equipment.
It should be noted that, when the monitoring device is in the wake-up state, a handshake request message may be sent to the client, and according to the handshake request message, a corresponding handshake request connection is established between the client and the client, so that communication between the subsequent client and the server through the handshake request connection is facilitated, and forwarding of each communication through the server is not required, so that the client can acquire audio and video from the monitoring device. The method for establishing the handshake request connection is not limited, and the number of handshakes between the client and the monitoring device is not limited in the embodiment of the application. In addition, the embodiment of the application does not limit the action between the client and the monitoring device before the handshake connection is established, and can be changed according to actual conditions.
The embodiment of a specific scenario is provided, for example, as shown in fig. 2, in the scheme flowchart of the quick connection between the client and the monitoring device provided in fig. 2, network detection is performed before the client and the monitoring device handshake, after the network detection is successful, handshake between the client and the monitoring device is performed, after handshake connection is established and confirmed, the client and the monitoring device are proved to be successfully connected, at this time, the client can send an instruction for requesting audio and video to the monitoring device, the monitoring device returns an instruction for requesting confirmation to the client, and simultaneously transmits an audio and video packet, in order to realize the integrity of audio and video data communication, the communication modes of the client and the monitoring device after the handshake are successful all perform data fixed-length subpackaging, and simultaneously buffer subpackaging is performed, and the subpackaging buffer is deleted after the other packet confirmation is received, after the client confirms that the audio and video packet is received, simultaneously, in order to prevent the situation that the audio and video packet cannot be transmitted due to network detection, the monitoring device is connected with the client, and the master control module of the monitoring device can also be automatically connected with the server so as to ensure that the audio and video packet can be transmitted through the server, or a link is not established according to the fact that the embodiment is limited to the embodiment of the method, which can not be provided in other practical conditions. The embodiments of the present application do not limit the manner in which network probing occurs.
It can be seen that, according to the method provided by the embodiment of the application, after the monitoring device receives the wake-up command, the network detection success is determined, the handshake request is sent to the client based on the network detection success information, the handshake response data sent by the client is obtained, the connection success with the client is determined, and the handshake response confirmation data is returned to the client, so that the client can obtain the audio and video from the monitoring device. By the method, the client wakes up the low-power-consumption equipment and firstly detects whether a bidirectional communication channel can be directly established with the low-power-consumption module, if the network detection is found to be successful, the master control can directly establish handshake connection according to the available contact address of the client, so that the time for connecting the server after the master control is electrified and then starting to establish a forwarding link or establishing a new P2P link through the server can be saved, the connection time of the client and the equipment is greatly shortened, the waiting time of the client for checking the low-power-consumption monitoring audio and video is shortened, the bandwidth is reduced, the cost is saved, and the client experience is improved.
On the basis of the above embodiments, the present application provides a preferred embodiment, the monitoring device includes: the system comprises a low-power-consumption module and a main control module, wherein the power consumption of the low-power-consumption module is far smaller than that of the main control module;
the low-power consumption module is used for acquiring a wake-up command from the client forwarded by the server and waking up the main control module according to the wake-up command.
The low-power consumption monitoring system module is generally composed of a main control module, a low-power consumption module and the like, wherein the main control module and the low-power consumption module are controlled by a network module (a WIFI module or a 4G/5G module and the like). The main control module mainly realizes the service functions of video and audio acquisition coding, video and audio storage and transmission, video analysis, alarm pushing and the like of the related functions of the video camera, and quickly enters a power-off state after the related service functions are completed, is a main service module and is also a relatively high-power-consumption module, and can be in a power-off state under the general condition in order to avoid the need of connecting an external power supply for a long time and the need of long standby time. The network module mainly completes the communication between the equipment and the Internet network, forwards the received network message to the main control module or the low-power consumption module according to the port mapping configuration rule, and can also forward the information of the main control module and the low-power consumption module through the network module, thereby mainly realizing network communication and message routing forwarding. The low-power consumption power saving module is mainly used for saving power consumption, when the main control is powered off and powered down, the low-power consumption module is connected with the server in a keep-alive mode through the service function of the low-power consumption module, so that equipment can be awakened by a network remotely, and a client can be awakened remotely at any time to check and monitor. In order to improve the graphic speed experience of a client for checking videos by using a client wake-up device, the scheme optimizes the scheme of simultaneous wake-up and detection connection on the basis of the traditional client wake-up a master control connection server and then connection establishment. If the connection network between the client and the equipment detects connection failure, the method has no influence on the drawing speed, and is compatible with the traditional client, the main control connection server is awakened first, then connection is established with the main control, and finally audio and video are requested. The embodiments of the present application are not limited to comprising only the above modules.
It can be seen that, according to the method provided by the embodiment of the application, after the monitoring device receives the wake-up command, the network detection success is determined, the handshake request is sent to the client based on the network detection success information, the handshake response data sent by the client is obtained, the connection success with the client is determined, and the handshake response confirmation data is returned to the client, so that the client can obtain the audio and video from the monitoring device. By the method, the client wakes up the low-power-consumption equipment and firstly detects whether a bidirectional communication channel can be directly established with the low-power-consumption module, if the network detection is found to be successful, the master control can directly establish handshake connection according to the available contact address of the client, so that the time for connecting the server after the master control is electrified and then starting to establish a forwarding link or a new P2P link through the server is saved, the connection time of the client and the equipment is greatly shortened, the waiting time of a client for checking and monitoring audio and video is shortened, the bandwidth is reduced, the cost is saved, and the client experience is improved.
Based on the foregoing embodiments, the present application provides a preferred embodiment, where establishing a handshake request connection with a client includes:
acquiring a handshake response message sent by a client;
returning a handshake response confirmation message to the client;
and determining that the connection with the client is successful.
It should be noted that, two ports may be set for the client, one of which is a network probe response server1 (server 1) and a network probe receiving and handshaking server2 (server 2), where the repliable response of the port bound by server1 is distributed to the low-power consumption module through the low-power consumption device network module, and the repliable response of the port bound by server2 is distributed to the master control module through the low-power consumption device network module, and the server2 is also used for receiving the network probe request and confirmation message sent by the low-power consumption module to the client and the handshaking request and confirmation message sent by the master control module to the client. As shown in fig. 2, after the main control module is started, the main control module is connected to the central server, and at the same time, firstly, information and a state of network detection success are obtained from the low-power consumption module, if the network detection success is found, a handshake request is sent to the server2, based on the result of the network detection success before, the server2 can receive the handshake request, the server2 firstly checks the validity of the handshake information at this time, if the validity is legal, the main control module is directly replied with handshake response through the server2, at this time, according to configured forwarding rules, data sent by the server2 is responded to the main control module, after the main control module receives the handshake response, the connection state with the client is considered to be successful, the upper layer connection of the equipment is notified to be successful, the client data request is waited to be received, and at the same time, handshake response confirmation is sent to the client server 2. And the client server2 waits for receiving the handshake response confirmation message of the main control module, and continuously sends the handshake response message to the main control module. When the client server2 receives the handshake response confirmation message sent by the main control module and checks the handshake response confirmation message, the client server stops retransmitting the handshake response, namely, the connection state with the equipment end is considered to be successful, and the client server is informed that the upper layer connection is ready, so that the connection can be directly carried out. After connection, the audio and video data can be requested to be transmitted, in order to completely realize the correct decoding of the audio and video by the client, the communication between the client and the main control module of the monitoring equipment can also need to carry out a certain length of subpackage before sending the data packet, and meanwhile, the local subpackage buffer is also carried out, the packet can be deleted only when the other party receives the confirmation of the packet, otherwise, the packet needs to be quickly retransmitted at regular time, so that the client can completely decode and play the audio and video data in real time after receiving the audio and video data, and after the handshake connection is successful, the heartbeat packet needs to be sent to the other party at regular time to keep the link from being released by the gateway node, and meanwhile, the link can be used for confirming whether the link is continuously available.
The embodiment of the present application provides only a preferred specific implementation, and is not limited to only the above method, but is not limited to the specific manner of handshake request, is not limited to the number of handshakes, and is not limited to the manner of sending the application.
It can be seen that, in the method provided by this embodiment, after receiving the wake-up command by the monitoring device, it is determined that network detection is successful, based on the network detection success information, a handshake request is sent to the client, handshake response data sent by the client is obtained, connection with the client is determined to be successful, and handshake response confirmation data is returned to the client, so that the client can obtain audio and video from the monitoring device. By the method, the client wakes up the low-power-consumption equipment and firstly detects whether a bidirectional communication channel can be directly established with the low-power-consumption module, if the network detection is found to be successful, the master control can directly establish handshake connection according to the available contact address of the client, so that the time for connecting the server after the master control is electrified and then starting to establish a forwarding link or a new P2P link through the server is saved, the connection time of the client and the equipment is greatly shortened, the waiting time of a client for checking and monitoring audio and video is shortened, the bandwidth is reduced, the cost is saved, and the client experience is improved.
Based on the foregoing embodiments, the present application provides a preferred embodiment, further including, before sending a handshake request message to a client according to a network probe success message:
sending a network detection request message with verification information to a client;
acquiring a network detection response message with verification information sent by a client and verifying the network detection response message;
if the verification is not qualified, discarding the network detection response data packet;
and if the verification is qualified, sending a network detection response confirmation message to the client and acquiring network detection success information.
It should be noted that, when the wake-up command is received, the low power module sends a network probe request to the server2, where the probe request carries verification information so that the client performs validity verification. And when the low-power module does not receive the network detection response but does not detect the time-out, the network detection request is continuously resent to the server2 until the network detection response or the detection time-out is received. If the server2 on the client receives the network detection packet, firstly checking the validity of the detection packet, and if not, discarding the detection packet. If the verification rule is that the network detection response is immediately sent to the monitoring equipment through the server1, the data response sent by the server1 is forwarded to the low-power-consumption module according to the forwarding rule configured by the low-power-consumption network module, at the moment, if the low-power-consumption module receives the network detection response, the data is also legally verified, if the low-power-consumption module does not legally verify the data, the data is discarded, if the data passes the verification, the network detection information and the detection success state are updated, and meanwhile, the network detection response confirmation is returned to the client server 2. If the client server2 does not receive the network detection response confirmation but does not detect the timeout, the network detection response is continuously sent to the monitoring equipment through the server 1. If the server2 has received the network detection response confirmation message, notifying the server1 to stop sending the network detection response, notifying the upper network detection of the client to succeed, and waiting for handshake connection. If any of the above steps has time-out, the network detection is considered to fail. The embodiment of the present application provides only one preferred specific implementation, and is not limited to only the above-mentioned method, but the embodiment of the present application does not limit the specific manner of network detection, and does not limit the number of detection requests, and in addition, the embodiment of the present application does not limit the manner of sending the network detection application, and the embodiment of the present application does not limit the waking process specifically.
It can be seen that, in the method provided by this embodiment, after receiving the wake-up command by the monitoring device, it is determined that network detection is successful, based on the network detection success information, a handshake request is sent to the client, handshake response data sent by the client is obtained, connection with the client is determined to be successful, and handshake response confirmation data is returned to the client, so that the client can obtain audio and video from the monitoring device. By the method, the client wakes up the low-power-consumption equipment and firstly detects whether a bidirectional communication channel can be directly established with the low-power-consumption module, if the network detection is found to be successful, the master control can directly establish handshake connection according to the available contact address of the client, so that the time for connecting the server after the master control is electrified and then starting to establish a forwarding link or a new P2P link through the server is saved, the connection time of the client and the equipment is greatly shortened, the waiting time of a client for checking and monitoring audio and video is shortened, the bandwidth is reduced, the cost is saved, and the client experience is improved.
Based on the foregoing embodiments, the present application provides a preferred embodiment, where obtaining a wake-up command from a client forwarded by a server includes:
acquiring a wake-up command carrying network detection request address information and network detection request verification information acquired from a server;
and waking up the main control module according to the wake-up command.
When the client needs to wake up the low-power consumption monitoring device in the sleep state, the wake-up command needs to carry the contact address and the related verification information of the local server2, and the wake-up command is forwarded by the server and distributed to the low-power consumption module through the network module, and then the low-power consumption module starts to wake up the main control module.
Therefore, according to the method provided by the embodiment of the application, in a normal state, the main control is in the power-down state, the power consumption of the low-power-consumption module is relatively small, the bandwidth is reduced by using the awakening mode, the cost is saved, and the customer experience is improved.
On the basis of the foregoing embodiment, the present application provides a preferred embodiment, further including, after sending a handshake request message to a client according to a network probe success message:
if the handshake request connection with the client fails to be established, judging whether the handshake request exceeds a preset duration;
if the preset time period is not exceeded, the step of sending a handshake request message to the client is re-entered.
It should be noted that, in a preferred embodiment provided by the present invention, if the master control module does not receive the handshake response but does not handshake timeout yet, the master control module continues to send handshake information to the server2 until receiving the handshake response, and then stops retransmitting.
Therefore, by the method provided by the application, whether the request is received or not is judged for multiple times, if not, the request is sent for multiple times without overtime, connection is not required to be reestablished, connection time of the client and the equipment is shortened, and user experience is improved.
In order to solve the above technical problem, the present application further provides a connection method of a low power consumption monitoring system, which is applied to a client, and fig. 3 is a flowchart of a connection method of a low power consumption monitoring system according to another embodiment of the present application, as shown in fig. 3, where the method includes:
s30: sending a wake-up command to the monitoring equipment through the server;
s31: acquiring a network detection request message sent by monitoring equipment;
s32: acquiring a handshake request message sent by monitoring equipment;
s33: establishing handshake request connection with the monitoring equipment;
s34: and acquiring audio and video data from the monitoring equipment.
The embodiment of the connection method part applied to the low-power consumption monitoring system of the client is the same as the embodiment of the connection method of the low-power consumption monitoring system of the application and monitoring device, and is not repeated herein.
The connection method applied to the low-power consumption monitoring system of the client has the same beneficial effects as the connection method of the low-power consumption monitoring system of the application and the monitoring equipment.
Based on the angle of the functional module, the present application further provides a connection system of a low-power consumption monitoring system, and fig. 4 is a structural diagram of the connection system of the low-power consumption monitoring system, applied to a monitoring device, where the system includes:
an acquisition module 40, configured to acquire a wake-up command from a client forwarded by a server;
a first sending module 41, configured to send a network probe request message to the client according to the wake-up command;
a second sending module 42, configured to send a handshake request message to the client according to the network probe success message;
the establishing module 43 is configured to establish a handshake request connection with the client, so that the client obtains an audio/video from the monitoring device.
Since the embodiments of the system portion and the embodiments of the method portion correspond to each other, the embodiments of the system portion refer to the description of the embodiments of the method portion, which is not repeated herein.
The connection system of the low-power consumption monitoring system provided by the embodiment corresponds to the connection method of the low-power consumption monitoring system, so that the connection system has the same beneficial effects as the method.
Fig. 5 is a structural diagram of a connection device of a low power consumption monitoring system according to another embodiment of the present application, where, as shown in fig. 5, the connection device of the low power consumption monitoring system includes: a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the connection method of the low power consumption monitoring system as mentioned in the above embodiments when executing a computer program.
The connection device of the low-power consumption monitoring system provided by the embodiment can include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (Graphics Processing Unit, GPU) for taking care of rendering and rendering of the content that the display screen is required to display. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program, after being loaded and executed by the processor 21, can implement the relevant steps of the connection method of the low power consumption monitoring system disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, data related to a connection method of the low power consumption monitoring system, and the like.
In some embodiments, the connection device of the low power consumption monitoring system may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not limiting of the connection means of the low power monitoring system and may include more or fewer components than shown.
The connection device of the low-power consumption monitoring system provided by the embodiment of the application comprises a memory and a processor, wherein when the processor executes a program stored in the memory, the processor can realize the following method: a connection method of a low-power consumption monitoring system.
Finally, the present application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution contributing to the prior art, or in a software product stored in a storage medium, performing all or part of the steps of the methods of the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The connection method, system, device and storage medium of the low-power consumption monitoring system provided by the application are described in detail above. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.

Claims (10)

1. A method for connecting a low power consumption monitoring system, the method being applied to a monitoring device, the method comprising:
acquiring a wake-up command from a client forwarded by a server;
sending a network detection request message to the client according to the wake-up command;
sending a handshake request message to the client according to a network detection success message;
and establishing handshake request connection with the client so that the client can acquire audio and video from the monitoring equipment.
2. The connection method of the low power consumption monitoring system according to claim 1, wherein the monitoring device comprises: the system comprises a low-power-consumption module and a main control module, wherein the power consumption of the low-power-consumption module is smaller than that of the main control module;
the low power consumption module is used for acquiring a wake-up command from the client terminal forwarded by the server and waking up the main control module according to the wake-up command.
3. The connection method of the low power consumption monitoring system according to claim 2, wherein the establishing a handshake request connection with the client includes:
acquiring a handshake response message sent by the client;
returning a handshake response acknowledgement message to the client;
and determining that the connection with the client is successful.
4. The connection method of the low power consumption monitoring system according to claim 3, wherein before the handshake request message is sent to the client according to the network probe success message, further comprising:
sending a network detection request message with verification information to the client;
acquiring a network detection response message with verification information sent by the client and verifying the network detection response message;
if the verification is not qualified, discarding the network detection response data packet;
and if the verification is qualified, sending a network detection response confirmation message to the client and acquiring network detection success information.
5. The connection method of the low power consumption monitoring system according to claim 4, wherein the acquiring the wake-up command from the client forwarded by the server includes:
acquiring a wake-up command carrying network detection request address information and network detection request verification information acquired from the server;
and waking up the main control module according to the wake-up command.
6. The connection method of the low power consumption monitoring system according to any one of claims 1 to 5, wherein after sending the handshake request message to the client according to the network probe success message, further comprises:
if the handshake request connection with the client fails to be established, judging whether the handshake request exceeds a preset duration;
and if the preset time period is not exceeded, re-entering the step of sending the handshake request message to the client.
7. A method for connecting a low power consumption monitoring system, the method being applied to a client, the method comprising:
sending a wake-up command to the monitoring equipment through the server;
acquiring a network detection request message sent by the monitoring equipment;
acquiring a handshake request message sent by the monitoring equipment;
establishing handshake request connection with the monitoring equipment;
and acquiring audio and video data from the monitoring equipment.
8. A connection system of a low power consumption monitoring system, which is applied to a monitoring device, comprising:
the acquisition module is used for acquiring a wake-up command from the client forwarded by the server;
the first sending module is used for sending a network detection request message to the client according to the wake-up command;
the second sending module is used for sending a handshake request message to the client according to the network detection success message;
and the establishing module is used for establishing handshake request connection with the client so that the client can acquire the audio and video from the monitoring equipment.
9. The connection device of the low-power consumption monitoring system is characterized by comprising a memory for storing a computer program;
a processor for implementing the steps of the connection method of the low power consumption monitoring system according to any one of claims 1 to 6 when executing the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the connection method of a low power consumption monitoring system according to any of claims 1 to 6.
CN202310322583.9A 2023-02-21 2023-03-29 Connection method, system, device and medium of low-power consumption monitoring system Pending CN116346881A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310139285.6A CN115883630A (en) 2023-02-21 2023-02-21 Connection method, system, device and medium of low-power-consumption monitoring system
CN2023101392856 2023-02-21

Publications (1)

Publication Number Publication Date
CN116346881A true CN116346881A (en) 2023-06-27

Family

ID=85761374

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310139285.6A Withdrawn CN115883630A (en) 2023-02-21 2023-02-21 Connection method, system, device and medium of low-power-consumption monitoring system
CN202310322583.9A Pending CN116346881A (en) 2023-02-21 2023-03-29 Connection method, system, device and medium of low-power consumption monitoring system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202310139285.6A Withdrawn CN115883630A (en) 2023-02-21 2023-02-21 Connection method, system, device and medium of low-power-consumption monitoring system

Country Status (1)

Country Link
CN (2) CN115883630A (en)

Also Published As

Publication number Publication date
CN115883630A (en) 2023-03-31

Similar Documents

Publication Publication Date Title
US10178614B2 (en) Power saving Wi-Fi tethering
US11243595B2 (en) Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker
US8707406B2 (en) Always-on virtual private network access
US8310969B2 (en) Mobile device and power saving method thereof
JP6226348B2 (en) Method for transmitting heartbeat message and portable terminal
US8781294B2 (en) Media content caching
WO2023174179A1 (en) Communication method and apparatus, electronic device and readable storage medium
CN110933171A (en) Server asynchronous communication method, device, equipment and computer storage medium
WO2023221948A1 (en) Information processing method, and device, storage medium and program product
CN111212151B (en) File transmission method, device and storage medium
WO2023174180A1 (en) Communication method and apparatus for analyte concentration data monitoring system
CN109788251B (en) Video processing method, device and storage medium
CN114584707A (en) Method for controlling power consumption of wireless communication module in camera
CN116346881A (en) Connection method, system, device and medium of low-power consumption monitoring system
JP3906890B2 (en) Network equipment
US9229520B2 (en) Managing gateway access
CN114268799B (en) Streaming media transmission method and device, electronic equipment and medium
CN114553936A (en) Connection method, connection device, electronic equipment and computer-readable storage medium
JP2008003645A (en) Request control method by timer link
CN108174458B (en) Method and device for wireless connection between mobile terminal and wearable device, mobile terminal and wearable device
CN113891028B (en) Visual doorbell communication method, device, equipment and medium
CN113835977B (en) State prompting method, state prompting device, computer equipment and computer readable storage medium
CN114422965B (en) Information interaction method and device, storage medium and electronic equipment
CN113873014A (en) Instruction processing method capable of supporting mass equipment, terminal and storage medium
CN116232739A (en) Data multi-terminal sharing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination