Management method and electronic equipment
By establishing a PAwR synchronization channel between the electronic device and the tag device, and determining the device status using periodic broadcasting and response messages, the high power consumption problem caused by frequent connections of the electronic device is solved, and power consumption and resource conservation is achieved.
Patent Information
- Application Number
- CN202410086602.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-22
- Publication Date
- 2025-07-22
AI Technical Summary
When the number of tag devices owned by users is large, electronic devices frequently switch connections and disconnections, resulting in increased power consumption.
By establishing a PAwR synchronization channel between the electronic device and the tag device, the periodic broadcast indication information and response messages are used to determine whether the device is in a separate state, and there is no need to establish a wireless connection frequently, saving power consumption and resources.
It effectively reduces the power consumption of electronic equipment and the consumption of connected resources, improves the energy efficiency of the equipment, and simplifies the equipment status determination process.
Smart Images

Figure CN120358579A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technologies, and more particularly, to a management method and an electronic device. Background Art
[0002] Currently, users can attach a tag device to some items (such as car keys, backpacks, etc.) and view the location of the tag device on an electronic device (such as a mobile phone) at any time to achieve item tracking. Generally, a connection relationship can be established between the electronic device and the tag device through Bluetooth or Bluetooth Low Energy (BLE). However, the number of other devices that an electronic device can connect to through Bluetooth or BLE is limited. When the number of tag devices owned by the user is large, the electronic device can only establish connections with multiple tag devices periodically. In this way, the electronic device will frequently switch between connection and disconnection, thereby increasing the power consumption of the electronic device. Summary of the Invention
[0003] This application provides a management method and an electronic device. When the electronic device manages multiple tag devices owned by the user, this technical solution reduces the power consumption of the electronic device, and saves the connection resources and air interface antenna resources of the electronic device.
[0004] In a first aspect, a management method is provided. The method is applied to a first electronic device, and the method includes: when the first electronic device and a second electronic device belong to the same trusted relationship, the first electronic device and the second electronic device establish a Periodic Advertisement with Response (PAwR) synchronization channel; the PAwR has a time period, and within each time period, the first electronic device sends first indication information on a first time slot, and the first indication information is used for the second electronic device to determine whether the second electronic device is in a separated state; within each time period, the first electronic device receives a first response message sent by the second electronic device on the first response time slot; the first electronic device determines whether the second electronic device is in a separated state according to the first response message.
[0005] It should be understood that the first electronic device and the second electronic device belonging to the same trusted relationship may include that the first electronic device and the second electronic device have the same account information, or the second electronic device can be in the same trusted relationship with the first electronic device by scanning a QR code generated by the first electronic device, or the second electronic device can also be in the same trusted relationship with the first electronic device by inputting a digital or letter identifier generated by the first electronic device.
[0006] Based on the embodiments of the present application, when the first electronic device and the second electronic device belong to the same credit relationship, the first electronic device and the second electronic device establish a PAwR synchronization channel, and can determine whether the second electronic device is in a separated state based on this PAwR synchronization channel, without the need to periodically restore a wireless connection with the second electronic device in the subsequent period, thereby saving the power consumption of the first electronic device. In addition, in the case where the number of second electronic devices is relatively large, this technical solution does not require the first electronic device to periodically establish connections with multiple devices, thereby greatly saving the power consumption of the first electronic device, as well as saving the connection resources and air interface antenna resources of the first electronic device.
[0007] In one implementation manner, the method further includes: within a time period after receiving the first response message, the first electronic device sends the first indication information on a corresponding first time slot, and the first indication information is used to indicate handshake information for generating a key, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
[0008] It can be understood that the key can be negotiated and generated by the first electronic device and the second electronic device through some handshake information.
[0009] Based on the embodiments of the present application, the first electronic device can broadcast and update the key through PAwR, so that there is no need to restore a wireless connection channel with the second electronic device, thereby saving the power consumption of the first electronic device, as well as saving the connection resources and air interface antenna resources of the first electronic device.
[0010] In one implementation manner, the first response message includes a first request message, and the first request message is used to request to establish a wireless connection channel with the first electronic device.
[0011] Based on the embodiments of the present application, when the second electronic device needs to restore a wireless connection with the first electronic device, it can send a request message for requesting to establish a wireless connection channel to the first electronic device through the first response message, which is beneficial for the first electronic device to determine when to restore the wireless connection with the second electronic device.
[0012] In one implementation manner, the method further includes: establishing a wireless connection channel with the second electronic device according to the first request message; generating a key through the wireless connection channel, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
[0013] Based on the embodiments of the present application, the first electronic device can also generate a key according to the request of the second electronic device, so that the key can be updated as needed, avoiding unnecessary power consumption.
[0014] In one implementation, the method further includes: within a time period after receiving the first response message, the first electronic device generates a key through the wireless connection channel, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
[0015] Based on the embodiments of the present application, after receiving the first response message, the first electronic device can determine that the second electronic device is not in a separated state, so that the wireless connection channel can be actively restored to negotiate a new key.
[0016] In one implementation, the method further includes: the first electronic device determines the distance between the first electronic device and the second electronic device according to the signal strength of the first response message; if the distance is greater than a first preset value, it is determined that the second electronic device is in a separated state.
[0017] Based on the embodiments of the present application, the first electronic device only needs to determine whether the second electronic device is in a separated state according to the signal strength of the received first response information, which simplifies the process of determining that the second electronic device is in a separated state.
[0018] In one implementation, the method further includes: if the first electronic device does not receive the first response message on the first response time slot within the time period included in the preset time, it is determined that the second electronic device is in a separated state.
[0019] Based on the embodiments of the present application, the first electronic device only needs to determine whether the second electronic device is in a separated state according to whether the first response information is received, which simplifies the process of determining that the second electronic device is in a separated state.
[0020] In one implementation, the method further includes: when the first electronic device and the third electronic device belong to the same trusted relationship, the first electronic device and the third electronic device establish a PAwR synchronization channel, where the third electronic device can send a second response message on the first response time slot.
[0021] When it is determined that the second electronic device is in a separated state, the first response time slot corresponding to the second electronic device is idle, so the first electronic device can allocate the first response time slot for the second electronic device to send a response message to the newly connected third electronic device. Therefore, the first electronic device dynamically allocates response time slots for other electronic devices, which can avoid the first electronic device listening for messages in multiple time slots, thereby saving the power consumption of the first electronic device.
[0022] In one implementation, the method further includes: when the first electronic device and the fourth electronic device belong to the same trusted relationship, establishing a PAwR synchronization channel with the fourth electronic device, where the fourth electronic device can send a second response message on the second response time slot, and the second response time slot and the first response time slot belong to different PAwRs with different time periods.
[0023] Based on the embodiments of the present application, the first electronic device can allocate different time periods for the tag devices according to different types of the accessed electronic devices, that is, multiple electronic devices can be under different PAwR entities. In this way, for multiple types of tag devices, the first electronic device can start multiple PAwR broadcasts with different duty cycles, so as to save the power consumption of the first electronic device as much as possible while meeting different user requirements.
[0024] In one implementation, the method further includes: in response to a first operation of the user, allocating a third response time slot for the fourth electronic device, where the fourth electronic device can send the second response message on the third response time slot, and the third response time slot and the first response time slot belong to the same time period.
[0025] Based on the embodiments of the present application, the user can also change the PAwR entity where the tag device is located, so as to meet the user's usage requirements for different tag devices.
[0026] In a second aspect, a management method is provided. The method is applied to a second electronic device. The method includes: when the second electronic device and the first electronic device belong to the same trusted relationship, the second electronic device establishes a periodic broadcast PAwR synchronization channel with response with the first electronic device; the PAwR has a time period, and within each time period, the second electronic device receives first indication information sent by the first electronic device on a first time slot, and the first indication information is used for the second electronic device to determine whether the second electronic device is in a separated state; the second electronic device determines whether the first electronic device is in a separated state according to the first indication information; within each time period, the second electronic device sends a first response message on the first response time slot.
[0027] Based on the embodiments of the present application, when the second electronic device and the first electronic device belong to the same trusted relationship, a PAwR synchronization channel is established with the first electronic device, so that subsequently the second electronic device can determine whether the second electronic device is in a separated state according to the PAwR broadcast, without re-establishing a wireless connection channel with the first electronic device, thereby saving the power consumption of the electronic device, as well as saving the connection resources and radio interface antenna resources of the electronic device.
[0028] In one implementation, the first indication information includes handshake information for generating a key, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
[0029] Based on the embodiments of the present application, the first indication information may include handshake information for generating a key, so that key negotiation and generation can be achieved without going through a wireless connection channel, thereby saving the power consumption of the electronic device, as well as saving the connection resources and air interface antenna resources of the electronic device.
[0030] In some other examples, the first indication information may also directly include the key.
[0031] Based on the embodiments of the present application, the second electronic device can directly determine a new key according to the first indication information sent by the first electronic device, so that there is no need to negotiate a new key through a wireless connection channel, thereby saving the power consumption of the electronic device.
[0032] In one implementation, the first response message includes a first request message, and the first request message is used to request to establish a wireless connection channel with the first electronic device.
[0033] Based on the embodiments of the present application, when the second electronic device needs to resume a wireless connection with the first electronic device, it can send a request message for requesting to establish a wireless connection channel to the first electronic device through the first response message, which is beneficial for the first electronic device to determine when to resume the wireless connection with the second electronic device.
[0034] In one implementation, the method further includes: establishing a wireless connection channel with the first electronic device; generating a key through the wireless connection channel, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
[0035] Based on the embodiments of the present application, the second electronic device can actively request to update the key, thereby improving the security of the electronic device.
[0036] In one implementation, the method further includes: the second electronic device determines the distance between the first electronic device and the second electronic device according to the signal strength of the first indication information; if the distance is greater than a first preset value, it is determined that the second electronic device is in a separated state.
[0037] Based on the embodiments of the present application, the second electronic device can determine whether it is in a separated state only according to the signal strength of the received first indication information, which simplifies the process of the second electronic device determining the separated state.
[0038] In one implementation, the method further includes: when the second electronic device does not receive the first indication information on the first time slot within the time period included in the preset time, determining that the second electronic device is in a separated state.
[0039] Based on the embodiments of the present application, the second electronic device can determine whether it is in a separated state only according to whether it receives the first indication information, which simplifies the process for the second electronic device to determine the separated state.
[0040] In a third aspect, an electronic device is provided, including: one or more processors; one or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the management method as described in the first aspect and any of its possible implementation manners is executed.
[0041] In a fourth aspect, an electronic device is provided, including: one or more processors; one or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the management method as described in the second aspect and any of its possible implementation manners is executed.
[0042] In a fifth aspect, a management device is provided, including modules for implementing the management method as described in the first aspect to the second aspect and any of their possible implementation manners.
[0043] In a sixth aspect, a chip is provided, the chip includes a processor and a communication interface, the communication interface is configured to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the management method as described in the first aspect to the second aspect and any of their possible implementation manners is executed.
[0044] In a seventh aspect, a readable storage medium is provided, and instructions are stored in the readable storage medium. When the instructions run on an electronic device, the management method as described in the first aspect to the second aspect and any of their possible implementation manners is executed.
[0045] In an eighth aspect, a program product is provided, the program product includes program code, and when the program code runs on an electronic device, the management method as described in the first aspect to the second aspect and any of their possible implementation manners is executed.
[0046] In a ninth aspect, a system is provided, including: a first electronic device for executing the management method as described in the first aspect and any of its possible implementation manners; and a second electronic device for executing the management method as described in the first aspect and any of its possible implementation manners. Brief Description of the Drawings
[0047] Figure 1 is a schematic framework diagram of an electronic device provided by an embodiment of the present application.
[0048] Figure 2 is a schematic diagram of several states of a label device provided by an embodiment of the present application.
[0049] Figure 3 is a software framework diagram of an electronic device provided by an embodiment of the present application.
[0050] Figure 4 is a schematic diagram of a scenario to which the management method of an embodiment of the present application can be applied.
[0051] Figure 5 is a schematic interaction diagram of a management method provided by an embodiment of the present application.
[0052] Figure 6 is a schematic diagram of a PAwR entity provided by an embodiment of the present application.
[0053] Figure 7 is a schematic diagram of another PAwR entity provided by an embodiment of the present application.
[0054] Figure 8 is a schematic flowchart of a management method provided by an embodiment of the present application.
[0055] Figure 9 is a schematic block diagram of an electronic device provided by an embodiment of the present application. Detailed Description of the Embodiments
[0056] Next, the technical solutions in the present application will be described in conjunction with the accompanying drawings.
[0057] The management method in the embodiments of the present application can be applied to electronic devices such as smart phones, smart speakers, smart TVs, tablet computers, laptop computers, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, in-vehicle devices, wearable devices, foldable devices, Internet of Things (IoT) devices, label devices, etc.
[0058] Figure 1The structural schematic diagram of the electronic device 100 is shown. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0059] It can be understood that the structure schematically shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0060] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0061] Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
[0062] A memory can also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can hold the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the said memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0063] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus interface, etc.
[0064] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL).
[0065] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple groups of I2S buses. The processor 110 can be coupled to the audio module 170 through the I2S bus to enable communication between the processor 110 and the audio module 170.
[0066] The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled through the PCM bus interface.
[0067] The UART interface is a universal serial data bus for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160.
[0068] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193.
[0069] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.
[0070] The USB interface 130 is an interface that conforms to the USB standard specification. Specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices.
[0071] It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0072] The charging management module 140 is used to receive a charging input from a charger. Among them, the charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 can receive the charging input from a wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 can receive a wireless charging input through the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141.
[0073] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110.
[0074] The wireless communication function of the electronic device 100 can be implemented through antenna 1, antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.
[0075] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100.
[0076] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and be disposed in the same device as the mobile communication module 150 or other functional modules.
[0077] The wireless communication module 160 may provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Bluetooth low energy (BLE), global navigation satellite systems (GNSSs), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc.
[0078] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technologies.
[0079] The electronic device 100 realizes the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0080] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), or can be a display panel made of one of the materials such as organic light-emitting diode (OLED), active-matrix organic light emitting diode (AMOLED), flex light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, or quantum dot light emitting diodes (QLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0081] The electronic device 100 can implement the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc.
[0082] The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture static images or videos.
[0083] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals.
[0084] The video codec is used to compress or decompress digital videos.
[0085] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to implement the storage capacity expansion of the electronic device 100.
[0086] The internal memory 121 can be used to store computer-executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121.
[0087] The electronic device 100 can implement the audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor, etc.
[0088] The audio module 170 is used to convert digital audio information into analog audio signals for output, and is also used to convert analog audio inputs into digital audio signals.
[0089] The speaker 170A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal.
[0090] The receiver 170B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal.
[0091] The microphone 170C, also known as the "microphone" or "transmitter", is used to convert a sound signal into an electrical signal.
[0092] The headphone jack 170D is used to connect a wired headphone.
[0093] Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, an acceleration sensor 180E, a distance sensor 180F, a fingerprint sensor 180H, a touch sensor 180K, a bone conduction sensor 180M, etc.
[0094] The keys 190 include a power-on key, volume keys, etc.
[0095] The motor 191 can generate a vibration prompt.
[0096] The indicator 192 can be an indicator light, which can be used to indicate the charging state, power change, and can also be used to indicate messages, missed calls, notifications, etc.
[0097] The SIM card interface 195 is used to connect a SIM card.
[0098] Before introducing the embodiments of the present application, the following is a brief introduction to some professional terms that may be involved in the present application.
[0099] Periodic Advertising with Responses (PAwR): Used for a broadcasting device to transmit periodic broadcast control messages and user data to all synchronized devices in a given area. This enables the broadcasting device to send data to specific multiple devices, while the synchronized devices only need to listen for information directed at them. PAwR includes response time slots, and the synchronized devices directly addressed by the broadcasting device send responses to the broadcasting device through the response time slots.
[0100] Tag device: In the present application, a Tag device can be a device capable of communicating with an electronic device and can be mounted on items such as keys or suitcases. For example, the electronic device can maintain a connection with the Tag device through Bluetooth or low-power Bluetooth, or the electronic device can maintain communication with the Tag device through the PAwR synchronization channel, so that the electronic device can view the location of the Tag device and avoid the loss of the user's important items.
[0101] Currently, users can attach Tag devices to some items (such as car keys, backpacks, etc.) and view the location of the Tag devices on an electronic device (such as a mobile phone) at any time to achieve item tracking. Generally, a connection relationship can be established between the electronic device and the Tag device via Bluetooth or Bluetooth Low Energy. However, the number of other devices that an electronic device can connect to via Bluetooth or Bluetooth Low Energy is limited. When the number of Tag devices owned by the user is large, the electronic device can only establish connections with multiple Tag devices periodically. In this way, the electronic device will frequently switch between connecting and disconnecting, thus increasing the power consumption of the electronic device.
[0102] In view of this, embodiments of the present application provide a management method and an electronic device. This technical solution can reduce the power consumption of the electronic device when the electronic device manages multiple tag devices owned by the user.
[0103] Figure 2 It is a schematic diagram of several states of a tag device provided by an embodiment of the present application. As Figure 2 shown, when the user first uses the tag device, the tag device can be in a pending pairing state.
[0104] A battery and a BLE chip can be built into the tag device. When the user first uses the tag device, the electronic device can configure an account for the tag device and perform a pairing process. After successful pairing, a connection relationship is established between the electronic device and the tag device. During the pairing process, the electronic device and the tag device can negotiate an encryption key, which can be used for encrypted communication between the electronic device and the tag device. This key can also be used to encrypt the data packet carried in the message when the tag device broadcasts a message externally, so as to prevent privacy leakage and prevent being tracked by other devices. This key is updated periodically, thereby ensuring the security of the tag device. After the connection relationship is established between the electronic device and the tag device, the tag device is in a connected state.
[0105] To reduce the power consumption of an electronic device, after the electronic device establishes a connection relationship with a tag device, the tag device can temporarily disconnect from the electronic device. During a preset period of time after the disconnection, the tag device is in a proximity state, but within the preset time, the tag device needs to re - establish a connection relationship with the electronic device. If the tag device fails to re - establish a connection relationship with the electronic device after the preset time arrives, the tag device is considered to be in a separated state; or, when the tag device restarts, the tag device is considered to be in a separated state. When the tag device is in the separated state, the tag device can broadcast a separation state message externally, and the data packet in the separation state message is encrypted using the above - mentioned key. Other nearby electronic devices (or so - called kind - hearted devices) can report the current time and location information to the cloud server after detecting the separation state message, and the electronic device can obtain the time and location information from the cloud server, which can help the user determine the location of the tag device.
[0106] For example, the preset time is 15 minutes or 10 minutes, and the embodiments of the present application do not limit this.
[0107] Figure 3 It is a software framework diagram of an electronic device provided by an embodiment of the present application. Refer to Figure 3 , the electronic device 200 can at least include an application layer 210, a Bluetooth protocol stack 220, a host controller interface (HCI) layer 230, and a chip layer 240.
[0108] Among them, the application layer 210 can include tag management 211. The tag management 211 can include key management 212, same - account networking 213, dynamic adjustment of time slots 214, and heartbeat keep - alive 215.
[0109] Among them, the key management 212 can be used to update the encryption key for communication between the electronic device and the tag device.
[0110] In this application, after the label device first establishes a connection relationship with the electronic device, the electronic device can establish a PAwR synchronization channel with the label device, that is, the electronic device and the label device perform clock synchronization, and the electronic device allocates a response slot for the label device. In this way, after the electronic device and the label device are disconnected, the electronic device can broadcast indication information, such as subevent_indication, in the target time slot within a time period, and the label device receives the indication information in the target time slot. After that, the label device broadcasts a response message in the response time slot allocated by the electronic device, and the electronic device receives the response message in the response time slot. In the next time period, the electronic device and the label device repeat the above operations. Thus, the electronic device and the label device can achieve two-way communication without connection, thereby reducing the power consumption of the electronic device and saving the radio interface antenna resources of the electronic device.
[0111] To ensure the security of communication between the electronic device and the label device, the encryption key for communication between the electronic device and the label device is usually updated periodically. For example, the key is updated every 10 minutes or 15 minutes. In this application, there are the following ways to update the key.
[0112] Method 1: The electronic device can update the key through the BLE connection channel.
[0113] Exemplarily, taking the electronic device updating the key for communication with label device 1 as an example, assume that label device 1 sends a response message in response time slot 1 within each time period. In response time slot 1 of a certain time period, when the electronic device receives the response message 1 sent by label device 1, the electronic device can determine that label device 1 is online. The electronic device can actively restore the BLE connection with label device 1 and negotiate a new key with label device 1 through the BLE connection channel.
[0114] Method 2: The electronic device can also update the key through PAwR broadcast.
[0115] Exemplarily, taking the electronic device updating the key for communication with label device 1 as an example, assume that the electronic device sends indication information in the target time slot within each time period, and this indication information can be used for the label device to determine that the electronic device is online. Further, the indication information can also include the updated key, so that when label device 1 receives the indication information in the target time slot, it can determine the updated key.
[0116] For example, the electronic device can carry the updated key in the indication information of the PAwR broadcast. This indication information can be transmitted to the chip layer through the HCI layer, and is broadcast outward by the Bluetooth chip 241 through the radio frequency antenna.
[0117] In Way 3, the electronic device can also update the key through the BLE connection channel according to the request message of the tag device.
[0118] Exemplarily, taking the electronic device updating the key for communication with Tag Device 1 as an example, it is assumed that the electronic device sends indication information on the target time slot within each time period, and Tag Device 1 sends a response message on Response Time Slot 1 within each time period. In a certain time period, the electronic device sends indication information on the target time slot; after receiving the indication information on the target time slot, Tag Device 1 can send a response message on Response Time Slot 1, and the response message includes a request message for requesting the electronic device to update the encryption key for communication between the two; after receiving the response message on Response Time Slot 1, the electronic device can actively resume the BLE connection with Tag Device 1 and negotiate a new key through the BLE connection channel.
[0119] Alternatively, after receiving the response message on Response Time Slot 1, the electronic device can send indication information on the target time slot in the next time period or in a time period separated by several time periods. This indication information can be used for the tag device to determine that the electronic device is online. Further, the indication information can also include the updated key.
[0120] The Bluetooth protocol stack 220 may include a PAwR module 221. The PAwR module 221 can be used for the electronic device to broadcast PAwR messages.
[0121] The chip layer 240 may include a Bluetooth chip 241. It can be understood that the Bluetooth chip 241 may also include a low-power Bluetooth chip.
[0122] It should be understood that other chips may also be included in the chip layer 240, which is not limited in this embodiment of the present application.
[0123] Exemplarily, Figure 4 is a schematic diagram of a scenario to which the management method of this embodiment of the present application can be applied. As Figure 4 shown, Devices 300b, 300c, 300d, 300e, and 300f are tag devices of the same account after being paired with the electronic device 300a.
[0124] The electronic device 300a can maintain a heartbeat keep-alive relationship with the tag device through the BLE connection channel or the PAwR synchronization channel.
[0125] See Figure 4, the electronic device 300a maintains a heartbeat keep-alive relationship with the device 300b through the BLE connection channel. In this case, the electronic device 300a can determine whether the device 300b is online by viewing the connected device information. Alternatively, the device 300b can also send a keep-alive message to the electronic device 300a at preset intervals, so that the electronic device 300a can determine that the device 300b is online. Similarly, the electronic device 300a can also send a keep-alive message to the device 300b at preset intervals, so that the device 300b can determine that the electronic device 300a is online.
[0126] Correspondingly, if the electronic device 300a does not receive the keep-alive message sent by the device 300b after the timeout period, it can be determined that the device 300b is not online.
[0127] It should be understood that the device 300b can be a device with high requirements for timeliness, such as a Bluetooth headset.
[0128] Continue to refer to Figure 4 , the electronic device 300a maintains a heartbeat keep-alive relationship with the devices 300c, 300d, 300e, and 300f through the PAwR synchronization channel.
[0129] For example, in each time period, the electronic device 300a sends indication information in the target time slot, the device 300c sends a response message in the response time slot 0, the device 300d sends a response message 1 in the response time slot 1, the device 300e sends a response message 2 in the response time slot 2, and the device 300f sends a response message 3 in the response time slot 3.
[0130] In this case, in each time period, the electronic device 300a sends indication information in the target time slot, and the tag device can receive the indication information in the target time slot. If the tag device can receive the indication information, it can confirm that the electronic device 300a is online. If the tag device does not receive the indication information in the target time slot within the preset time, it can be determined that the electronic device 300a is not online.
[0131] Similarly, the electronic device 300a receives the corresponding response message in the response time slot in each time period. If the corresponding response message can be received, it can be determined that the corresponding tag device is online. If the corresponding response message is not received in the response time slot within the preset time, it can be determined that the corresponding tag device is not online. At this time, it can be determined that the corresponding device is in a separated state.
[0132] Alternatively, if the electronic device 300a does not receive the corresponding response message in the response time slot for a continuous preset number of time periods, it can be determined that the corresponding tag device is not online. For example, the preset number can be 10 or 15, etc.
[0133] For example, if the device 300c can receive the indication information on the target time slot, it can be confirmed that the electronic device 300a is online. If the device 300c does not receive the indication information on the target time slot within the preset time, it can be determined that the electronic device 300a is not online. For example, the preset time is 10 seconds or 15 seconds.
[0134] Similarly, if the electronic device 300a can receive the response message 0 on the response time slot 0, it can be determined that the device 300c is online. If the electronic device 300a does not receive the response message 0 on the response time slot 0 within the preset time, it can be determined that the device 300c is not online.
[0135] For other tag devices, the electronic device maintains a heartbeat keep-alive relationship with them, which can be referred to the above description. For the sake of brevity, it will not be elaborated here.
[0136] Exemplarily, the PAwR synchronization channel between the electronic device 300a and the device 300d is lost, which can also be understood as that the electronic device 300a and the device 300d cannot detect each other as online, that is, the device 300d is in a separated state. For example, the distance between the electronic device 300a and the device 300d is too far, exceeding the range that can communicate; or, a BLE connection channel or a PAwR synchronization channel cannot be established between the electronic device 300a and the device 300d. In this way, the electronic device 300a can conveniently confirm that the device 300d is in a separated state without maintaining a connection with the device 300d through the BLE channel.
[0137] Figure 5 It is a schematic interaction diagram of a management method provided by an embodiment of the present application. As Figure 5 shown, the method 500 may include steps 510 to step 595.
[0138] In the embodiment of the present application, the electronic device 1 may be a broadcasting party, the electronic devices 2 and 3 are broadcasting scanning parties, and the electronic device 1 may serve as a management device for the electronic devices 2 and 3. For example, the electronic device 1 may be a smart phone, and the electronic devices 2 and 3 may be tag devices owned by the user.
[0139] In other examples, the electronic devices 2 and 3 may also be wearable devices such as Bluetooth headsets and smart watches, and may also be devices such as smart phones and tablets. The present application does not limit this.
[0140] 510, the electronic device 1 establishes a PAwR synchronization channel with the electronic device 2.
[0141] Exemplarily, the electronic device 1 and the electronic device 2 may establish a PAwR synchronization channel under the same credit relationship.
[0142] For example, if electronic device 1 and electronic device 2 belong to the same credit relationship, it may include that electronic device 1 and electronic device 2 have the same account information; or, electronic device 2 can belong to the same credit relationship with electronic device 1 by scanning the QR code generated by electronic device 1; or, electronic device 2 can also belong to the same credit relationship with electronic device 1 by inputting the digital or letter identifier generated by electronic device 1; or, the user grants the credit relationship to electronic device 2 through the confirmation operation in the pairing display interface on electronic device 1.
[0143] Exemplarily, when electronic device 1 and electronic device 2 establish a PAwR synchronization channel, it mainly includes that electronic device 1 can perform clock synchronization with electronic device 2 and allocate response time slots for electronic device 2.
[0144] For example, referring to Figure 6 , Figure 6 is a schematic diagram of a PAwR entity provided by an embodiment of the present application. Electronic device 1 can allocate electronic device 2 under PAwR entity 1 according to the device type of electronic device 2. In PAwR entity 1, electronic device 1 sends indication information 1 on the target time slot of each time period, and electronic device 2 is configured to be able to send response time slot 0 on response time slot 0. Normally, electronic device 1 broadcasts indication information 1 on the target time slot of each time period. If electronic device 2 can receive indication information 1 on the target time slot, it will send response message 0 on response time slot 0 and remain dormant in other time slots. If electronic device 2 cannot receive indication information 1 on the target time slot, it will not send response message 0 on response time slot 0.
[0145] It should be understood that electronic device 1 can allocate response time slots for electronic device 2 through a Bluetooth connection channel or a BLE connection channel. Or, electronic device 1 can also allocate response time slots for electronic device 2 through the PAwR synchronization channel.
[0146] 520, electronic device 1 and electronic device 3 establish a PAwR synchronization channel.
[0147] For example, referring to Figure 6 , electronic device 3 is allocated under PAwR entity 1. In PAwR entity 1, electronic device 3 is configured to send response message 1 on response time slot 1.
[0148] In Figure 6 , other electronic devices can also be configured in PAwR entity 1. For example, electronic device D is configured to send response message 2 on response time slot 2, and electronic device E is configured to send response message 3 on response time slot 3.
[0149] It should be understood that the manner in which the electronic device 1 establishes a PAwR synchronization channel with the electronic device 3 can refer to the description of how the electronic device 1 establishes a PAwR synchronization channel with the electronic device 2 in step 510. For the sake of brevity, it will not be elaborated here.
[0150] 530. The electronic device 1 and the electronic device 2 detect that the other party is online.
[0151] Exemplarily, referring to Figure 6 , for PAwR entity one, the electronic device 1 can send indication information 1 (IND1) on the target time slot of each time period, and the electronic device 2 is configured to send response message 0 on response time slot 0 of each time period. It can be understood that there can be a certain time duration between two adjacent time periods.
[0152] The electronic device 1 can send indication information on the target time slot of each time period. This indication information can be used by the tag device to determine that the first electronic device 1 is online. The electronic device 1 can send response message 0 on response time slot 0.
[0153] In this application, when the electronic device 1 sends indication information on the target time slot, it can also be understood that the electronic device 1 broadcasts the indication information on the target time slot, so that all tag devices configured by users within the communication range can receive the indication information, and the electronic device 1 does not need to establish a BLE connection with the tag device.
[0154] In some embodiments, if the electronic device 2 can receive the indication information on the target time slot of a certain time period, it can be determined that the electronic device 1 is online. If the electronic device 2 cannot receive the indication information on the target time slots of the time periods included within the preset time, it can be determined that the electronic device 1 is not online. At this time, it can also be considered that the electronic device 2 determines that it is in a separated state.
[0155] In some embodiments, if the electronic device 1 can receive response message 0 on response time slot 0 of a certain time period, it can be determined that the electronic device 2 is online. If the electronic device 1 cannot receive the indication information on the response time slots 0 of the time periods included within the preset time, it can be determined that the electronic device 2 is not online. At this time, it can also be considered that the electronic device 1 determines that the electronic device 2 is in a separated state.
[0156] It can be understood that for other tag devices or electronic devices, the electronic device 1 can determine whether they are online through the above - mentioned method.
[0157] 540. The electronic device 1 and the electronic device 3 detect that the other party is online.
[0158] It should be understood that the manner in which electronic device 1 and electronic device 3 detect each other's online status can refer to the description of the manner in which electronic device 1 and electronic device 2 detect each other's online status in step 530. For the sake of brevity, it will not be elaborated here.
[0159] 550. Update the key between electronic device 1 and electronic device 2.
[0160] In this application, there are the following several ways to update the key.
[0161] Way 1: Electronic device 1 can update the key through the BLE connection channel.
[0162] Exemplarily, continue to refer to Figure 6 , electronic device 2 sends response message 0 on response time slot 0 within each time period. If electronic device 1 receives response message 0 sent by electronic device 2 on response time slot 0 within a certain time period, then electronic device 1 can determine that electronic device 2 is online. At this time, electronic device 1 can actively resume the BLE connection with electronic device 2 and negotiate a new key through the BLE connection channel.
[0163] Way 2: Electronic device 1 can also update the key through PAwR broadcast.
[0164] Exemplarily, continue to refer to Figure 6 , electronic device 1 sends indication message 1 on the target time slot within each time period, and this indication message 1 can be used for electronic device 2 to determine that electronic device 1 is online. Further, the updated key can also be included in the indication message 1, so that when electronic device 2 receives the indication message 1 on the target time slot, it can determine the updated key. In this way, electronic device 1 does not need to update the key through a Bluetooth connection or a BLE connection channel, thus saving the power consumption of electronic device 1.
[0165] Way 3: Electronic device 1 can also update the key through the BLE connection channel according to the request message of electronic device 2.
[0166] Exemplarily, continue to refer to Figure 6 , electronic device 1 sends indication message 1 on the target time slot within each time period, and electronic device 2 sends response message 0 on response time slot 0 within each time period. In a certain time period, electronic device 1 sends indication message 1 on the target time slot; after electronic device 2 receives this indication message 1 on the target time slot, it can send response message 0 on response time slot 0, and this response message 0 includes a request message for requesting electronic device 1 to update the encryption key for their communication; after electronic device 1 receives this response message 0 on response time slot 0, it can actively resume the BLE connection with electronic device 2 and negotiate a new key through the BLE connection channel.
[0167] Alternatively, after receiving the response message 0 on response time slot 0, the electronic device 1 may send indication information 1 on a target time slot in the next time period or a time period separated by several time periods. The indication information 1 may be used by the electronic device 2 to determine whether the electronic device 1 is online. Further, the indication information 1 may further include an updated key. Alternatively, the indication information 1 may include handshake information for indicating the generation of a key.
[0168] 560. Update the key between the electronic device 1 and the electronic device 3.
[0169] It can be understood that the method for the electronic device 1 to update the key with the electronic device 3 may refer to the method for updating the key with the electronic device 2 in step 550 in the foregoing text. For the sake of brevity, it will not be elaborated here.
[0170] 570. When the electronic device 3 determines that it is in a separated state, broadcast a separation state message.
[0171] In some embodiments, referring to the foregoing description, when the electronic device 3 does not receive the indication information on the response time slot 0 of the time periods included within a preset time, it may be determined that the electronic device 2 is not online, and the electronic device 3 is regarded as offline. At this time, the electronic device 3 may determine that it is in a separated state, and the electronic device 3 will broadcast a separation state message, which may include account-related information. The account-related information may be encrypted using an encryption key to ensure its security.
[0172] In some embodiments, when the distance between the electronic device 3 and the electronic device 1 is greater than a preset distance, it may also be determined that the electronic device 3 is in a separated state. For example, the electronic device 3 determines the distance between the electronic device 3 and the electronic device 1 according to the signal strength of the received signal. When it is determined that the distance is greater than the preset distance, it may be determined that it is in a separated state.
[0173] In some embodiments, when the electronic device 3 cannot establish a BLE connection with the electronic device 1, it may be determined that the electronic device 3 is in a separated state.
[0174] Similarly, the electronic device 1 may also determine that the electronic device 3 is in a separated state.
[0175] 580. When the electronic device 4 detects the separation state message, determine the time and location information.
[0176] The electronic device 4 may be referred to as a good Samaritan device. For example, the electronic device 4 may be a smartphone of another user. When the fourth electronic device 4 detects the separation state message broadcast by the electronic device 3, it may determine the current time and location information as a reference for the user to find the location of the electronic device 3.
[0177] Optionally, the electronic device 4 may also only determine the location information, which is not limited in the embodiments of the present application.
[0178] 590, the electronic device 4 sends the separation status message, time, and location information to the cloud server.
[0179] The electronic device 4 may delete the separation status message, time, and location information to the cloud server, and the cloud server may save the separation status message, time, and location information.
[0180] 595, the electronic device 1 obtains the time and location information from the cloud server.
[0181] Exemplarily, the electronic device 1 may perform a search operation through an application for finding the location of an item, so as to obtain the location information and time from the cloud server, which is beneficial for the user to smoothly find the location where the electronic device 3 is located.
[0182] Based on the embodiments of the present application, after the electronic device 1 establishes a PAwR synchronization channel with other tag devices, in the case of a large number of tag devices, bidirectional keep-alive can be performed through the PAwR synchronization channel, so that messages can be sent without using an actual Bluetooth connection or BLE connection channel, avoiding the electronic device 1 from periodically establishing connections with the tag devices, thereby saving the power consumption of the electronic device.
[0183] In addition, the electronic device 1 may also update the encryption key for communication between the electronic device 1 and the tag device through the PAwR synchronization channel, so as to avoid periodically updating the key through the BLE connection channel, thereby reducing the power consumption of the electronic device 1.
[0184] In some cases, if the user has a large number of tag devices, the electronic device 1 may allocate multiple tag devices under multiple PAwR entities according to the types of the tag devices, that is, the electronic device 1 may start multiple PAwR broadcasts with different duty cycles.
[0185] Figure 7 It is a schematic diagram of another PAwR entity provided by the embodiments of the present application.
[0186] See Figure 7 , in PAwR entity two, within each time period corresponding to PAwR entity two, the electronic device 1 may send indication information 2 (IND2) on target time slot 2, the electronic device F is configured to send a response message on response time slot 0, the electronic device G is configured to send a response message on response time slot 1, and the electronic device H is configured to send a response message on response time slot 2.
[0187] It can be understood that the time period of PAwR entity two can be different from that of PAwR entity one.
[0188] For example, the electronic devices F, G, and H are label devices with low requirements for timeliness. For example, they can be label devices mounted on items such as suitcases and backpacks. Then, the electronic device 1 can send a broadcast, that is, indication information 2, once every time interval T1 to confirm whether the label device is online. If no response message is received within the preset time T2, it can be determined that the label device is offline.
[0189] In this way, since some label devices have low requirements for timeliness, the electronic device 1 does not need to frequently send the indication information 2, thus saving the power consumption of the electronic device 1.
[0190] Exemplarily, see Figure 6 , in PAwR entity one, the electronic devices 2, 3, D, and E can be products with high requirements for timeliness. For example, they can be devices such as Bluetooth headsets (single earphones, earphone cases). Then, the electronic device 1 can send a broadcast, that is, indication information 1, once every time interval T3 to confirm whether the device is online. If no response message is received within the preset time T4, it can be determined that the device is offline, where T1 is greater than T3 and T2 is greater than T4.
[0191] In this way, for multiple types of label devices, the electronic device 1 can start multiple PAwR broadcasts with different duty cycles, thus saving the power consumption of the electronic device 1 as much as possible while meeting different user requirements.
[0192] In some cases, the user can also manually adjust which PAwR entity a certain label device is in.
[0193] For example, the electronic device 1 can adjust the electronic device F from PAwR entity two to PAwR entity one according to the user's operation, and the electronic device F is configured to be able to send a response message 4 on response time slot 4.
[0194] Exemplarily, the electronic device 1 can adjust the electronic device F from PAwR entity two to PAwR entity one according to the switching operation of the user in the control application.
[0195] In some embodiments, the electronic device 1 can dynamically allocate response time slots for the tag devices. For example, at a certain moment, if the electronic device 3 is in a separated state and at this time, there are other tag devices N that need to be configured, then the electronic device 1 can configure the tag device N to send the corresponding response message 1 on the response time slot 1. In this way, when the user has a large number of tag devices and some of the tag devices are offline, the electronic device 1 does not need to listen for response messages in each response time slot, thereby reducing the power consumption of the electronic device 1 and saving the connection resources and air interface antenna resources of the electronic device 1.
[0196] Figure 8 is a schematic flowchart of a management method provided by an embodiment of the present application. As Figure 8 shown, the method 800 can be applied to an electronic device, and the method 800 can at least include steps 810 to 850.
[0197] 810. When the first electronic device and the second electronic device belong to the same trusted relationship, the first electronic device and the second electronic device establish a PAwR synchronization channel.
[0198] It can be understood that the first electronic device can be a broadcasting party, and the second electronic device, the third electronic device, and the fourth electronic device are broadcasting scanning parties. The first electronic device can be used as a management device for the second electronic device, the third electronic device, and the fourth electronic device. For example, the first electronic device can be a smart phone, and the second electronic device, the third electronic device, and the fourth electronic device can be tag devices owned by the user.
[0199] It should be understood that the first electronic device and the second electronic device belonging to the same trusted relationship can include that the first electronic device and the second electronic device have the same account information; or, the second electronic device can be in the same trusted relationship with the first electronic device by scanning the QR code generated by the first electronic device; or, the second electronic device can also be in the same trusted relationship with the first electronic device by inputting the digital or letter identifier generated by the first electronic device; or, the user grants a trusted relationship to the electronic device 2 through a confirmation operation in the pairing display interface on the electronic device 1.
[0200] For example, when the first electronic device configures a network for the second electronic device and configures an account for the second electronic device, at this time, the first electronic device and the second electronic device belong to the same trusted relationship.
[0201] In some examples, the first electronic device and the second electronic device establishing a PAwR synchronization channel mainly can include that the first electronic device and the second electronic device perform clock synchronization, and the first electronic device allocates a response time slot for the second electronic device so that the second electronic device can access the PAwR.
[0202] For example, the first electronic device may allocate a first response time slot for the second electronic device, and the second electronic device may broadcast a response message on the first response time slot.
[0203] 820, PAwR has a time period. Within each time period, the first electronic device sends first indication information on a first time slot, and the first indication information is used for the second electronic device to determine whether the second electronic device is in a separated state. Correspondingly, within each time period, the second electronic device receives the first indication information on the first time slot.
[0204] Within each time period of a PAwR, the first electronic device may broadcast first indication information on the first time slot so that the second electronic device can determine whether it is in a separated state.
[0205] This time period may also be referred to as a clock period, and this time period has broadcast interval parameters, such as a minimum broadcast interval (primary_advertising_interval_min) and a maximum broadcast interval (primary_advertising_interval_max).
[0206] 830, the second electronic device determines whether the second electronic device is in a separated state according to the first indication information.
[0207] In one example, the second electronic device may determine the distance between the first electronic device and the second electronic device according to the signal strength of the first indication information. If the distance is greater than a first preset value, the second electronic device determines that it is in a separated state; if the distance is less than or equal to the first preset value, the second electronic device determines that it is not in a separated state.
[0208] In this way, the second electronic device can determine whether it is in a separated state only according to the signal strength of the received first indication information, simplifying the process for the second electronic device to determine the separated state.
[0209] In another example, if the second electronic device does not receive the first indication information on the first time slot within the time periods included in a preset time, it determines that the second electronic device is in a separated state.
[0210] Exemplarily, the embodiments of the present application do not limit the specific value of the preset time. For example, the preset time is 10 seconds or 15 seconds, etc.
[0211] In this way, the second electronic device can determine whether it is in a separated state only according to whether it receives the first indication information, simplifying the process for the second electronic device to determine the separated state.
[0212] 840. Within each time period, the second electronic device sends a first response message during the first response time slot. Correspondingly, within each time period, the first electronic device receives the first response message during the first response time slot.
[0213] Exemplarily, within each time period, if the second electronic device can receive the first indication information during the first time slot, the second electronic device will send a first response message during the first response time slot. Correspondingly, the first electronic device can receive the first response message during the first response time slot.
[0214] 850. The first electronic device determines whether the second electronic device is in a separated state based on the first response message.
[0215] In one example, the first electronic device determines the distance between the first electronic device and the second electronic device based on the signal strength of the first response message; if the distance is greater than a first preset value, it is determined that the second electronic device is in a separated state.
[0216] In this way, the first electronic device can determine whether the second electronic device is in a separated state only based on the signal strength of the received first response information, simplifying the process of determining that the second electronic device is in a separated state.
[0217] In another example, if the first electronic device does not receive the first response message during the first response time slots within the time periods included in the preset time, it is determined that the second electronic device is in a separated state.
[0218] In this way, the first electronic device can determine whether the second electronic device is in a separated state only based on whether it receives the first response information, simplifying the process of determining that the second electronic device is in a separated state.
[0219] In other examples, when determining that the second electronic device is in a separated state, the first electronic device can also output a prompt. For example, the first electronic device can display information indicating that the second electronic device is lost on the display interface.
[0220] Based on the embodiments of the present application, when the first electronic device and the second electronic device belong to the same trusted relationship, the first electronic device and the second electronic device establish a PAwR synchronization channel, and can determine whether the other party is online based on this PAwR synchronization channel, without periodically restoring the wireless connection subsequently, thereby saving the power consumption of the first electronic device. In addition, in the case where the number of second electronic devices is large, this technical solution does not require the first electronic device to periodically establish connections with multiple devices, thereby greatly reducing the power consumption of the first electronic device and saving the wireless connection resources and antenna air interface resources of the first electronic device.
[0221] In some embodiments, the method 800 further includes:
[0222] Within a time period after receiving the first response message, the first electronic device sends first indication information on a corresponding first time slot, and the first indication information is used to indicate handshake information for generating a key, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
[0223] It can be understood that the key can be negotiated and generated by the first electronic device and the second electronic device through some handshake information, and the handshake information can be carried in the first indication information.
[0224] For example, within the first time period 1, if the first electronic device receives the first response message on the first response time slot, the first electronic device can send the first indication information on the first time slot within the next time period 1 or within a time period separated by several time periods.
[0225] Based on the embodiments of the present application, the first electronic device can broadcast and update the key through PAwR, so that there is no need to restore the wireless connection channel with the second electronic device, thereby saving the power consumption of the first electronic device.
[0226] In some embodiments, the first response message includes a first request message, and the first request message is used to request to establish a wireless connection channel with the first electronic device.
[0227] Based on the embodiments of the present application, when the second electronic device needs to restore the wireless connection with the first electronic device, it can send a request message for requesting to establish a wireless connection channel to the first electronic device through the first response message, which is beneficial for the first electronic device to determine when to restore the wireless connection with the second electronic device.
[0228] In some embodiments, the method 800 further includes:
[0229] The first electronic device establishes a wireless connection channel with the second electronic device according to the first request message;
[0230] Generate a key through the wireless connection channel, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
[0231] Based on the embodiments of the present application, the first electronic device can also generate a key according to the request of the second electronic device, so as to update the key as needed and avoid unnecessary power consumption.
[0232] In some embodiments, the method 800 further includes:
[0233] Within a time period after receiving the first response message, the first electronic device generates a key through the wireless connection channel, and the key is used to encrypt the communication data between the first electronic device and the second electronic device.
[0234] It is understandable that the first electronic device can negotiate a key with the second electronic device through a wireless connection channel.
[0235] Based on the embodiments of the present application, after receiving the first response message, the first electronic device can determine that the second electronic device is not in a separated state, so that it can actively restore the wireless connection channel to negotiate a new key.
[0236] In some embodiments, the method 800 further includes:
[0237] When the first electronic device and the third electronic device belong to the same trusted relationship, the first electronic device and the third electronic device establish a PAwR synchronization channel, where the third electronic device can send a second response message in the first response time slot.
[0238] It should be understood that the manner in which the first electronic device and the third electronic device establish a PAwR synchronization channel can refer to the related description of how the first electronic device and the second electronic device establish a PAwR synchronization channel in the foregoing. For the sake of brevity, it will not be elaborated here.
[0239] When it is determined that the second electronic device is in a separated state and the first response time slot corresponding to the second electronic device is idle, the first electronic device can allocate the first response time slot for the second electronic device to send a response message to the newly connected third electronic device. Thus, the first electronic device dynamically allocates response time slots for other electronic devices, which can avoid the first electronic device from listening for messages in multiple time slots, thereby saving the power consumption of the first electronic device.
[0240] In some embodiments, the method 800 further includes:
[0241] When the first electronic device and the fourth electronic device belong to the same authorization relationship, the first electronic device and the fourth electronic device establish a PAwR synchronization channel, where the fourth electronic device can send a second response message in the second response time slot, and the second response time slot and the first response time slot belong to different PAwRs with different time periods.
[0242] It should be understood that the manner in which the first electronic device and the fourth electronic device establish a PAwR synchronization channel can refer to the related description of how the first electronic device and the second electronic device establish a PAwR synchronization channel in the foregoing.
[0243] For example, the first electronic device allocates a second response time slot for the fourth electronic device, and the fourth electronic device can send a second response message in this second response time slot.
[0244] The second response time slot and the first response time slot belong to different PAwRs with different time periods. Herein, the different time periods can be understood as having different broadcast interval parameters. For example, the broadcast interval parameters can include a maximum broadcast interval and a minimum broadcast interval (see Bluetooth 5.4, 7.8.53 LE Set Extended Advertising Parameters command), and different PAwRs refer to PAwRs with different advertising identifiers (advertising_sid) (see Bluetooth 5.4, 7.8.53 LE Set Extended Advertising Parameters command).
[0245] Based on the embodiments of the present application, the first electronic device can allocate different time periods for the tag devices according to different types of the accessed electronic devices. That is, multiple electronic devices can be under different PAwR entities. In this way, for multiple types of tag devices, the first electronic device can start PAwR broadcasts with multiple different duty cycles, so as to save the power consumption of the first electronic device as much as possible while meeting different user requirements.
[0246] In some embodiments, the method 800 further includes:
[0247] In response to a first operation of the user, allocate a third response time slot for a fourth electronic device, where the fourth electronic device can send a second response message on the third response time slot, and the third response time slot and the first response time slot belong to the same time period.
[0248] Exemplarily, the first operation may be an operation in which the user adjusts the PAwR entity where the fourth electronic device is located in the application for managing tag devices of the first electronic device.
[0249] For example, if the first electronic device originally allocated the second response time slot in the time period of PAwR entity 1 for the fourth electronic device, after the user performs the first operation, the first electronic device can allocate the third response time slot in the time period of PAwR entity 2 for the fourth electronic device.
[0250] Based on the embodiments of the present application, the user can also change the PAwR entity where the tag device is located, so as to meet the user's usage requirements for different tag devices.
[0251] In this way, when the user hopes that the first electronic device can quickly remind the fourth electronic device of the separated state, the fourth electronic device can be switched to the PAwR entity for quick reminder.
[0252] Figure 9 It is a schematic block diagram of an electronic device provided by the embodiments of the present application. AsFigure 9 As shown, the electronic device 900 may include one or more processors 910; one or more memories 920; the one or more memories 920 store one or more instructions, and when the instructions are executed by the one or more processors 910, the management method described in any of the possible implementation manners as described above is executed.
[0253] Exemplarily, the electronic device 900 may be the electronic device 200, electronic device 300, electronic device 1, electronic device 2, electronic device 3, the first electronic device, the second electronic device, etc. as described above.
[0254] An embodiment of the present application further provides a management device, including a processor and a communication interface. The communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the management method described in any of the possible implementation manners as described above is executed.
[0255] The device may be a chip. For example, the chip may be a chip system or an independent chip, etc.
[0256] An embodiment of the present application further provides a system, which may include the first electronic device and the second electronic device as described above, and a third electronic device or a fourth electronic device.
[0257] An embodiment of the present application further provides a readable storage medium, in which instructions are stored. When the instructions run on an electronic device, the electronic device executes the above-related method steps to implement the management method in the above embodiment.
[0258] An embodiment of the present application further provides a program product. When the program product runs on an electronic device, the electronic device executes the above-related steps to implement the management method in the above embodiment.
[0259] An embodiment of the present application further provides a management device, including modules for implementing the management method described in any of the above embodiments.
[0260] In addition, an embodiment of the present application further provides a device, which may specifically be a chip, a component or a module. The device may include a processor and a memory connected to each other; wherein, the memory is used to store instructions, and when the device runs, the processor may execute the instructions stored in the memory so that the device executes the management method in each of the above method embodiments.
[0261] Among them, the device, readable storage medium, program product or device provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here.
[0262] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.
[0263] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0264] In several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be electrical, mechanical, or other forms.
[0265] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0266] In addition, the functional units in each embodiment of this application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
[0267] When the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art or a part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The foregoing storage medium includes: various media that can store program codes such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks, or optical discs.
[0268] As described above, the above are only specific implementation manners of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed by this application can easily think of changes or substitutions, which should all be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims
1. A management method, characterized in that, The method is applied to a first electronic device, and the method includes: When the first electronic device and the second electronic device belong to the same trusted relationship, the first electronic device and the second electronic device establish a Periodic Advertisement with Response (PAwR) synchronization channel with response. The PAwR has a time period. Within each time period, the first electronic device sends first indication information on a first time slot, and the first indication information is used for the second electronic device to determine whether the second electronic device is in a separated state. Within each time period, the first electronic device receives a first response message sent by the second electronic device on a first response time slot. The first electronic device determines whether the second electronic device is in a separated state according to the first response message.
2. The method according to claim 1, wherein The method further includes: Within the time period after receiving the first response message, the first electronic device sends the first indication information on the corresponding first time slot, and the first indication information includes handshake information for indicating the generation of a key, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
3. The method according to claim 1, wherein The first response message includes a first request message, and the first request message is used to request to establish a wireless connection channel with the first electronic device.
4. The method according to claim 3, wherein The method further includes: Establish a wireless connection channel with the second electronic device according to the first request message; Generate a key through the wireless connection channel, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
5. The method according to claim 1, wherein The method further includes: Within the time period after receiving the first response message, the first electronic device and the second electronic device establish a wireless connection channel; Generate a key through the wireless connection channel, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: The first electronic device determines the distance between the first electronic device and the second electronic device according to the signal strength of the first response message; If the distance is greater than a first preset value, it is determined that the second electronic device is in a separated state.
7. The method according to any one of claims 1-5, characterized in that, The method further includes: If the first electronic device does not receive the first response message on the first response time slot within the time periods included in a preset time, it is determined that the second electronic device is in a separated state.
8. The method according to claim 6 or 7, characterized in that, The method further includes: When the first electronic device and a third electronic device belong to the same trusted relationship, the first electronic device and the third electronic device establish a PAwR synchronization channel, where the third electronic device can send a second response message on the first response time slot.
9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: When the first electronic device and a fourth electronic device belong to the same authorization relationship, the first electronic device and the fourth electronic device establish a PAwR synchronization channel, where the fourth electronic device can send a second response message on a second response time slot, and the second response time slot and the first response time slot belong to different PAwRs with different time periods.
10. The method according to claim 9, wherein The method further includes: In response to a first operation of the user, a third response time slot is allocated to the fourth electronic device, where the fourth electronic device can send the second response message on the third response time slot, and the third response time slot and the first response time slot belong to the same time period.
11. A management method, characterized in that, The method is applied to a second electronic device, and the method includes: When the second electronic device and the first electronic device belong to the same trusted relationship, the second electronic device and the first electronic device establish a periodic broadcast with response PAwR synchronization channel; The PAwR has a time period. Within each time period, the second electronic device receives first indication information sent by the first electronic device on a first time slot, and the first indication information is used for the second electronic device to determine whether the second electronic device is in a separated state; The second electronic device determines whether the second electronic device is in a separated state according to the first indication information; Within each time period, the second electronic device sends a first response message on a first response time slot.
12. The method according to claim 11, wherein The first indication information includes handshake information for generating a key, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
13. The method according to claim 11, wherein The first response message includes a first request message, and the first request message is used to request to establish a wireless connection channel with the first electronic device.
14. The method according to claim 13, characterized in that, The method further includes: Establishing a wireless connection channel with the second electronic device; Generating a key through the wireless connection channel, and the key is used to encrypt communication data between the first electronic device and the second electronic device.
15. The method according to any one of claims 11-14, characterized in that, The method further includes: The second electronic device determines the distance between the first electronic device and the second electronic device according to the signal strength of the first indication information; If the distance is greater than a first preset value, it is determined that the second electronic device is in a separated state.
16. The method according to any one of claims 11-14, characterized in that, The method further includes: If the second electronic device does not receive the first indication information on the first time slot within the time periods included in the preset time, it is determined that the second electronic device is in a separated state.
17. An electronic device, characterized in that, Includes: One or more processors; One or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the management method according to any one of claims 1-16 is executed.
18. A system, characterized in that, Includes: A first electronic device for executing the management method according to any one of claims 1-10; And a second electronic device for executing the management method according to any one of claims 10-16.
19. A chip, characterized in that, The chip includes a processor and a communication interface. The communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the management method according to any one of claims 1-16 is executed.
20. A readable storage medium, characterized in that, Instructions are stored in the readable storage medium, and when the instructions run on an electronic device, the management method according to any one of claims 1-16 is executed.
21. A program product, characterized in that, The program product includes program code which, when run on an electronic device, causes the management method according to any one of claims 1-16 to be executed.