CN114244886B - Device control method, device control apparatus, and storage medium - Google Patents

Device control method, device control apparatus, and storage medium Download PDF

Info

Publication number
CN114244886B
CN114244886B CN202111387745.4A CN202111387745A CN114244886B CN 114244886 B CN114244886 B CN 114244886B CN 202111387745 A CN202111387745 A CN 202111387745A CN 114244886 B CN114244886 B CN 114244886B
Authority
CN
China
Prior art keywords
internet
equipment
proxy
information
things
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111387745.4A
Other languages
Chinese (zh)
Other versions
CN114244886A (en
Inventor
赵洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202111387745.4A priority Critical patent/CN114244886B/en
Publication of CN114244886A publication Critical patent/CN114244886A/en
Application granted granted Critical
Publication of CN114244886B publication Critical patent/CN114244886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/50Safety; Security of things, users, data or systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • 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/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • 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/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0838Key agreement, i.e. key establishment technique in which a shared key is derived by parties as a function of information contributed by, or associated with, each of these
    • 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
    • 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)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Cardiology (AREA)
  • Development Economics (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Selective Calling Equipment (AREA)
  • Power Sources (AREA)

Abstract

The disclosure relates to a device control method, a device and a storage medium. The equipment control method is applied to the equipment of the Internet of things, and comprises the following steps: establishing a secure connection with a cloud server; sending notification information to proxy equipment, wherein the notification information comprises context information of secure connection, and the proxy equipment is used for sending a keep-alive message to a cloud server through the secure connection based on the context information of the secure connection; and controlling the Internet of things equipment to enter a low power consumption mode. Through the embodiment of the disclosure, the internet of things device and the cloud server are connected safely, when the internet of things device is to enter a low-power mode, the context information of the safe connection is sent to the proxy device, the proxy device is informed to proxy, when the internet of things device enters the low-power mode, the proxy device multiplexes the safe connection with the cloud server to process the keep-alive service of the internet of things device, the internet of things device is reduced to be awakened frequently, the power consumption of the internet of things device is reduced, and cloud bandwidth resources are saved.

Description

Device control method, device control apparatus, and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to an apparatus control method, an apparatus control device, and a storage medium.
Background
In recent years, the technology of the internet of things is rapidly developed, more and more intelligent home devices are moved into the work and life of people, and in order to meet business needs, the intelligent home devices need to be connected and communicated with a cloud network in real time. Therefore, high technical requirements for low power consumption and quick networking of the terminal of the Internet of things are provided.
In order to keep real-time connection with the cloud server, the Internet of things terminal can be kept networking and remotely awakened. The intelligent home equipment needs to be connected with the cloud end in real time through the keep-alive message, and periodically interacts with the cloud end. When the intelligent household equipment is in standby, the chip is frequently interacted and awakened by transmitting the keep-alive message, and the low-power consumption characteristic of the chip is sacrificed. For some devices that employ built-in batteries due to usage condition limitations, the power consumption problem is a significant factor that affects the user experience.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an apparatus control method, an apparatus control device, and a storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided an apparatus control method applied to an internet of things apparatus, the apparatus control method including: establishing a secure connection with a cloud server; sending notification information to proxy equipment, wherein the notification information comprises the context information of the secure connection, and the proxy equipment is used for sending a keep-alive message to a cloud server through the secure connection based on the context information of the secure connection; and controlling the Internet of things equipment to enter a low power consumption mode.
In some embodiments, the device control method further comprises: and in response to receiving the wake-up information sent by the proxy equipment, controlling the Internet of things equipment to enter a normal power consumption working mode.
In some embodiments, the device control method further comprises: and responding to control the Internet of things equipment to enter a low-power consumption mode, and disconnecting the safe connection with the cloud server.
In some embodiments, the method further comprises: receiving the context information of the secure connection sent by the proxy equipment; and restoring the secure connection with the cloud server based on the context information of the secure connection, and sending the keep-alive message to the cloud server through the secure connection.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus control method applied to a proxy apparatus, the apparatus control method including: acquiring notification information sent by Internet of things equipment, wherein the notification information comprises context information of the secure connection established by the Internet of things equipment and a cloud server; performing hot migration on the secure connection based on the context information of the secure connection; and sending the keep-alive message of the Internet of things equipment to a cloud server through the secure connection.
In some embodiments, the device control method further comprises: receiving wake-up information sent by the cloud server, wherein the wake-up information is used for waking up the Internet of things equipment to enter a working mode; and sending the wake-up information and the context information of the secure connection to the Internet of things equipment, and disconnecting the secure connection with the cloud server.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus control method applied to a cloud server, the apparatus control method including: establishing a secure connection with the internet of things device; responding to the Internet of things equipment entering a low power consumption mode, and disconnecting the safe connection with the Internet of things equipment; and responding to the proxy equipment to perform the secure connection hot migration, and receiving the keep-alive message sent by the proxy equipment through the secure connection.
In some embodiments, the device control method further comprises: and sending wake-up information to the proxy equipment, wherein the wake-up information is used for waking up the internet of things equipment to enter a working mode and disconnecting the safety connection with the proxy equipment.
In some embodiments, the device control method further comprises: and after the wake-up information is sent to the proxy equipment, the secure connection with the internet of things equipment is restored, and the keep-alive message sent by the internet of things equipment is received through the secure connection.
According to a fourth aspect of embodiments of the present disclosure, there is provided an apparatus control device applied to an internet of things apparatus, the apparatus control device including: the connection unit is used for establishing safe connection with the cloud server; the sending unit is used for sending notification information to the proxy equipment, wherein the notification information comprises the context information of the secure connection, and the proxy equipment is used for sending a keep-alive message to the cloud server through the secure connection based on the context information of the secure connection; and the control unit is used for controlling the Internet of things equipment to enter a low-power consumption mode.
In some embodiments, the control unit is further configured to: and in response to receiving the wake-up information sent by the proxy equipment, controlling the Internet of things equipment to enter a normal power consumption working mode.
In some embodiments, the connection unit is further configured to: and responding to control the Internet of things equipment to enter a low-power consumption mode, and disconnecting the safe connection with the cloud server.
In some embodiments, the device control apparatus further comprises: a receiving unit, configured to receive context information of a secure connection sent by the proxy device; the connection unit is further configured to: based on the context information of the secure connection, recovering the secure connection with the cloud server; the sending unit is further configured to send the keep-alive message to a cloud server through the secure connection.
According to a fifth aspect of embodiments of the present disclosure, there is provided an apparatus control device applied to a proxy apparatus, the device including: the system comprises an acquisition unit, a cloud server and a cloud terminal server, wherein the acquisition unit is used for acquiring notification information sent by the Internet of things equipment, wherein the notification information comprises context information of the safety connection established between the Internet of things equipment and the cloud terminal server; a connection unit configured to perform a hot migration on the secure connection based on context information of the secure connection; and the sending unit is used for sending the keep-alive message of the Internet of things equipment to the cloud server through the secure connection.
In some embodiments, the device control apparatus further comprises: the receiving unit is used for receiving the awakening information sent by the cloud server, and the awakening information is used for awakening the Internet of things equipment to enter a working mode; the sending unit is further configured to send the wake-up information and context information of the secure connection to the internet of things device; the connection unit is also used for disconnecting the secure connection with the cloud server.
According to a sixth aspect of embodiments of the present disclosure, there is provided an apparatus control device applied to a cloud server, the device including: the connecting unit is used for establishing safe connection with the Internet of things equipment and disconnecting the safe connection with the Internet of things equipment in response to the Internet of things equipment entering a low-power consumption mode; and the receiving unit is used for responding to the proxy equipment to perform the secure connection hot migration and receiving the keep-alive message sent by the proxy equipment through the secure connection.
In some embodiments, the device control apparatus further comprises: and the sending unit is used for sending wake-up information to the proxy equipment, wherein the wake-up information is used for waking up the internet of things equipment to enter a working mode and disconnecting the safety connection with the proxy equipment.
In some embodiments, the connection unit is further configured to: after the wake-up information is sent to the proxy equipment, the secure connection with the internet of things equipment is restored; the receiving unit is further configured to receive, through the secure connection, a keep-alive message sent by the internet of things device.
According to still another aspect of the embodiments of the present disclosure, there is provided an apparatus control device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: the apparatus control method of any one of the preceding claims is performed.
According to yet another aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, which when executed by a processor of a mobile terminal, enables the mobile terminal to perform the device control method of any one of the preceding claims.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: the method comprises the steps that safety connection is established between the Internet of things equipment and the cloud server, when the Internet of things is to enter a low-power mode, context information of the safety connection is sent to proxy equipment, the proxy equipment is informed to proxy, when the Internet of things equipment enters the low-power mode, the proxy equipment multiplexes the safety connection with the cloud server to proxy the keep-alive service of the Internet of things equipment, the Internet of things equipment is frequently awakened, the power consumption of the Internet of things equipment is reduced, and cloud bandwidth resources are saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a schematic diagram of interaction among an internet of things device, a proxy device and a cloud server in the prior art.
Fig. 2 is a flowchart illustrating a device control method according to an exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a device control method according to still another exemplary embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating a device control method according to still another exemplary embodiment of the present disclosure.
Fig. 5 is a flowchart illustrating a device control method according to still another exemplary embodiment of the present disclosure.
Fig. 6 is a flowchart illustrating a device control method according to still another exemplary embodiment of the present disclosure.
Fig. 7 is a flowchart illustrating a device control method according to still another exemplary embodiment of the present disclosure.
Fig. 8 is a flowchart illustrating a device control method according to still another exemplary embodiment of the present disclosure.
Fig. 9 is a flowchart illustrating a device control method according to still another exemplary embodiment of the present disclosure.
Fig. 10 is a flowchart illustrating a device control method according to still another exemplary embodiment of the present disclosure.
Fig. 11 shows a schematic diagram of interaction among an internet of things device, a proxy device and a cloud server applying the device control method of the present disclosure.
Fig. 12 is a block diagram of a device control apparatus according to an exemplary embodiment of the present disclosure.
Fig. 13 is a block diagram of a device control apparatus according to still another exemplary embodiment of the present disclosure.
Fig. 14 is a block diagram of a device control apparatus according to still another exemplary embodiment of the present disclosure.
Fig. 15 is a block diagram of a device control apparatus according to still another exemplary embodiment of the present disclosure.
Fig. 16 is a block diagram of a device control apparatus according to still another exemplary embodiment of the present disclosure.
Fig. 17 illustrates a block diagram of an apparatus for device control according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In order to maintain network connection, the Internet of things equipment in the Internet of things needs to be connected with a cloud server in real time through a keep-alive mechanism, sends a keep-alive packet and receives a response of the server. The Internet of things equipment needs to be periodically awakened and frequently interacted with the cloud to perform a keep-alive mechanism.
Fig. 1 is a schematic diagram illustrating interaction among an internet of things device, a proxy device and a cloud server in the prior art, and referring to fig. 1, after the internet of things device is accessed to a network, a secure connection is established between the internet of things device and the cloud server, keep-alive information is sent to the cloud server, the internet of things device enters a low-power mode and periodically sends the keep-alive information, so that an internet of things device chip is awakened frequently due to the sending of the keep-alive information, and the power consumption of the internet of things device chip is increased. When a user views the application of the Internet of things equipment, the cloud server sends wake-up information to the Internet of things equipment, so that the Internet of things equipment enters a working mode. And in the working mode of the Internet of things equipment, sending service messages such as video and the like to the cloud server, and still periodically sending keep-alive information to the cloud server. The internet of things equipment is in a low-power consumption state when in standby, but is frequently awakened, so that the power consumption of the internet of things equipment in the low-power consumption state is increased, the power consumption speed is increased, and the endurance time of the equipment is reduced.
For some internet of things equipment, due to factors such as manufacturing process, use environment and the like, a power adapter cannot be used, only battery power supply can be adopted, and the power consumption of the equipment is one of the influencing factors of user experience.
Therefore, the device control method is characterized in that the Internet of things device and the proxy device are connected with the cloud server in a multiplexing mode, and when the Internet of things device enters a low-power mode, the proxy device processes the keep-alive service of the Internet of things device in a proxy mode, so that the Internet of things device is awakened frequently, and the power consumption of the Internet of things device is reduced.
Fig. 2 is a flowchart of a device control method according to an exemplary embodiment of the present disclosure, which is applied to an internet of things device, and as shown in fig. 2, the device control method includes the following steps.
In step S101, a secure connection is established with the cloud server.
In step S102, notification information is sent to the proxy device, where the notification information includes context information of the secure connection, and the proxy device is configured to send a keep-alive message to the cloud server through the secure connection based on the context information of the secure connection.
In step S103, the internet of things device is controlled to enter a low power consumption mode.
In the embodiment of the disclosure, the internet of things device may be any intelligent device in the internet of things, such as an intelligent home device, an intelligent wearable device, etc., and the proxy device may be a wireless Access Point (AP), where the wireless AP is an Access Point for a mobile computer user to enter a wired network, and is also the core of the wireless network. The internet of things equipment can be a simple wireless access point, a wireless router and other equipment.
In the embodiment of the present disclosure, the keep-alive message may also be referred to as a heartbeat packet, where a heartbeat generally refers to a custom instruction sent from one end to the other end of two communication parties to determine whether the two parties survive, and may be sent according to a period, similar to a heartbeat, so that the keep-alive message may also be referred to as a heartbeat instruction. The method comprises the steps that safety connection is established between the Internet of things equipment and a cloud server, notification information is sent to proxy equipment when the Internet of things equipment is to enter a low-power consumption mode, and context information of the safety connection established between the Internet of things equipment and the cloud server is sent to the proxy equipment through the notification information. The proxy device can send a keep-alive message to the cloud server through the secure connection based on the received context information of the secure connection. The internet of things device enters a low power mode, also referred to as a sleep mode. And after the Internet of things equipment enters a low-power consumption mode, the proxy equipment sends a keep-alive message to the cloud server through secure connection.
According to the embodiment of the disclosure, the internet of things device and the cloud server are connected safely, when the internet of things device is to enter a low-power mode, the context information of the safe connection is sent to the proxy device, the proxy device is informed to proxy, when the internet of things device enters the low-power mode, the proxy device multiplexes the safe connection with the cloud server to process the keep-alive service of the internet of things device, the internet of things device is reduced to be awakened frequently, the power consumption of the internet of things device is reduced, and cloud bandwidth resources are saved.
In some embodiments, the proxy device replaces the internet of things device to send the keep-alive message to the cloud server, and the internet of things device sends own device information to the proxy device, so that the proxy device performs identity authentication on the proxy device according to the received device information of the physical network device. The proxy equipment sends own equipment information to the internet of things equipment so that the internet of things equipment can carry out identity authentication on the proxy equipment according to the equipment information of the proxy equipment. In the embodiment of the disclosure, the internet of things device queries whether the accessed proxy device supports the proxy keep-alive function through a probe message (DETECT MESSAGE), and sends own device information to the proxy device through the probe message. When the proxy equipment supports the proxy keep-alive function, the equipment information of the proxy equipment can be sent through the detection response message (Detect Response Message), so that the internet of things equipment can carry out identity authentication on the proxy equipment according to the equipment information of the proxy equipment, illegal access to the proxy equipment is prevented, and the safety communication between the internet of things equipment and the proxy equipment is ensured.
In some embodiments, the proxy device and the internet of things device interact with each other through the cloud server, the internet of things device can carry local communication key negotiation information, and the local communication key negotiation information is sent to the proxy device through the cloud server. The proxy equipment and the Internet of things equipment share information required by key negotiation based on local communication key negotiation information so as to establish an encryption channel, and the proxy equipment and the Internet of things equipment realize message transmission based on the encryption channel. The robustness of the shared key is guaranteed by using a key negotiation algorithm and salifying calculation through random numbers, the shared key is not easy to crack, and the communication safety between the proxy equipment and the Internet of things equipment is guaranteed.
Fig. 3 is a flowchart of a device control method according to still another exemplary embodiment of the present disclosure, and as shown in fig. 3, the device control method includes the following steps.
In step S201, a secure connection is established with the cloud server.
In step S202, notification information is sent to the proxy device, where the notification information includes context information of the secure connection, and the proxy device is configured to send a keep-alive message to the cloud server through the secure connection based on the context information of the secure connection.
In step S203, the internet of things device is controlled to enter a low power consumption mode.
In step S204, in response to receiving the wake-up information sent by the proxy device, the internet of things device is controlled to enter a normal power consumption operation mode.
In the embodiment of the disclosure, the internet of things device establishes a secure connection with the cloud server, the internet of things device sends notification information to the proxy device, and the context information of the established secure connection is sent to the proxy device. The proxy equipment is connected with the cloud server in a safe mode based on the received context information of the safe connection, and the proxy equipment sends a keep-alive message to the cloud server. The agent equipment sends a keep-alive message to the cloud server through the secure connection after the Internet of things equipment enters the low-power mode.
In the embodiment of the disclosure, when a user checks the internet of things device by operating an application for management of the internet of things device, the cloud server transmits wake-up information to the proxy device through secure connection with the proxy device, the proxy device sends the wake-up information to the internet of things device, and after receiving the wake-up information, the internet of things device enters a normal power consumption working mode from a low power consumption mode to perform services such as video transmission. It can be appreciated that the power consumption of the low power consumption mode of the internet of things device is lower than the normal power consumption of the working mode. The proxy device may encapsulate the context information of the secure connection through an encryption channel, encrypt the context information through a shared key, and send wake-up information to the internet of things device.
According to the embodiment of the disclosure, when the Internet of things enters a low power consumption mode, the proxy equipment multiplexes the security connection with the cloud server to process the keep-alive service of the Internet of things equipment, so that the frequent awakening of the Internet of things equipment is reduced, the power consumption of the Internet of things equipment is reduced, and the Internet of things equipment enters a working mode when the Internet of things equipment receives awakening information, so that reasonable and effective control of the Internet of things equipment is realized.
Fig. 4 is a flowchart of a device control method according to still another exemplary embodiment of the present disclosure, and as shown in fig. 4, the device control method includes the following steps.
In step S301, a secure connection is established with the cloud server.
In step S302, notification information is sent to the proxy device, where the notification information includes context information of the secure connection, and the proxy device is configured to send a keep-alive message to the cloud server through the secure connection based on the context information of the secure connection.
In step S303, the internet of things device is controlled to enter a low power consumption mode, and the secure connection with the cloud server is disconnected.
In the embodiment of the disclosure, when the internet of things device is to enter a low power consumption mode, notification information is sent to the proxy device to notify the internet of things device to enter the low power consumption mode, and context information of the secure connection established between the internet of things device and the cloud server is sent to the proxy device. The internet of things equipment enters a low-power consumption mode, the safe connection with the cloud server is disconnected, and the proxy equipment can realize the safe connection with the cloud server based on the context information of the safe connection, so that the proxy equipment multiplexes the safe connection to send a keep-alive message to the cloud server during the period that the internet of things equipment enters the low-power consumption mode.
According to the embodiment of the disclosure, when the internet of things equipment enters a low power consumption mode, the proxy equipment multiplexes the security connection with the cloud server to proxy the keep-alive service of the internet of things equipment, so that the frequent awakening of the internet of things equipment is reduced, the power consumption of the internet of things equipment is reduced, the security connection with the cloud server is multiplexed between the internet of things equipment and the proxy equipment, and the cloud bandwidth resource is saved.
Fig. 5 is a flowchart of a device control method according to still another exemplary embodiment of the present disclosure, and the device control method includes the following steps as shown in fig. 5.
In step S401, a secure connection is established with the cloud server.
In step S402, notification information is sent to the proxy device, where the notification information includes context information of the secure connection, and the proxy device is configured to send a keep-alive message to the cloud server through the secure connection based on the context information of the secure connection.
In step S403, the internet of things device is controlled to enter a low power consumption mode, and the secure connection with the cloud server is disconnected.
In step S404, in response to receiving the wake-up information sent by the proxy device, the internet of things device is controlled to enter a normal power consumption operation mode.
In step S405, the context information of the secure connection transmitted by the proxy apparatus is received.
In step S406, based on the context information of the secure connection, the secure connection with the cloud server is restored, and a keep-alive message is sent to the cloud server through the secure connection.
In the embodiment of the disclosure, the internet of things device sends notification information to the proxy device, notifies the proxy device that the internet of things device is about to enter a low power consumption mode, and sends context information of the secure connection established between the internet of things device and the cloud server to the proxy device. The internet of things equipment enters a low-power consumption mode, and the safe connection with the cloud server is disconnected, and the proxy equipment can realize the safe connection with the cloud server based on the context information of the safe connection, so that the proxy equipment multiplexes the safe connection to send a keep-alive message to the cloud server during the period that the internet of things equipment enters the low-power consumption mode. The cloud server transmits the awakening information to the proxy equipment through the safe connection with the proxy equipment, the proxy equipment transmits the awakening information to the Internet of things equipment, and the Internet of things equipment enters a normal power consumption working mode from a low power consumption mode after receiving the awakening information to perform services such as video transmission.
After receiving the wake-up information, the proxy device may encapsulate the context information of the secure connection through an encryption channel, encrypt the context information through a shared key, and send the wake-up information to the internet of things device. The internet of things device decrypts the wake-up information by using the shared key, extracts the context information of the secure connection, recovers the secure connection with the cloud server by using the context information of the secure connection, and sends a keep-alive message to the cloud server by the internet of things device through the secure connection. Understandably, the proxy device sends the context information of the secure connection to the internet of things device, disconnects the secure connection with the cloud server, and stops the proxy service of the keep-alive message.
According to the embodiment of the disclosure, when the internet of things equipment enters a low power consumption mode, the proxy equipment multiplexes the keep-alive service of the internet of things equipment with the safe connection proxy of the cloud server, so that the power consumption of the internet of things equipment is reduced, the internet of things equipment enters a working mode when the internet of things equipment receives the wake-up information, the proxy equipment disconnects the safe connection with the cloud server, the proxy of the keep-alive message is stopped, the internet of things equipment resumes the safe connection with the cloud server, and the cloud bandwidth resource is saved by multiplexing the safe connection with the cloud server between the internet of things equipment and the proxy equipment.
Fig. 6 is a flowchart of a device control method according to still another exemplary embodiment of the present disclosure, which is applied to a proxy device, as shown in fig. 6, and includes the following steps.
In step S501, notification information sent by the internet of things device is obtained, where the notification information includes context information of a secure connection established between the internet of things device and the cloud server.
In step S502, the secure connection is thermally migrated based on the context information of the secure connection.
In step S503, a keep-alive message of the internet of things device is sent to the cloud server through the secure connection.
In the embodiment of the disclosure, the internet of things device sends notification information to the proxy device and sends the context information of the secure connection to the proxy device. Based on the received context information of the secure connection, the proxy device performs thermal migration on the secure connection to realize the secure connection with the cloud server, so that during the low-power consumption mode of the internet of things device, the proxy device sends a keep-alive message to the cloud server through the secure connection.
According to the embodiment of the disclosure, when the internet of things is to enter a low power consumption mode, the context information of the secure connection is sent to the proxy equipment, the proxy equipment is informed to proxy, the proxy equipment carries out hot migration on the secure connection based on the context information of the secure connection, the keep-alive service of the internet of things equipment is processed through the secure connection proxy with the cloud server, the internet of things equipment is reduced to be frequently awakened, the power consumption of the internet of things equipment is reduced, and cloud bandwidth resources are saved.
Fig. 7 is a flowchart of a device control method according to still another exemplary embodiment of the present disclosure, and the device control method includes the following steps as shown in fig. 7.
In step S601, notification information sent by the internet of things device is obtained, where the notification information includes context information of a secure connection established between the internet of things device and the cloud server.
In step S602, the secure connection is thermally migrated based on the context information of the secure connection.
In step S603, a keep-alive message of the internet of things device is sent to the cloud server through the secure connection.
In step S604, wake-up information sent by the cloud server is received, where the wake-up information is used to wake up the internet of things device to enter a working mode.
In step S605, wake-up information and context information of the secure connection are sent to the internet of things device, and the secure connection with the cloud server is disconnected.
In the embodiment of the disclosure, the proxy device obtains notification information sent by the internet of things device, the proxy device performs thermal migration on the secure connection based on context information of the secure connection between the internet of things device and the cloud server, and during a low power consumption mode of the internet of things device, a keep-alive message is sent to the cloud server through the secure connection, and the proxy internet of things device performs keep-alive.
In the embodiment of the disclosure, when the internet of things is to enter a low power consumption mode, the context information of the secure connection is sent to the proxy equipment, the proxy equipment is informed to proxy, the proxy equipment carries out hot migration on the secure connection based on the context information of the secure connection, and the keep-alive service of the internet of things equipment is processed through the secure connection proxy with the cloud server, so that the internet of things equipment is frequently awakened, the power consumption of the internet of things equipment is reduced, and cloud bandwidth resources are saved. When a user checks the Internet of things equipment by operating an application for management of the Internet of things equipment, the cloud server transmits wake-up information to the proxy equipment through safe connection with the proxy equipment, and the proxy equipment sends the wake-up information to the Internet of things equipment, so that the Internet of things equipment enters a normal power consumption working mode from a low power consumption mode after receiving the wake-up information, and video transmission and other services are performed. The proxy equipment sends wake-up information and context information of the secure connection to the Internet of things equipment, the secure connection with the cloud server is disconnected, and proxy service of the keep-alive message is stopped. And the Internet of things equipment restores the safe connection with the cloud server by utilizing the context information of the safe connection, and sends a keep-alive message to the cloud server through the safe connection.
According to the embodiment of the disclosure, when the internet of things equipment enters a low power consumption mode, the proxy equipment multiplexes the keep-alive service of the internet of things equipment with the safe connection proxy of the cloud server, so that the power consumption of the internet of things equipment is reduced, the internet of things equipment enters a working mode when the internet of things equipment receives the wake-up information, the proxy equipment disconnects the safe connection with the cloud server, the proxy of the keep-alive message is stopped, the internet of things equipment resumes the safe connection with the cloud server, and the cloud bandwidth resource is saved by multiplexing the safe connection with the cloud server between the internet of things equipment and the proxy equipment.
Fig. 8 is a flowchart of a device control method according to an exemplary embodiment of the present disclosure, applied to a cloud server, as shown in fig. 8, the device control method includes the following steps.
In step S701, a secure connection is established with the internet of things device.
In step S702, in response to the internet of things device entering the low power consumption mode, the secure connection with the internet of things device is disconnected.
In step S703, in response to the proxy device performing secure connection hot migration, a keep-alive message sent by the proxy device is received through the secure connection.
In the embodiment of the disclosure, the cloud server establishes a secure connection with the internet of things device, and when the internet of things device enters a low power consumption mode, the cloud server disconnects the secure connection with the internet of things device. The internet of things device sends the context information of the secure connection to the proxy device, and the proxy device performs hot migration on the secure connection based on the context information of the secure connection. And the proxy equipment performs secure connection hot migration, and during the low power consumption mode of the internet of things equipment, the cloud server receives the keep-alive message sent by the proxy equipment through secure connection, and the proxy equipment performs the proxy service of the keep-alive message of the internet of things equipment.
According to the embodiment of the disclosure, when the internet of things is to enter a low power consumption mode, the context information of the secure connection is sent to the proxy equipment, the proxy equipment is informed to proxy, the proxy equipment carries out hot migration on the secure connection based on the context information of the secure connection, the keep-alive service of the internet of things equipment is processed through the secure connection proxy with the cloud server, the internet of things equipment is reduced to be frequently awakened, the power consumption of the internet of things equipment is reduced, and cloud bandwidth resources are saved.
In some embodiments, the cloud server establishes a secure connection with the internet of things device, and the internet of things device sends device information of the proxy device to the cloud server through the secure connection, so that authentication of the proxy device is achieved through the cloud server. And the cloud server authenticates the proxy equipment and sends an authentication result to the Internet of things equipment to prevent the Internet of things equipment from accessing the illegal proxy equipment.
In some embodiments, the cloud server communicates with the proxy device and the internet of things device, receives the local communication key negotiation information sent by the internet of things device, and sends the local communication key negotiation information to the proxy device. The proxy equipment and the Internet of things equipment share information required by key negotiation based on local communication key negotiation information so as to establish an encryption channel, and the proxy equipment and the Internet of things equipment realize message transmission based on the encryption channel.
Fig. 9 is a flowchart of a device control method according to an exemplary embodiment of the present disclosure, and the device control method includes the following steps as shown in fig. 9.
In step S801, a secure connection is established with an internet of things device.
In step S802, in response to the internet of things device entering the low power consumption mode, the secure connection with the internet of things device is disconnected.
In step S803, in response to the proxy device performing secure connection hot migration, a keep-alive message sent by the proxy device is received through the secure connection.
In step S804, wake-up information is sent to the proxy device, where the wake-up information is used to wake up the internet of things device to enter a working mode, and disconnect a secure connection with the proxy device.
In the embodiment of the disclosure, a cloud server establishes a secure connection with an internet of things device, the internet of things device enters a low power consumption mode, and the cloud server disconnects the secure connection with the internet of things device. The internet of things device sends context information of the secure connection to the proxy device, and the proxy device carries out hot migration on the secure connection based on the context information of the secure connection, so that during a low power consumption mode of the internet of things device, the cloud server receives a keep-alive message sent by the proxy device through the secure connection, and the proxy device carries out the proxy service of the keep-alive message of the internet of things device. When a user performs operation of the Internet of things equipment, the cloud server transmits wake-up information to the proxy equipment through safe connection with the proxy equipment, and the proxy equipment sends the wake-up information to the Internet of things equipment, so that the Internet of things equipment enters a normal power consumption working mode after receiving the wake-up information, and video transmission and other services are performed. The proxy equipment disconnects the safety connection with the cloud server and stops the proxy service of the keep-alive message.
According to the embodiment of the disclosure, when the Internet of things enters a low power consumption mode, the proxy equipment multiplexes the security connection with the cloud server to process the keep-alive service of the Internet of things equipment, so that the frequent awakening of the Internet of things equipment is reduced, the power consumption of the Internet of things equipment is reduced, and the Internet of things equipment enters a working mode when the Internet of things equipment receives awakening information, so that reasonable and effective control of the Internet of things equipment is realized.
Fig. 10 is a flowchart illustrating a device control method according to an exemplary embodiment of the present disclosure, and as shown in fig. 10, the device control method includes the following steps.
In step S901, a secure connection is established with an internet of things device.
In step S902, in response to the internet of things device entering the low power consumption mode, the secure connection with the internet of things device is disconnected.
In step S903, in response to the proxy device performing secure connection hot migration, a keep-alive message sent by the proxy device is received through the secure connection.
In step S904, wake-up information is sent to the proxy device, where the wake-up information is used to wake up the internet of things device to enter a working mode, and disconnect a secure connection with the proxy device.
In step S905, the secure connection with the internet of things device is restored, and the keep-alive message sent by the internet of things device is received through the secure connection.
In the embodiment of the disclosure, a cloud server establishes a secure connection with an internet of things device, the internet of things device enters a low power consumption mode, and the cloud server disconnects the secure connection with the internet of things device. The internet of things device sends context information of the secure connection to the proxy device, and the proxy device carries out hot migration on the secure connection based on the context information of the secure connection, so that during a low power consumption mode of the internet of things device, the cloud server receives a keep-alive message sent by the proxy device through the secure connection, and the proxy device carries out the proxy service of the keep-alive message of the internet of things device.
The cloud server transmits the awakening information to the proxy equipment through the safe connection with the proxy equipment, and the proxy equipment transmits the awakening information to the Internet of things equipment, so that the Internet of things equipment enters a working mode of normal power consumption after receiving the awakening information, and video transmission and other services are performed. The proxy equipment disconnects the safety connection with the cloud server and stops the proxy service of the keep-alive message. And the Internet of things equipment restores the safe connection with the cloud server by utilizing the context information of the safe connection, and sends a keep-alive message to the cloud server through the safe connection.
According to the embodiment of the disclosure, when the internet of things is to enter a low power consumption mode, the context information of the secure connection is sent to the proxy equipment, the proxy equipment is informed to proxy, the proxy equipment carries out hot migration on the secure connection based on the context information of the secure connection, the keep-alive service of the internet of things equipment is processed through the secure connection proxy with the cloud server, the internet of things equipment is reduced to be frequently awakened, the power consumption of the internet of things equipment is reduced, and cloud bandwidth resources are saved.
Fig. 11 shows a schematic diagram of interaction among an internet of things device, a proxy device and a cloud server, by applying the device control method of the present disclosure, referring to fig. 11, the proxy device accesses a network, and the internet of things accesses the network through a secure connection, queries whether the proxy device accessed with the internet of things device supports a proxy keep-alive function through a probe message (DETECT MESSAGE), and in DETECT MESSAGE sent by the internet of things device, device information of the internet of things device is carried for the proxy device to authenticate the internet of things device. When the proxy equipment can support the proxy keep-alive function, equipment information of the proxy equipment is packaged, a detection response message (Detect Response Message) is replied, and the detection response message is sent to the internet of things equipment and used for authenticating the proxy equipment by the internet of things equipment. The internet of things equipment encapsulates equipment information of the proxy equipment, carries local communication key negotiation information, sends the information to a cloud server, and authenticates the proxy equipment by the cloud server. And establishing an encryption channel by utilizing local communication key negotiation information between the Internet of things equipment and the proxy equipment, and carrying out information transmission through the encryption channel. And the cloud server returns the authentication result of the proxy equipment to the Internet of things equipment, and the Internet of things equipment locally calculates the shared secret key. And the cloud server sends the local communication key negotiation information to the proxy equipment through the secure connection, and the proxy equipment calculates the shared key at the local. The internet of things device sends ciphertext to the proxy device through the encryption channel, informs the proxy device that the internet of things device enters a low-power consumption state, and sends the security connection context information to the proxy device, so that the proxy device sends a keep-alive message to the cloud server through the security connection proxy internet of things device based on the security connection context information. The agent equipment receives the notification information, performs secure connection hot migration according to the secure connection context information, establishes secure connection with the cloud, and sends a keep-alive message of the Internet of things equipment to the cloud server through the secure connection to perform agent keep-alive.
When a user operates and views the Internet of things equipment, the cloud server sends wake-up information to the proxy equipment through the safety connection established with the proxy equipment. After receiving the wake-up information of the cloud server, the proxy equipment encrypts the connected secure connection context information based on the shared secret key, sends the wake-up information to the Internet of things equipment through an encryption channel, and wakes the Internet of things equipment to enter a working mode. The proxy equipment stops sending the keep-alive message of the internet of things equipment to the cloud server, and the safe connection with the cloud is disconnected.
And the Internet of things equipment decrypts the wake-up information based on the shared key, extracts the security connection context information and restores the security connection with the cloud server based on the security connection context information. After the Internet of things equipment is awakened, service messages of services such as video and the like are transmitted to the cloud server through the secure connection, and keep-alive messages are sent to the cloud server through the secure connection. After the service message transmission is completed, the internet of things equipment is ready to enter a low-power consumption mode again, a notification message ciphertext is sent to the proxy equipment through an encryption channel, the proxy equipment is notified that the internet of things equipment enters a low-power consumption state, and the security connection context information is sent to the proxy equipment, so that the proxy equipment can send a keep-alive message to the cloud server based on the security connection context information. And the proxy equipment receives the notification message, performs secure connection hot migration according to the secure connection context information, establishes secure connection with the cloud, and sends a keep-alive message of the Internet of things equipment to the cloud server through the secure connection.
According to the embodiment of the disclosure, the internet of things device and the cloud server are connected safely, when the internet of things device is to enter a low-power mode, the context information of the safe connection is sent to the proxy device, the proxy device is informed to proxy, when the internet of things device enters the low-power mode, the proxy device multiplexes the safe connection with the cloud server to process the keep-alive service of the internet of things device, the internet of things device is reduced to be awakened frequently, the power consumption of the internet of things device is reduced, and cloud bandwidth resources are saved.
Based on the same conception, the embodiment of the disclosure also provides a device control device.
Fig. 12 is a block diagram of a device control apparatus according to an exemplary embodiment of the present disclosure, the device control apparatus being applied to an internet of things device, and referring to fig. 12, the device control apparatus 100 includes: a connection unit 101, a transmission unit 102, and a control unit 103.
The connection unit 101 is configured to establish a secure connection with a cloud server.
The sending unit 102 is configured to send notification information to the proxy device, where the notification information includes context information of the secure connection, and the proxy device is configured to send a keep-alive message to the cloud server through the secure connection based on the context information of the secure connection.
And the control unit 103 is used for controlling the internet of things equipment to enter a low power consumption mode.
In some embodiments, the control unit 103 is further configured to: and in response to receiving the wake-up information sent by the proxy equipment, controlling the Internet of things equipment to enter a normal power consumption working mode.
In some embodiments, the connection unit 101 is further configured to: and in response to controlling the Internet of things equipment to enter a low-power consumption mode, disconnecting the safe connection with the cloud server.
In some embodiments, the wake-up information includes: context information of the secure connection; the connection unit 101 is further configured to: after the Internet of things equipment enters a normal power consumption working mode, based on the context information of the secure connection, the secure connection with the cloud server is restored; the sending unit is also used for sending the keep-alive message to the cloud server through the secure connection.
Fig. 13 is a block diagram of a device control apparatus according to still another exemplary embodiment of the present disclosure, the device control apparatus being applied to a proxy device, and referring to fig. 13, the device control apparatus 200 includes: an acquisition unit 201, a connection unit 202, and a transmission unit 203.
The obtaining unit 201 is configured to obtain notification information sent by an internet of things device, where the notification information includes context information of a secure connection established between the internet of things device and a cloud server.
The connection unit 202 is configured to perform a hot migration on the secure connection based on the context information of the secure connection.
And the sending unit 203 is configured to send a keep-alive message of the internet of things device to the cloud server through a secure connection.
Fig. 14 is a block diagram of a device control apparatus according to still another exemplary embodiment of the present disclosure, and referring to fig. 14, the device control apparatus further includes: a receiving unit 204.
The receiving unit 204 is configured to receive wake-up information sent by the cloud server, where the wake-up information is used to wake up the internet of things device to enter the working mode.
The sending unit 203 is further configured to send wake-up information and context information of the secure connection to the internet of things device.
The connection unit 202 is further configured to disconnect the secure connection with the cloud server.
Fig. 15 is a block diagram of a device control apparatus according to an exemplary embodiment of the present disclosure, the device control apparatus being applied to a cloud server, referring to fig. 15, the device control apparatus 300 includes: a connection unit 301 and a reception unit 302.
The connection unit 301 is configured to establish a secure connection with an internet of things device, and disconnect the secure connection with the internet of things device in response to the internet of things device entering a low power consumption mode.
And the receiving unit 302 is configured to receive, through the secure connection, the keep-alive message sent by the proxy device in response to the proxy device performing secure connection hot migration.
Fig. 16 is a block diagram of a device control apparatus according to still another exemplary embodiment of the present disclosure, and referring to fig. 16, the device control apparatus 300 further includes: a transmitting unit 303.
And the sending unit 303 is configured to send wake-up information to the proxy device, where the wake-up information is used to wake up the internet of things device to enter the working mode, and disconnect the secure connection with the proxy device.
In some embodiments, the connection unit 301 is further configured to: and after the wake-up information is sent to the proxy equipment, the secure connection with the Internet of things equipment is restored.
The receiving unit 302 is further configured to receive, through a secure connection, a keep-alive message sent by the internet of things device.
It is to be understood that, in order to implement the above-described functions, the apparatus provided in the embodiments of the present disclosure includes corresponding hardware structures and/or software modules that perform the respective functions. The disclosed embodiments may be implemented in hardware or a combination of hardware and computer software, in combination with the various example elements and algorithm steps disclosed in the embodiments of the disclosure. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present disclosure.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 17 is a block diagram illustrating an apparatus 400 for device control according to an exemplary embodiment of the present disclosure. For example, apparatus 400 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 17, the apparatus 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls the overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 440 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
Memory 404 is configured to store various types of data to support operations at apparatus 400. Examples of such data include instructions for any application or method operating on the apparatus 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 406 provides power to the various components of the device 400. The power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen between the device 400 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 further includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 414 includes one or more sensors for providing status assessment of various aspects of the apparatus 400. For example, the sensor assembly 414 may detect the on/off state of the device 400, the relative positioning of the components, such as the display and keypad of the device 400, the sensor assembly 414 may also detect the change in position of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration/deceleration of the device 400, and the change in temperature of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communication between the apparatus 400 and other devices in a wired or wireless manner. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi,4G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 404, including instructions executable by processor 440 of apparatus 400 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
It is understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It is further understood that the terms "first," "second," and the like are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the expressions "first", "second", etc. may be used entirely interchangeably. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that "connected" includes both direct connection where no other member is present and indirect connection where other element is present, unless specifically stated otherwise.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims (20)

1. A device control method, applied to an internet of things device, the method comprising:
Establishing a secure connection with a cloud server;
The method comprises the steps that notification information is sent to proxy equipment, the notification information comprises context information of the secure connection, and the proxy equipment is used for performing hot migration on the secure connection based on the context information of the secure connection and sending a keep-alive message to a cloud server through the secure connection; and is combined with
Controlling the Internet of things equipment to enter a low-power consumption mode;
The method further comprises the steps of:
Inquiring whether the proxy equipment supports the proxy keep-alive function or not through the detection message, and sending equipment information of the internet of things equipment to the proxy equipment so that the proxy equipment can carry out identity authentication on the internet of things equipment;
Receiving equipment information of proxy equipment sent by the proxy equipment through a detection response message, and carrying out identity authentication on the proxy equipment according to the equipment information of the proxy equipment;
the method comprises the steps of sharing information required by key negotiation with proxy equipment based on local communication key negotiation information to establish an encryption channel, and realizing message transmission based on the encryption channel, wherein the robustness of the shared key is ensured by using a key negotiation algorithm and salified calculation with random numbers.
2. The apparatus control method according to claim 1, characterized in that the method further comprises:
And responding to control the Internet of things equipment to enter a low-power consumption mode, and disconnecting the safe connection with the cloud server.
3. The apparatus control method according to claim 1 or 2, characterized in that the method further comprises:
And in response to receiving the wake-up information sent by the proxy equipment, controlling the Internet of things equipment to enter a normal power consumption working mode.
4. The apparatus control method according to claim 3, characterized in that the method further comprises:
Receiving the context information of the secure connection sent by the proxy equipment;
And restoring the secure connection with the cloud server based on the context information of the secure connection, and sending the keep-alive message to the cloud server through the secure connection.
5. A device control method, applied to a proxy device, comprising:
Acquiring notification information sent by Internet of things equipment, wherein the notification information comprises context information of the secure connection established by the Internet of things equipment and a cloud server;
performing hot migration on the secure connection based on the context information of the secure connection;
Sending a keep-alive message of the Internet of things equipment to a cloud server through the secure connection;
The method further comprises the steps of:
Acquiring a detection message sent by an internet of things device, wherein the detection message is used for inquiring whether the proxy device supports a proxy keep-alive function or not and comprises device information of the internet of things device, and performing identity authentication on the internet of things device according to the device information of the internet of things device;
Responding to the proxy equipment supporting the proxy keep-alive function, and sending equipment information of the proxy equipment to the internet of things equipment through a detection response message so that the internet of things equipment performs identity authentication on the proxy equipment according to the equipment information of the proxy equipment;
The proxy equipment and the Internet of things equipment share information required by key negotiation based on local communication key negotiation information to establish an encryption channel, the context information of the secure connection is packaged through the encryption channel, encryption is carried out through the shared key, and wake-up information is sent to the Internet of things equipment, wherein the robustness of the shared key is ensured by using a key negotiation algorithm and salifying calculation through a random number.
6. The apparatus control method according to claim 5, characterized in that the method further comprises:
Receiving wake-up information sent by the cloud server, wherein the wake-up information is used for waking up the Internet of things equipment to enter a working mode;
And sending the wake-up information and the context information of the secure connection to the Internet of things equipment, and disconnecting the secure connection with the cloud server.
7. A device control method, applied to a cloud server, comprising:
establishing a secure connection with the internet of things device;
Responding to the Internet of things equipment entering a low power consumption mode, and disconnecting the safe connection with the Internet of things equipment;
responding to the two-way identity authentication of the proxy equipment and the Internet of things equipment, supporting the proxy keep-alive function by the proxy equipment, performing the thermal migration of the secure connection by the proxy equipment, and receiving a keep-alive message sent by the proxy equipment through the secure connection;
Receiving local communication key negotiation information sent by the internet of things equipment, and sending the local communication key negotiation information to proxy equipment, so that the proxy equipment and the internet of things equipment share information required by key negotiation based on the local communication key negotiation information to establish an encryption channel, packaging the context information of secure connection through the encryption channel, encrypting through a shared key, and sending wakeup information to the internet of things equipment, wherein the robustness of the shared key is ensured by using a key negotiation algorithm and salifying calculation through a random number.
8. The apparatus control method according to claim 7, characterized in that the method further comprises:
and sending wake-up information to the proxy equipment, wherein the wake-up information is used for waking up the internet of things equipment to enter a working mode and disconnecting the safety connection with the proxy equipment.
9. The apparatus control method according to claim 8, characterized in that the method further comprises:
And after the wake-up information is sent to the proxy equipment, the secure connection with the internet of things equipment is restored, and the keep-alive message sent by the internet of things equipment is received through the secure connection.
10. A device control apparatus, characterized in that it is applied to an internet of things device, the apparatus comprising:
The connection unit is used for establishing safe connection with the cloud server;
the sending unit is used for sending notification information to the proxy equipment, wherein the notification information comprises the context information of the secure connection, and the proxy equipment is used for carrying out hot migration on the secure connection based on the context information of the secure connection and sending a keep-alive message to the cloud server through the secure connection;
the control unit is used for controlling the Internet of things equipment to enter a low-power consumption mode;
the transmitting unit is further configured to:
Inquiring whether the proxy equipment supports the proxy keep-alive function or not through the detection message, and sending equipment information of the internet of things equipment to the proxy equipment so that the proxy equipment can carry out identity authentication on the internet of things equipment;
the method comprises the steps of sharing information required by key negotiation with proxy equipment based on local communication key negotiation information to establish an encryption channel, and realizing message transmission based on the encryption channel, wherein the robustness of the shared key is ensured by using a key negotiation algorithm and salifying calculation and using a random number;
The apparatus further comprises:
and the receiving unit is used for receiving the equipment information of the proxy equipment sent by the proxy equipment through the detection response message and carrying out identity authentication on the proxy equipment according to the equipment information of the proxy equipment.
11. The appliance control device of claim 10 wherein the control unit is further configured to:
And in response to receiving the wake-up information sent by the proxy equipment, controlling the Internet of things equipment to enter a normal power consumption working mode.
12. The appliance control device of claim 11, wherein the connection unit is further configured to:
And responding to control the Internet of things equipment to enter a low-power consumption mode, and disconnecting the safe connection with the cloud server.
13. The appliance control device of claim 12, wherein the device further comprises:
a receiving unit, configured to receive context information of a secure connection sent by the proxy device;
the connection unit is further configured to:
based on the context information of the secure connection, recovering the secure connection with the cloud server;
the sending unit is further configured to send the keep-alive message to a cloud server through the secure connection.
14. A device control apparatus, characterized by being applied to a proxy device, comprising:
The system comprises an acquisition unit, a cloud server and a cloud terminal server, wherein the acquisition unit is used for acquiring notification information sent by the Internet of things equipment, wherein the notification information comprises context information of the safety connection established between the Internet of things equipment and the cloud terminal server;
a connection unit configured to perform a hot migration on the secure connection based on context information of the secure connection;
the sending unit is used for sending the keep-alive message of the Internet of things equipment to the cloud server through the secure connection; the acquisition unit is further configured to:
Acquiring a detection message sent by an internet of things device, wherein the detection message is used for inquiring whether the proxy device supports a proxy keep-alive function or not and comprises device information of the internet of things device, and performing identity authentication on the internet of things device according to the device information of the internet of things device;
The proxy equipment and the Internet of things equipment share information required by key negotiation based on local communication key negotiation information to establish an encryption channel, the context information of the secure connection is packaged through the encryption channel, encryption is carried out through the shared key, and wake-up information is sent to the Internet of things equipment, wherein the robustness of the shared key is ensured by using a key negotiation algorithm and salifying calculation through a random number;
the transmitting unit is further configured to:
And responding to the proxy equipment supporting the proxy keep-alive function, and sending equipment information of the proxy equipment to the internet of things equipment through a detection response message so that the internet of things equipment can carry out identity authentication on the proxy equipment according to the equipment information of the proxy equipment.
15. The appliance control device of claim 14, wherein the device further comprises:
the receiving unit is used for receiving the awakening information sent by the cloud server, and the awakening information is used for awakening the Internet of things equipment to enter a working mode;
the sending unit is further configured to send the wake-up information and context information of the secure connection to the internet of things device;
The connection unit is also used for disconnecting the secure connection with the cloud server.
16. A device control apparatus, applied to a cloud server, the apparatus comprising:
The connecting unit is used for establishing safe connection with the Internet of things equipment and disconnecting the safe connection with the Internet of things equipment in response to the Internet of things equipment entering a low-power consumption mode;
The receiving unit is used for responding to the proxy equipment and the internet of things equipment to perform identity authentication in a bidirectional mode, the proxy equipment supports a proxy keep-alive function, the proxy equipment performs the thermal migration of the secure connection, and the keep-alive message sent by the proxy equipment is received through the secure connection;
The receiving unit is further configured to:
Receiving local communication key negotiation information sent by the internet of things equipment, and sending the local communication key negotiation information to proxy equipment, so that the proxy equipment and the internet of things equipment share information required by key negotiation based on the local communication key negotiation information to establish an encryption channel, packaging the context information of secure connection through the encryption channel, encrypting through a shared key, and sending wakeup information to the internet of things equipment, wherein the robustness of the shared key is ensured by using a key negotiation algorithm and salifying calculation through a random number.
17. The appliance control device of claim 16, wherein the device further comprises:
and the sending unit is used for sending wake-up information to the proxy equipment, wherein the wake-up information is used for waking up the internet of things equipment to enter a working mode and disconnecting the safety connection with the proxy equipment.
18. The appliance control device of claim 17, wherein the connection unit is further configured to:
After the wake-up information is sent to the proxy equipment, the secure connection with the internet of things equipment is restored;
the receiving unit is further configured to receive, through the secure connection, a keep-alive message sent by the internet of things device.
19. An apparatus control device, comprising:
A processor;
A memory for storing processor-executable instructions;
Wherein the processor is configured to: performing the device control method of any one of claims 1 to 4, or claims 5 to 8, or claims 7 to 9.
20. A storage medium having instructions stored therein which, when executed by a processor of a terminal, enable the terminal to perform the device control method of any one of claims 1 to 4, or claims 5 to 8, or claims 7 to 9.
CN202111387745.4A 2021-11-22 2021-11-22 Device control method, device control apparatus, and storage medium Active CN114244886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111387745.4A CN114244886B (en) 2021-11-22 2021-11-22 Device control method, device control apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111387745.4A CN114244886B (en) 2021-11-22 2021-11-22 Device control method, device control apparatus, and storage medium

Publications (2)

Publication Number Publication Date
CN114244886A CN114244886A (en) 2022-03-25
CN114244886B true CN114244886B (en) 2024-04-30

Family

ID=80750377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111387745.4A Active CN114244886B (en) 2021-11-22 2021-11-22 Device control method, device control apparatus, and storage medium

Country Status (1)

Country Link
CN (1) CN114244886B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023184263A1 (en) * 2022-03-30 2023-10-05 北京小米移动软件有限公司 Method and apparatus for establishing user datagram protocol (udp) transmission channel
WO2023184262A1 (en) * 2022-03-30 2023-10-05 北京小米移动软件有限公司 Secure transmission method and apparatus for data frames, electronic device and storage medium
CN114902635A (en) * 2022-03-30 2022-08-12 北京小米移动软件有限公司 Flow proxy method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209302A (en) * 2011-07-07 2011-10-05 深圳市金立通信设备有限公司 System and method for realizing information push of mobile terminal
CN106161598A (en) * 2016-06-28 2016-11-23 济南中维世纪科技有限公司 A kind of system and method acting on behalf of keep-alive
CN107484232A (en) * 2017-08-21 2017-12-15 奇酷互联网络科技(深圳)有限公司 Message method, system, the network equipment and readable storage medium storing program for executing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209302A (en) * 2011-07-07 2011-10-05 深圳市金立通信设备有限公司 System and method for realizing information push of mobile terminal
CN106161598A (en) * 2016-06-28 2016-11-23 济南中维世纪科技有限公司 A kind of system and method acting on behalf of keep-alive
CN107484232A (en) * 2017-08-21 2017-12-15 奇酷互联网络科技(深圳)有限公司 Message method, system, the network equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN114244886A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN114244886B (en) Device control method, device control apparatus, and storage medium
EP3771261B1 (en) Paging synchronization indication method and device, paging synchronization method, and device and base station
CN106888206B (en) Key exchange method, device and system
CN113873625B (en) Wake-up method, wake-up device, electronic apparatus, and computer-readable storage medium
CN113783774A (en) Cross-cluster network configuration method and device, communication equipment and storage medium
CN108702288B (en) Data transmission method, equipment and system
CN114762403A (en) Positioning reference signal configuration method, configuration device and storage medium
CN114025011B (en) Device control method, device control apparatus, and storage medium
WO2022174393A1 (en) Capability exchange method and apparatus, and exchange triggering method and apparatus
WO2022047804A1 (en) Time gap request method and apparatus, and time gap configuration method and apparatus
WO2022134117A1 (en) Paging early indication method and apparatus
CN112055977B (en) Service slice activation method, service slice activation device and storage medium
WO2022052070A1 (en) Connection control method and connection control apparatus
CN113225691B (en) Audio processing method, device and storage medium
WO2022227075A1 (en) Cause determination method and apparatus, and cause indication method and apparatus
WO2023226056A1 (en) Update configuration receiving and sending methods and apparatuses, communication apparatus, and storage medium
WO2023240575A1 (en) Relay communication method, communication apparatus, and communication device
WO2024020808A1 (en) Inactive-state multicast service receiving method and apparatus, and configuration indication information sending method and apparatus
WO2023226055A1 (en) Paging message receiving method and apparatus, paging message sending method and apparatus, communication apparatus, and storage medium
WO2022120770A1 (en) Monitoring determination method and device, and monitoring indication method and device
CN107027002A (en) Screenshotss based reminding method, equipment and system
WO2024020807A1 (en) Inactive multicast service receiving method and device, and inactive multicast service configuration sending method and device
WO2023102856A1 (en) Method and apparatus for determining downlink control information, method and apparatus for receiving downlink control information, and device and storage medium
WO2022213394A1 (en) Indication method and apparatus, and paging control method and apparatus
WO2022104809A1 (en) Information request method and information request apparatus

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
GR01 Patent grant
GR01 Patent grant