Communication method, apparatus, device, chip and medium
Patent Information
- Application Number
- CN202611140339.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-10-16
AI Technical Summary
[0003]本公开提供一种通信方法、装置、电子设备、芯片和存储介质,以至少解决相关技术中通信延迟大且功耗消耗大的问题
[0009] According to a fifth aspect of the present disclosure, a chip is provided, the chip including an interface circuit and a processing circuit coupled to each other, the interface circuit being used to input or output signals, and the processing circuit being configured to implement the steps of the communication method described in the first aspect of the present disclosure.
Smart Images

Figure CN122934430A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the fields of Bluetooth communication and Bluetooth Low Energy communication technology, and in particular to a communication method, apparatus, electronic device, chip, and storage medium. Background Technology
[0002] In the Bluetooth standard protocol, the interaction between the master and slave devices requires an agreed-upon interaction interval. During each interval, the slave device must wake up and listen for messages from the master device. If a message is detected, it must reply in the next interval. When the amount of data between the two devices is small, the vast majority of power consumption is used for interactions with no meaningful information, leading to a significant increase in communication latency. Summary of the Invention
[0003] This disclosure provides a communication method, apparatus, electronic device, chip, and storage medium to at least solve the problems of high communication latency and high power consumption in related technologies. The technical solution of this disclosure is as follows: According to a first aspect of the present disclosure, a communication method is provided, comprising: in response to a first device in a sleep state needing to send data, entering a wake-up state within a first detection window in a currently arrived detection sub-interval, wherein a preset wake-up interval includes at least two detection sub-intervals, and any one of the detection sub-intervals includes at least a first detection window configured for the first device; sending a first detection signal within the first detection window to indicate that a second device enters a wake-up state, wherein the first device and the second device enter an interaction mode in the wake-up state; and sending a first data packet to the second device in the interaction mode.
[0004] According to a first aspect of the present disclosure, another communication method is provided, comprising: in response to a second device being in a sleep state and a first detection window of a first device being reached, listening for a first detection signal sent by the first device within the first detection window, wherein a preset wake-up interval includes at least two detection sub-intervals, and any one of the detection sub-intervals includes at least a first detection window configured for the first device; in response to listening for the first detection signal, entering a wake-up state, wherein the first device and the second device enter an interaction mode in the wake-up state; and receiving a first data packet sent by the first device in the interaction mode.
[0005] According to a second aspect of the present disclosure, a communication device is provided, comprising: a wake-up module, configured to enter a wake-up state within a first detection window in a currently arrived detection sub-interval in response to a first device in a sleep state needing to send data, wherein a preset wake-up interval includes at least two detection sub-intervals, and any one of the detection sub-intervals includes at least a first detection window configured for the first device; a sending module, configured to send a first detection signal within the first detection window to indicate that a second device enters a wake-up state, wherein the first device and the second device enter an interaction mode in the wake-up state; and an interaction module, configured to send a first data packet to the second device in the interaction mode.
[0006] According to a second aspect of the present disclosure, another communication device is provided, comprising: a listening module, configured to listen to a first detection signal sent by the first device within a first detection window in response to a second device being in a sleep state and currently reaching a first detection window of a first device, wherein a preset wake-up interval includes at least two detection sub-intervals, and any one of the detection sub-intervals includes at least a first detection window configured for the first device; a wake-up module, configured to enter a wake-up state in response to listening to the first detection signal, wherein the first device and the second device enter an interaction mode in the wake-up state; and an interaction module, configured to receive a first data packet sent by the first device in the interaction mode.
[0007] According to a third aspect of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the steps of the communication method described in the first aspect of the present disclosure.
[0008] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, on which computer program instructions are stored, which, when executed by a processor, implement the steps of the communication method described in the first aspect of the present disclosure.
[0009] According to a fifth aspect of the present disclosure, a chip is provided, the chip including an interface circuit and a processing circuit coupled to each other, the interface circuit being used to input or output signals, and the processing circuit being configured to implement the steps of the communication method described in the first aspect of the present disclosure.
[0010] According to a sixth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the communication method described in the first aspect of the present disclosure.
[0011] The technical solution provided by the embodiments of this disclosure offers at least the following beneficial effects: In response to a first device in a sleep state needing to send data, it enters a wake-up state within a first detection window of the currently arriving detection sub-interval, and sends a first detection signal within the first detection window to instruct a second device to enter a wake-up state. This allows the first and second devices to enter an interactive mode while in the wake-up state, enabling the sending of a first data packet to the second device in the interactive mode. Therefore, by dividing the wake-up interval into multiple detection sub-intervals, this solution can clearly define data transmission needs during data bursts and use the first detection signal to enable the first and second devices to enter an interactive mode for efficient data transmission. This reduces communication latency and device power consumption, achieving extremely low communication latency and extremely low power consumption. Automatic switching between the wake-up state and the interactive mode maintains low power consumption when there is no data transmission and seamlessly switches to the interactive mode when there is data transmission, balancing ultra-low power consumption in daily standby and high efficiency during data transmission. Furthermore, by applying the communication method of this disclosure, user operation latency can be reduced, and device battery life can be improved, thereby enhancing the user experience.
[0012] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0013] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0014] Figure 1 This is a schematic diagram illustrating the interaction between a master device and a slave device according to an exemplary embodiment.
[0015] Figure 2 This is a flowchart illustrating a communication method according to an exemplary embodiment.
[0016] Figure 3 This is a schematic diagram of a detection window according to an exemplary embodiment.
[0017] Figure 4 This is a flowchart illustrating a communication method according to another exemplary embodiment.
[0018] Figure 5 This is a flowchart illustrating a communication method according to another exemplary embodiment.
[0019] Figure 6 This is a flowchart illustrating a communication method according to another exemplary embodiment.
[0020] Figure 7 This is a flowchart illustrating a communication method according to another exemplary embodiment.
[0021] Figure 8 This is a flowchart illustrating a communication method according to another exemplary embodiment.
[0022] Figure 9 This is a flowchart illustrating a communication method according to another exemplary embodiment.
[0023] Figure 10 This is a flowchart illustrating a communication method according to another exemplary embodiment.
[0024] Figure 11 This is a flowchart illustrating a communication method according to another exemplary embodiment.
[0025] Figure 12 This is a schematic diagram of the structure of a communication device according to an exemplary embodiment.
[0026] Figure 13 This is a schematic diagram of the structure of a communication device according to another exemplary embodiment.
[0027] Figure 14 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment.
[0028] Figure 15 This is a schematic diagram of the structure of a chip according to an exemplary embodiment. Detailed Implementation
[0029] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0030] It should be noted that the terms "first," "second," etc., used in this disclosure and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this disclosure.
[0031] It should be noted that the acquisition, storage, use, and processing of data in this disclosed technical solution comply with relevant laws and regulations and do not violate public order and good morals. It should also be noted that all data processed in this disclosure is explicitly authorized by users or relevant parties, and has been de-identified or anonymized before collection and use, containing no personally identifiable information or user privacy content; all data is used solely for communication purposes, ensuring that data security and user privacy rights are fully protected while achieving the technical effects.
[0032] The following description, with reference to the accompanying drawings, describes communication methods, apparatuses, electronic devices, chips, and storage media according to embodiments of the present disclosure.
[0033] It should be noted that the communication method of this disclosure can be applied to business scenarios that are sensitive to both power consumption and latency, such as Bluetooth car keys, Bluetooth game controllers, Bluetooth remote controls, etc.
[0034] It should be noted that the interactive diagram illustrating the standard procedure for initiating Bluetooth and establishing a Bluetooth Low Energy link between the master and slave devices is as follows: Figure 1 As shown. Figure 1 This is a schematic diagram illustrating the interaction between a master device and a slave device according to an exemplary embodiment. The master device and the slave device interact at connection events occurring during connection intervals.
[0035] According to the Bluetooth standard protocol, in a connection event, the master device sends a message at the start time of the connection event, and the slave device sends a response message after receiving the message from the master device. At this time, regardless of whether either device has valid data to send, they need to wake up and interact once.
[0036] Figure 2 This is a flowchart illustrating a communication method according to an exemplary embodiment, such as... Figure 2 As shown, the communication method of this disclosure includes the following steps.
[0037] S201, in response to the first device in the sleep state needing to send data, enters the wake-up state within the first detection window of the currently arriving detection sub-interval.
[0038] It should be noted that the execution subject of the communication method in this embodiment is a first device, which may be an electronic device, such as a terminal device, a vehicle, a robot, a server, a chip, etc. The terminal device includes a mobile phone, a wearable device (such as a smartwatch, smart glasses), a laptop computer, etc., and the vehicle includes an in-vehicle terminal, an in-vehicle controller, etc.
[0039] The communication method of this disclosure embodiment can be executed by the communication device of this disclosure embodiment. The communication device of this disclosure embodiment can be configured in any electronic device to execute the communication method of this disclosure embodiment.
[0040] It should be noted that in the field of Bluetooth communication technology, the first device can be the master device, which actively scans, discovers, and initiates connections with slave devices; the second device can be the slave device, which announces its existence to the outside world by broadcasting signals and waits for the master device to connect.
[0041] For example, in the case of Bluetooth car keys, the first device can be a mobile phone, and the second device can be a Bluetooth device in the vehicle.
[0042] For example, in the case of a Bluetooth game controller, the first device can be a game console, computer, or mobile phone, and the second device can be a game controller.
[0043] For example, in the case of a Bluetooth remote control, the first device can be a smart TV, projector, or set-top box, and the second device can be a remote control.
[0044] In some possible implementations, to achieve low-power communication, the first device can enter a sleep state without interacting with the second device. If the first device receives data from the application while in sleep mode, it can determine that the first device needs to send data.
[0045] The application in question is the application on the first device.
[0046] In some possible implementations, the first device may also receive data sent by the application layer to determine whether the first device needs to send data. Here, the application layer refers to the logical layer in the Bluetooth protocol stack that sits immediately above the physical hardware; it can be understood as the data producer.
[0047] In some possible implementations, the first device may also determine that it needs to send data based on a task that involves sending data at regular intervals.
[0048] In other words, when the first device generates data, it can be determined that the data needs to be sent, i.e., the first device needs to send data.
[0049] In some possible implementations, when it is determined that the first device needs to send data, the first device can be self-wake-up; that is, the first device can enter a wake-up state when it is determined that data needs to be sent.
[0050] It should be noted that in the sleep state, there is no radio frequency hardware connection between the first device and the second device, but the link layer of the first device and the second device remains connected, so that the second detection signal can be sent to the first device.
[0051] In some possible implementations, if according to Figure 1 In the interaction method shown, the master device (first device) and the slave device (second device) can only exchange data after the start time of the connection event. If the first device needs to send data within the connection interval between connection event 1 and connection event 2, it can only send data to the second device after the start time of event 2, resulting in communication delay.
[0052] In some possible implementations, the connection interval between two connection events can be divided into sub-intervals, allowing interaction within the sub-intervals to reduce communication latency and achieve efficient data transmission.
[0053] In some possible implementations, the connection interval can be regarded as the wake-up interval, and the wake-up interval can be divided into at least two detection sub-intervals, so that the device can be woken up within the detection sub-intervals.
[0054] The wake-up interval can be set through negotiation between the first device and the second device. For example, the device can negotiate with the second device to enter power-saving mode, and during the negotiation process, a wake-up interval can be set to enter power-saving mode based on the wake-up interval.
[0055] In other words, the preset wake-up interval includes at least two detection sub-intervals.
[0056] In some possible implementations, a detection window for the device can be set within any detection sub-interval, allowing the device to be woken up within its corresponding detection window. Each detection sub-interval includes at least a first detection window configured for the first device.
[0057] In other words, the first device can enter the wake-up state within the first detection window of the currently arrived detection sub-interval.
[0058] Figure 3 This is a schematic diagram of a detection window according to an exemplary embodiment. Figure 3 In the context of connection event 1, the time interval between the start time of connection event 1 and the start time of connection event 2 is the wake-up interval. The wake-up interval includes at least two detection sub-intervals. In any detection sub-interval, the first detection window (Tc) of the first device and the second detection window (Tp) of the second device are set.
[0059] S202, a first detection signal is sent within the first detection window to instruct the second device to enter the wake-up state, wherein the first device and the second device enter the interaction mode when in the wake-up state.
[0060] In some possible implementations, after the first device enters the wake-up state within the first detection window, it can generate a first detection signal and send the first detection signal to the second device within the first detection window to indicate that the second device has entered the wake-up state.
[0061] In some possible implementations, the first device may send a first detection signal at the beginning of the first detection window.
[0062] In some possible implementations, when both the first device and the second device are in a wake-up state, the first device and the second device can enter an interactive mode, and the first device and the second device enter an interactive mode during all detection sub-intervals before the next wake-up interval.
[0063] In some possible implementations, the first detection signal may be a preamble, used to wake up the second device. The preamble is transmitted using the radio frequency circuitry of the first device, and the second device wakes up its radio frequency receiver via the preamble, thereby entering a wake-up state.
[0064] In some possible implementations, the first detection signal may also be a short message, which is used to wake up the second device. The second device can enter the wake-up state by decoding this message through simplified decoding logic.
[0065] In some possible implementations, the first detection signal may also be a carrier or harmonic signal to enable energy-based wake-up of the second device. The second device receives the carrier or harmonic signal, determines whether signal energy is present, and enters a wake-up state when signal energy is present.
[0066] It should be noted that wake-up state refers to the activation of devices related to data transmission, such as the RF transceiver being powered on, the high-frequency crystal oscillator starting up, and the controller being turned on. In other words, when entering sleep state, only some devices of the device are working, while when entering wake-up state, all devices related to data transmission are working.
[0067] S203, in interactive mode, send the first data packet to the second device.
[0068] In some possible implementations, the first device may generate a first data packet based on the data to be sent and send the first data packet to the second device in interactive mode.
[0069] In some possible implementations, a first data packet can be generated based on the access address after the first device and the second device enter the interaction mode, the respective device addresses of the first device and the second device, and the data to be sent.
[0070] In some possible implementations, the generation of the first data packet may be initiated by the application layer of the first device, thereby generating it at the link layer, and the first device may send the first data packet to the second device.
[0071] In some possible implementations, the first device may send a first data packet to the second device through the data channel between the first device and the second device in interactive mode.
[0072] In some possible implementations, after the first device and the second device enter the interaction mode, they can send and receive the first data packet at the boundary time of each detection sub-interval in accordance with the standard Bluetooth protocol.
[0073] It should be noted that in this embodiment of the disclosure, the first device actively wakes up the second device to enter the interactive mode and sends a first data packet to the second device.
[0074] The communication method provided in the embodiments of this disclosure, in response to a first device in a sleep state needing to send data, enters a wake-up state within a first detection window of the currently arriving detection sub-interval, and sends a first detection signal within the first detection window to instruct a second device to enter a wake-up state. This enables the first and second devices to enter an interactive mode while in the wake-up state, allowing the first data packet to be sent to the second device in the interactive mode. Therefore, by dividing the wake-up interval into multiple detection sub-intervals, this solution can clearly define data transmission needs during data bursts and use the first detection signal to enable the first and second devices to enter an interactive mode for efficient data transmission. This reduces communication latency and device power consumption, achieving extremely low communication latency and extremely low power consumption. Through automatic switching between the wake-up state and the interactive mode, low power consumption can be maintained when there is no data transmission, and seamless switching to the interactive mode can be achieved when data transmission is needed, balancing ultra-low power consumption in daily standby and high efficiency during data transmission. Furthermore, by applying the communication method of this disclosure, user operation latency can be reduced, and device battery life can be improved, thereby enhancing the user experience.
[0075] Figure 4 This is a flowchart illustrating a communication method according to another exemplary embodiment, such as... Figure 4 As shown, the communication method of this disclosure includes the following steps.
[0076] S401, in response to the first device in sleep mode not transmitting data, the first device remains in sleep mode within the first detection window.
[0077] In some possible implementations, when the first device does not receive data sent by the application or application layer, it can be determined that the first device, which is in a sleep state, is not sending data. To maintain low power consumption, the first device can remain in a sleep state within a first detection window and not perform a wake-up action.
[0078] It should be noted that the detection sub-interval also includes a second detection window configured for the second device. That is, when the first device is in a sleep state and no data is being sent, the first device can remain in a sleep state within the first detection window, and after entering the second detection window, it can listen to whether the second device needs to send data.
[0079] In some possible implementations, the second detection window satisfies at least one of the following: The end time of the second detection window is the start time of the next detection sub-interval; The second detection window has the same window length as the first detection window; The second detection window is later than the first detection window; The start time of the second detection window is the end time of the first detection window.
[0080] In other words, the window lengths of the first and second detection windows can be preset, and before the end of any detection sub-interval, the second and first detection windows with the same window length can be set respectively.
[0081] like Figure 3 As shown, the end time of the second detection window is the start time of the next detection sub-interval, and also the end time of the current detection sub-interval. There is a time interval between connection event 1 and the first detection window.
[0082] In some possible implementations, after entering the second detection window, the second device can actively wake up the first device. At this time, the first device can enter a listening state within the currently arrived second detection window and listen to the second detection signal sent by the second device within the second detection window.
[0083] The second detection signal is used to instruct the first device to enter a wake-up state. In other words, if the second detection signal is detected, it can be determined that the second device needs to send data, thereby entering a wake-up state to enable data interaction.
[0084] In some possible implementations, in response to the detection of a second detection signal, the device enters a wake-up state to enter an interactive mode when both the first and second devices are in the wake-up state, thereby enabling it to receive a second data packet sent by the second device in the interactive mode.
[0085] The second data packet is generated based on the data that the second device needs to send. The generation process is the same as that of the first data packet, so it will not be described again here.
[0086] In some possible implementations, any detection signal includes at least one of the following signals: Preamble; the preamble does not carry a payload. The first message, wherein the length of the first message is less than the set message length, and / or the first message includes the access address and a set cyclic redundancy check code; A carrier wave carrying the target's characteristics; Harmonic signals carrying the characteristics of the target.
[0087] The first message is the short message in this embodiment of the disclosure.
[0088] In some possible implementations, any detection signal includes a first detection signal and a second detection signal, wherein the receiver and sender corresponding to the first detection signal and the second detection signal are different. The receiver corresponding to the first detection signal is a second device, and the sender is a first device; the receiver corresponding to the second detection signal is a first device, and the sender is a second device.
[0089] For example, the explanation of entering the wake-up state based on the detection signal can be based on the receiver and the sender.
[0090] For the preamble, the sender can use low-power radio frequency circuitry to modulate and transmit a preamble sequence conforming to the Bluetooth Low Energy (BLE) specification (e.g., 10101010) and continuously transmit it for tens of microseconds. The receiver wakes up its radio frequency receiver within the corresponding detection window, specifically to detect the presence of expected preamble energy characteristics in the channel. If the expected preamble energy characteristics are detected, the receiver can enter a wake-up state.
[0091] For the first message, the sender designs the first message (e.g., a frame containing the access address and 1-2 bytes of Cyclic Redundancy Check (CRC) verification), making its length much shorter than a standard empty packet, and sends the first message. The receiver decodes the first message using simplified decoding logic to enter the wake-up state.
[0092] For carrier waves and harmonic signals carrying target characteristics, they can be considered as detection signals based on energy detection. The transmitter sends either the carrier wave or the harmonic signal carrying the target characteristics. The receiver determines whether there is valid signal energy in the channel by using a received signal strength indicator or an energy detection circuit. Upon detecting the presence of valid signal energy, the receiver can enter a wake-up state.
[0093] In some possible implementations, the wake-up interval includes at least two detection sub-intervals. If the first device enters the interactive mode within any detection sub-interval, and the wake-up interval also includes the remaining unreached detection sub-intervals, then the first device can remain in the interactive mode within the remaining unreached detection sub-intervals in the wake-up interval.
[0094] In this disclosure, keeping the first device in interactive mode during the remaining unreached detection sub-intervals enables timely response to data, reduces data transmission latency, and avoids the additional power consumption of frequent sleep and interaction.
[0095] In some possible implementations, the first device may also engage in wake-up interaction with the second device at the boundary moments of the remaining detection sub-intervals until it switches from the interaction mode to the power-saving mode, thereby triggering the first device to re-enter sleep mode. Here, wake-up interaction refers to waking up both the first and second devices to allow them to enter the interaction mode.
[0096] In some possible implementations, energy-saving mode refers to the ability of devices to interact with each other by sending detection signals within a detection window while the devices are in a sleep state. This can be understood as the device actions in energy-saving mode during steps S201-S203.
[0097] In some possible implementations, since the first device wakes up the second device at the currently arrived detection sub-interval and completes the interaction in the next detection sub-interval, the remaining detection sub-intervals are the detection sub-intervals after the next detection sub-interval.
[0098] In other words, the first device can start from the next detection sub-interval after the currently arrived detection sub-interval and interact with the second device at the boundary moments of the remaining detection sub-intervals.
[0099] The communication method provided in the embodiments of this disclosure, in response to a first device in a sleep state not transmitting data, keeps the first device in a sleep state within a first detection window, so that the first device can enter a listening state within the currently arriving second detection window to listen for a second detection signal, and thus perform wake-up interaction with a second device based on the second detection signal. This achieves low power consumption when there is no data transmission and seamless switching to an interactive mode when there is data transmission, balancing ultra-low power consumption in daily standby and high efficiency during data transmission.
[0100] Figure 5 This is a flowchart illustrating a communication method according to another exemplary embodiment, such as... Figure 5 As shown, the communication method of this disclosure includes the following steps.
[0101] S501, in response to the first device in the sleep state needing to send data, enters the wake-up state within the first detection window of the currently arriving detection sub-interval.
[0102] S502, a first detection signal is sent within the first detection window to indicate that the second device enters the wake-up state, wherein the first device and the second device enter the interaction mode when in the wake-up state.
[0103] S503 sends the first data packet to the second device in interactive mode.
[0104] The relevant content of steps S501-S503 can be found in the above embodiments, and will not be repeated here.
[0105] S504, in response to the completion of data packet transmission in interactive mode, switches from interactive mode to power-saving mode to trigger the first device to re-enter sleep mode.
[0106] In some possible implementations, the transmission of data packets by the first device and the second device in interactive mode means that the first device sends a first data packet to the second device, the second device receives the first data packet, and the second device sends a second data packet to the first device, the first device receives the second data packet.
[0107] In some possible implementations, after the transmission of data packets is completed, the first device and the second device can confirm the data exchange by handshaking. The handshake confirmation means that the data exchange is considered complete when both the first device and the second device receive confirmation from the other.
[0108] In some possible implementations, the handshake confirmation may involve one party sending a blank command packet (POLL packet), and the other party, upon receiving the blank command packet, sending an empty response packet (NULL packet) to complete the handshake confirmation. In other words, the handshake confirmation is complete once one party receives the empty response packet from the other party after sending the blank command packet.
[0109] Since the data packet includes a first data packet sent by the first device and a second device packet sent by the second device, if the data packet is the first data packet, the first device can send a blank instruction packet to the second device and receive a blank response packet sent by the second device to complete the handshake confirmation.
[0110] If the data packet is the second data packet, the first device can receive the empty instruction packet sent by the second device and send an empty response packet to the second device to complete the handshake confirmation.
[0111] In some possible implementations, after the handshake confirmation is completed, the first device can switch from interactive mode to power-saving mode without waiting for the next wake-up interval.
[0112] After the first device switches to power-saving mode, it can re-detect whether there is data to be sent when a new detection sub-interval arrives. If there is data, it can wake up the second device based on the first detection window to trigger a new round of wake-up interaction, and remain in sleep mode when there is no data.
[0113] The communication method provided in the embodiments of this disclosure switches from interactive mode to power-saving mode in response to the completion of data packet transmission in interactive mode, thereby triggering the first device to re-enter sleep mode. This enables the device to enter a low-power sleep state immediately after the data packet transmission is completed, avoiding unnecessary interactive power consumption overhead between the completion of data packet transmission and the next wake-up interval, and further reducing device power consumption.
[0114] Based on the above embodiments, this disclosure embodiment can also set control information for the energy-saving mode, which can be achieved through negotiation and interaction between the first device and the second device. This can be combined with... Figure 6 To gain a deeper understanding of the negotiation interaction.
[0115] Figure 6 This is a flowchart illustrating a communication method according to another exemplary embodiment, such as... Figure 6 As shown, the communication method of this disclosure includes the following steps.
[0116] S601 negotiates and interacts with the second device to enter the energy-saving mode.
[0117] S602, in response to successful negotiation, enters energy-saving mode based on the negotiated control information to trigger the first device to hibernate.
[0118] In some possible implementations, the first device may send a first negotiation request to the second device to conduct an energy-saving mode entry negotiation interaction with the second device based on the first negotiation request.
[0119] In some possible implementations, the first device can generate a first negotiation request based on control information, and the second device can respond to the first negotiation request to achieve energy-saving mode entry negotiation interaction. The control information can be generated by the application layer of the first device, and the first negotiation request can be generated based on the control information.
[0120] In some possible implementations, the success of the negotiation can be determined based on the second device's response to the first negotiation request. For example, if the response is accepted, the negotiation is considered successful; if the response is rejected, the first and second devices can maintain a normal connection state. Here, the normal connection state refers to the Bluetooth link layer connection between the first and second devices.
[0121] If the response is modified, the first device can reply with acceptance or rejection. If it accepts, both parties will enter the energy-saving mode with the modified control parameters. If it rejects, the normal connection status will remain unchanged.
[0122] In other words, the energy-saving mode entry negotiation interaction with the second device means that the second device can determine whether to accept the control information sent by the first device, or whether to modify the control information sent by the first device.
[0123] In some possible implementations, the control information includes at least one of the following: The start time of energy-saving mode; The interval duration of the detection sub-interval in energy-saving mode; The duration of the wake-up interval in power-saving mode; The type of detection signal used in the energy-saving mode.
[0124] The start time of the power-saving mode can be the connection event number or absolute time when the mode takes effect; the interval of the detection sub-interval is shorter than the interval of the wake-up interval.
[0125] During the wake-up interval, even if no detection signal is triggered, at least one forced wake-up interaction will be performed to maintain connection synchronization, in order to prevent connection timeout and disconnection due to loss of detection signal.
[0126] In some possible implementations, the type of detection signal may include: modulating a low-power preamble using a low-power Bluetooth radio frequency circuit; modulating a non-Bluetooth signaling signal using a low-power Bluetooth radio frequency circuit; or modulating a non-Bluetooth signaling signal using a dedicated radio frequency circuit.
[0127] Among them, non-Bluetooth signaling signals can be the first message, or they can be carrier or harmonic signals.
[0128] In some possible implementations, after the first and second devices successfully negotiate, they can enter an energy-saving mode based on the negotiated control information, triggering both devices to enter a sleep state. In the sleep state, when a new detection sub-interval arrives, the system can re-detect whether there is data to be transmitted. If data exists, the second device can be woken up based on the first detection window to trigger a new round of wake-up interaction. The system can remain in sleep mode if no data exists.
[0129] It should be noted that the first device can proactively send a first negotiation request to the second device to negotiate the entry of energy-saving mode. The first device can also receive a second negotiation request from the second device to negotiate the entry of energy-saving mode.
[0130] In other words, when the first device initiates a negotiation interaction to enter the energy-saving mode, the second device can respond to the first negotiation request to accept, reject, or modify the control information carried in the first negotiation request; when the second device initiates a negotiation interaction to enter the energy-saving mode, the first device can respond to the second negotiation request to accept, reject, or modify the control information carried in the second negotiation request.
[0131] The communication method provided in the embodiments of this disclosure, through energy-saving mode entry negotiation interaction with a second device, enters energy-saving mode in response to successful negotiation, based on the negotiated control information, thereby triggering the first device to hibernate. Through the energy-saving mode entry negotiation interaction, the first and second devices can negotiate control information, enabling flexible adaptation to different business scenarios and achieving a fine balance between latency, power consumption, and reliability, thus meeting the requirements of different business scenarios.
[0132] It should be noted that in this disclosure Figures 2-6 The embodiments can be applied to either the first device or the second device, and the actions of both parties are equivalent.
[0133] Figure 7 This is a flowchart illustrating a communication method according to another exemplary embodiment, such as... Figure 7 As shown, the communication method of this disclosure includes the following steps.
[0134] S701, in response to the second device being in a sleep state and currently arriving at the first detection window of the first device, listen for the first detection signal sent by the first device within the first detection window.
[0135] It should be noted that the execution subject of the communication method in this embodiment is a second device, which can be an electronic device, such as a terminal device, a vehicle, a robot, a server, a chip, etc. The terminal device includes a mobile phone, a wearable device (such as a smartwatch, smart glasses), a laptop computer, etc., and the vehicle includes an in-vehicle terminal, an in-vehicle controller, etc.
[0136] The communication method of this disclosure embodiment can be executed by the communication device of this disclosure embodiment. The communication device of this disclosure embodiment can be configured in any electronic device to execute the communication method of this disclosure embodiment.
[0137] In some possible implementations, after entering power-saving mode, the second device and the first device are triggered to hibernate. In power-saving mode, there is a preset wake-up interval. This preset wake-up interval includes at least two detection sub-intervals, and each detection sub-interval includes at least one detection window configured for the first device.
[0138] In other words, when the second device is in a sleep state, the first detection window of the first device arrives first. At this time, only some components of the second device are working, and it can listen to the first detection signal in the first detection window.
[0139] It should be noted that the first detection window is the window through which the first device sends detection signals. The second device, within the first detection window, only needs to listen to the first detection signal.
[0140] In some possible implementations, the first detection signal is the data that the first device needs to send, and is generated within the first detection window based on the data that needs to be sent.
[0141] In some possible implementations, the second device may enter a listening state within the first detection window to listen for a first detection signal sent by the first device. S702, in response to detecting the first detection signal, the device enters a wake-up state, wherein the first device and the second device enter an interactive mode during the wake-up state.
[0142] In some possible implementations, when the second device detects the first detection signal, indicating that the first device needs to send data, the second device can enter a wake-up state to enter an interactive mode when both the first and second devices are in the wake-up state.
[0143] In some possible implementations, the second device can enter the wake-up state at the start of the next detection sub-interval after the currently arrived detection sub-interval. That is, the first device and the second device can enter the interaction mode at the start of the next detection sub-interval after the currently arrived detection sub-interval.
[0144] In some possible implementations, the first device and the second device may also be in interactive mode for all detection sub-intervals before the next wake-up interval.
[0145] In some possible implementations, the first detection signal can be a preamble, and the second device can enter a wake-up state based on the preamble. Specifically, the preamble is transmitted using the radio frequency circuitry of the first device, and the second device wakes up its radio frequency receiver using the preamble, thereby entering the wake-up state.
[0146] In some possible implementations, the first detection signal can also be a short message, and the second device can enter the wake-up state based on the short message. The second device can enter the wake-up state by decoding this message through simplified decoding logic.
[0147] In some possible implementations, the first detection signal can also be a carrier or harmonic signal, and the second device can enter a wake-up state based on energy. The second device receives the carrier or harmonic signal, determines whether signal energy is present, and enters a wake-up state when signal energy is present.
[0148] It should be noted that wake-up state refers to the activation of devices related to data transmission, such as the RF transceiver being powered on, the high-frequency crystal oscillator starting up, and the controller being turned on. In other words, when entering sleep state, only some devices of the device are working, while when entering wake-up state, all devices related to data transmission are working.
[0149] S703 receives the first data packet sent by the first device in interactive mode.
[0150] In some possible implementations, the second device may receive the first data packet sent by the first device in interactive mode.
[0151] The first data packet may be generated by the first device based on the data to be sent.
[0152] In some possible implementations, a first data packet can be generated based on the access address after the first device and the second device enter the interaction mode, the respective device addresses of the first device and the second device, and the data to be sent.
[0153] In some embodiments, the generation of the first data packet may be initiated by the application layer of the first device, thereby generating it at the link layer, and the first device may send the first data packet to the second device.
[0154] It should be noted that in this embodiment of the disclosure, the first device actively wakes up the second device to enter the interactive mode, and the second device can receive the first data packet sent by the first device.
[0155] The communication method provided in the embodiments of this disclosure, in response to a second device being in a sleep state and currently reaching a first detection window of a first device, listens for a first detection signal sent by the first device within the first detection window. In response to the second device detecting the first detection signal, it enters a wake-up state, enabling both the first and second devices to enter an interactive mode, thereby receiving a first data packet sent by the first device in the interactive mode. Thus, by dividing the wake-up interval into multiple detection sub-intervals, this solution can clearly define data transmission needs during data bursts and use the first detection signal to enable both the first and second devices to enter an interactive mode for efficient data transmission. This reduces communication latency and device power consumption, achieving extremely low communication latency and extremely low power consumption. Through automatic switching between the wake-up state and the interactive mode, low power consumption can be maintained when there is no data transmission, and seamless switching to the interactive mode can be achieved when there is data transmission, balancing ultra-low power consumption in daily standby and high efficiency during data transmission. Furthermore, by applying the communication method of this disclosure, user operation latency can be reduced, and device battery life can be improved, thereby enhancing the user experience.
[0156] Figure 8 This is a flowchart illustrating a communication method according to another exemplary embodiment, such as... Figure 8 As shown, the communication method of this disclosure includes the following steps.
[0157] S801, in response to the second device being in a sleep state and currently arriving at the first detection window of the first device, listen for the first detection signal sent by the first device within the first detection window.
[0158] The details of step S801 can be found in the above embodiments and will not be repeated here.
[0159] S802, in response to not detecting the first detection signal, enters the second detection window.
[0160] In some possible implementations, after the second device fails to detect the first detection signal within the first detection window, it can remain in a sleep state and enter the second detection window. The detection sub-interval further includes a second detection window configured for the second device.
[0161] In some possible implementations, the second detection window satisfies at least one of the following: The end time of the second detection window is the start time of the next detection sub-interval; The second detection window has the same window length as the first detection window; The second detection window is later than the first detection window; The start time of the second detection window is the end time of the first detection window.
[0162] In other words, the window lengths of the first and second detection windows can be preset, and before the end of any detection sub-interval, the second and first detection windows with the same window length can be set respectively.
[0163] In some possible implementations, after the second device enters the second detection window, the status of the second device can be determined based on whether the second device needs to send data.
[0164] In some possible implementations, if the second device needs to send data, it can send a second detection signal to the first device within a second detection window. This second detection signal is generated by the second device based on the data to be sent.
[0165] In some possible implementations, if the second device does not need to send data, it can remain in a dormant state after entering the second detection window until the next detection interval is reached.
[0166] In some possible implementations, after reaching the next detection interval, the device first enters the first detection window within the next detection interval, while the second device continues to listen to the first detection signal sent by the first device. If the first detection signal is not detected, the device enters the second detection window within the next detection interval.
[0167] In some possible implementations, if the second device does not detect the first detection signal within the current wake-up interval and the second device does not need to send data, then the first device and the second device each perform a brief radio frequency listening only during the detection window belonging to the other, and remain in deep sleep state for the rest of the time.
[0168] The communication method provided in the embodiments of this disclosure, in response to the second device being in a sleep state and currently arriving at the first detection window of the first device, listens for a first detection signal sent by the first device within the first detection window. In response to the second device not listening to the first detection signal, it can enter the second detection window. Due to the short detection window and low listening power consumption, the power consumption in the non-sleep state can be significantly reduced.
[0169] Figure 9This is a flowchart illustrating a communication method according to another exemplary embodiment, such as... Figure 9 As shown, the communication method of this disclosure includes the following steps.
[0170] S901, in response to the second device needing to send data while in sleep mode, enters wake-up mode.
[0171] In some possible implementations, to achieve low-power communication, the second device can enter a sleep state without interacting with the first device. If the second device receives data from the application while in sleep mode, it can be determined that the second device needs to send data.
[0172] The application in question is an application on the second device.
[0173] In some possible implementations, the second device can also receive data sent by the application layer to determine if the second device needs to send data. Here, the application layer refers to the logical layer in the Bluetooth protocol stack that sits immediately above the physical hardware; it can be understood as the data producer.
[0174] In some possible implementations, the second device may also determine whether it needs to send data based on the task of sending data at regular intervals.
[0175] In other words, when the second device generates data, it can be determined that the data needs to be sent, meaning the second device needs to send data.
[0176] In some possible implementations, when it is determined that the second device needs to send data, the second device can be self-wake-up; that is, the second device can enter a wake-up state when it is determined that data needs to be sent.
[0177] It should be noted that in the sleep state, the radio frequency hardware between the second device and the first device is not connected, but the link layer between the second device and the first device remains connected, thus enabling the second detection signal to be sent to the first device.
[0178] S902, within the second detection window, a second detection signal is sent, which is used to wake up the first device.
[0179] In some possible implementations, the wake-up interval includes a first detection window configured for the first device and a second detection window configured for the second device. Even if the second device needs to send data, it still listens for the first detection signal within the first detection window.
[0180] In some possible implementations, the second device sends the second detection signal only after entering the second detection window. Alternatively, the second device may send the second detection signal at the beginning of the second detection window.
[0181] In some possible implementations, the first device can enter a listening state within the second window to listen for the second detection signal sent by the second device. Upon receiving the second detection signal, the first device can enter a wake-up state and enter an interactive mode when both the first and second devices are in the wake-up state.
[0182] In some possible implementations, the second detection signal may be a preamble to wake up the first device based on the preamble. The preamble is transmitted using the radio frequency circuitry of the second device, and the first device wakes up its radio frequency receiver via the preamble, thereby entering a wake-up state.
[0183] In some possible implementations, the second detection signal may also be a short message, used to wake up the first device. The first device can enter the wake-up state by decoding this message using simplified decoding logic.
[0184] In some possible implementations, the second detection signal may also be a carrier or harmonic signal to enable energy-based wake-up of the first device. The first device receives the carrier or harmonic signal, determines whether signal energy is present, and enters a wake-up state when signal energy is present.
[0185] It should be noted that the difference between the first detection signal and the second detection signal lies in the fact that the sender and receiver are different, but the types of detection signals they send are the same.
[0186] In some possible implementations, any detection signal includes at least one of the following signals: Preamble; the preamble does not carry a payload. The first message, wherein the length of the first message is less than the set message length, and / or the first message includes the access address and a set cyclic redundancy check code; A carrier wave carrying the target's characteristics; Harmonic signals carrying the characteristics of the target.
[0187] The first message is the short message in this embodiment of the disclosure.
[0188] In some possible implementations, the receiver of the first detection signal is the second device, and the sender is the first device; the receiver of the second detection signal is the first device, and the sender is the second device.
[0189] For example, the explanation of entering the wake-up state based on the detection signal can be based on the receiver and the sender.
[0190] For the preamble, the sender can use low-power radio frequency circuitry to modulate and transmit a preamble sequence conforming to the BLE specification (e.g., 10101010) and continuously transmit it for tens of microseconds. The receiver wakes up its radio frequency receiver within the corresponding detection window, specifically to detect whether the expected preamble energy characteristics exist in the channel. If the expected preamble energy characteristics are detected, the receiver can enter a wake-up state.
[0191] For the first message, the sender designs the first message (e.g., a frame containing the access address and 1-2 bytes of CRC checksum) to be much shorter than a standard empty packet and sends the first message. The receiver decodes the first message using simplified decoding logic to enter the wake-up state.
[0192] For carrier waves and harmonic signals carrying target characteristics, they can be considered as detection signals based on energy detection. The transmitter sends either the carrier wave or the harmonic signal carrying the target characteristics. The receiver determines whether there is valid signal energy in the channel by using a received signal strength indicator or an energy detection circuit. Upon detecting the presence of valid signal energy, the receiver can enter a wake-up state.
[0193] S903 sends a second data packet to the first device in interactive mode.
[0194] In some possible implementations, the second device may generate a second data packet based on the data to be sent and send the second data packet to the first device in interactive mode.
[0195] In some possible implementations, a second data packet can be generated based on the access address after the first device and the second device enter the interaction mode, the respective device addresses of the first device and the second device, and the data to be sent.
[0196] In some possible implementations, the generation of the second data packet may be initiated by the application layer of the second device, thereby generating it at the link layer, and the second device may send the second data packet to the first device.
[0197] In some possible implementations, the second device may send a second data packet to the first device through the data channel between the first and second devices in interactive mode.
[0198] In some possible implementations, after the first device and the second device enter the interaction mode, they can complete the sending and receiving of the second data packet at the boundary time of each detection sub-interval in accordance with the standard Bluetooth protocol.
[0199] It should be noted that in this embodiment of the disclosure, the second device actively wakes up the first device to enter the interactive mode and sends a second data message to the first device.
[0200] In some possible implementations, the wake-up interval includes at least two detection sub-intervals. If the second device enters the interactive mode within any detection sub-interval, the wake-up interval also includes the remaining unreached detection sub-intervals. Therefore, the second device can remain in the wake-up state within the remaining unreached detection sub-intervals of the wake-up interval.
[0201] In this disclosure, keeping the second device in a continuously awake state during the remaining unreached detection sub-intervals enables timely response to data, reduces data transmission latency, and avoids the additional power consumption of frequent sleep and interaction.
[0202] In some embodiments, the second device may also wake up the first device at the boundary moments of the remaining detection sub-intervals until it switches from the interaction mode to the power saving mode, thereby triggering the first device to go back to sleep.
[0203] In some possible implementations, the second device may also wake up the first device at the boundary moments of the remaining detection sub-intervals until it switches from the interaction mode to the power-saving mode, thereby triggering the first device to go back to sleep.
[0204] Among them, wake-up interaction refers to waking up the first device and the second device so that the first device and the second device enter the interaction mode.
[0205] In some possible implementations, the power-saving mode refers to the ability of devices to interact with each other by sending detection signals within a detection window when the devices are in a dormant state.
[0206] In some possible implementations, since the second device wakes up the first device at the currently arrived detection sub-interval and completes the interaction in the next detection sub-interval, the remaining detection sub-intervals are the detection sub-intervals after the next detection sub-interval.
[0207] In other words, the second device can start from the next detection sub-interval after the currently arrived detection sub-interval and interact with the second device at the boundary moments of the remaining detection sub-intervals.
[0208] The communication method provided in the embodiments of this disclosure, in response to the absence of a first detection signal, enters a second detection window; in response to the need for a second device to send data while in sleep mode, enters a wake-up state and sends a second detection signal within the second detection window to wake up the first device. When both the first and second devices are in wake-up mode, they enter an interactive mode, allowing the sending of a second data packet to the first device in interactive mode. This method achieves low power consumption when there is no data transmission and seamless switching to interactive mode when data transmission is available, balancing ultra-low power consumption in daily standby and high efficiency during data transmission.
[0209] Figure 10 This is a flowchart illustrating a communication method according to another exemplary embodiment, such as... Figure 10 As shown, the communication method of this disclosure includes the following steps.
[0210] S1001, in response to the second device being in a sleep state and currently arriving at the first detection window of the first device, listen for the first detection signal sent by the first device within the first detection window.
[0211] S1002, in response to the detection of the first detection signal, enters the wake-up state, wherein the first device and the second device enter the interaction mode when in the wake-up state.
[0212] S1003, in interactive mode, receive the first data packet sent by the first device.
[0213] The relevant content of steps S1001-S1003 can be found in the above embodiments, and will not be repeated here.
[0214] S1004, in response to the completion of data packet transmission in interactive mode, switches from interactive mode to power saving mode to trigger the first device to re-enter sleep mode.
[0215] In some possible implementations, the transmission of data packets by the first device and the second device in interactive mode means that the first device sends a first data packet to the second device, the second device receives the first data packet, and the second device sends a second data packet to the first device, the first device receives the second data packet.
[0216] In some possible implementations, after the transmission of data packets is completed, the first device and the second device can confirm the data exchange by handshaking. The handshake confirmation means that the data exchange is considered complete when both the first device and the second device receive confirmation from the other.
[0217] In some possible implementations, the handshake confirmation may involve one party sending a blank command packet (POLL packet), and the other party, upon receiving the blank command packet, sending an empty response packet (NULL packet) to complete the handshake confirmation. In other words, the handshake confirmation is complete once one party receives the empty response packet from the other party after sending the blank command packet.
[0218] Since the data packet includes a first data packet sent by the first device and a second device packet sent by the second device, if the data packet is the first data packet, the second device can receive the empty instruction packet sent by the first device and send an empty response packet to the first device.
[0219] If the data packet is the second data packet, the second device can send an empty shell instruction packet to the first device and receive an empty response packet sent by the first device.
[0220] In some possible implementations, after the handshake confirmation is completed, the second device can switch from interactive mode to power-saving mode without waiting for the next wake-up interval.
[0221] In some possible implementations, after the second device switches to power-saving mode, it can re-detect whether there is data to be sent when a new detection sub-interval arrives. If there is data, it can wake up the first device based on the second detection window to trigger a new round of wake-up interaction, and remain in sleep mode when there is no data.
[0222] The communication method provided in the embodiments of this disclosure switches from interactive mode to power-saving mode in response to the completion of data packet transmission in interactive mode, thereby triggering the first device to re-enter sleep mode. This enables the device to enter a low-power sleep state immediately after the data packet transmission is completed, avoiding unnecessary interactive power consumption overhead between the completion of data packet transmission and the next wake-up interval, and further reducing device power consumption.
[0223] Figure 11 This is a flowchart illustrating a communication method according to another exemplary embodiment, such as... Figure 11 As shown, the communication method of this disclosure includes the following steps.
[0224] S1101, negotiates and interacts with the first device to enter the energy-saving mode.
[0225] S1102, in response to successful negotiation, enters energy-saving mode based on the negotiated control information to trigger the first device to enter sleep mode.
[0226] In some possible implementations, the second device may send a second negotiation request to the first device to conduct an energy-saving mode entry negotiation interaction with the first device based on the second negotiation request.
[0227] In some possible implementations, the second device can generate a second negotiation request based on control information, and the first device can respond to the second negotiation request to achieve energy-saving mode entry negotiation interaction. The control information can be generated by the application layer of the second device, and the second negotiation request can be generated based on the control information.
[0228] In some possible implementations, the success of the negotiation can be determined based on the first device's response to the negotiation request. For example, if the response is accepted, the negotiation is considered successful; if the response is rejected, the second device and the first device can maintain a normal connection state. Here, the normal connection state refers to the Bluetooth link layer connection between the second device and the first device.
[0229] If the response is modified, the second device can reply with acceptance or rejection. If it accepts, both parties will enter the energy-saving mode with the modified control parameters. If it rejects, the normal connection status will remain unchanged.
[0230] In other words, the energy-saving mode entry negotiation interaction with the first device means that the first device can determine whether to accept the control information sent by the second device, or whether to modify the control information sent by the second device.
[0231] In some possible implementations, the control information includes at least one of the following: The start time of energy-saving mode; The interval duration of the detection sub-interval in energy-saving mode; The duration of the wake-up interval in power-saving mode; The type of detection signal used in the energy-saving mode.
[0232] The start time of the power-saving mode can be the connection event number or absolute time when the mode takes effect; the interval of the detection sub-interval is shorter than the interval of the wake-up interval.
[0233] During the wake-up interval, even if no detection signal is triggered, at least one forced wake-up interaction will be performed to maintain connection synchronization, in order to prevent connection timeout and disconnection due to loss of detection signal.
[0234] In some possible implementations, the type of detection signal may include: modulating a low-power preamble using a low-power Bluetooth radio frequency circuit; modulating a non-Bluetooth signaling signal using a low-power Bluetooth radio frequency circuit; or modulating a non-Bluetooth signaling signal using a dedicated radio frequency circuit.
[0235] Among them, non-Bluetooth signaling signals can be the first message, or they can be carrier or harmonic signals.
[0236] In some possible implementations, after the first and second devices successfully negotiate, they can enter an energy-saving mode based on the negotiated control information, triggering both devices to enter a sleep state. In the sleep state, when a new detection sub-interval arrives, the system can re-detect whether there is data to be transmitted. If data exists, the second device can be woken up based on the first detection window to trigger a new round of wake-up interaction. The system can remain in sleep mode if no data exists.
[0237] It should be noted that the second device can proactively send a second negotiation request to the first device to negotiate and interact with the first device regarding entering the energy-saving mode. The second device can also receive a first negotiation request sent by the first device to negotiate and interact with the first device regarding entering the energy-saving mode.
[0238] In other words, when the second device initiates an energy-saving mode entry negotiation interaction, the first device can respond to the second negotiation request to accept, reject, or modify the control information carried in the second negotiation request; when the first device initiates an energy-saving mode entry negotiation interaction, the second device can respond to the first negotiation request to accept, reject, or modify the control information carried in the first negotiation request.
[0239] The communication method provided in the embodiments of this disclosure enters energy-saving mode by negotiating with a first device. Upon successful negotiation, the first device enters energy-saving mode based on the negotiated control information, thereby triggering the first device to enter sleep mode. Through this energy-saving mode entry negotiation, the first and second devices can negotiate control information, enabling flexible adaptation to different business scenarios and achieving a fine balance between latency, power consumption, and reliability to meet the requirements of various business scenarios.
[0240] It should be noted that in this disclosure Figures 7-11 The embodiments can be applied to either the second device or the first device, and the actions of both parties are equivalent.
[0241] Figure 12 This is a schematic diagram of the structure of a communication device according to an exemplary embodiment.
[0242] Reference Figure 12 The communication device 1200 of this embodiment includes: a wake-up module 1201, a sending module 1202 and an interaction module 1203.
[0243] The wake-up module 1201 is used to respond to the need for a first device in a sleep state to send data, and enter the wake-up state within the first detection window of the currently arrived detection sub-interval, wherein the preset wake-up interval includes at least two detection sub-intervals, and each of the detection sub-intervals includes at least the first detection window configured for the first device. The sending module 1202 is used to send a first detection signal within the first detection window to indicate that the second device enters a wake-up state, wherein the first device and the second device enter an interactive mode when they are in the wake-up state; The interaction module 1203 is used to send a first data packet to the second device in the interaction mode.
[0244] In some possible implementations, the device further includes: A sleep module is configured to keep the first device in a sleep state within the first detection window in response to the first device not transmitting data while in a sleep state.
[0245] In some possible implementations, the detection sub-interval further includes a second detection window configured for the second device, and the sleep module is further configured to: Enter listening mode within the currently arrived second detection window and listen to the second detection signal sent by the second device within the second detection window; Upon detecting the second detection signal, it enters a wake-up state; In the interaction mode, the second data packet sent by the second device is received.
[0246] In some possible implementations, the second detection window satisfies at least one of the following: The end time of the second detection window is the start time of the next detection sub-interval; The second detection window and the first detection window have the same window length; The second detection window is later than the first detection window; The start time of the second detection window is the end time of the first detection window.
[0247] In some possible implementations, the interaction module 1203 is further configured to: During the remaining unreached detection sub-intervals in the wake-up interval, the first device remains in the interaction mode.
[0248] In some possible implementations, the interaction module 1203 is further configured to: At the boundary moments of each of the remaining detection sub-intervals, the first device is awakened and interacted with the second device until the interaction mode is switched to the power-saving mode, thereby triggering the first device to re-enter sleep mode.
[0249] In some possible implementations, the interaction module 1203 is further configured to: Starting from the next detection sub-interval after the currently arrived detection sub-interval, wake-up interaction is performed with the second device at the boundary moments of the remaining detection sub-intervals.
[0250] In some possible implementations, the interaction module 1203 is further configured to: In response to the completion of data packet transmission in the interactive mode, the device switches from the interactive mode to the power-saving mode to trigger the first device to re-enter sleep mode.
[0251] In some possible implementations, the data packet is a first data packet, and the interaction module 1203 is further configured to: Send empty shell command packets to the second device; Receive an empty response packet sent by the second device.
[0252] In some possible implementations, the data packet is a second data packet, and the interaction module 1203 is further configured to: Receive empty shell instruction packets sent by the second device; Send an empty response packet to the second device.
[0253] In some possible implementations, any detection signal includes at least one of the following signals: Preamble, which does not carry a payload; The first message, wherein the length of the first message is less than the set message length, and / or the first message includes an access address and a set cyclic redundancy check code; A carrier wave carrying the target's characteristics; Harmonic signals carrying the characteristics of the target.
[0254] In some possible implementations, the wake-up module 1201 is further configured to: Negotiate and interact with the second device to enter energy-saving mode; Upon successful negotiation, based on the negotiated control information, the device enters the energy-saving mode to trigger the first device to go into sleep mode.
[0255] In some possible implementations, the control information includes at least one of the following: The start time point of the energy-saving mode; The interval duration of the detection sub-interval of the energy-saving mode; The duration of the wake-up interval in the energy-saving mode; The type of detection signal used in the energy-saving mode.
[0256] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0257] The communication device provided in the embodiments of this disclosure, in response to a first device in a sleep state needing to send data, enters a wake-up state within a first detection window of the currently arriving detection sub-interval, and sends a first detection signal within the first detection window to instruct a second device to enter a wake-up state. This enables the first and second devices to enter an interactive mode while in the wake-up state, allowing the first data packet to be sent to the second device in the interactive mode. Therefore, by dividing the wake-up interval into multiple detection sub-intervals, this solution can clearly define data transmission needs during data bursts and use the first detection signal to enable the first and second devices to enter an interactive mode for efficient data transmission. This reduces communication latency and device power consumption, achieving extremely low communication latency and extremely low power consumption. Through automatic switching between the wake-up state and the interactive mode, low power consumption can be maintained when there is no data transmission, and seamless switching to the interactive mode can be achieved when data transmission is needed, balancing ultra-low power consumption in daily standby and high efficiency during data transmission. Furthermore, by applying the communication method of this disclosure, user operation latency can be reduced, and device battery life can be improved, thereby enhancing the user experience.
[0258] Figure 13 This is a schematic diagram of the structure of a communication device according to an exemplary embodiment.
[0259] Reference Figure 13 The communication device 1300 of this disclosure includes: a listening module 1301, a wake-up module 1302, and an interaction module 1303.
[0260] The monitoring module 1301 is used to monitor the first detection signal sent by the first device within the first detection window when the second device is in a sleep state and the first detection window of the first device is currently reached. The preset wake-up interval includes at least two detection sub-intervals, and each of the detection sub-intervals includes at least the first detection window configured for the first device. The wake-up module 1302 is used to enter a wake-up state in response to listening to the first detection signal, wherein the first device and the second device enter an interactive mode when in the wake-up state; The interaction module 1303 is used to receive a first data packet sent by the first device in the interaction mode.
[0261] In some possible implementations, the detection sub-interval further includes a second detection window configured for the second device, and the monitoring module 1301 is further configured to: In response to the failure to detect the first detection signal, proceed to the second detection window.
[0262] In some possible implementations, the wake-up module 1302 is further configured to: In response to the second device needing to send data while in sleep mode, it enters wake-up mode; A second detection signal is sent within the second detection window, and the second detection signal is used to wake up the first device; In the interaction mode, a second data packet is sent to the first device.
[0263] In some possible implementations, the second detection window satisfies at least one of the following: The end time of the second detection window is the start time of the next detection sub-interval; The second detection window and the first detection window have the same window length; The second detection window is later than the first detection window; The start time of the second detection window is the end time of the first detection window.
[0264] In some possible implementations, the wake-up module 1302 is further configured to: The second device remains in a wake-up state during the remaining unreached detection sub-intervals within the wake-up interval.
[0265] In some possible implementations, the wake-up module 1302 is further configured to: At the boundary moments of each of the remaining detection sub-intervals, the first device is awakened and interacted with the second device until the interaction mode is switched to the power-saving mode, thereby triggering the first device to re-enter sleep mode.
[0266] In some possible implementations, the wake-up module 1302 is further configured to: Starting from the next detection sub-interval after the currently arrived detection sub-interval, wake-up interaction is performed with the second device at the boundary moments of the remaining detection sub-intervals.
[0267] In some possible implementations, the interaction module 1303 is further configured to: In response to the completion of data packet transmission in the interactive mode, the device switches from the interactive mode to the power-saving mode to trigger the first device to re-enter sleep mode.
[0268] In some possible implementations, the data packet is a first data packet, and the interaction module 1303 is further configured to: Receive empty shell instruction packets sent by the first device; Send an empty response packet to the first device.
[0269] In some possible implementations, the data packet is a second data packet, and the interaction module 1303 is further configured to: Send an empty shell command packet to the first device; Receive an empty response packet sent by the first device.
[0270] In some possible implementations, any detection signal includes at least one of the following signals: Preamble, which does not carry a payload; The first message, wherein the length of the first message is less than the set message length, and / or the first message includes an access address and a set cyclic redundancy check code; A carrier wave carrying the target's characteristics; Harmonic signals carrying the characteristics of the target.
[0271] In some possible implementations, the monitoring module 1301 is further configured to: Negotiate and interact with the first device to enter the energy-saving mode; Upon successful negotiation, based on the negotiated control information, the device enters the energy-saving mode to trigger the first device to enter sleep mode.
[0272] In some possible implementations, the control information includes at least one of the following: The start time point of the energy-saving mode; The interval duration of the detection sub-interval of the energy-saving mode; The duration of the wake-up interval in the energy-saving mode; The type of detection signal used in the energy-saving mode.
[0273] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0274] The communication device provided in the embodiments of this disclosure, in response to a second device being in a sleep state and currently reaching a first detection window of a first device, listens for a first detection signal sent by the first device within the first detection window. In response to the second device detecting the first detection signal, it enters a wake-up state, enabling both the first and second devices to enter an interactive mode, thereby receiving a first data packet sent by the first device in the interactive mode. Thus, by dividing the wake-up interval into multiple detection sub-intervals, this solution can clearly define data transmission needs during data bursts and use the first detection signal to enable both the first and second devices to enter an interactive mode for efficient data transmission. This reduces communication latency and device power consumption, achieving extremely low communication latency and extremely low power consumption. Through automatic switching between the wake-up state and the interactive mode, low power consumption can be maintained when there is no data transmission, and seamless switching to the interactive mode can be achieved when there is data transmission, balancing ultra-low power consumption in daily standby and high efficiency during data transmission. Furthermore, by applying the communication method of this disclosure, user operation latency can be reduced, and device battery life can be improved, thereby enhancing the user experience.
[0275] To implement the above embodiments, this disclosure also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps of the communication method provided in this disclosure.
[0276] Figure 14 This is a schematic diagram illustrating the structure of an electronic device according to an exemplary embodiment. For example, the electronic device 1400 may be a smart home device, a vehicle, a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0277] Reference Figure 14 The electronic device 1400 may include one or more of the following components: a processing component 1402, a memory 1404, a power component 1406, a multimedia component 1408, an audio component 1410, an input / output (I / O) interface 1412, a sensor component 1414, and a communication component 1416.
[0278] Processing component 1402 typically controls the overall operation of electronic device 1400, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 1402 may include one or more processors 1420 to execute instructions to complete all or part of the steps of the communication methods described above. Furthermore, processing component 1402 may include one or more modules to facilitate interaction between processing component 1402 and other components. For example, processing component 1402 may include a multimedia module to facilitate interaction between multimedia component 1408 and processing component 1402.
[0279] Memory 1404 is configured to store various types of data to support the operation of electronic device 1400. Examples of this data include instructions for any application or method operating on electronic device 1400, contact data, phonebook data, messages, pictures, videos, etc. Memory 1404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0280] Power component 1406 provides power to various components of electronic device 1400. Power component 1406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 1400.
[0281] Multimedia component 1408 includes a screen that provides an output interface between electronic device 1400 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a Touch Panel, the screen may be implemented as a touchscreen to receive input signals from the user. The Touch Panel includes one or more touch sensors to sense touches, swipes, and gestures on the Touch Panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1408 includes a front-facing camera and / or a rear-facing camera. When electronic device 1400 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0282] Audio component 1410 is configured to output and / or input audio signals. For example, audio component 1410 includes a microphone (MIC) configured to receive external audio signals when electronic device 1400 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1404 or transmitted via communication component 1416. In some embodiments, audio component 1410 also includes a speaker for outputting audio signals.
[0283] I / O interface 1412 provides an interface between processing component 1402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0284] Sensor assembly 1414 includes one or more sensors for providing state assessments of various aspects of electronic device 1400. For example, sensor assembly 1414 may detect the on / off state of electronic device 1400, the relative positioning of components such as the display and keypad of electronic device 1400, changes in position of electronic device 1400 or a component of electronic device 1400, the presence or absence of user contact with electronic device 1400, orientation or acceleration / deceleration of electronic device 1400, and temperature changes of electronic device 1400. Sensor assembly 1414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1414 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 1414 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0285] Communication component 1416 is configured to facilitate wired or wireless communication between electronic device 1400 and other devices. Electronic device 1400 can access wireless networks based on communication standards, such as WiFi, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 1416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1416 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra-Wideband (UWB), Bluetooth, and other technologies.
[0286] In an exemplary embodiment, the electronic device 1400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the steps of the communication method described above.
[0287] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1404 including instructions, which can be executed by a processor 1420 of an electronic device 1400 to complete the aforementioned communication method. For example, the non-transitory computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device, etc.
[0288] To implement the above embodiments, this disclosure also proposes a non-transitory computer-readable storage medium storing computer program instructions thereon, which, when executed by a processor, implement the steps of the communication method provided in this disclosure.
[0289] Alternatively, non-transitory computer-readable storage media may be ROM, CD-ROM, magnetic tape, floppy disk, and optical data storage devices, etc.
[0290] To implement the above embodiments, this disclosure also proposes a chip including an interface circuit and a processing circuit coupled to each other, wherein the interface circuit is used to input or output signals, and the processing circuit is configured to implement the steps of the communication method provided in this disclosure.
[0291] Figure 15 This is a schematic diagram illustrating the structure of a chip according to an exemplary embodiment. See also... Figure 15 The diagram shown is a schematic representation of the structure of chip 1500, but it is not limited to this.
[0292] Chip 1500 includes processing circuitry 1501, which is configured to perform the steps of any of the above communication methods.
[0293] In some possible implementations, chip 1500 further includes one or more interface circuits 1502. In some possible implementations, interface circuit 1502 is connected to memory 1503, and interface circuit 1502 can be used to receive signals from memory 1503 or other devices, and interface circuit 1502 can be used to send signals to memory 1503 or other devices. For example, interface circuit 1502 can read instructions stored in memory 1503 and send those instructions to processing circuit 1501.
[0294] In some possible implementations, the interface circuit 1502 performs at least one of the communication steps such as sending and / or receiving in the above method, while the processing circuit 1501 performs other steps.
[0295] In some possible implementations, terms such as interface circuit, interface, transceiver pin, and transceiver can be used interchangeably.
[0296] In some possible implementations, chip 1500 may also include one or more memories 1503 for storing instructions. In some possible implementations, all or part of the memories 1503 may be located outside of chip 1500.
[0297] To implement the above embodiments, this disclosure also proposes a computer program product, including a computer program, which, when executed by a processor, implements the steps of the communication method provided in this disclosure.
[0298] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0299] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0300] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain.
[0301] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-including system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and compact disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0302] It should be understood that various parts of this disclosure can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0303] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0304] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0305] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present disclosure.
Claims
1. A communication method, characterized in that, The method includes: In response to the need for a first device in a dormant state to send data, the device enters a wake-up state within the first detection window of the currently arriving detection sub-interval, wherein the preset wake-up interval includes at least two detection sub-intervals, and each of the detection sub-intervals includes at least the first detection window configured for the first device. A first detection signal is sent within the first detection window to instruct the second device to enter a wake-up state, wherein the first device and the second device enter an interactive mode when they are in the wake-up state. In the interaction mode, a first data packet is sent to the second device.
2. The method according to claim 1, characterized in that, The method further includes: In response to the first device in sleep mode not transmitting data, the first device remains in sleep mode within the first detection window.
3. The method according to claim 2, characterized in that, The detection sub-interval further includes a second detection window configured for the second device, and the step of keeping the first device in a sleep state within the first detection window further includes: Enter listening mode within the currently arrived second detection window and listen to the second detection signal sent by the second device within the second detection window; Upon detecting the second detection signal, it enters a wake-up state; In the interaction mode, the second data packet sent by the second device is received.
4. The method according to claim 3, characterized in that, The second detection window satisfies at least one of the following: The end time of the second detection window is the start time of the next detection sub-interval; The second detection window and the first detection window have the same window length; The second detection window is later than the first detection window; The start time of the second detection window is the end time of the first detection window.
5. The method according to claim 1 or 4, characterized in that, The method further includes: During the remaining unreached detection sub-intervals in the wake-up interval, the first device remains in the interaction mode.
6. The method according to claim 5, characterized in that, The method further includes: At the boundary moments of each of the remaining detection sub-intervals, the first device is awakened and interacted with the second device until the interaction mode is switched to the power-saving mode, thereby triggering the first device to re-enter sleep mode.
7. The method according to claim 6, characterized in that, The method further includes: Starting from the next detection sub-interval after the currently arrived detection sub-interval, wake-up interaction is performed with the second device at the boundary moments of the remaining detection sub-intervals.
8. The method according to claim 1 or 3, characterized in that, The method further includes: In response to the completion of data packet transmission in the interactive mode, the device switches from the interactive mode to the power-saving mode to trigger the first device to re-enter sleep mode.
9. The method according to claim 8, characterized in that, The data message is a first data message, and before switching from the interaction mode to the energy-saving mode, it also includes: Send empty shell command packets to the second device; Receive an empty response packet sent by the second device.
10. The method according to claim 8, characterized in that, The data message is a second data message, and before switching from the interaction mode to the energy-saving mode, it also includes: Receive empty shell instruction packets sent by the second device; Send an empty response packet to the second device.
11. The method according to any one of claims 1-4, characterized in that, Any detection signal includes at least one of the following signals: Preamble, which does not carry a payload; The first message, wherein the length of the first message is less than the set message length, and / or the first message includes an access address and a set cyclic redundancy check code; A carrier wave carrying the target's characteristics; Harmonic signals carrying the characteristics of the target.
12. The method according to any one of claims 1-4, characterized in that, The response to the need for the first device in a sleep state to send data further includes: Negotiate and interact with the second device to enter energy-saving mode; Upon successful negotiation, based on the negotiated control information, the device enters the energy-saving mode to trigger the first device to go into sleep mode.
13. The method according to claim 12, characterized in that, The control information includes at least one of the following: The start time point of the energy-saving mode; The interval duration of the detection sub-interval of the energy-saving mode; The duration of the wake-up interval in the energy-saving mode; The type of detection signal used in the energy-saving mode.
14. A communication method, characterized in that, The method includes: In response to the second device being in a sleep state and the current arrival at the first detection window of the first device, the first detection signal sent by the first device is listened to within the first detection window, wherein the preset wake-up interval includes at least two detection sub-intervals, and each of the detection sub-intervals includes at least the first detection window configured for the first device. In response to the first detection signal, the device enters a wake-up state, wherein the first device and the second device enter an interactive mode in the wake-up state. In the interactive mode, the first data packet sent by the first device is received.
15. The method according to claim 14, characterized in that, The detection sub-interval further includes a second detection window configured for the second device, and the method further includes: In response to the failure to detect the first detection signal, proceed to the second detection window.
16. The method according to claim 15, characterized in that, The method further includes: In response to the second device needing to send data while in sleep mode, it enters wake-up mode; A second detection signal is sent within the second detection window, and the second detection signal is used to wake up the first device; In the interaction mode, a second data packet is sent to the first device.
17. The method according to claim 15, characterized in that, The second detection window satisfies at least one of the following: The end time of the second detection window is the start time of the next detection sub-interval; The second detection window and the first detection window have the same window length; The second detection window is later than the first detection window; The start time of the second detection window is the end time of the first detection window.
18. The method according to any one of claims 14-17, characterized in that, The method further includes: The second device remains in a wake-up state during the remaining unreached detection sub-intervals within the wake-up interval.
19. The method according to claim 18, characterized in that, The method further includes: At the boundary moments of each of the remaining detection sub-intervals, the first device is awakened and interacted with the second device until the interaction mode is switched to the power-saving mode, thereby triggering the first device to re-enter sleep mode.
20. The method according to claim 19, characterized in that, The method further includes: Starting from the next detection sub-interval after the currently arrived detection sub-interval, wake-up interaction is performed with the second device at the boundary moments of the remaining detection sub-intervals.
21. The method according to claim 14 or 16, characterized in that, The method further includes: In response to the completion of data packet transmission in the interactive mode, the device switches from the interactive mode to the power-saving mode to trigger the first device to re-enter sleep mode.
22. The method according to claim 21, characterized in that, The data message is a first data message, and before switching from the interaction mode to the energy-saving mode, it also includes: Receive empty shell instruction packets sent by the first device; Send an empty response packet to the first device.
23. The method according to claim 21, characterized in that, The data message is a second data message, and before switching from the interaction mode to the energy-saving mode, it also includes: Send an empty shell command packet to the first device; Receive an empty response packet sent by the first device.
24. The method according to claim 14 or 16, characterized in that, Any detection signal includes at least one of the following signals: Preamble, which does not carry a payload; The first message, wherein the length of the first message is less than the set message length, and / or the first message includes an access address and a set cyclic redundancy check code; A carrier wave carrying the target's characteristics; Harmonic signals carrying the characteristics of the target.
25. The method according to any one of claims 14-17, characterized in that, The response prior to the second device entering a sleep state also includes: Negotiate and interact with the first device to enter energy-saving mode; Upon successful negotiation, based on the negotiated control information, the device enters the energy-saving mode to trigger the first device to enter sleep mode.
26. The method according to claim 25, characterized in that, The control information includes at least one of the following: The start time point of the energy-saving mode; The interval duration of the detection sub-interval of the energy-saving mode; The duration of the wake-up interval in the energy-saving mode; The type of detection signal used in the energy-saving mode.
27. A communication device, characterized in that, The device includes: The wake-up module is used to respond to the need for a first device in a sleep state to send data, and enter the wake-up state within the first detection window of the currently arrived detection sub-interval, wherein the preset wake-up interval includes at least two detection sub-intervals, and each of the detection sub-intervals includes at least the first detection window configured for the first device. The sending module is used to send a first detection signal within the first detection window to indicate that the second device enters a wake-up state, wherein the first device and the second device enter an interactive mode when they are in the wake-up state; An interaction module is used to send a first data packet to the second device in the interaction mode.
28. The apparatus according to claim 27, characterized in that, The device further includes: A sleep module is configured to keep the first device in a sleep state within the first detection window in response to the first device not transmitting data while in a sleep state.
29. The apparatus according to claim 28, characterized in that, The detection sub-interval further includes a second detection window configured for the second device, and the sleep module is further configured to: Enter listening mode within the currently arrived second detection window and listen to the second detection signal sent by the second device within the second detection window; Upon detecting the second detection signal, it enters a wake-up state; In the interaction mode, the second data packet sent by the second device is received.
30. A communication device, characterized in that, The device includes: A listening module is used to listen to a first detection signal sent by the first device within the first detection window when the second device is in a sleep state and the first detection window of the first device is currently being reached. The preset wake-up interval includes at least two detection sub-intervals, and each of the detection sub-intervals includes at least the first detection window configured for the first device. A wake-up module is used to enter a wake-up state in response to listening to the first detection signal, wherein the first device and the second device enter an interactive mode when in the wake-up state; An interaction module is used to receive a first data packet sent by the first device in the interaction mode.
31. The apparatus according to claim 30, characterized in that, The detection sub-interval further includes a second detection window configured for the second device, and the monitoring module is further configured to: In response to the failure to detect the first detection signal, proceed to the second detection window.
32. The apparatus according to claim 31, characterized in that, The wake-up module is also used for: In response to the second device needing to send data while in sleep mode, it enters wake-up mode; A second detection signal is sent within the second detection window, and the second detection signal is used to wake up the first device; In the interaction mode, a second data packet is sent to the first device.
33. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the steps of the method according to any one of claims 1-26.
34. A non-transitory computer-readable storage medium having computer program instructions stored thereon, characterized in that, When executed by a processor, the program instructions implement the steps of the method described in any one of claims 1-26.
35. A chip, characterized in that, The chip includes an interface circuit and a processing circuit coupled to each other. The interface circuit is used to input or output signals, and the processing circuit is configured to implement the steps of the method according to any one of claims 1-26.
36. A computer program product, characterized in that, Includes a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1-26.