WO2023221948A1 - 信息处理方法、设备、存储介质及程序产品 - Google Patents

信息处理方法、设备、存储介质及程序产品 Download PDF

Info

Publication number
WO2023221948A1
WO2023221948A1 PCT/CN2023/094368 CN2023094368W WO2023221948A1 WO 2023221948 A1 WO2023221948 A1 WO 2023221948A1 CN 2023094368 W CN2023094368 W CN 2023094368W WO 2023221948 A1 WO2023221948 A1 WO 2023221948A1
Authority
WO
WIPO (PCT)
Prior art keywords
main control
controlled device
control unit
wake
packet
Prior art date
Application number
PCT/CN2023/094368
Other languages
English (en)
French (fr)
Inventor
郭伟松
李洋
张立
Original Assignee
阿里云计算有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里云计算有限公司 filed Critical 阿里云计算有限公司
Publication of WO2023221948A1 publication Critical patent/WO2023221948A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0235Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a power saving command
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area 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

Definitions

  • the embodiments of the present application relate to the field of computer technology, and in particular, to an information processing method, equipment, storage medium and program product.
  • video doorbells and video door locks are battery-based devices, and the power-consuming main control unit usually works without power. It needs two-way keep-alive and supports APP to remotely wake up the main control to perform corresponding operations. Moreover, two-way keep-alive does not The ability to support the APP to remotely wake up the main control to perform corresponding operations requires a WiFi module.
  • WiFi modules for two-way keep-alive and remote wake-up currently use high-end WiFi modules.
  • high-end WiFi modules have high costs and low production capacity, and cannot be promoted on a large scale. Therefore, the ability to realize two-way keep-alive and remote wake-up in the existing technology has limitations, and thus cannot be widely and effectively applied to electronic products that can be remotely controlled.
  • Embodiments of the present application provide an information processing method, equipment, storage medium and program product to solve the problem that the existing technology has limitations in its ability to realize two-way keep-alive and remote wake-up, and thus cannot be widely and effectively applied to remotely controlled devices. Electronic product issues.
  • embodiments of the present application provide an information processing method, which is applied to the server.
  • the method includes:
  • a wake-up packet is sent to the WiFi unit of the controlled device so that the WiFi unit The unit determines whether to wake up the main control unit of the controlled device according to the wake-up packet;
  • the target message is sent to the user equipment, so that the user equipment sends the target message to the main control unit. Instructions are used to instruct the main control unit to perform corresponding target functions, and the target instructions are generated by the user equipment based on the target message.
  • the server stores the status of the controlled device, and the status of the controlled device includes a low power consumption state or a non-low power consumption state;
  • a wake-up packet is sent to the WiFi unit of the controlled device so that the controlled device
  • the WiFi unit determines whether to wake up the main control unit of the controlled device according to the wake-up packet, including:
  • a message indicating that the controlled device is in a low power consumption state is sent to all The user equipment, so that the user equipment calls an instruction indicating sending a wake-up packet;
  • the wake-up packet is sent to the WiFi unit, so that the WiFi unit compares the wake-up packet with a predefined message packet. Yes, when the comparison is consistent, it is determined to wake up the main control unit of the controlled device.
  • sending the target message to the user equipment, so that the user equipment sends a target instruction to the main control unit to instruct the main control unit to perform the corresponding target function includes:
  • the method also includes:
  • the controlled device If it is found that the controlled device is in a non-low power consumption state, send a target instruction to the main control unit so that the main control unit performs operations corresponding to the predefined functions and displays them on the user device;
  • the target instruction is generated by the user equipment by triggering the predefined function.
  • determining that the controlled device is in a heartbeat state in which the WiFi unit is working includes:
  • the controlled device If the heartbeat packet sent by the WiFi unit is received within the heartbeat cycle, it is determined that the controlled device is in the heartbeat state in which the WiFi unit is working, and the communication link with the controlled device is maintained in the MQTT manner.
  • the heartbeat packet is sent by the main control unit; the method further includes:
  • the heartbeat packet sent by the main control unit is received within the heartbeat cycle, it is determined that the controlled device is in the heartbeat state of the main control unit, and the communication link with the controlled device is maintained in the MQTT manner. road.
  • embodiments of the present application provide an information processing method, applied to user equipment; the method includes:
  • the server sends a query request to the server, so that the server queries the status of the controlled device, where the controlled device includes a WiFi unit and a main control unit;
  • the instruction used to indicate sending a wake-up packet is called, and the instruction used to indicate sending a wake-up packet is sent to
  • the server is configured to send the wake-up packet to the WiFi unit to determine whether to wake up the main control unit of the controlled device;
  • a target instruction is sent to the main control unit to instruct the main control unit to perform the corresponding target function.
  • the target instruction is generated based on the target message, and the target message is sent to the server by the main control unit.
  • embodiments of the present application provide an information processing method, applied to a main control unit; the method includes:
  • the controlled device includes a WiFi unit and a main control unit;
  • the wake-up command sent by the WiFi unit is received, a power-on operation is performed and a target message indicating that it is in a non-low power consumption state is sent to the server, so that the server sends the target message to the user equipment. ;
  • the wake-up instruction is sent by the user equipment to the unit, so that the WiFi unit determines it based on the wake-up packet;
  • the wake-up packet is obtained by the server querying the controlled device.
  • a low power consumption state and when it is determined that the WiFi unit is working in a heartbeat state, send a message indicating that the controlled device is in a low power consumption state to the user equipment, so that the user equipment determines the sending;
  • the target instruction sent by the user equipment is received, the corresponding target function is executed, and the target instruction is generated by the user equipment based on the target message.
  • embodiments of the present application provide an electronic device, including: a processor, and a memory communicatively connected to the processor;
  • the memory stores computer execution instructions
  • the processor executes computer execution instructions stored in the memory to implement the method described in any one of the first aspect, the second aspect, and the third aspect.
  • embodiments of the present application provide a controlled device, including a WiFi unit and a main control unit;
  • the main control unit is used to execute the information processing method as described in the third aspect.
  • embodiments of the present application provide a computer-readable storage medium.
  • Computer-executable instructions are stored in the computer-readable storage medium.
  • the processor executes the computer-executable instructions, the first aspect and the second aspect are implemented. aspect and the method described in any one of the third aspect.
  • embodiments of the present application provide a computer program product, including a computer program that, when executed by a processor, implements the method described in any one of the first aspect, the second aspect, and the third aspect.
  • Embodiments of the present application provide information processing methods, equipment, storage media and program products.
  • the server queries the status of the electronic equipment. If it is in a low power consumption state, the server Forward the low-power state message to the client, and the client calls the wake-up packet interface and sends the wake-up packet to the WiFi unit of the electronic device through the server. Then the WiFi unit wakes up the main control unit of the electronic device.
  • the message in the non-low power consumption state is sent to the server, and the server forwards it to the client. Then the client sends an instruction to use a certain function to the server, and the server forwards it to the main control unit for execution.
  • the client uses a certain protocol to the main control unit to execute it, which can be realized through the ordinary WiFi module (i.e. WiFi unit), the main control unit and the server. It can achieve two-way guarantee under the premise of ensuring low cost and high output. It has the ability to activate and remotely wake up, and is widely and effectively used in electronic products that can be remotely controlled.
  • WiFi unit i.e. WiFi unit
  • Figure 1 is a schematic diagram of a scenario of an information processing method provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of an information processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of an information processing method provided by another embodiment of the present application.
  • Figure 4 is a schematic flow chart of an information processing method provided by yet another embodiment of the present application.
  • Figure 5 is a schematic structural diagram of an information processing device provided by an embodiment of the present application.
  • Figure 6 is a schematic structural diagram of an information processing device provided by yet another embodiment of the present application.
  • Figure 7 is a schematic structural diagram of an information processing device provided by another embodiment of the present application.
  • FIG. 8 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • WiFi module Currently, achieving two-way keepalive and remote wake-up requires the WiFi module to support the MQTT protocol and have programmability. Using high-end WiFi module replacement cannot solve the following problems: 1. The price is high, which increases the cost of hardware products. 2. The low chip production capacity cannot be compensated for in a short time. There are relatively few WiFi chips on the market that support this capability, and hardware manufacturers cannot promote it on a large scale. 3. There is a large market for WiFi modules such as Hi1131 that do not support the MQTT protocol and do not have programming capabilities. Function upgrades cannot be achieved through Over-the-Air Technology (OTA).
  • OTA Over-the-Air Technology
  • WiFi modules do not support the MQTT protocol and It does not have programming capabilities, and at the same time, it cannot achieve function upgrades through Over-the-Air Technology (OTA). Therefore, WiFi modules for two-way keep-alive and remote wake-up currently use high-end WiFi modules. However, high-end WiFi modules have high costs and low production capacity, and cannot be promoted on a large scale. Therefore, the ability to realize two-way keep-alive and remote wake-up in the existing technology has limitations, and thus cannot be widely and effectively applied to electronic products that can be remotely controlled.
  • OTA Over-the-Air Technology
  • the inventive concept of this application is to transform the ordinary WiFi module, and the WiFi unit of the ordinary WiFi module only does sending and receiving packets and waking up, without doing business logic processing, that is, recording fixed non-TLS encrypted heartbeats Packet, the WiFi unit sends regularly, keeps the heartbeat, and sets a fixed wake-up command, and wakes up the main chip after receiving it. It does not need to have programmability, or only has limited programming and setting functions; ordinary WiFi modules
  • the main control unit is responsible for completing the audio and video encoding and decoding functions of the device, and has programmable capabilities, that is, executing corresponding functions.
  • the server then performs storage and forwarding. Therefore, it can be realized through ordinary WiFi modules, masters and servers. It can achieve two-way keep-alive and remote wake-up capabilities under the premise of ensuring low cost and high output, and can be widely and effectively used in remote control. electronic products.
  • FIG. 1 is a schematic diagram of a scenario of an information processing method provided by an embodiment of the present application.
  • User devices such as mobile phones, tablets and other smart devices
  • the controllable devices can be battery-based consumer electronics such as video doorbells, face/visual door locks, etc.
  • a certain function that is, a predefined function, such as the live broadcast function to watch the live broadcast at the door or the playback function to watch the door video in a certain period of time, etc.
  • a predefined function such as the live broadcast function to watch the live broadcast at the door or the playback function to watch the door video in a certain period of time, etc.
  • WiFi units i.e. ordinary WiFi chips
  • ordinary WiFi units do not have programmability or business logic processing capabilities, they are only responsible for sending and receiving packets and waking up the main control. Therefore, when the user clicks a certain function on the APP, he first sends a query request to the server. Only when the controllable device is in a non-low-power state (that is, the main control unit is powered on or online), the operation of this function will be actually triggered, and the command to generate a response will be sent to the main control unit. At this time, it will not go through WiFi. unit, the main control unit performs the operation of this function.
  • controllable device If the controllable device is in a low-power state, you must first determine whether the controllable device is in the keep-alive state, that is, whether the controllable device maintains the link with the server. If a link sent by the WiFi unit is received during the heartbeat cycle, Heartbeat packet (when the main control unit is online, the heartbeat packet is sent by the main control), indicating the heartbeat status of the controllable device working in the WiFi unit, that is, the link between the controllable device and the server is connected, and the controllable device is connected to the server. The server maintains communication.
  • the controlled device is composed of multiple chips: a main control chip and a WiFi chip, and communicates through physical connections, a common form of which is USB.
  • the main control chip is usually responsible for completing the audio and video encoding and decoding functions of the device and has programmability.
  • Business functions such as device message uplink and downlink, video, etc. will run on the main control chip in order to reduce power consumption.
  • the WiFi chip is responsible for the TCP/IP protocol stack functions, including receiving, sending, packetizing, and unpacking network data.
  • low-end WIFI chips do not have programmability, or only have limited programming and setting functions.
  • the main control chip When the power is low, the main control chip directly powers off and only runs the WiFi chip to maintain the heartbeat connection with the server.
  • the WiFi chip receives a specific wake-up message (such as a wake-up packet), it will wake up the main control chip. After the main control chip is started, it can return to the normal state.
  • the server sends a message that the controllable device is in a low-power state to the user device.
  • the user device calls the interface for sending the wake-up packet, causing the server to send the wake-up packet to the WiFi unit, which communicates with the WiFi unit.
  • the WiFi unit compare the information of the fixed packet configured by itself (this is only a character comparison and does not involve business logic processing. Therefore, the WiFi unit does not need to have the capability of high-end WiFi modules) to determine whether it is a wake-up packet. If it is determined to be a wake-up packet package, the WiFi unit wakes up the main control unit, and the main control unit is powered on. During the power-on process of the main control unit, the user equipment is always in the loading state.
  • the main control sends a message that it is in a non-low power consumption state to the server.
  • the server sends the user equipment, and the user equipment actually triggers the operation of the function and generates corresponding instructions and sends them to the main control unit for execution.
  • the user equipment can send the corresponding instructions (i.e., target instructions) to the main control unit.
  • One link is for the user equipment to send the target instructions to the server, and the server forwards them to the main control unit (because the user equipment Keep communicating with the server); the other is that the user device sends the target command to the main control unit through a certain protocol (such as Transmission Control Protocol (TCP protocol)).
  • TCP protocol Transmission Control Protocol
  • the main control unit when the main control unit is online, the heartbeat packet is sent by the main control unit. Before the main control unit loses power, it will first disconnect its own Message Queuing Telemetry Transport (MQTT) link. After setting up the WiFi unit to establish this MQTT link, remove the TLS encryption when establishing it, that is, sending heartbeat packets without encryption; secondly, the main control unit puts its own fixed heartbeat packet on the WiFi unit, and then sets the heartbeat Period, that is, how often it is sent; finally, set a wake-up packet for the WiFi unit, and set the circumstances under which the wake-up packet is received, and finally exit to complete the power-down. When the main control receives the wake-up command, it will be powered on.
  • MQTT Message Queuing Telemetry Transport
  • MQTT defines a series of control messages, including PINGREQ: heartbeat request, PINGRESP: heartbeat response, PUBLISH: publish message, SUBSCRIBE: subscribe message.
  • MQTT defines the heartbeat packet PINGREQ.
  • the device here it can refer to the controllable device
  • sends the data packet such as the heartbeat packet
  • the cloud i.e. the server, such as the Internet of Things platform
  • the cloud will reply PINGRESP to notify the device that the PINGREQ request has been received.
  • PINGRESP it will confirm whether the current link is valid.
  • PINGREQ/PINGRESP does not contain any variable parameters.
  • MQTT also provides a mechanism for publishing and subscribing messages: by defining the data format, devices, clouds, and APPs can complete functions such as sleep state synchronization and sleep command issuance.
  • Transport Layer Security establishes a reliable encrypted channel for two communication ends.
  • asymmetric encryption is first used to exchange secret keys. After the secret key exchange is completed, symmetric encryption is performed using the exchanged secret key and encryption method.
  • the characteristic of symmetric encryption is that the same original text-key-encryption method is used, the encrypted ciphertext is constant, and the same secret key-encryption method is used to decrypt the ciphertext, and the original text obtained is also the same; non- Symmetric encryption is in the process of TLS link establishment.
  • Actual information communication uses symmetric encryption. However, during the symmetric encryption process of TLS, the sequence num will be added to the actual data, and it will continue to increase. Therefore, when the source data is the same, the encrypted data is also different.
  • this application transforms the ordinary WiFi module, and the WiFi unit of the ordinary WiFi module only sends and receives packets and wakes up, without performing business logic processing, that is, recording fixed non-TLS encrypted heartbeat packets, and the WiFi unit performs scheduled transmission. Keep the heartbeat, and set a fixed wake-up command. After receiving it, wake up the main control chip (ie, the main control unit). It does not need to have programmability, or only has limited programming and setting functions. By transforming the main control unit of the controllable equipment, the status is reported to the server, and then the server performs storage and forwarding. At the same time, the main control unit is also responsible for completing the audio and video encoding and decoding functions of the controllable equipment, and has programmability.
  • FIG. 2 is a schematic flowchart of an information processing method provided by an embodiment of the present application.
  • the method of this embodiment can be executed by a server.
  • the server here can be a cloud (that is, a software platform using application virtualization technology), such as a server.
  • the method of this embodiment may include:
  • the controlled device includes a WiFi unit and a main control unit.
  • the WiFi unit here is a WiFi module that supports TCP protocol stack.
  • the state of the controlled device includes low power consumption state and non-low power consumption state.
  • the low power consumption state here is used to indicate that the main control unit in the controlled device is in a power-off state. That is, when the main control unit is powered off or not online, only the WiFi chip is powered, indicating that the controlled device is in a low-power consumption state (visually Take a door lock as an example. The door lock below 300UA is considered to be in a low power consumption state); when the main control unit is powered on or online, it means that the controlled device is in a non-low power consumption state.
  • the main control unit Before powering off, the main control unit will report the message that the controlled device is in a low-power state to the server. After powering on, the main control unit will report the message that the controlled device is in a non-low-power state to the server.
  • the server updates and stores the status of the controlled device.
  • the user device is installed with an APP that remotely operates or controls the controlled device.
  • an APP that remotely operates or controls the controlled device.
  • the APP or user device
  • the terminal queries whether the device is in a low power consumption state. Since the server stores the latest status of the controlled device, the server can directly search it from the storage module.
  • the server if the server queries that the controlled device is not in a low power consumption state, it triggers the live broadcast operation and sends the command to watch the live broadcast to the server.
  • the server receives the command to watch the live broadcast and sends it to the host.
  • the control unit if the server queries that the controlled unit is in a low-power state, it will feed back the low-power state message to the user device.
  • the user device calls an interface to wake up the master control, and the server will send a wake-up packet to the WiFi unit.
  • the WiFi unit Since the WiFi unit does not have programmability or business logic processing capabilities, when the WiFi unit receives the wake-up packet, it cannot parse the wake-up packet. However, it can perform character comparisons based on the received wake-up packet and the fixed packet in its own configuration. , and then determine whether it is a wake-up command to wake up the main control unit.
  • the WiFi unit after receiving the wake-up packet, the WiFi unit will perform the operation of waking up the main control. After the main control is powered on and initialized, it will report a non-low power consumption state. This state will be sent by the server to the user device, and the user device receives After the status is reached, the live broadcast operation will be triggered again (the APP has been loading at this time), the target instruction will be generated, and the target instruction will be sent to the main control unit. The main control unit will perform corresponding target functions according to the target instruction, such as encoding and decoding videos. , and then render the live video screen on the interface of the user device.
  • the target instruction such as encoding and decoding videos.
  • the server queries the status of the electronic equipment. If it is in a low power consumption state, the server forwards the low power consumption status message to the client, and the client The end calls the wake-up packet interface and sends the wake-up packet to the WiFi unit of the electronic device through the server. Then the WiFi unit wakes up the main control unit of the electronic device. After the main control unit is powered on, it sends a message in a non-low power consumption state. To the server, the server forwards it to the client, and then the client sends instructions to use a certain function to the server.
  • the server forwards it to the main control unit for execution, or the client sends it to the main control unit for execution through a certain protocol.
  • WiFi modules i.e. WiFi units
  • main control units and servers i.e. 10.1.1.1 units
  • It can achieve two-way keep-alive and remote wake-up capabilities while ensuring low cost and high output, and can be widely and effectively applied. For electronic products that can be controlled remotely.
  • the server stores the status of the controlled device, and the status of the controlled device includes a low power consumption state or a non-low power consumption state.
  • a wake-up packet is sent to the WiFi unit of the controlled device to Allowing the WiFi unit to determine whether to wake up the main control unit of the controlled device based on the wake-up packet can be achieved through the following steps:
  • Step a1 If it is queried that the controlled device is in a low power consumption state and it is determined that the controlled device is in the heartbeat state of the WiFi unit, a message indicating that the controlled device is in a low power consumption state will be sent. Sent to the user equipment, so that the user equipment calls an instruction indicating sending a wake-up packet.
  • Step a2 If an instruction sent by the user equipment indicating sending a wake-up packet is received, the wake-up packet is sent to the WiFi unit, so that the WiFi unit combines the wake-up packet with a predefined message. The packets are compared, and when the comparison is consistent, it is determined to wake up the main control unit of the controlled device.
  • the server stores the status of the controlled device instead of the WiFi chip, which solves the problem of insufficient storage capacity of the WiFi chip.
  • the server queries the stored status of the controlled device. If the stored status is found to be If the controlled device is in a low power consumption state, and at the same time, the server maintains a connection with the controlled device, the WiFi unit needs to wake up the main control unit.
  • whether the server maintains a connection with the controlled device can be detected through heartbeat. For example, if the server can normally receive the heartbeat packet sent by the WiFi unit during the heartbeat cycle, it means that the controlled device is in the heartbeat of the WiFi unit. status, the server maintains a connection with the controlled device.
  • the server first sends the status to the user equipment.
  • the user equipment learns that the controlled device is in a low power consumption state, it needs to call the instruction or interface to send the wake-up packet, and then sends it to the server, and the server wakes it up.
  • the packet or wake-up command is forwarded to the WiFi unit, and then the WiFi unit compares it with the configured wake-up packet (i.e., the predefined message packet). When the comparison is consistent, it is determined to be a wake-up packet and wakes up the main control unit. If it is not a wake-up packet, package, no operation is performed.
  • the WiFi chip i.e., WiFi unit
  • the WiFi chip has a simple character comparison function. If the received data (i.e., the received wake-up packet) is the same as the data that needs to be woken up (i.e., the predefined wake-up packet), the main control chip can be triggered. (i.e. the main control unit) wakes up. Since some data in the complete MQTT packet is constantly changing (such as the sequence num in the TCP packet), it is not feasible to compare the entire data packet.
  • the WiFi chip provides an API that only compares application layer data. Therefore, you only need to define the constant wake-up data of the MQTT protocol and set it to WiFi to achieve wake-up.
  • sending the target message to the user equipment, so that the user equipment sends a target instruction to the main control unit to instruct the main control unit to perform the corresponding target function includes:
  • Step b1 Send the target message to the user equipment, so that when the user equipment receives the target message, it triggers a predefined function and generates a target instruction.
  • Step b2 Receive the target instruction sent by the user equipment, and send the target instruction to the main control unit, so that the main control unit executes the operation corresponding to the predefined function, and performs the operation on the user equipment. displayed on.
  • the main control if the main control is awakened, it starts to power on, and sends a target message indicating that it is in a non-low power consumption state to the server, and the server forwards it to the user equipment.
  • the functional operation is triggered again, a control instruction (that is, the target instruction) is generated, and then the target instruction is sent to the main control unit, and the main control unit executes the corresponding function.
  • the main control unit starts to perform the live broadcast operation: turning on the camera to capture the video image of the current location and presenting it on the user device.
  • the main control if the main control is powered on, it will report its status to the server, and the server will notify the client. Then the user equipment will generate control instructions and send them to the main control unit for execution.
  • the user equipment can send instructions to the main control through There are two types of links, one is that the server sends instructions to the main control unit, and the other is sent through the TCP protocol without using the server.
  • the method can also be implemented through the following steps:
  • a target instruction is sent to the main control unit, so that the main control unit performs an operation corresponding to a predefined function and displays it on the user equipment.
  • the target instruction is generated by the user equipment by triggering the predefined function.
  • the main control unit if the status of the controlled device queried and stored by the server is not a low-power state, it means that the main control unit is online or working with power. Since the server and the user equipment are always in communication state, there is no need for the server to contact the user.
  • the device reports a target message that the controlled device is in a non-low power consumption state, and the user device can trigger a functional operation, generate a target instruction, and send it to the main control unit, so that the main control unit executes the corresponding function after receiving the target instruction. For example, if the live broadcast function is triggered, the main control unit starts to perform the live broadcast operation: turning on the camera to capture the video image of the current location and presenting it on the user device.
  • determining that the controlled device is in the heartbeat state of the WiFi unit can be achieved through the following steps:
  • the controlled device If the heartbeat packet sent by the WiFi unit is received within the heartbeat cycle, it is determined that the controlled device is in the heartbeat state in which the WiFi unit is working, and the communication link with the controlled device is maintained in the MQTT manner.
  • the heartbeat packet is sent by the main control.
  • the main control unit When the main control unit is powered off, it will first disconnect its own Message Queuing Telemetry Transport (MQTT) link. , after it is disconnected, set up the WiFi unit to establish this MQTT link, and remove the TLS encryption when establishing it, that is, sending heartbeat packets does not need to be encrypted; secondly, the main control unit puts its own fixed heartbeat packet on the WiFi unit, and then sets The heartbeat cycle is determined, that is, how often it is sent; finally, a wake-up packet is set for the WiFi unit, and under what circumstances the wake-up packet is received, and finally exits to complete the power-off.
  • the main control receives the wake-up command, it implements electricity.
  • the WiFi unit sends a heartbeat packet
  • the main control is in a power-off state, that is, the device is in a low power consumption state, which is the WiFi working state
  • a heartbeat packet it tells the server to maintain communication with the target through MQTT. communication link of the control device. That is, if it is a heartbeat packet sent by the WiFi unit, the server will be notified that the controlled device is in the heartbeat state of the WiFi unit, and the communication link with the controlled device will be maintained in the MQTT manner.
  • the heartbeat packet is sent by the main control unit; the method can also be implemented through the following steps:
  • the heartbeat packet sent by the main control unit is received within the heartbeat cycle, it is determined that the controlled device is in the heartbeat state of the main control unit, and the communication link with the controlled device is maintained in the MQTT manner. road.
  • the master when the controlled device is in a non-low power consumption state, the master sends a heartbeat packet to the server and waits to receive operation instructions from the user device.
  • MQTT data needs to be forged, and the main control chip must obtain and set the detailed information of the TCP/IP protocol stack to the WiFi chip.
  • MQTT has modified the TCP application layer, ping (device)-pong (cloud)-ack (device). That is, after obtaining all the current MQTT protocol information, such information is set to WiFi.
  • WiFi can send MQTT packets on its own.
  • commands are issued to the device in the cloud.
  • the cloud After the cloud receives the user's control command, in order to ensure that the device can receive the command, it requires confirmation from the device network (acknowledge, ask) before issuing the command to the device.
  • TCP is just a simple request-response and cannot guarantee the success rate of instructions sent from the cloud to the device.
  • the keep-alive method uses fixed message packets (such as heartbeat packets), and the sending frequency is consistent with the heartbeat interval. things
  • the network service can ensure that the device sending the message packet is online (because the success rate of the service's command cannot be guaranteed, the server command is not received in the low power consumption state). If it is a heartbeat packet sent by the main control unit, the server will be notified that the controlled device is in the heartbeat state in which the main control unit is working, and the communication link with the controlled device will be maintained in the MQTT manner.
  • the WiFi chip only does keep-alive and wake-up. Record a fixed non-TLS encrypted heartbeat packet, and the WiFi chip will send it regularly. Set a fixed wake-up command and wake up the main chip after receiving it.
  • the MQTT ping-pong-ack mode cannot be used when keeping alive, because TCP cannot reply ack after receiving pong; the keep-alive method uses fixed message packets, the sending frequency is consistent with the heartbeat interval, and the server is notified to use MQTT Maintain a communication link with the controlled device.
  • the Internet of Things service can ensure that the device sending the message package is online (because the success rate of instructions issued by the service cannot be guaranteed, server instructions are not received in the low power consumption state). The device will switch between low power consumption and online states.
  • the device status information is saved in the cloud for query by user devices with the APP installed, distinguishing functions in different states.
  • the attribute settings are saved in the cloud (supports APP query), and are updated when the device's main control chip comes online.
  • the device and cloud are integrated.
  • the device only needs to send instructions, and the protocol conversion and programming are completed by the cloud.
  • the basic working unit has been changed from WiFi module to WiFi module + cloud, which has stronger capabilities, lower price, and wider usability.
  • Figure 3 is a schematic flow chart of an information processing method provided by another embodiment of the present application.
  • the method of this embodiment can be executed by a user device.
  • the user device here can be a smart device such as a mobile phone or a tablet.
  • the user There is an APP that can control the device installed on the device.
  • the method in this embodiment may include:
  • the controlled device includes a WiFi unit and a main control unit.
  • the user device is installed with an APP that remotely operates or controls the controlled device.
  • an APP that remotely operates or controls the controlled device.
  • the APP or user device
  • the terminal queries whether the device is in a low power consumption state. Since the server stores the latest status of the controlled device, the server can directly search it from the storage module.
  • the server if the server queries that the controlled device is not in a low power consumption state, it triggers the live broadcast operation and sends the command to watch the live broadcast to the server.
  • the server receives the command to watch the live broadcast and sends it to the host.
  • the control unit if the server queries that the controlled unit is in a low power consumption state, it will feed back the message of the low power consumption state to the user equipment, and the user equipment receives a target indicating that the controlled device is in a low power consumption state.
  • the interface or command of the wake-up master is called, causing the server to send a wake-up packet to the WiFi unit.
  • the WiFi unit Since the WiFi unit does not have programmability or business logic processing capabilities, when the WiFi unit receives the wake-up packet, it cannot parse the wake-up packet. However, it can perform character comparisons based on the received wake-up packet and the fixed packet in its own configuration. , and then determine whether it is a wake-up command to wake up the main control unit.
  • the WiFi unit after receiving the wake-up packet, the WiFi unit will perform the operation of waking up the main control. After the main control is powered on and initialized, it will report a non-low power consumption state. This state will be sent by the server to the user device, and the user device receives After the status is reached, the live broadcast operation will be triggered again (the APP has been loading at this time), the target instruction will be generated, and the target instruction will be sent to the main control unit. The main control unit will perform corresponding target functions according to the target instruction, such as encoding and decoding videos. , and then render the live video screen on the interface of the user device.
  • the target instruction such as encoding and decoding videos.
  • the server queries the status of the electronic equipment. If it is in a low power consumption state, the server forwards the low power consumption status message to the client, and the client The end calls the wake-up packet interface and sends the wake-up packet to the WiFi unit of the electronic device through the server. Then the WiFi unit wakes up the main control unit of the electronic device. After the main control unit is powered on, it sends a message in a non-low power consumption state. To the server, the server forwards it to the client, and then the client sends instructions to use a certain function to the server.
  • the server forwards it to the main control unit for execution, or the client sends it to the main control unit for execution through a certain protocol.
  • WiFi modules i.e. WiFi units
  • main control units i.e. main control units
  • servers i.e. main control units
  • It can achieve two-way keep-alive and remote wake-up capabilities at a low cost, and can be widely and effectively used in remote Control electronics.
  • the user equipment can implement the above-mentioned operations that the user equipment can perform when the server is the execution subject.
  • the implementation principles and technical effects are similar and will not be described again here.
  • FIG 4 is a schematic flow chart of an information processing method provided by yet another embodiment of the present application.
  • the method in this embodiment can be executed by a main control unit of a controlled device.
  • the controlled device here can be a video doorbell. , face/visual door locks and other battery-based consumer electronics products.
  • the controlled device includes a WiFi unit and a main control unit.
  • the WiFi unit and the main control unit are physically connected, such as USB.
  • the method in this embodiment may include:
  • the controlled device includes a WiFi unit and a main control unit.
  • the controlled device adopts a master-slave architecture: WiFi chip + main chip (ie, main control chip).
  • the main chip In the low power consumption state, the main chip is turned off, and the WiFi and the Internet of Things platform (i.e., the server or the cloud) maintain a heartbeat. Due to the different capabilities of the WiFi chip, the flash and memory sizes are different. Therefore, when the main control unit is powered on or off, it can The status of the controlled device is reported to the cloud and stored in the cloud for cloud query, which saves the flash and memory of the WiFi chip.
  • the wake-up command sent by the WiFi unit If the wake-up command sent by the WiFi unit is received, perform a power-on operation and send a target message indicating that it is in a non-low power consumption state to the server, so that the server sends the target message to User equipment; wherein the wake-up instruction is sent by the user equipment to the WiFi unit so that the WiFi unit determines the wake-up packet according to the wake-up packet; the wake-up packet is obtained by the server after querying the wake-up packet.
  • the controlled device is in a low power consumption state and is indeed When the WiFi unit is working in the heartbeat state, a message indicating that the controlled device is in a low power consumption state is sent to the user equipment, so that the user equipment determines the sending.
  • the server if the server queries that the controlled device is not in a low power consumption state, it triggers the live broadcast operation and sends the command to watch the live broadcast to the server.
  • the server receives the command to watch the live broadcast and sends it to the host.
  • the control unit if the server queries that the controlled unit is in a low-power state, it will feed back the low-power state message to the user device.
  • the user device calls an interface to wake up the master control, and the server will send a wake-up packet to the WiFi unit.
  • the WiFi unit Since the WiFi unit does not have programmability or business logic processing capabilities, when the WiFi unit receives the wake-up packet, it cannot parse the wake-up packet. However, it can perform character comparisons based on the received wake-up packet and the fixed packet in its own configuration. , and then determine whether it is a wake-up command to wake up the main control unit.
  • the WiFi unit when the WiFi unit receives the wake-up packet, it will perform the operation of waking up the main control. After the main control is powered on and initialized, it will report a non-low power consumption state. This state will be sent to the user device by the server. After the user device receives the status The live broadcast operation will be triggered again (the APP has been loading at this time), the target command will be generated, and the target command will be sent to the main control unit.
  • the target instruction sent by the user equipment is received, execute the corresponding target function.
  • the target instruction is generated by the user equipment based on the target message.
  • the main control unit receives the target instruction sent by the user device.
  • the main control unit performs corresponding target functions according to the target instruction, such as operations such as encoding and decoding videos, and then renders the live video screen on the interface of the user device.
  • the heartbeat packet is sent by the main control unit. Before the main control unit loses power, it will first disconnect its own Message Queuing Telemetry Transport (MQTT) link. After it is removed, set up the WiFi unit to establish this MQTT link, and remove TLS encryption when establishing it, that is, sending heartbeat packets does not need to be encrypted; secondly, the main control unit puts its own fixed heartbeat packet on the WiFi unit, and then sets The heartbeat cycle, that is, how often it is sent; finally, set a wake-up packet for the WiFi unit, and set the circumstances under which the wake-up packet is received, and finally exit to complete the power-down. When the master control receives the wake-up command, it will be powered on.
  • MQTT Message Queuing Telemetry Transport
  • the server queries the status of the electronic equipment. If it is in a low power consumption state, the server forwards the low power consumption status message to the client, and the client The end calls the wake-up packet interface and sends the wake-up packet to the WiFi unit of the electronic device through the server. Then the WiFi unit wakes up the main control unit of the electronic device. After the main control unit is powered on, it sends a message in a non-low power consumption state. To the server, the server forwards it to the client, and then the client sends instructions to use a certain function to the server.
  • the server forwards it to the main control unit for execution, or the client sends it to the main control unit for execution through a certain protocol.
  • WiFi modules i.e. WiFi units
  • main control units i.e. main control units
  • servers i.e. main control units
  • It can achieve two-way keep-alive and remote wake-up capabilities at a low cost, and can be widely and effectively used in remote Control electronics.
  • the main control unit and the controlled device can realize the above-mentioned operations that the main control unit and the controlled device can perform when the server or user device is the execution subject.
  • the implementation principles and technical effects are similar. No further details will be given here.
  • Figure 5 is a schematic structural diagram of the information processing device provided by the embodiment of the present application.
  • the information processing device is applied to the server; the information processing device may include:
  • the receiving module 501 is used to receive a query request sent by the user equipment to query the status of the controlled device.
  • the controlled device includes a WiFi unit and a main control unit;
  • the sending module 502 is configured to send a wake-up packet to the WiFi unit of the controlled device when it is queried that the controlled device is in a low power consumption state and it is determined that the controlled device is in a heartbeat state in which the WiFi unit is working, So that the WiFi unit determines whether to wake up the main control unit of the controlled device according to the wake-up packet;
  • the processing module 503 is configured to, when receiving a target message sent by the main control unit to indicate that it is in a non-low power consumption state, send the target message to the user equipment, so that the user equipment sends the target message to the user equipment.
  • the main control unit sends a target instruction to instruct the main control unit to perform a corresponding target function, and the target instruction is generated by the user equipment based on the target message.
  • the receiving module 501, the sending module 502 and the processing module 503 are set up so that when the user device triggers a certain functional operation, the server queries the status of the electronic device. If it is in a low power consumption state, the server will The low-power state message is forwarded to the client, and the client calls the wake-up packet interface and sends the wake-up packet to the WiFi unit of the electronic device through the server. Then the WiFi unit wakes up the main control unit of the electronic device. On the main control unit After the power is turned on, the message in the non-low power consumption state is sent to the server, and the server forwards it to the client.
  • the client sends an instruction to use a certain function to the server, and the server forwards it to the main control unit for execution or
  • the client uses a certain protocol to be executed by the main control unit, which can be implemented through ordinary WiFi modules (i.e. WiFi units), the main control unit and the server. It can realize two-way keep-alive and remote wake-up while ensuring low cost. capabilities, and can be widely and effectively used in electronic products that can be remotely controlled.
  • WiFi modules i.e. WiFi units
  • the server stores the status of the controlled device, and the status of the controlled device includes a low power consumption state or a non-low power consumption state;
  • the sending module is specifically used for:
  • a message indicating that the controlled device is in a low power consumption state is sent to the controlled device.
  • the user equipment so that the user equipment calls an instruction indicating sending a wake-up packet;
  • the wake-up packet is sent to the WiFi unit, so that the WiFi unit compares the wake-up packet with a predefined message packet. Yes, when the comparison is consistent, it is determined to wake up the main control unit of the controlled device.
  • processing module specifically used for:
  • processing module also used for:
  • the target instruction is generated by the user equipment by triggering the predefined function.
  • the sending module is also specifically used for:
  • the controlled device If the heartbeat packet sent by the WiFi unit is received within the heartbeat cycle, it is determined that the controlled device is in the heartbeat state in which the WiFi unit is working, and the communication link with the controlled device is maintained in the MQTT manner.
  • the heartbeat packet is sent by the main control unit; the processing module is also used to:
  • the heartbeat packet sent by the main control unit is received within the heartbeat cycle, it is determined that the controlled device is in the heartbeat state of the main control unit, and the communication link with the controlled device is maintained in the MQTT manner. road.
  • the device provided by the embodiment of the present application can implement the above-mentioned method as shown in the embodiment shown in Figures 1-2. Its implementation principles and technical effects are similar and will not be described again here.
  • FIG. 6 is a schematic structural diagram of an information processing device provided by yet another embodiment of the present application.
  • the information processing device is applied to user equipment; the information processing device may include:
  • the sending module 601 is used to send a query request to the server, so that the server can query the status of the controlled device.
  • the controlled device includes a WiFi unit and a main control unit;
  • the first processing module 602 is configured to, upon receiving a message sent by the server indicating that the controlled device is in a low power consumption state, call an instruction indicating sending a wake-up packet, and use the An instruction indicating sending a wake-up packet is sent to the server, so that the server sends the wake-up packet to the WiFi unit to determine whether to wake up the main control unit of the controlled device;
  • the second processing module 603 is configured to send a target instruction to the main control unit to instruct the main control unit to execute the target message sent by the server to indicate that it is in a non-low power consumption state.
  • the target instruction is generated based on the target message, and the target message is sent to the server by the main control unit.
  • the server queries the status of the electronic equipment. If it is in a low power consumption state, Then the server forwards the low-power state message to the client, and the client calls the wake-up packet interface and sends the wake-up packet to the WiFi unit of the electronic device through the server, and then the WiFi unit wakes up the main control unit of the electronic device. After the main control unit is powered on, it sends messages in a non-low power consumption state to the server, and the server forwards them to the client. Then the client sends instructions to use a certain function to the server, and the server forwards them to the main control unit.
  • the unit executes it or the client uses a certain protocol to the main control unit to execute it, through the ordinary WiFi module (i.e. WiFi unit), the main control unit and the server. It can achieve two-way keep-alive and remote wake-up capabilities while ensuring low cost, and can be widely and effectively used in electronic products that can be remotely controlled.
  • WiFi unit i.e. WiFi unit
  • the unit can achieve two-way keep-alive and remote wake-up capabilities while ensuring low cost, and can be widely and effectively used in electronic products that can be remotely controlled.
  • the device provided by the embodiment of the present application can implement the above-mentioned method as shown in the embodiment shown in Figure 1 and Figure 3. Its implementation principles and technical effects are similar and will not be described again here.
  • Figure 7 is a schematic structural diagram of an information processing device provided by yet another embodiment of the present application.
  • the information processing device is applied to the main control unit of the controlled equipment; the information processing device may include:
  • the sending module 701 is used to report the status of the controlled device to the server, so that the server can query the status of the controlled device according to the user's query request.
  • the controlled device includes a WiFi unit and a main control unit;
  • the first processing module 702 is configured to, upon receiving the wake-up instruction sent by the WiFi unit, perform a power-on operation and send a target message indicating that it is in a non-low power consumption state to the server, so that the server Send the target message to the user equipment; wherein the wake-up instruction is sent by the user equipment to the WiFi unit so that the WiFi unit determines the wake-up packet based on the wake-up packet; the wake-up packet is sent by When the server queries that the controlled device is in a low power consumption state and determines that the WiFi unit is working in a heartbeat state, it sends a message indicating that the controlled device is in a low power consumption state to the user equipment, so that The user equipment determines to send;
  • the second processing module 703 is configured to execute a corresponding target function when receiving a target instruction sent by the user equipment, where the target instruction is generated by the user equipment based on the target message.
  • the server queries the status of the electronic equipment. If it is in a low power consumption state, Then the server forwards the low-power state message to the client, and the client calls the wake-up packet interface and sends the wake-up packet to the WiFi unit of the electronic device through the server, and then the WiFi unit wakes up the main control unit of the electronic device. After the main control unit is powered on, it sends messages in a non-low power consumption state to the server, and the server forwards them to the client. Then the client sends instructions to use a certain function to the server, and the server forwards them to the main control unit.
  • the unit executes it or the client sends it to the master control unit to execute it through a certain protocol.
  • This can be realized through the ordinary WiFi module (i.e. WiFi unit), the master control unit and the server. It can achieve two-way protection under the premise of ensuring low cost. It has the ability to activate and remotely wake up, and is widely and effectively used in electronic products that can be remotely controlled.
  • the device provided by the embodiment of the present application can implement the above-mentioned method as shown in the embodiment shown in Figure 1 and Figure 4.
  • the implementation principles and technical effects are similar and will not be described again here.
  • an embodiment of the present application provides a controlled device, including a WiFi unit and a main control unit;
  • the main control unit is used to execute the method described in the third aspect.
  • the WiFi unit determines whether to wake up the main control unit of the controlled device according to the wake-up packet. If the main control unit is awakened, the main control unit will be used to indicate that the device is in a non-low power consumption state.
  • the target message is sent to the server, so that the server sends the target message to the user equipment;
  • the main control unit If the main control unit receives the target instruction sent by the user equipment, the main control unit executes the corresponding target function, and the target instruction is generated by the user equipment based on the target message.
  • the controlled equipment provided by the embodiments of the present application can implement the above-mentioned methods of the embodiments shown in Figures 1 to 4.
  • the implementation principles and technical effects are similar and will not be described again here.
  • FIG. 8 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • the device 800 provided in this embodiment includes: a processor 801, and a memory communicatively connected to the processor. Among them, the processor 801 and the memory 802 are connected through a bus 803.
  • the processor 801 executes the computer execution instructions stored in the memory 802, so that the processor 801 executes the method in the above method embodiment.
  • the processor may be a central processing unit (English: Central Processing Unit, referred to as: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as: DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), etc.
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in conjunction with the invention can be directly embodied and executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory may include high-speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
  • the bus can be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into address bus, data bus, control bus, etc.
  • the bus in the drawings of this application is not limited to only one bus or one type of bus.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • Computer-executable instructions are stored in the computer-readable storage medium.
  • the processor executes the computer-executable instructions, the information processing method of the above method embodiment is implemented.
  • An embodiment of the present application also provides a computer program product, which includes a computer program.
  • a computer program product which includes a computer program.
  • the computer program is executed by a processor, the information processing method as described above is implemented.
  • the above-mentioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable memory.
  • SRAM static random access memory
  • EEPROM Programmable read-only memory
  • EPROM erasable programmable read-only memory
  • PROM programmable read-only memory
  • ROM read-only memory
  • Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
  • An exemplary readable storage medium is coupled to the processor such that the processor can read information from the readable storage medium and write information to the readable storage medium.
  • the readable storage medium may also be an integral part of the processor.
  • the processor and readable storage medium may be located on an application specific integrated circuit (Application Specific Integrated Circuits (abbreviation: ASIC).
  • ASIC Application Specific Integrated Circuits
  • the processor and the readable storage medium may also exist as discrete components in the device.
  • the aforementioned program can be stored in a computer-readable storage medium.
  • the steps including the above-mentioned method embodiments are executed; and the aforementioned storage media include: ROM, RAM, magnetic disks, optical disks and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Selective Calling Equipment (AREA)

Abstract

本申请实施例提供信息处理方法、设备、存储介质及程序产品,其方法包括:接收用户设备发送的查询请求,用以查询被控设备的状态,被控设备包括WiFi单元和主控单元;若查询到被控设备处于低功耗状态且确定被控设备处于WiFi单元工作的心跳状态时,则向被控设备的WiFi单元发送唤醒包,以使WiFi单元根据唤醒包,确定是否唤醒被控设备的主控单元;若接收到主控单元发送的用于表示处于非低功耗状态的目标消息,则将目标消息发送至用户设备,以使用户设备向主控单元发送目标指令,用以指示主控单元执行相应的目标功能,目标指令是由用户设备基于目标消息生成的。能够保证低成本、高产量的前提下,实现了双向保活和远程唤醒的能力。

Description

信息处理方法、设备、存储介质及程序产品
本申请要求于2022年05月19日提交中国专利局、申请号为202210558025.8、申请名称为“信息处理方法、设备、存储介质及程序产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及计算机技术领域,尤其涉及一种信息处理方法、设备、存储介质及程序产品。
背景技术
随着市场需求不断地变革,越来越多的电子产品(比如,门铃、门锁等)向可视化、智能化发展。通过使用该电子产品的应用程序(Application,APP)能够实现远程控制该电子产品,比如远程查看门铃、门锁监控画面,保存并查看门口录像等,已成为大众化需求。
然而,可视门铃、可视门锁是电池类设备,耗电的主控单元通常是不带电工作的,需要双向保活并支持APP远程唤醒主控来执行相应操作,并且,双向保活并支持APP远程唤醒主控执行相应操作的能力需要WiFi模组来实现。
目前,双向保活和远程唤醒需要WiFi模组支持MQTT协议且具备可编程能力,但是,普通WiFi模组不支持MQTT协议和不具备编程能力,同时,无法通过空中下载技术(Over-the-Air Technology,OTA)实现功能升级。因此,双向保活和远程唤醒的WiFi模组目前使用的是高端WiFi模组,但是,高端WiFi模组成本高,产能低,无法大面积推广。故,现有技术中实现双向保活和远程唤醒的能力具有局限性,进而无法广泛地、有效地应用于可远程控制的电子产品。
发明内容
本申请实施例提供一种信息处理方法、设备、存储介质及程序产品,以解决现有技术实现双向保活和远程唤醒的能力具有局限性,进而无法广泛地、有效地应用于可远程控制的电子产品的问题。
第一方面,本申请实施例提供一种信息处理方法,应用于服务端,所述方法包括:
接收用户设备发送的查询请求,用以查询被控设备的状态,所述被控设备包括WiFi单元和主控单元;
若查询到所述被控设备处于低功耗状态且确定所述被控设备处于所述WiFi单元工作的心跳状态时,则向所述被控设备的WiFi单元发送唤醒包,以使所述WiFi单元根据所述唤醒包,确定是否唤醒所述被控设备的主控单元;
若接收到所述主控单元发送的用于表示处于非低功耗状态的目标消息,则将所述目标消息发送至所述用户设备,以使所述用户设备向所述主控单元发送目标指令,用以指示所述主控单元执行相应的目标功能,所述目标指令是由所述用户设备基于所述目标消息生成的。
可选的,所述服务端存储有所述被控设备的状态,所述被控设备的状态包括低功耗状态或非低功耗状态;
所述若查询到所述被控设备处于低功耗状态且确定所述被控设备处于所述WiFi单元工作的心跳状态时,则向所述被控设备的WiFi单元发送唤醒包,以使所述WiFi单元根据所述唤醒包,确定是否唤醒所述被控设备的主控单元,包括:
若查询到所述被控设备处于低功耗状态且确定所述被控设备处于所述WiFi单元工作的心跳状态时,将用于表示所述被控设备处于低功耗状态的消息发送至所述用户设备,以使所述用户设备调用用于表示发送唤醒包的指令;
若接收到所述用户设备发送的用于表示发送唤醒包的指令,则将所述唤醒包发送至所述WiFi单元,以使所述WiFi单元将所述唤醒包与预定义的消息包进行比对,当比对一致时确定唤醒所述被控设备的主控单元。
可选的,所述将所述目标消息发送至所述用户设备,以使所述用户设备向所述主控单元发送目标指令,用以指示所述主控单元执行相应的目标功能,包括:
将所述目标消息发送至所述用户设备,以使所述用户设备接收到所述目标消息时触发预定义功能,生成目标指令;
接收所述用户设备发送的目标指令,并将所述目标指令发送至所述主控单元,以使所述主控单元执行所述预定义功能对应的操作,并在所述用户设备上显示。
可选的,所述方法还包括:
若查询到所述被控设备处于非低功耗状态,则向所述主控单元发送目标指令,以使所述主控单元执行预定义功能对应的操作,并在所述用户设备上显示;
其中,所述目标指令是由所述用户设备通过触发所述预定义功能生成的。
可选的,所述确定所述被控设备处于所述WiFi单元工作的心跳状态,包括:
若在心跳周期内接收到所述WiFi单元发送的心跳包,则确定所述被控设备处于所述WiFi单元工作的心跳状态,并且以MQTT的方式保持与所述被控设备的通信链路。
可选的,若所述被控设备处于非低功耗状态,则所述心跳包由所述主控单元发送;所述方法还包括:
若在心跳周期内接收到所述主控单元发送的心跳包,则确定所述被控设备处于所述主控单元工作的心跳状态,并且以MQTT的方式保持与所述被控设备的通信链路。
第二方面,本申请实施例提供一种信息处理方法,应用于用户设备;所述方法包括:
向服务端发送查询请求,以使所述服务端查询被控设备的状态,所述被控设备包括WiFi单元和主控单元;
若接收到所述服务端发送的用于表示所述被控设备处于低功耗状态的消息时,调用用于表示发送唤醒包的指令,并将所述用于表示发送唤醒包的指令发送至所述服务端,以使所述服务端将所述唤醒包发送至所述WiFi单元,用以确定是否唤醒所述被控设备的主控单元;
若接收到所述服务端发送的用于表示处于非低功耗状态的目标消息时,则向所述主控单元发送目标指令,用以指示所述主控单元执行相应的目标功能,所述目标指令是基于所述目标消息生成的,所述目标消息是由所述主控单元发送至所述服务端的。
第三方面,本申请实施例提供一种信息处理方法,应用于主控单元;所述方法包括:
将被控设备的状态上报至服务端,以使服务端根据用户端的查询请求,查询被控设备的状态,所述被控设备包括WiFi单元和主控单元;
若接收到所述WiFi单元发送的唤醒指令,则执行上电操作并将用于表示处于非低功耗状态的目标消息发送至服务端,以使所述服务端将所述目标消息至用户设备;其中,所述唤醒指令是由所述用户设备向所述单元发送唤醒包,以使所述WiFi单元根据所述唤醒包确定的;所述唤醒包是由服务端查询到所述被控设备处于低功耗状态,且确定所述WiFi单元工作在心跳状态时,将用于表示所述被控设备处于低功耗状态的消息发送至用户设备,以使用户设备确定发送的;
若接收到所述用户设备发送的目标指令,则执行相应的目标功能,所述目标指令是由所述用户设备基于所述目标消息生成的。
第四方面,本申请实施例提供一种电子设备,包括:处理器,以及与所述处理器通信连接的存储器;
所述存储器存储计算机执行指令;
所述处理器执行所述存储器存储的计算机执行指令,以实现如第一方面、第二方面以及第三方面任一项所述的方法。
第五方面,本申请实施例提供一种被控设备,包括WiFi单元和主控单元;
其中,所述主控单元用于执行如第三方面所述的信息处理方法。
第六方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如第一方面、第二方面以及第三方面任一项所述的方法。
第七方面,本申请实施例提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,实现如第一方面、第二方面以及第三方面任一项所述的方法。
本申请实施例提供的信息处理方法、设备、存储介质及程序产品,该方法中,当用户设备触发某种功能操作时,服务端查询电子设备的状态,如果处于低功耗状态,则服务端 将低功耗状态的消息转发给客户端,由客户端调用唤醒包接口并通过服务端将唤醒包发送给电子设备的WiFi单元,然后由WiFi单元唤醒电子设备的主控单元,在主控单元上电后,将处于非低功耗状态的消息发送给服务端,由服务端转发给客户端,然后由客户端发送使用某种功能的指令给服务端,服务端转发给主控单元去执行或客户端通过某种协议给主控单元去执行,通过普通WiFi模组(即WiFi单元)、主控单元以及服务端即可实现,能够保证低成本、高产量的前提下,实现了双向保活和远程唤醒的能力,进而广泛地、有效地应用于可远程控制的电子产品。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的信息处理方法的场景示意图;
图2为本申请实施例提供的信息处理方法的流程示意图;
图3为本申请另一实施例提供的信息处理方法的流程示意图;
图4为本申请再一实施例提供的信息处理方法的流程示意图;
图5为本申请实施例提供的信息处理装置的结构示意图;
图6为本申请再一实施例提供的信息处理装置的结构示意图;
图7为本申请又一实施例提供的信息处理装置的结构示意图;
图8为本申请实施例提供的电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例还能够包括除了图示或描述的那些实例以外的其他顺序实例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
目前,实现双向保活和远程唤醒需要WiFi模组支持MQTT协议且具备可编程能力。使用高端WiFi模组替换无法解决以下问题:1,价格高,增加硬件产品成本2,芯片产能低短时间无法弥补,市面上支持此能力的WiFi芯片相对较少,硬件厂商无法大面积推广3,使用Hi1131这类不支持MQTT协议和不具备编程能力的WiFi模组市场存量大,无法通过空中下载技术(Over-the-Air Technology,OTA)实现功能升级,即普通WiFi模组不支持MQTT协议和不具备编程能力,同时,无法通过空中下载技术(Over-the-Air Technology,OTA)实现功能升级。因此,双向保活和远程唤醒的WiFi模组目前使用的是高端WiFi模组,但是,高端WiFi模组成本高,产能低,无法大面积推广。故,现有技术中实现双向保活和远程唤醒的能力具有局限性,进而无法广泛地、有效地应用于可远程控制的电子产品。
为了解决上述问题,本申请的发明构思为:对普通WiFi模组进行改造,将普通WiFi模组的WiFi单元只做收发包和唤醒,不做业务逻辑处理,即录制固定的非TLS加密的心跳包,WiFi单元做定时发送,保持心跳,并且,设定固定的唤醒指令,收到后唤醒主芯片,无需具有可编程能力,或只具备有限的编程、设置功能即可;普通WiFi模组的主控单元负责完成设备的音视频编解码功能,并具备可编程能力,即执行相应的功能。然后由服务端做存储和转发。因此,通过普通WiFi模组、主控以及服务端即可实现,能够保证低成本、高产量的前提下,实现了双向保活和远程唤醒的能力,进而广泛地、有效地应用于可远程控制的电子产品。
图1为本申请实施例提供的信息处理方法的场景示意图。用户设备(比如手机、平板电脑等智能设备)中安装有可控设备的应用程序即APP,这里的可控设备可以是可视门铃、人脸/可视门锁等电池类消费电子产品,用户通过在APP上操作,触发某项功能(即预定义功能,比如观看门口直播的直播功能或回看某个时间段的门口视频的回看功能等)。
由于普通WiFi单元(即普通WiFi芯片)不具备可编程能力或业务逻辑处理能力,只负责收发包和唤醒主控,因此,用户在APP上点击某项功能时,先向服务端发送查询请求,只有可控设备处于非低功耗状态(即主控单元上电状态或在线状态)时,该功能的操作才会真正被触发,生成响应的指令发送给主控单元,此时,不经过WiFi单元,由主控单元执行该功能的操作。
如果可控设备处于低功耗状态,则首先要确定可控设备是否在保活状态,即可控设备是否保持与服务端之间的链路,如果在心跳周期内收到过WiFi单元发送的心跳包(当主控单元在线时,心跳包是由主控发送的),说明可控设备在WiFi单元工作的心跳状态,即可控设备与服务端链路是通的状态,可控设备与服务端保持着通信。
本实施例中低功耗原理为:被控设备由多块芯片组成:主控芯片和WiFi芯片,并且通过物理连接进行通信,常见的形式有USB。其中,主控芯片通常负责完成设备的音视频编解码功能,并具备可编程能力,设备消息上下行、视频等业务功能为了降低功耗会运行在主控芯片上。WiFi芯片负责TCP/IP协议栈功能,包含网络数据的收、发、封包、解包。 但是低端WIFI芯片不具备可编程能力,或只具备有限的编程、设置功能。低功耗时,主控芯片直接掉电,只运行WiFi芯片来保持与服务端的心跳连接。当WiFi芯片接收到特定唤醒消息(比如唤醒包)后,将唤醒主控芯片,主控芯片启动完成后,即可恢复正常状态。
然后由服务端将可控设备处于低功耗状态的消息发送给用户设备,用户设备接收到该消息后,调用发送唤醒包的接口,使得服务端将唤醒包发给WiFi单元,由WiFi单元与自身配置的固定包的信息进行比对(这里仅仅是字符比对,并不涉及业务逻辑处理,因此,WiFi单元可以不具备高端WiFi模组的能力),确定是不是唤醒包,如果确定是唤醒包,则WiFi单元唤醒主控单元,主控单元上电,在主控单元上电过程中,用户设备一直处于加载状态,同时,主控将处于非低功耗状态的消息发给服务端,由服务端发送用户设备,用户设备真正触发该项功能的操作,生成相应的指令发给主控单元执行。
其中,用户设备将相应的指令(即目标指令)发给主控单元的链路可以是两条,一条为用户设备把目标指令发给服务端,由服务端转发给主控单元(因为用户设备和服务端一直保持通信);另一条是用户设备通过某种协议(比如传输控制协议(Transmission Control Protocol,TCP协议)),将目标指令发送给主控单元。
此外,当主控单元在线时,心跳包是由主控发送的,当主控单元掉电之前,首先会将自己的这个消息队列遥测传输(Message Queuing Telemetry Transport,MQTT)链接断掉,断掉了以后设置WiFi单元建立这个MQTT的链接,在建立时将TLS加密去掉,即发送心跳包无需加密;其次,主控单元将自己那种固定的心跳包放到WiFi单元上,然后设定了心跳周期,即间隔多久发送一次;最后,对WiFi单元设置一个唤醒包,并设置在什么情况下收到这个唤醒包,最终退出完成掉电,当主控收到唤醒指令后,实现上电。
其中,MQTT定义了一系列控制报文,包括PINGREQ:心跳请求、PINGRESP:心跳响应、PUBLISH:发布消息、SUBSCRIBE:订阅消息。MQTT定义了心跳包PINGREQ,设备(这里可以指可控设备)将该数据包(比如心跳包)按一定频率发送给云端(即服务端,比如物联网平台),请求云端确认链接是否有效。当云端收到PINGREQ后,会回复PINGRESP,通知设备已收到PINGREQ请求。设备接收到PINGRESP后,会确认当前链接是否有效。其中,PINGREQ/PINGRESP里不包含任何的可变参数。MQTT还提供了发布消息和订阅消息的机制:通过定义数据格式,设备、云、APP可以完成休眠状态同步、休眠指令下发等功能。
传输层安全性协议(Transport Layer Security,TLS)为两个通信端建立可靠的加密通道。一般先使用非对称加密进行秘钥的交换。秘钥交换完成后,使用交换得到的秘钥、加密方式进行对称加密。其中,对称加密的特点是使用相同的原文-秘钥-加密方式,加密后的密文是恒定的,并且对密文使用相同的秘钥-加密方式进行解密,得到的原文也是一样的;非对称加密处于TLS建立链接的过程,实际信息通信使用的是对称加密。但TLS的对称加密过程中,会为实际数据增加sequence num,不断增加。因此相同源数据时,加密后的数据也不相同。
因此,本申请对普通WiFi模组进行改造,将普通WiFi模组的WiFi单元只做收发包和唤醒,不做业务逻辑处理,即录制固定的非TLS加密的心跳包,WiFi单元做定时发送,保持心跳,并且,设定固定的唤醒指令,收到后唤醒主控芯片(即主控单元),无需具有可编程能力,或只具备有限的编程、设置功能即可。通过改造可控设备的主控单元,实现状态上报给服务端,然后由服务端做存储和转发,同时,主控单元还负责完成可控设备的音视频编解码功能,并具备可编程能力,即执行相应的功能。区别于目前的高端WiFi模组,必须具有可编程能力,且支持MQTT协议和支持加密,并具有一定的存储能力,通过将高端WiFi模组具备的功能进行分解,即通过普通WiFi模组+服务端(这里的服务端是部署在云端的服务)即可实现,能够保证低成本、高产量的前提下,实现了双向保活和远程唤醒的能力,进而广泛地、有效地应用于可远程控制的电子产品。
下面以具体实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
图2为本申请实施例提供的信息处理方法的流程示意图,本实施例的方法可以由服务端执行,这里的服务端可以为云端(即采用应用程序虚拟化技术的软件平台),比如服务器。如图2所示,本实施例的方法,可以包括:
S201:接收用户设备发送的查询请求,用以查询被控设备的状态,所述被控设备包括WiFi单元和主控单元。
其中,这里的WiFi单元为支持TCP协议栈的WiFi模组。被控设备的状态包括低功耗状态、非低功耗状态。这里的低功耗状态用于表示被控设备中主控单元处于掉电状态,即当主控单元掉电或不在线,只有WiFi芯片带电,说明被控设备处于低功耗状态(以可视门锁为例,可视门锁300UA以下就是低功耗状态);当主控单元上电或在线,说明被控设备处于非低功耗状态。主控单元在掉电之前会将被控设备处于低功耗状态的消息上报给服务端,主控单元在上电后,会将被控设备处于非低功耗状态的消息上报给服务端,服务端对该被控设备的状态进行更新并存储。
本实施例中,用户设备上安装有远程操作或控制被控设备的APP,以观看门口直播的直播功能为例,当用户在APP上点击该直播功能时,APP(或用户设备)先向服务端查询设备是否处于低功耗状态。由于服务端存储有被控设备最近一次的状态,因此服务端直接从存储模块中查找即可。
S202、若查询到所述被控设备处于低功耗状态且确定所述被控设备处于所述WiFi单元工作的心跳状态时,则向所述被控设备的WiFi单元发送唤醒包,以使所述WiFi单元根据所述唤醒包,确定是否唤醒所述被控设备的主控单元。
本实施例中,如果服务端查询到被控设备不处于低功耗状态,则触发观看直播操作,将这个观看直播的指令发给服务端,服务端接收到这个观看直播的指令后发给主控单元;如果服务端查询到被控单元处于低功耗状态,会将该低功耗状态的消息反馈给用户设备,用户设备调用一个唤醒主控的接口,服务端会发唤醒包发给WiFi单元。为了保证服务端 能给WiFi单元发送唤醒包,需要确定被控设备处于所述WiFi单元工作的心跳状态,保证服务端与被控设备的链路是通的状态。
由于WiFi单元不具有可编程能力或业务逻辑处理能力,所以当WiFi单元接收到唤醒包后,并无法解析该唤醒包,但是可以根据接收到的唤醒包与自身配置中的固定包进行字符比对,进而确定是否是唤醒指令,来唤醒主控单元。
S203、若接收到所述主控单元发送的用于表示处于非低功耗状态的目标消息,则将所述目标消息发送至所述用户设备,以使所述用户设备向所述主控单元发送目标指令,用以指示所述主控单元执行相应的目标功能,所述目标指令是由所述用户设备基于所述目标消息生成的。
本实施例中,WiFi单元收到唤醒包后会执行唤醒主控的操作,主控上电初始化完成后会上报非低功耗状态,这个状态会有服务端发送给用户设备,用户设备收到状态后会再次触发观看直播操作(此时APP一直在loading),生成目标指令,并将该目标指令发送给主控单元,主控单元根据目标指令执行相应的目标功能,比如编解码视频等操作,然后在用户设备的界面上渲染出直播视频画面。
本申请提供的信息处理方法,当用户设备触发某种功能操作时,服务端查询电子设备的状态,如果处于低功耗状态,则服务端将低功耗状态的消息转发给客户端,由客户端调用唤醒包接口并通过服务端将唤醒包发送给电子设备的WiFi单元,然后由WiFi单元唤醒电子设备的主控单元,在主控单元上电后,将处于非低功耗状态的消息发送给服务端,由服务端转发给客户端,然后由客户端发送使用某种功能的指令给服务端,服务端转发给主控单元去执行或客户端通过某种协议给主控单元去执行,通过普通WiFi模组(即WiFi单元)、主控单元以及服务端即可实现,能够保证低成本、高产量的前提下,实现了双向保活和远程唤醒的能力,进而广泛地、有效地应用于可远程控制的电子产品。
可选的,所述服务端存储有所述被控设备的状态,所述被控设备的状态包括低功耗状态或非低功耗状态。
其中,所述若查询到所述被控设备处于低功耗状态且确定所述被控设备处于所述WiFi单元工作的心跳状态时,则向所述被控设备的WiFi单元发送唤醒包,以使所述WiFi单元根据所述唤醒包,确定是否唤醒所述被控设备的主控单元,可以通过以下步骤实现:
步骤a1、若查询到所述被控设备处于低功耗状态且确定所述被控设备处于所述WiFi单元工作的心跳状态时,将用于表示所述被控设备处于低功耗状态的消息发送至所述用户设备,以使所述用户设备调用用于表示发送唤醒包的指令。
步骤a2、若接收到所述用户设备发送的用于表示发送唤醒包的指令,则将所述唤醒包发送至所述WiFi单元,以使所述WiFi单元将所述唤醒包与预定义的消息包进行比对,当比对一致时确定唤醒所述被控设备的主控单元。
本实施例中,服务端存储被控设备的状态,而不是由WiFi芯片存储,解决了WiFi芯片存储能力不足的问题。服务端查询存储的被控设备的状态,如果查询到存储的状态是被 控设备处于低功耗状态,同时,服务端与被控设备保持着连接,则需要WiFi单元唤醒主控单元。
其中,服务端是否与被控设备保持着连接,可以通过心跳检测,比如,服务端在心跳周期内可以正常接收到WiFi单元发送的心跳包,则说明被控设备处于所述WiFi单元工作的心跳状态,服务端与被控设备保持着连接。
具体地,首先服务端将该状态发送至用户设备,当用户设备得知被控设备处于低功耗状态时,需要调用发送唤醒包的指令或接口,然后发送给服务端,通过服务端将唤醒包或唤醒指令转发给WiFi单元,然后WiFi单元经过与配置的唤醒包(即预定义的消息包)进行比对,当比对一致时,确定是唤醒包,则唤醒主控单元,如果不是唤醒包,则不做任何操作。
其中,WiFi芯片(即WiFi单元)具备简单的字符比对功能,如果接收的数据(即接收的唤醒包)与设置需要唤醒的数据(即预定义的唤醒包)相同时,可触发主控芯片(即主控单元)唤醒。由于完整MQTT数据包中的部分数据是不断变化的(如TCP包里的sequence num),因此进行全数据包的比对是不可行的。WiFi芯片提供了只对应用层数据对比的API。因此只需要定义恒定的MQTT协议的唤醒数据,并设置给WiFi即可实现唤醒。
可选的,所述将所述目标消息发送至所述用户设备,以使所述用户设备向所述主控单元发送目标指令,用以指示所述主控单元执行相应的目标功能,包括:
步骤b1、将所述目标消息发送至所述用户设备,以使所述用户设备接收到所述目标消息时触发预定义功能,生成目标指令。
步骤b2、接收所述用户设备发送的目标指令,并将所述目标指令发送至所述主控单元,以使所述主控单元执行所述预定义功能对应的操作,并在所述用户设备上显示。
本实施例中,如果主控被唤醒,则开始上电,并将用于表示处于非低功耗状态的目标消息发送给服务端,由服务端转发给用户设备,当用户设备接收到用于表示处于非低功耗状态的目标消息时,则再次触发功能操作,生成控制指令(即目标指令),然后将该目标指令发送给主控单元,主控单元执行相应的功能。比如,触发的是直播功能,则主控单元开始执行直播操作:开启摄像头拍摄当前位置的视频画面并呈现在用户设备上。
具体地,如果主控上电,会上报自身状态给服务端,由服务端通知给客户端,然后由用户设备生成控制指令发送给主控单元去执行,这里用户设备发送指令给主控可以通过两种链路,一种是由服务端发送指令给主控单元,另一种是通过TCP协议发送,不使用服务端。
可选的,所述方法还可以通过以下步骤实现:
若查询到所述被控设备处于非低功耗状态,则向所述主控单元发送目标指令,以使所述主控单元执行预定义功能对应的操作,并在所述用户设备上显示。
其中,所述目标指令是由所述用户设备通过触发所述预定义功能生成的。
本实施例中,如果服务端查询存储的被控设备的状态为非低功耗状态,说明主控单元在线或带电工作,由于服务端与用户设备一直是通信状态,则无需服务端再去向用户设备上报被控设备处于非低功耗状态的目标消息,用户设备即可触发功能操作,生成目标指令,发送给主控单元,使得主控单元接收到目标指令后执行相应的功能。比如,触发的是直播功能,则主控单元开始执行直播操作:开启摄像头拍摄当前位置的视频画面并呈现在用户设备上。
可选的,所述确定所述被控设备处于所述WiFi单元工作的心跳状态,可以通过以下步骤实现:
若在心跳周期内接收到所述WiFi单元发送的心跳包,则确定所述被控设备处于所述WiFi单元工作的心跳状态,并且以MQTT的方式保持与所述被控设备的通信链路。
本实施例中,当主控单元在线时,心跳包是由主控发送的,当主控单元掉电之前,首先会将自己的这个消息队列遥测传输(Message Queuing Telemetry Transport,MQTT)链接断掉,断掉了以后设置WiFi单元建立这个MQTT的链接,在建立时将TLS加密去掉,即发送心跳包无需加密;其次,主控单元将自己那种固定的心跳包放到WiFi单元上,然后设定了心跳周期,即间隔多久发送一次;最后,对WiFi单元设置一个唤醒包,并设置在什么情况下收到这个唤醒包,最终退出完成掉电,当主控收到唤醒指令后,实现上电。
具体地,如果由WiFi单元发送心跳包,说明主控是掉电状态,即设备处于低功耗状态也就是WiFi工作状态,并且通过发送心跳包告诉服务端要以MQTT的方式保持与所述被控设备的通信链路。即如果是WiFi单元发送的心跳包,则会通知服务端所述被控设备处于所述WiFi单元工作的心跳状态,并且以MQTT的方式保持与所述被控设备的通信链路。
可选的,若所述被控设备处于非低功耗状态,则所述心跳包由所述主控单元发送;所述方法还可以通过以下步骤实现:
若在心跳周期内接收到所述主控单元发送的心跳包,则确定所述被控设备处于所述主控单元工作的心跳状态,并且以MQTT的方式保持与所述被控设备的通信链路。
本实施例中,被控设备在非低功耗状态下时,由主控发心跳包给服务端,等待接收用户设备的操作指示。
其中,为了支持TCP协议,需要伪造MQTT数据,主控芯片必须要将TCP/IP协议栈的详细信息获取到并设置给WiFi芯片。具体地,为了支持TCP协议,MQTT对TCP应用层做了修改,ping(设备)-pong(云端)-ack(设备)。即获取到当前MQTT的所有协议信息后,将此类信息设置给WiFi。设置完成后,WiFi可以自行发送MQTT数据包。
应用场景下,在云端对设备下发指令,云端收到用户的控制指令后为了保障设备能收到指令,需要设备网络确认(acknowledge,ask)后才会下发指令给设备。TCP只是简单的request-response,不能保证云端下发到设备指令的成功率。
保活时不能使用MQTT的ping-pong-ack的模式,因为TCP在收到pong后无法回复ack,保活的方式采用发送固定消息包(比如心跳包),发送频率与心跳间隔一致。物联 网服务能保证发送消息包的设备是在线状态(由于无法保证服务下发指令的成功率,低功耗状态时不接收服务端指令)。如果是主控单元发送的心跳包,则会通知服务端所述被控设备处于所述主控单元工作的心跳状态,并且以MQTT的方式保持与所述被控设备的通信链路。
在实际应用中,WiFi芯片只做保活和唤醒。录制固定的非TLS加密的心跳包,WiFi芯片做定时发送。设定固定的唤醒指令,收到后唤醒主芯片。保活时不能使用MQTT ping-pong-ack的模式,因为TCP在收到pong后无法回复ack;保活的方式采用发送固定消息包,发送频率与心跳间隔一致,并通知服务端以MQTT的方式保持与所述被控设备的通信链路。物联网服务能保证发送消息包的设备是在线状态(由于无法保证服务下发指令的成功率,低功耗状态时不接收服务端指令)。设备会在低功耗、在线两种状态下进行切换。云端保存设备状态信息供安装有APP的用户设备查询,区分不同状态下的功能。设备低功耗状态下属性设置保存在云端(支持APP查询),设备的主控芯片上线时进行更新。
因此,端云一体,设备端只需要发送指令,协议转换和编程由云端完成。基础工作单元由WiFi模组变成了WiFi模组+云端,能力更强,价格更低,使用性更为广泛。
参见图3所示,图3为本申请另一实施例提供的信息处理方法的流程示意图,本实施例的方法可以由用户设备执行,这里的用户设备可以为手机、平板等智能设备,该用户设备上安装有可控设备的APP。如图3所示,本实施例的方法,可以包括:
S301、向服务端发送查询请求,以使所述服务端查询被控设备的状态,所述被控设备包括WiFi单元和主控单元。
本实施例中,用户设备上安装有远程操作或控制被控设备的APP,以观看门口直播的直播功能为例,当用户在APP上点击该直播功能时,APP(或用户设备)先向服务端查询设备是否处于低功耗状态。由于服务端存储有被控设备最近一次的状态,因此服务端直接从存储模块中查找即可。
S302、若接收到所述服务端发送的用于表示所述被控设备处于低功耗状态的消息时,调用用于表示发送唤醒包的指令,并将所述用于表示发送唤醒包的指令发送至所述服务端,以使所述服务端将所述唤醒包发送至所述WiFi单元,用以确定是否唤醒所述被控设备的主控单元。
本实施例中,如果服务端查询到被控设备不处于低功耗状态,则触发观看直播操作,将这个观看直播的指令发给服务端,服务端接收到这个观看直播的指令后发给主控单元;如果服务端查询到被控单元处于低功耗状态,会将该低功耗状态的消息反馈给用户设备,用户设备接收到用于表示所述被控设备处于低功耗状态的目标消息时,调用唤醒主控的接口或指令,使得服务端发唤醒包发给WiFi单元。为了保证服务端能给WiFi单元发送唤醒包,需要确定被控设备处于所述WiFi单元工作的心跳状态,保证服务端与被控设备的链路是通的状态。
由于WiFi单元不具有可编程能力或业务逻辑处理能力,所以当WiFi单元接收到唤醒包后,并无法解析该唤醒包,但是可以根据接收到的唤醒包与自身配置中的固定包进行字符比对,进而确定是否是唤醒指令,来唤醒主控单元。
S303、若接收到所述服务端发送的用于表示处于非低功耗状态的目标消息时,则向所述主控单元发送目标指令,用以指示所述主控单元执行相应的目标功能,所述目标指令是基于所述目标消息生成的,所述目标消息是由所述主控单元发送至所述服务端的。
本实施例中,WiFi单元收到唤醒包后会执行唤醒主控的操作,主控上电初始化完成后会上报非低功耗状态,这个状态会有服务端发送给用户设备,用户设备收到状态后会再次触发观看直播操作(此时APP一直在loading),生成目标指令,并将该目标指令发送给主控单元,主控单元根据目标指令执行相应的目标功能,比如编解码视频等操作,然后在用户设备的界面上渲染出直播视频画面。
本申请提供的信息处理方法,当用户设备触发某种功能操作时,服务端查询电子设备的状态,如果处于低功耗状态,则服务端将低功耗状态的消息转发给客户端,由客户端调用唤醒包接口并通过服务端将唤醒包发送给电子设备的WiFi单元,然后由WiFi单元唤醒电子设备的主控单元,在主控单元上电后,将处于非低功耗状态的消息发送给服务端,由服务端转发给客户端,然后由客户端发送使用某种功能的指令给服务端,服务端转发给主控单元去执行或客户端通过某种协议给主控单元去执行,通过普通WiFi模组(即WiFi单元)、主控单元以及服务端即可实现,能够保证低成本的前提下,实现了双向保活和远程唤醒的能力,进而广泛地、有效地应用于可远程控制的电子产品。
本申请实施例提供的方法,用户设备可以实现上述以服务端为执行主体时,用户设备所能执行的操作,其实现原理和技术效果类似,此处不再赘述。
参见图4所示,图4为本申请再一实施例提供的信息处理方法的流程示意图,本实施例的方法可以由被控设备的主控单元执行,这里的被控设备可以为可视门铃、人脸/可视门锁等电池类消费电子产品,该被控设备包括WiFi单元和主控单元,WiFi单元和主控单元通过物理连接,比如USB。如图4所示,本实施例的方法,可以包括:
S401、将被控设备的状态上报至服务端,以使服务端根据用户端的查询请求,查询被控设备的状态,所述被控设备包括WiFi单元和主控单元。
本实施例中,被控设备采用主从架构:WiFi芯片+主芯片(即主控芯片)。低功耗状态下主芯片关闭,WiFi与物联网平台(即服务端或云端)保持心跳,由于WiFi芯片能力不同,flash和内存大小有差异,因此,主控单元上电或掉电时,可以将被控设备的状态上报给云端,并在云端存储,以供云端查询,节约了WiFi芯片的flash和内存。
S402、若接收到所述WiFi单元发送的唤醒指令,则执行上电操作并将用于表示处于非低功耗状态的目标消息发送至服务端,以使所述服务端将所述目标消息至用户设备;其中,所述唤醒指令是由所述用户设备向所述WiFi单元发送唤醒包,以使所述WiFi单元根据所述唤醒包确定的;所述唤醒包是由服务端查询到所述被控设备处于低功耗状态,且确 定所述WiFi单元工作在心跳状态时,将用于表示所述被控设备处于低功耗状态的消息发送至用户设备,以使用户设备确定发送的。
本实施例中,如果服务端查询到被控设备不处于低功耗状态,则触发观看直播操作,将这个观看直播的指令发给服务端,服务端接收到这个观看直播的指令后发给主控单元;如果服务端查询到被控单元处于低功耗状态,会将该低功耗状态的消息反馈给用户设备,用户设备调用一个唤醒主控的接口,服务端会发唤醒包发给WiFi单元。为了保证服务端能给WiFi单元发送唤醒包,需要确定被控设备处于所述WiFi单元工作的心跳状态,保证服务端与被控设备的链路是通的状态。
由于WiFi单元不具有可编程能力或业务逻辑处理能力,所以当WiFi单元接收到唤醒包后,并无法解析该唤醒包,但是可以根据接收到的唤醒包与自身配置中的固定包进行字符比对,进而确定是否是唤醒指令,来唤醒主控单元。
其中,当WiFi单元收到唤醒包后会执行唤醒主控的操作,主控上电初始化完成后会上报非低功耗状态,这个状态会有服务端发送给用户设备,用户设备收到状态后会再次触发观看直播操作(此时APP一直在loading),生成目标指令,并将该目标指令发送给主控单元。
S403、若接收到所述用户设备发送的目标指令,则执行相应的目标功能,所述目标指令是由所述用户设备基于所述目标消息生成的。
本实施例中,主控单元接收用户设备发送的目标指令,主控单元根据目标指令执行相应的目标功能,比如编解码视频等操作,然后在用户设备的界面上渲染出直播视频画面。
具体地,当主控单元在线时,心跳包是由主控发送的,当主控单元掉电之前,首先会将自己的这个消息队列遥测传输(Message Queuing Telemetry Transport,MQTT)链接断掉,断掉了以后设置WiFi单元建立这个MQTT的链接,在建立时将TLS加密去掉,即发送心跳包无需加密;其次,主控单元将自己那种固定的心跳包放到WiFi单元上,然后设定了心跳周期,即间隔多久发送一次;最后,对WiFi单元设置一个唤醒包,并设置在什么情况下收到这个唤醒包,最终退出完成掉电,当主控收到唤醒指令后,实现上电。
本申请提供的信息处理方法,当用户设备触发某种功能操作时,服务端查询电子设备的状态,如果处于低功耗状态,则服务端将低功耗状态的消息转发给客户端,由客户端调用唤醒包接口并通过服务端将唤醒包发送给电子设备的WiFi单元,然后由WiFi单元唤醒电子设备的主控单元,在主控单元上电后,将处于非低功耗状态的消息发送给服务端,由服务端转发给客户端,然后由客户端发送使用某种功能的指令给服务端,服务端转发给主控单元去执行或客户端通过某种协议给主控单元去执行,通过普通WiFi模组(即WiFi单元)、主控单元以及服务端即可实现,能够保证低成本的前提下,实现了双向保活和远程唤醒的能力,进而广泛地、有效地应用于可远程控制的电子产品。
本申请实施例提供的方法,主控单元以及被控设备可以实现上述以服务端或用户设备为执行主体时,主控单元以及被控设备所能执行的操作,其实现原理和技术效果类似,此处不再赘述。
基于同样的思路,本申请实施例还提供了上述方法对应的装置,如图5所示,图5为本申请实施例提供的信息处理装置的结构示意图。该信息处理装置应用于服务端;信息处理装置可以包括:
接收模块501,用于接收用户设备发送的查询请求,用以查询被控设备的状态,所述被控设备包括WiFi单元和主控单元;
发送模块502,用于在查询到所述被控设备处于低功耗状态且确定所述被控设备处于所述WiFi单元工作的心跳状态时,向所述被控设备的WiFi单元发送唤醒包,以使所述WiFi单元根据所述唤醒包,确定是否唤醒所述被控设备的主控单元;
处理模块503,用于在接收到所述主控单元发送的用于表示处于非低功耗状态的目标消息时,将所述目标消息发送至所述用户设备,以使所述用户设备向所述主控单元发送目标指令,用以指示所述主控单元执行相应的目标功能,所述目标指令是由所述用户设备基于所述目标消息生成的。
本实施例中,通过设置接收模块501、发送模块502以及处理模块503,用于当用户设备触发某种功能操作时,服务端查询电子设备的状态,如果处于低功耗状态,则服务端将低功耗状态的消息转发给客户端,由客户端调用唤醒包接口并通过服务端将唤醒包发送给电子设备的WiFi单元,然后由WiFi单元唤醒电子设备的主控单元,在主控单元上电后,将处于非低功耗状态的消息发送给服务端,由服务端转发给客户端,然后由客户端发送使用某种功能的指令给服务端,服务端转发给主控单元去执行或客户端通过某种协议给主控单元去执行,通过普通WiFi模组(即WiFi单元)、主控单元以及服务端即可实现,能够保证低成本的前提下,实现了双向保活和远程唤醒的能力,进而广泛地、有效地应用于可远程控制的电子产品。
可选的,所述服务端存储有所述被控设备的状态,所述被控设备的状态包括低功耗状态或非低功耗状态;发送模块,具体用于:
在查询到所述被控设备处于低功耗状态且确定所述被控设备处于所述WiFi单元工作的心跳状态时,将用于表示所述被控设备处于低功耗状态的消息发送至所述用户设备,以使所述用户设备调用用于表示发送唤醒包的指令;
在接收到所述用户设备发送的用于表示发送唤醒包的指令时,将所述唤醒包发送至所述WiFi单元,以使所述WiFi单元将所述唤醒包与预定义的消息包进行比对,当比对一致时确定唤醒所述被控设备的主控单元。
可选的,处理模块,具体用于:
将所述目标消息发送至所述用户设备,以使所述用户设备接收到所述目标消息时触发预定义功能,生成目标指令;
接收所述用户设备发送的目标指令,并将所述目标指令发送至所述主控单元,以使所述主控单元执行所述预定义功能对应的操作,并在所述用户设备上显示。
可选的,处理模块,还用于:
在查询到所述被控设备处于非低功耗状态,则向所述主控单元发送目标指令,以使所述主控单元执行预定义功能对应的操作,并在所述用户设备上显示;
其中,所述目标指令是由所述用户设备通过触发所述预定义功能生成的。
可选的,发送模块,还具体用于:
若在心跳周期内接收到所述WiFi单元发送的心跳包,则确定所述被控设备处于所述WiFi单元工作的心跳状态,并且以MQTT的方式保持与所述被控设备的通信链路。
可选的,若所述被控设备处于非低功耗状态,则所述心跳包由所述主控单元发送;处理模块,还用于:
若在心跳周期内接收到所述主控单元发送的心跳包,则确定所述被控设备处于所述主控单元工作的心跳状态,并且以MQTT的方式保持与所述被控设备的通信链路。
本申请实施例提供的装置,可以实现上述如图1-2所示的实施例的方法,其实现原理和技术效果类似,此处不再赘述。
如图6所示,图6为本申请再一实施例提供的信息处理装置的结构示意图。该信息处理装置应用于用户设备;信息处理装置可以包括:
发送模块601,用于向服务端发送查询请求,以使所述服务端查询被控设备的状态,所述被控设备包括WiFi单元和主控单元;
第一处理模块602,用于在接收到所述服务端发送的用于表示所述被控设备处于低功耗状态的消息时,调用用于表示发送唤醒包的指令,并将所述用于表示发送唤醒包的指令发送至所述服务端,以使所述服务端将所述唤醒包发送至所述WiFi单元,用以确定是否唤醒所述被控设备的主控单元;
第二处理模块603,用于在接收到所述服务端发送的用于表示处于非低功耗状态的目标消息时,向所述主控单元发送目标指令,用以指示所述主控单元执行相应的目标功能,所述目标指令是基于所述目标消息生成的,所述目标消息是由所述主控单元发送至所述服务端的。
本实施例中,通过设置发送模块601、第一处理模块602以及第二处理模块603,用于当用户设备触发某种功能操作时,服务端查询电子设备的状态,如果处于低功耗状态,则服务端将低功耗状态的消息转发给客户端,由客户端调用唤醒包接口并通过服务端将唤醒包发送给电子设备的WiFi单元,然后由WiFi单元唤醒电子设备的主控单元,在主控单元上电后,将处于非低功耗状态的消息发送给服务端,由服务端转发给客户端,然后由客户端发送使用某种功能的指令给服务端,服务端转发给主控单元去执行或客户端通过某种协议给主控单元去执行,通过普通WiFi模组(即WiFi单元)、主控单元以及服务端即可 实现,能够保证低成本的前提下,实现了双向保活和远程唤醒的能力,进而广泛地、有效地应用于可远程控制的电子产品。
本申请实施例提供的装置,可以实现上述如图1以及图3所示的实施例的方法,其实现原理和技术效果类似,此处不再赘述。
如图7所示,图7为本申请又一实施例提供的信息处理装置的结构示意图。该信息处理装置应用于被控设备的主控单元;信息处理装置可以包括:
发送模块701,用于将被控设备的状态上报至服务端,以使服务端根据用户端的查询请求,查询被控设备的状态,所述被控设备包括WiFi单元和主控单元;
第一处理模块702,用于在接收到所述WiFi单元发送的唤醒指令时,执行上电操作并将用于表示处于非低功耗状态的目标消息发送至服务端,以使所述服务端将所述目标消息至用户设备;其中,所述唤醒指令是由所述用户设备向所述WiFi单元发送唤醒包,以使所述WiFi单元根据所述唤醒包确定的;所述唤醒包是由服务端查询到所述被控设备处于低功耗状态,且确定所述WiFi单元工作在心跳状态时,将用于表示所述被控设备处于低功耗状态的消息发送至用户设备,以使用户设备确定发送的;
第二处理模块703,用于在接收到所述用户设备发送的目标指令时,执行相应的目标功能,所述目标指令是由所述用户设备基于所述目标消息生成的。
本实施例中,通过设置发送模块701、第一处理模块702以及第二处理模块703,用于当用户设备触发某种功能操作时,服务端查询电子设备的状态,如果处于低功耗状态,则服务端将低功耗状态的消息转发给客户端,由客户端调用唤醒包接口并通过服务端将唤醒包发送给电子设备的WiFi单元,然后由WiFi单元唤醒电子设备的主控单元,在主控单元上电后,将处于非低功耗状态的消息发送给服务端,由服务端转发给客户端,然后由客户端发送使用某种功能的指令给服务端,服务端转发给主控单元去执行或客户端通过某种协议给主控单元去执行,通过普通WiFi模组(即WiFi单元)、主控单元以及服务端即可实现,能够保证低成本的前提下,实现了双向保活和远程唤醒的能力,进而广泛地、有效地应用于可远程控制的电子产品。
本申请实施例提供的装置,可以实现上述如图1以及图4所示的实施例的方法,其实现原理和技术效果类似,此处不再赘述。
结合图1所示,本申请实施例提供了一种被控设备,包括WiFi单元和主控单元;
其中,所述主控单元用于执行如第三方面所述的方法。
具体地,所述WiFi单元根据所述唤醒包,确定是否唤醒所述被控设备的主控单元,若唤醒所述主控单元,所述主控单元将用于表示处于非低功耗状态的目标消息发送至服务端,以使所述服务端将所述目标消息至用户设备;
若所述主控单元接收到所述用户设备发送的目标指令,则所述主控单元执行相应的目标功能,所述目标指令是由所述用户设备基于所述目标消息生成的。
本申请实施例提供的被控设备,可以实现上述如图1-图4所示的实施例的方法,其实现原理和技术效果类似,此处不再赘述。
图8为本申请实施例提供的电子设备的硬件结构示意图。如图8所示,本实施例提供的设备800包括:处理器801,以及与所述处理器通信连接的存储器。其中,处理器801、存储器802通过总线803连接。
在具体实现过程中,处理器801执行所述存储器802存储的计算机执行指令,使得处理器801执行上述方法实施例中的方法。
处理器801的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。
在上述的图8所示的实施例中,应理解,处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器。
总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component Interconnect,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现上述方法实施例的信息处理方法。
本申请实施例还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,实现如上所述的信息处理方法。
上述的计算机可读存储介质,上述可读存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。可读存储介质可以是通用或专用计算机能够存取的任何可用介质。
一种示例性的可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(Application Specific Integrated  Circuits,简称:ASIC)中。当然,处理器和可读存储介质也可以作为分立组件存在于设备中。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (12)

  1. 一种信息处理方法,其特征在于,应用于服务端,所述方法包括:
    接收用户设备发送的查询请求,用以查询被控设备的状态,所述被控设备包括WiFi单元和主控单元;
    若查询到所述被控设备处于低功耗状态且确定所述被控设备处于所述WiFi单元工作的心跳状态时,则向所述被控设备的WiFi单元发送唤醒包,以使所述WiFi单元根据所述唤醒包,确定是否唤醒所述被控设备的主控单元;
    若接收到所述主控单元发送的用于表示处于非低功耗状态的目标消息,则将所述目标消息发送至所述用户设备,以使所述用户设备向所述主控单元发送目标指令,用以指示所述主控单元执行相应的目标功能,所述目标指令是由所述用户设备基于所述目标消息生成的。
  2. 根据权利要求1所述的方法,其特征在于,所述服务端存储有所述被控设备的状态,所述被控设备的状态包括低功耗状态或非低功耗状态;
    所述若查询到所述被控设备处于低功耗状态且确定所述被控设备处于所述WiFi单元工作的心跳状态时,则向所述被控设备的WiFi单元发送唤醒包,以使所述WiFi单元根据所述唤醒包,确定是否唤醒所述被控设备的主控单元,包括:
    若查询到所述被控设备处于低功耗状态且确定所述被控设备处于所述WiFi单元工作的心跳状态时,将用于表示所述被控设备处于低功耗状态的消息发送至所述用户设备,以使所述用户设备调用用于表示发送唤醒包的指令;
    若接收到所述用户设备发送的用于表示发送唤醒包的指令,则将所述唤醒包发送至所述WiFi单元,以使所述WiFi单元将所述唤醒包与预定义的消息包进行比对,当比对一致时确定唤醒所述被控设备的主控单元。
  3. 根据权利要求1或2所述的方法,其特征在于,所述将所述目标消息发送至所述用户设备,以使所述用户设备向所述主控单元发送目标指令,用以指示所述主控单元执行相应的目标功能,包括:
    将所述目标消息发送至所述用户设备,以使所述用户设备接收到所述目标消息时触发预定义功能,生成目标指令;
    接收所述用户设备发送的目标指令,并将所述目标指令发送至所述主控单元,以使所述主控单元执行所述预定义功能对应的操作,并在所述用户设备上显示。
  4. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    若查询到所述被控设备处于非低功耗状态,则向所述主控单元发送目标指令,以使所述主控单元执行预定义功能对应的操作,并在所述用户设备上显示;
    其中,所述目标指令是由所述用户设备通过触发所述预定义功能生成的。
  5. 根据权利要求1或2所述的方法,其特征在于,所述确定所述被控设备处于所述WiFi单元工作的心跳状态,包括:
    若在心跳周期内接收到所述WiFi单元发送的心跳包,则确定所述被控设备处于所述WiFi单元工作的心跳状态,并且以MQTT的方式保持与所述被控设备的通信链路。
  6. 根据权利要求5所述的方法,其特征在于,若所述被控设备处于非低功耗状态,则所述心跳包由所述主控单元发送;所述方法还包括:
    若在心跳周期内接收到所述主控单元发送的心跳包,则确定所述被控设备处于所述主控单元工作的心跳状态,并且以MQTT的方式保持与所述被控设备的通信链路。
  7. 一种信息处理方法,其特征在于,应用于用户设备;所述方法包括:
    向服务端发送查询请求,以使所述服务端查询被控设备的状态,所述被控设备包括WiFi单元和主控单元;
    若接收到所述服务端发送的用于表示所述被控设备处于低功耗状态的消息时,调用用于表示发送唤醒包的指令,并将所述用于表示发送唤醒包的指令发送至所述服务端,以使所述服务端将所述唤醒包发送至所述WiFi单元,用以确定是否唤醒所述被控设备的主控单元;
    若接收到所述服务端发送的用于表示处于非低功耗状态的目标消息时,则向所述主控单元发送目标指令,用以指示所述主控单元执行相应的目标功能,所述目标指令是基于所述目标消息生成的,所述目标消息是由所述主控单元发送至所述服务端的。
  8. 一种信息处理方法,其特征在于,应用于主控单元;所述方法包括:
    将被控设备的状态上报至服务端,以使服务端根据用户端的查询请求,查询被控设备的状态,所述被控设备包括WiFi单元和主控单元;
    若接收到所述WiFi单元发送的唤醒指令,则执行上电操作并将用于表示处于非低功耗状态的目标消息发送至服务端,以使所述服务端将所述目标消息至用户设备;其中,所述唤醒指令是由所述用户设备向所述WiFi单元发送唤醒包,以使所述WiFi单元根据所述唤醒包确定的;所述唤醒包是由服务端查询到所述被控设备处于低功耗状态,且确定所述WiFi单元工作在心跳状态时,将用于表示所述被控设备处于低功耗状态的消息发送至用户设备,以使用户设备确定发送的;
    若接收到所述用户设备发送的目标指令,则执行相应的目标功能,所述目标指令是由所述用户设备基于所述目标消息生成的。
  9. 一种电子设备,其特征在于,包括:处理器,以及与所述处理器通信连接的存储器;
    所述存储器存储计算机执行指令;
    所述处理器执行所述存储器存储的计算机执行指令,以实现如权利要求1-8中任一项所述的信息处理方法。
  10. 一种被控设备,其特征在于,包括WiFi单元和主控单元;
    其中,所述主控单元用于执行如权利要求8所述的信息处理方法。
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,当处理器执行所述计算机执行指令时,实现如权利要求1至8任一项所述的信息处理方法。
  12. 一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时,实现权利要求1-8任一项所述的信息处理方法。
PCT/CN2023/094368 2022-05-19 2023-05-15 信息处理方法、设备、存储介质及程序产品 WO2023221948A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210558025.8A CN114980191A (zh) 2022-05-19 2022-05-19 信息处理方法、设备、存储介质及程序产品
CN202210558025.8 2022-05-19

Publications (1)

Publication Number Publication Date
WO2023221948A1 true WO2023221948A1 (zh) 2023-11-23

Family

ID=82984542

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/094368 WO2023221948A1 (zh) 2022-05-19 2023-05-15 信息处理方法、设备、存储介质及程序产品

Country Status (2)

Country Link
CN (1) CN114980191A (zh)
WO (1) WO2023221948A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980191A (zh) * 2022-05-19 2022-08-30 阿里云计算有限公司 信息处理方法、设备、存储介质及程序产品
CN117389789B (zh) * 2023-12-08 2024-03-08 四川恒湾科技有限公司 O-ru设备电源掉电信息存储与上报方法及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170366753A1 (en) * 2016-06-15 2017-12-21 Huawei Technologies Co., Ltd. IP Camera Control Method, Apparatus, and System
CN107580198A (zh) * 2017-08-23 2018-01-12 深圳市高斯贝尔家居智能电子有限公司 一种低功耗远程唤醒网络摄像机及视频监控系统
CN111556555A (zh) * 2020-04-29 2020-08-18 杭州涂鸦信息技术有限公司 一种网络摄像机与网关低功耗保活方法及其系统
CN114067464A (zh) * 2021-11-09 2022-02-18 深圳Tcl新技术有限公司 智能门锁及其唤醒方法、网络设备、电子设备
CN114980191A (zh) * 2022-05-19 2022-08-30 阿里云计算有限公司 信息处理方法、设备、存储介质及程序产品

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170366753A1 (en) * 2016-06-15 2017-12-21 Huawei Technologies Co., Ltd. IP Camera Control Method, Apparatus, and System
CN107580198A (zh) * 2017-08-23 2018-01-12 深圳市高斯贝尔家居智能电子有限公司 一种低功耗远程唤醒网络摄像机及视频监控系统
CN111556555A (zh) * 2020-04-29 2020-08-18 杭州涂鸦信息技术有限公司 一种网络摄像机与网关低功耗保活方法及其系统
CN114067464A (zh) * 2021-11-09 2022-02-18 深圳Tcl新技术有限公司 智能门锁及其唤醒方法、网络设备、电子设备
CN114980191A (zh) * 2022-05-19 2022-08-30 阿里云计算有限公司 信息处理方法、设备、存储介质及程序产品

Also Published As

Publication number Publication date
CN114980191A (zh) 2022-08-30

Similar Documents

Publication Publication Date Title
WO2023221948A1 (zh) 信息处理方法、设备、存储介质及程序产品
US10757653B2 (en) Electronic devices for receiving pushed data
CN110381251B (zh) 网络摄像机的控制方法、装置及系统
EP3547715B1 (en) Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker
US9544714B2 (en) Companion application for activity cooperation
US8310969B2 (en) Mobile device and power saving method thereof
US9497030B2 (en) Remotely controllable electronic device and system including the same
CN105916100B (zh) 代理心跳包的方法、装置和通信系统
GB2476354A (en) Synchronising network polling events of multiple application running on a wireless device
WO2022022175A1 (zh) 多媒体数据处理方法、装置、电子设备及存储介质
CN110012527B (zh) 唤醒方法及电子设备
CN109451354B (zh) 一种唤醒终端的方法及终端
US11943710B2 (en) Electronic device, method, medium and apparatus for managing extender nodes
TW201538010A (zh) 用於管理網路連線的行動裝置和方法以及存儲媒體
CN112399211A (zh) 一种操作方法及融合网关
US10901679B2 (en) Mirroring of screens
CN110362395B (zh) 后台程序管理方法、装置、计算机设备以及存储介质
WO2023098055A1 (zh) 低功耗模式的开启方法和装置、存储介质及电子装置
CN103986588A (zh) 电脑系统及电脑装置的远端遥控方法
US20230017056A1 (en) Method and device for processing instant application messages
CN114827922A (zh) 一种电子桌牌控制方法、装置和介质
CN113115416A (zh) 一种门铃设备的控制方法、装置及系统
US9774566B2 (en) Communication method and mobile electronic device using the same
CN111954207B (zh) 一种基于bnep蓝牙实现自拍器ota升级系统及其升级方法
WO2015081895A1 (zh) 智能电视及其远程唤醒方法

Legal Events

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

Ref document number: 23806900

Country of ref document: EP

Kind code of ref document: A1