WO2024067803A1 - 数据处理方法、数据处理装置、电子设备和可读存储介质 - Google Patents

数据处理方法、数据处理装置、电子设备和可读存储介质 Download PDF

Info

Publication number
WO2024067803A1
WO2024067803A1 PCT/CN2023/122563 CN2023122563W WO2024067803A1 WO 2024067803 A1 WO2024067803 A1 WO 2024067803A1 CN 2023122563 W CN2023122563 W CN 2023122563W WO 2024067803 A1 WO2024067803 A1 WO 2024067803A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
broadcast data
moment
address information
target
Prior art date
Application number
PCT/CN2023/122563
Other languages
English (en)
French (fr)
Inventor
余文杰
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2024067803A1 publication Critical patent/WO2024067803A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application belongs to the field of data processing technology, and specifically relates to a data processing method, a data processing device, an electronic device and a readable storage medium.
  • Bluetooth has become an important way for networking and communication between electronic devices.
  • the Bluetooth chip When an electronic device frequently receives broadcast data packets sent by other electronic devices through a Bluetooth chip, the Bluetooth chip will send all received broadcast data packets to the central processing unit (CPU) for processing, causing the CPU to be frequently awakened regardless of whether the electronic device is in the screen-off state or the screen-on state, resulting in increased CPU power consumption.
  • CPU central processing unit
  • the purpose of the embodiments of the present application is to provide a data processing method, a data processing device, an electronic device and a readable storage medium, which can solve the problem that the Bluetooth chip frequently reports broadcast data packets, resulting in excessive power consumption of the central processing unit.
  • an embodiment of the present application provides a data processing method, including:
  • the first information includes at least one of the following:
  • the address information of the first broadcast data packet is the address information of the first broadcast data packet.
  • an embodiment of the present application provides a data processing device, including:
  • An acquisition module used for acquiring a first broadcast data packet received by the Bluetooth chip
  • a determination module configured to determine a target broadcast data packet from the first broadcast data packet according to the first information
  • a wake-up module used for waking up a central processing unit based on the target broadcast data packet
  • the first information includes at least one of the following:
  • the address information of the first broadcast data packet is the address information of the first broadcast data packet.
  • an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
  • an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
  • an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
  • the first broadcast data obtained from the Bluetooth chip according to the first information By determining the target broadcast data packet from the data packet, the first broadcast data packet can be filtered and the target broadcast data packet can be reported to the central processing unit, which can effectively reduce the number of times the central processing unit is awakened, thereby reducing the impact of frequent awakening of the central processing unit on its power consumption and performance.
  • FIG1 is a schematic diagram of a flow chart of a data processing method provided in an embodiment of the present application.
  • FIG2 is a schematic diagram of a structure of an electronic device provided in an embodiment of the present application.
  • FIG3 is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application.
  • FIG4 is a second structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 5 is a hardware schematic diagram of an electronic device provided in an embodiment of the present application.
  • first, second, etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
  • the CPU and the Bluetooth chip of the electronic device communicate bidirectionally through the serial port Universal Asynchronous Receiver/Transmitter (UART) or the serial peripheral interface (SPI) bus.
  • UART Universal Asynchronous Receiver/Transmitter
  • SPI serial peripheral interface
  • the CPU can issue commands to the Bluetooth chip so that the Bluetooth chip can scan the broadcast data of the specified type.
  • the data packet may be, for example, a broadcast data packet of a low-power Bluetooth module (Bluetooth Low Energy, BLE).
  • BLE Bluetooth Low Energy
  • the CPU determines whether to perform deduplication filtering. If deduplication filtering is performed, the Bluetooth chip can report the broadcast data packet corresponding to the address information of the same electronic device only once. If deduplication filtering is not performed, the Bluetooth chip can report the broadcast data packet corresponding to the same address information scanned each time. The reporting of the broadcast data packet refers to sending the broadcast data packet to the CPU.
  • the Bluetooth chip aggregates all the scanned broadcast data packets to the CPU for processing. This processing method will frequently wake up the CPU even when the screen is off, thereby affecting the standby power consumption of the electronic device, and will also increase the CPU load when the screen is on.
  • the screen-off state is a state in which the backlight of the electronic device is normally turned off and the screen is off. If the electronic device exits the screen-off state, it can enter the screen-on state.
  • the screen-on state is a state in which the backlight of the electronic device is turned on and is in normal operation.
  • the data processing method provided in the embodiments of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the data processing method.
  • the electronic devices mentioned in the embodiments of the present application include but are not limited to mobile phones, tablet computers, computers, cameras, wearable devices, etc.
  • the data processing method provided in the embodiments of the present application is described below using an electronic device as an example of an execution subject.
  • Fig. 1 is a flow chart of a data processing method provided in an embodiment of the present application. As shown in Fig. 1 , the data processing method may include step 110, step 120 and step 130.
  • Step 110 Acquire the first broadcast data packet received by the Bluetooth chip
  • Step 120 Determine a target broadcast data packet from the first broadcast data packet according to the first information
  • Step 130 waking up the central processing unit based on the target broadcast data packet
  • the first information includes at least one of the following:
  • the electronic device may obtain a first broadcast data packet received by the Bluetooth chip.
  • the first broadcast data packet may be all or part of the broadcast data packets scanned by the Bluetooth chip at the current moment. Part of the broadcast data packets may be obtained by setting a preset condition, such as obtaining only the broadcast data packets whose signal strength exceeds a certain threshold as the first broadcast data packet.
  • the CPU may also issue a read instruction to actively obtain at least part of the first broadcast data packet, so that the CPU can obtain the required broadcast data packet in a timely manner without waiting for an excessively long scanning time.
  • the first broadcast data packet may be further filtered according to the first information, that is, a target broadcast data packet may be screened out from the first broadcast data packet, where the target broadcast data packet is a data packet reported to the CPU.
  • the first information is one or more of the signal strength of the first broadcast data packet, the data content corresponding to the first broadcast data packet, and the address information of the first broadcast data packet.
  • the signal strength is a strength indicator value of a received signal and can be used to indicate the quality of a signal link.
  • the data content can be privately defined data in the broadcast data packet, for example, private protocol data of applications corresponding to different services.
  • the data can reflect which Internet service is currently used in the foreground or the account information of the machine, etc.
  • the address information can be used to identify different electronic devices. For example, it can be the unique Media Access Control Address (MAC) information used by Bluetooth devices when exchanging data.
  • MAC Media Access Control Address
  • the relevant conditions corresponding to the first information need to be pre-set in order to determine the target broadcast data packet from the first broadcast data packet.
  • the various conditions satisfied by the target broadcast data packet will be described in detail from multiple aspects.
  • the target broadcast data packet may be reported to To the CPU, so as to wake up the CPU; or when the CPU has a read operation, a target broadcast data packet can be sent to the CPU, which can also wake up the CPU.
  • electronic devices are set to send out permanent BLE broadcasts to allow the other device to sense the local device in the near field.
  • permanent BLE broadcasts will affect the power consumption and wireless performance of electronic devices, so the scanning time interval of BLE broadcasts will be set to be larger. For example, it can be set to send a BLE broadcast every 1 to 2 seconds, and the scanning will only start when the service is triggered. Therefore, in this scenario, when the service is triggered, it takes some time for the electronic device to scan and display nearby devices. It usually takes 2 to 20 seconds to complete the search, which is time-consuming.
  • Permanent BLE scanning is a low-power mode with a duty cycle of 10%; when the business application is in the foreground, the duty cycle is 100%.
  • electronic devices can be set not to perform BLE scanning when the screen is off, which will also result in the inability to obtain the scanned device data in a timely manner.
  • the embodiment of the present application can not only reduce the CPU load or reduce the number of CPU wake-up times while reducing the number of reports of broadcast data packets, but also return the result immediately when the CPU needs near-field device data without waiting for a long scanning time.
  • the programmable device can be set to cache the first broadcast data packet.
  • the CPU can set a specific command to enable the programmable device to obtain the first broadcast data packet received by the Bluetooth chip in the screen-off or screen-on state, and cache the first broadcast data packet in the data queue of the device.
  • the device can also send the broadcast data packet cached in the data queue to the CPU based on the read instruction sent by the CPU.
  • the CPU can set a filtering condition related to the first information in the device, so as to determine the target broadcast data packet from the first broadcast data packet obtained by the device. Then, based on the target broadcast data packet, the target broadcast data packet can be actively reported to the CPU, or based on the read instruction sent by the CPU, the target broadcast data packet can be sent to the CPU.
  • the above-mentioned programmable device can also be implemented by other functional modules in the electronic device, which is not specifically limited here.
  • the first broadcast data packet can be filtered, and the target broadcast data packet can be reported to the central processing unit, which can effectively reduce the number of times the central processing unit is awakened, thereby reducing the impact of frequent awakening of the central processing unit on its power consumption and performance.
  • the target broadcast data packet is a broadcast data packet that satisfies a first condition
  • the first condition is:
  • the difference between the signal strength of the target broadcast data packet and the signal strength of the second broadcast data packet received at the second moment is greater than the first threshold, the signal strength of the target broadcast data packet is greater than the signal strength of the second broadcast data packet, and the address information of the target broadcast data packet is the same as the address information of the second broadcast data packet, the second moment is earlier than the first moment, and the first moment is the moment of receiving the target broadcast data packet.
  • the first broadcast data packet may include a target broadcast data packet received at a first time and a second broadcast data packet received at a second time, wherein the second time is earlier than the first time.
  • the first time is 10 o'clock on September 1, 2022
  • the second time is 9 o'clock on September 1, 2022.
  • the above time is only used as an example, and the embodiments of the present application do not specifically limit the time.
  • the signal strength change may include the following situations: the signal strength remains unchanged, the signal strength decreases, or the signal strength increases.
  • the signal strength change value can be measured by a first threshold value.
  • the signal strength change value exceeds the first threshold value, it can be said that the signal strength fluctuation is too large, and the broadcast data packet after the signal strength change needs to be reported to inform the CPU that the broadcast data packet corresponding to the address information needs to be updated; when the signal strength change value does not exceed the first threshold value, it can be said that the signal strength fluctuation is small and no reporting is required.
  • the first threshold value can be set according to actual needs and is not specifically limited here.
  • the first threshold value can be 5db or 10db, or can be set to a floating range, such as 5db to 10db.
  • the signal strength of the target broadcast data packet is greater than the signal strength of the second broadcast data packet
  • the signal strength of the target broadcast data packet is When the difference between the signal strength of the target broadcast data packet and the signal strength of the second broadcast data packet is greater than the first threshold, it indicates that compared with the second moment, the signal strength change value of the target broadcast data packet received at the first moment exceeds the first threshold.
  • the target broadcast data packet can be considered as a broadcast data packet that meets the first condition.
  • Scenario 1 When the tablet is in the screen-off state, if you need to realize the function of automatically lighting the screen and unlocking it when the mobile phone of the same user is approaching, the relevant technology will make the tablet scan the BLE broadcast of the mobile phone all the time when the screen is off, which will frequently wake up the CPU of the tablet and affect its sleep power consumption.
  • the solution of this embodiment can effectively reduce this influence. Only when the signal strength of the BLE broadcast data packet corresponding to the mobile phone increases to a certain level, the CPU of the tablet computer will be actively awakened, thereby significantly reducing the frequency of CPU awakening.
  • Scenario 2 In crowded places, mobile phones often receive a large number of frequent BLE broadcasts, which slows down CPU performance and even affects standby power consumption.
  • the minimum interval defined in the Bluetooth BLE broadcast protocol is 20ms, and the Bluetooth headset will send a high-frequency BLE broadcast (close to 20ms) after the cover is opened.
  • the BLE broadcast event brought by a Bluetooth headset is 500 times per second. Then when there are multiple Bluetooth headsets nearby, high-frequency BLE broadcast reports will appear in the CPU of the mobile phone performing BLE scanning.
  • the Bluetooth chip will report multiple BLE broadcast events every 1ms, and the Bluetooth process of the mobile phone and related business processes will also be seriously affected by the load.
  • the embodiment of the present application can pre-process such high-frequency BLE broadcasts, that is, when a broadcast data packet with the same address information is searched, the CPU will only be woken up when the signal strength change value of the broadcast data packet exceeds a first threshold, thereby significantly reducing the CPU wake-up frequency.
  • the first condition is set to determine the target broadcast data packet through the signal strength and address information of the first broadcast data packet, which can greatly reduce the number of reports of the broadcast data packet, thereby effectively reducing the load of the central processing unit, solving the problem of high-frequency broadcast interruption caused by permanent scanning and even affecting the performance of the central processing unit, and at the same time can reduce the waiting time in the off-screen state.
  • the power consumption of the electronic device can be reduced, thereby extending the standby time of the electronic device.
  • the target broadcast data packet is a broadcast data packet that satisfies the second condition
  • the second condition is:
  • the data content corresponding to the target broadcast data packet is different from the data content corresponding to the third broadcast data packet received at the third moment, and the address information of the target broadcast data packet is the same as the address information of the third broadcast data packet.
  • the third moment is earlier than the first moment, and the first moment is the moment of receiving the target broadcast data packet.
  • the first broadcast data packet may include a target broadcast data packet received at a first time and a third broadcast data packet received at a third time, wherein the third time is earlier than the first time.
  • the first time is 10:00 on September 1, 2022
  • the third time is 9:30 on September 1, 2022.
  • the above time is only used as an example, and the embodiments of the present application do not specifically limit the time.
  • the electronic device corresponding to the same address information may use different Internet services in the foreground, that is, the data content corresponding to the broadcast data packet may change, or other privately defined data content in the data content may change.
  • the embodiment of the present application does not specifically limit the specific circumstances of the data content change.
  • the embodiment of the present application can be applied to the following scenario, in which a mobile phone is used to receive a broadcast data packet sent by a peer device.
  • the peer device modifies the device name
  • the device name in the broadcast data packet sent by the peer device will also be modified accordingly.
  • the broadcast data packet sent by the peer device after the device name is modified is a target broadcast data packet that meets the second condition, and the target broadcast data packet can be reported to the CPU of the mobile phone.
  • the data content corresponding to the broadcast data packet includes a service feature identifier
  • the interconnection service scenario corresponding to the peer device changes, such as switching from a screen projection broadcast scenario to a file sending scenario
  • the data content corresponding to the broadcast data packet sent by the peer device will change with the business scenario, that is, it will change from the business feature identifier corresponding to the screen projection broadcast scenario to the business feature identifier corresponding to the file sending scenario.
  • the data content corresponding to the broadcast data packet received by the mobile phone from the same peer device is different. It can be determined that the broadcast data packet sent by the peer device after the business feature identifier changes is the target broadcast data packet that meets the second condition, and the target broadcast data packet can be reported to the CPU of the mobile phone.
  • the data content corresponding to the broadcast data packet includes a hotspot name and a hotspot password
  • the hotspot name or hotspot password set by the opposite device changes
  • the data content corresponding to the broadcast data packet sent by the opposite device will also change accordingly.
  • the broadcast data packet sent by the opposite device after the hotspot name or hotspot password changes is a target broadcast data packet that meets the second condition, and the target broadcast data packet can be reported to the CPU of the mobile phone.
  • the embodiment of the present application can process such repeated broadcast data packets, that is, when a broadcast data packet with the same address information is searched, the target broadcast data packet will be reported to the CPU only when the data content corresponding to the received broadcast data packet changes, thereby effectively reducing the CPU wake-up frequency. If the data content corresponding to the received broadcast data packet does not change, it will not be reported.
  • the address information of the target broadcast data packet is the same as the address information of the third broadcast data packet, and the data content corresponding to the target broadcast data packet is different from the data content corresponding to the third broadcast data packet received at the third moment, indicating that the data content corresponding to the target broadcast data packet received at the first moment has changed compared to the third moment.
  • the target broadcast data packet can be considered as a broadcast data packet that meets the second condition.
  • the data corresponding to the first broadcast data packet is The second condition is set based on the content and address information to determine the target broadcast data packet. For the broadcast data packets corresponding to the same address information, they are reported only when the data content changes, thereby significantly reducing the number of reports of the broadcast data packets and effectively reducing the load on the central processing unit.
  • the data content corresponding to the target broadcast data packet includes a service feature identifier, and the data content corresponding to the third broadcast data packet does not include a service feature identifier.
  • the service feature identifier is used to indicate the existence of interconnected services between electronic devices that perform Bluetooth communication.
  • Interconnected services refer to the interconnection between smart electronic devices in different service scenarios.
  • office interconnected services can be interactive services between mobile phones and tablets or desktop computers, which can include: screen projection, file sharing or relay switching of application data, etc.
  • home interconnected services can be interactive services between smart home devices, such as: control services between smart speakers, smart lights or smart air conditioners, etc.
  • the address information of the target broadcast data packet is the same as the address information of the third broadcast data packet received at the third moment, and the data content corresponding to the target broadcast data packet includes the service characteristic identifier, while the data content corresponding to the third broadcast data packet does not include the service characteristic identifier, indicating that compared with the third moment, a service characteristic identifier has been added to the data content corresponding to the target broadcast data packet received at the first moment.
  • the target broadcast data packet can be considered as a broadcast data packet that meets the second condition.
  • the CPU can determine whether to generate a target data instruction based on actual needs.
  • the target data instruction can be used to switch the screen state of the electronic device, for example: switching from the screen-off state to the screen-on state, or from the screen-off state to the screen-unlocked state, etc.
  • the broadcast data packet that meets the second condition is determined to be the target broadcast data packet, so that when the electronic device is in the screen-off state, only the target broadcast data packet that meets the second condition will be reported to the central processing unit, so that the central processing unit can maintain the stability of the sleep standby power consumption, and there will be no substantial increase in power consumption.
  • the first broadcast data packet is stored in a storage area corresponding to the sensor hub
  • the method further includes:
  • the third condition includes at least one of the following:
  • the address information of the fourth broadcast data packet is the same as the address information of the fifth broadcast data packet received at the fourth time.
  • the fifth time is earlier than the fourth time, and the fifth time is the time when the fourth broadcast data packet is received.
  • the electronic device can obtain the first broadcast data packet received by the Bluetooth chip, and store the first broadcast data packet in a storage area corresponding to the sensor hub.
  • the sensor hub receives the first broadcast data packet sent by the Bluetooth chip, caches the first broadcast data packet, and may also perform deduplication filtering on the broadcast data packets in the first broadcast data packet that meet the third condition according to the address information.
  • the address information of the fifth broadcast data packet may be compared with the address information of the broadcast data packets received before the fourth moment.
  • the address information of the fourth broadcast data packet received at the fifth moment is the same as the address information of the fifth broadcast data packet, and the fifth moment is earlier than the fourth moment, it means that among the broadcast data packets with the same address information, the fifth broadcast data packet is the most recently obtained broadcast data packet, and the fourth broadcast data packet satisfies the third condition, and the fourth broadcast data packet can be deleted from the first broadcast data packet.
  • the fourth time is 10:00 on September 1, 2022
  • the fifth time is 9:30 on September 1, 2022.
  • the above time is only used as an example, and the embodiments of the present application do not specifically limit the time.
  • the first broadcast data packet may include a fourth broadcast data packet corresponding to the first address information.
  • the first time period can be, for example, 5 minutes, 10 minutes, or 20 minutes.
  • deduplication filtering is performed based on the address information of the broadcast data packet, and a good filtering effect can be obtained.
  • FIG. 2 is one of the structural schematic diagrams of the electronic device provided in the embodiment of the present application.
  • the electronic device may include: a Bluetooth chip 201, a sensor hub 202 and a central processor 203.
  • the sensor hub 202 is arranged between the Bluetooth chip 201 and the central processor 203.
  • the Bluetooth chip 201 may include a classic Bluetooth module (Bluetooth, BT) or a low-power Bluetooth module (Bluetooth Low Energy, BLE).
  • Bluetooth Bluetooth, BT
  • BLE Bluetooth Low Energy
  • BT module refers to a module that supports Bluetooth protocol below 4.0, and is generally used for transmission of large amounts of data, such as voice, music, or higher data volumes.
  • BLE module refers to a module that supports Bluetooth protocol 4.0 or higher. Its biggest feature is the reduction in cost and power consumption. It is used in products with high real-time requirements but low data rates, such as remote control devices (mouse or keyboard, etc.) and sensor devices (heart rate belt, blood pressure monitor or temperature sensor, etc.) data transmission.
  • a programmable device namely, a sensor hub 202
  • the sensor hub 202 can usually perform direct processing on the broadcast data packet.
  • relevant conditions corresponding to the first information can be set in the sensor hub 202, and the target broadcast data packet can be determined from the first broadcast data packet obtained from the Bluetooth chip 201.
  • the first information includes at least one of the following:
  • the relevant conditions of the first information may include a first condition and a second condition.
  • the first condition can be:
  • the difference between the signal strength of the target broadcast data packet and the signal strength of the second broadcast data packet received at the second moment is greater than the first threshold, the signal strength of the target broadcast data packet is greater than the signal strength of the second broadcast data packet, and the address information of the target broadcast data packet is the same as the address information of the second broadcast data packet, the second moment is earlier than the first moment, and the first moment is the moment of receiving the target broadcast data packet.
  • the second condition can be:
  • the data content corresponding to the target broadcast data packet is different from the data content corresponding to the third broadcast data packet received at the third moment, and the address information of the target broadcast data packet is the same as the address information of the third broadcast data packet.
  • the third moment is earlier than the first moment, and the first moment is the moment of receiving the target broadcast data packet.
  • the Bluetooth chip 201 sends the acquired first broadcast data packet to the sensor hub 202 .
  • the sensor hub 202 may cache the first broadcast data packet and determine a target broadcast data packet from the first broadcast data packet according to the relevant conditions corresponding to the first information.
  • the sensor hub 202 obtains the target broadcast data packet and sends the target broadcast data packet to the central processor 203 .
  • the central processor 203 may be awakened.
  • the first broadcast data packet is aggregated and processed in the central processing unit.
  • the data packet is processed in the sensor hub 202, thereby reducing the load of the central processing unit 203.
  • the sensor hub 202 may cache the first broadcast data packet sent by the Bluetooth chip 201 in a data queue, and process the data in the data queue.
  • the sensor hub 202 may perform deduplication filtering on the first broadcast data packet according to the address information.
  • the sensor hub 202 may delete the broadcast packets that are no longer scanned within the target duration at regular intervals.
  • the target duration may include, for example, 5 minutes or 10 minutes, etc., which are not specifically limited here.
  • the sensor hub 202 scans the broadcast data packet corresponding to the first address information at 10:00 on September 1, 2022, but cannot scan the broadcast data packet corresponding to the first address information at 10:10 on September 1, 2022. In this case, the broadcast data packet scanned at 10:00 can be deleted.
  • the sensor hub 202 can only retain the most recent broadcast data packet under this address information, or select one of these broadcast data packets to retain.
  • the sensor hub 202 can directly send the required broadcast data packet to the central processor 203.
  • the data queue can continuously refresh the data in the queue, keep the data updated, and will not frequently wake up the central processor 203, thereby reducing the load of the central processor 203.
  • a sensor hub is set between the Bluetooth chip and the central processing unit, and the broadcast data packet is processed in the sensor hub.
  • data processing can be achieved with lower power consumption, and the processed data in the sensor hub can be obtained at any time without waiting for a long scanning time, thereby saving user waiting time and optimizing user experience.
  • FIG3 is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application.
  • the data processing device 300 may include: an acquisition module 310 , a determination module 320 and a wake-up module 330 .
  • An acquisition module 310 is used to acquire a first broadcast data packet received by the Bluetooth chip
  • a determination module 320 configured to determine a target broadcast data packet from the first broadcast data packet according to the first information
  • a wake-up module 330 configured to wake up a central processing unit based on the target broadcast data packet
  • the first information includes at least one of the following:
  • the address information of the first broadcast data packet is the address information of the first broadcast data packet.
  • the first broadcast data packet can be processed. Filtering and reporting the target broadcast data packets to the central processor can effectively reduce the number of times the central processor is woken up, thereby reducing the impact of frequent wake-up of the central processor on its power consumption and performance.
  • the target broadcast data packet is a broadcast data packet that satisfies a first condition
  • the first condition is:
  • the difference between the signal strength of the target broadcast data packet and the signal strength of the second broadcast data packet received at the second moment is greater than a first threshold, the signal strength of the target broadcast data packet is greater than the signal strength of the second broadcast data packet, and the address information of the target broadcast data packet is the same as the address information of the second broadcast data packet, the second moment is earlier than the first moment, and the first moment is the moment of receiving the target broadcast data packet.
  • the target broadcast data packet is a broadcast data packet that satisfies a second condition
  • the second condition is:
  • the data content corresponding to the target broadcast data packet is different from the data content corresponding to the third broadcast data packet received at the third moment, and the address information of the target broadcast data packet is the same as the address information of the third broadcast data packet.
  • the third moment is earlier than the first moment, and the first moment is the moment of receiving the target broadcast data packet.
  • the data content corresponding to the target broadcast data packet is different from the data content corresponding to the third broadcast data packet received at the third time, including:
  • the data content corresponding to the target broadcast data packet includes a service feature identifier, and the data content corresponding to the third broadcast data packet does not include the service feature identifier.
  • the first broadcast data packet is stored in a storage area corresponding to the sensor hub
  • the device also includes:
  • a deleting module configured to, if a fourth broadcast data packet that satisfies a third condition exists in the first broadcast data packet, delete the fourth broadcast data packet in a storage area corresponding to the sensor hub;
  • the third condition includes at least one of the following:
  • the first address The information is the address information of the fourth broadcast data packet
  • the address information of the fourth broadcast data packet is the same as the address information of the fifth broadcast data packet received at a fourth moment, the fifth moment is earlier than the fourth moment, and the fifth moment is the moment of receiving the fourth broadcast data packet.
  • the data processing device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device can be a terminal or other devices other than a terminal.
  • the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.
  • It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.
  • Network Attached Storage NAS
  • PC personal computer
  • TV television
  • teller machine a self-service machine
  • the data processing device in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the data processing device provided in the embodiment of the present application can implement each process implemented by the method embodiment of Figure 2. To avoid repetition, it will not be described again here.
  • an embodiment of the present application also provides an electronic device 400, including a processor 401, a memory 402, and a program or instruction stored in the memory 402 and executable on the processor 401.
  • a program or instruction stored in the memory 402 and executable on the processor 401.
  • the program or instruction is executed by the processor 401, each process of the above-mentioned data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
  • FIG5 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output Unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509 and processor 510 and other components.
  • the electronic device 500 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 510 through a power management system, so that the power management system can manage charging, discharging, and power consumption.
  • a power source such as a battery
  • the electronic device structure shown in FIG5 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange components differently, which will not be described in detail here.
  • the processor 510 is used to obtain a first broadcast data packet received by the Bluetooth chip
  • the first information includes at least one of the following:
  • the address information of the first broadcast data packet is the address information of the first broadcast data packet.
  • the electronic device by determining the target broadcast data packet from the first broadcast data packet obtained by the Bluetooth chip based on the first information, the first broadcast data packet can be filtered, and the target broadcast data packet can be reported to the central processing unit, which can effectively reduce the number of times the central processing unit is awakened, thereby reducing the impact of frequent awakening of the central processing unit on its power consumption and performance.
  • the target broadcast data packet is a broadcast data packet that satisfies a first condition
  • the first condition is:
  • the difference between the signal strength of the target broadcast data packet and the signal strength of the second broadcast data packet received at the second moment is greater than a first threshold, the signal strength of the target broadcast data packet is greater than the signal strength of the second broadcast data packet, and the address information of the target broadcast data packet is the same as the address information of the second broadcast data packet, the second moment is earlier than the first moment, and the first moment is the moment of receiving the target broadcast data packet.
  • the target broadcast data packet is a broadcast data packet that satisfies the second condition
  • the second condition is:
  • the data content corresponding to the target broadcast data packet is different from the data content corresponding to the third broadcast data packet received at the third moment, and the address information of the target broadcast data packet is the same as the address information of the third broadcast data packet.
  • the third moment is earlier than the first moment, and the first moment is the moment of receiving the target broadcast data packet.
  • the data content corresponding to the target broadcast data packet is different from the data content corresponding to the third broadcast data packet received at the third moment, including:
  • the data content corresponding to the target broadcast data packet includes a service feature identifier, and the data content corresponding to the third broadcast data packet does not include the service feature identifier.
  • the first broadcast data packet is stored in a storage area corresponding to the sensor hub;
  • the processor 510 is further configured to, if there is a fourth broadcast data packet satisfying a third condition in the first broadcast data packet, delete the fourth broadcast data packet in a storage area corresponding to the sensor hub;
  • the third condition includes at least one of the following:
  • a broadcast data packet corresponding to first address information is not received within a first time period, where the first address information is address information of the fourth broadcast data packet;
  • the address information of the fourth broadcast data packet is the same as the address information of the fifth broadcast data packet received at a fourth moment, the fifth moment is earlier than the fourth moment, and the fifth moment is the moment of receiving the fourth broadcast data packet.
  • the input unit 504 may include a graphics processor (GPU) 5041 and a microphone 5042, and the graphics processor 5041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc.
  • the user input unit 507 includes a touch panel 5071 and at least one of the other input devices 5072.
  • the touch panel 5071 is also called a touch screen.
  • the touch panel 5071 may include two parts: a touch detection device and a touch controller. Others
  • the input device 5072 may include, but is not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
  • the memory 509 can be used to store software programs and various data.
  • the memory 509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the memory 509 may include a volatile memory or a non-volatile memory, or the memory 509 may include both volatile and non-volatile memories.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
  • the volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM).
  • the memory 509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
  • the processor 510 may include one or more processing units; optionally, the processor 510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 510.
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • the various processes of the above-mentioned data processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiment.
  • the readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory Memory RAM, disk or optical disk, etc.
  • An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
  • the technical solution of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
  • a storage medium such as ROM/RAM, a magnetic disk, or an optical disk
  • a terminal which can be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种数据处理方法、数据处理装置、电子设备和可读存储介质,属于数据处理技术领域。方法包括:获取蓝牙芯片接收到的第一广播数据包(110);根据第一信息,从第一广播数据包中确定目标广播数据包(120);基于目标广播数据包,唤醒中央处理器(130);第一信息包括以下至少一项:第一广播数据包的信号强度;第一广播数据包对应的数据内容;第一广播数据包的地址信息。

Description

数据处理方法、数据处理装置、电子设备和可读存储介质
相关申请的交叉引用
本申请要求于2022年09月30日提交的申请号为202211216938.8,发明名称为“数据处理方法、数据处理装置、电子设备和可读存储介质”的中国专利申请的优先权,其通过引用方式全部并入本申请。
技术领域
本申请属于数据处理技术领域,具体涉及一种数据处理方法、数据处理装置、电子设备和可读存储介质。
背景技术
随着分布式技术的发展,在家庭、办公或出行等多种使用场景中,不同电子设备之间需要实时通信,以进行协同工作。蓝牙作为主流低功耗的短距通信方案,成为电子设备间组网通信的重要方式。
当电子设备通过蓝牙芯片频繁接收到其他电子设备发送的广播数据包时,蓝牙芯片会将接收到的所有广播数据包发送至中央处理器(Central Processing Unit,CPU)进行处理,导致电子设备不管是处于灭屏状态还是处于亮屏状态时,CPU都会被频繁唤醒,导致CPU功耗增加。
发明内容
本申请实施例的目的是提供一种数据处理方法、数据处理装置、电子设备和可读存储介质,能够解决蓝牙芯片频繁上报广播数据包导致中央处理器功耗过大的问题。
第一方面,本申请实施例提供了一种数据处理方法,包括:
获取蓝牙芯片接收到的第一广播数据包;
根据第一信息,从所述第一广播数据包中确定目标广播数据包;
基于所述目标广播数据包,唤醒中央处理器;
所述第一信息包括以下至少一项:
所述第一广播数据包的信号强度;
所述第一广播数据包对应的数据内容;
所述第一广播数据包的地址信息。
第二方面,本申请实施例提供了一种数据处理装置,包括:
获取模块,用于获取蓝牙芯片接收到的第一广播数据包;
确定模块,用于根据第一信息,从所述第一广播数据包中确定目标广播数据包;
唤醒模块,用于基于所述目标广播数据包,唤醒中央处理器;
所述第一信息包括以下至少一项:
所述第一广播数据包的信号强度;
所述第一广播数据包对应的数据内容;
所述第一广播数据包的地址信息。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
在本申请实施例中,通过根据第一信息,从蓝牙芯片获取的第一广播数 据包中确定目标广播数据包,可以实现对第一广播数据包的过滤,将目标广播数据包上报至中央处理器,可以有效降低唤醒中央处理器的次数,从而减弱了频繁唤醒中央处理器对其功耗和性能的影响。
附图说明
图1是本申请实施例提供的数据处理方法的流程示意图;
图2是本申请实施例提供的电子设备的结构示意图之一;
图3是本申请实施例提供的数据处理装置的结构示意图;
图4是本申请实施例提供的电子设备的结构示意图之二;
图5是本申请实施例提供的电子设备的硬件示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
相关技术中,电子设备的CPU和蓝牙芯片之间通过串口通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)或者串行外设接口(Serial Peripheral Interface,SPI)总线进行双向通信。
CPU可以给蓝牙芯片下达命令,使得蓝牙芯片可以扫描指定类型的广播数 据包,例如可以是低功耗蓝牙模块(Bluetooth Low Energy,BLE)广播数据包。
再由CPU确定是否要进行去重过滤。若确定进行去重过滤,可以让蓝牙芯片对于同一电子设备的地址信息对应的广播数据包只上报一次,若确定不进行去重过滤,可以让蓝牙芯片将每次扫描到的同一地址信息对应的广播数据包都进行上报。其中,广播数据包的上报指的是将广播数据包发送至CPU。
由于电子设备的近场感知能力,电子设备需要确定附近设备的接收信号强度(Received Signal Strength Indicator,RSSI)信号值,所以通常不做去重过滤。蓝牙芯片会将扫描到的所有广播数据包都汇总到CPU进行处理,这种处理方式在灭屏状态也会频繁唤醒CPU,从而影响电子设备的待机功耗,在亮屏状态同样会增加CPU的负荷。
其中,灭屏状态为电子设备正常关闭背光且屏幕熄灭的状态。若电子设备退出灭屏状态,可以进入亮屏状态。亮屏状态为电子设备背光打开且处于正常工作的状态。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的数据处理方法、数据处理装置、电子设备和可读存储介质进行详细地说明。
本申请实施例提供的数据处理方法,该数据处理方法的执行主体可以为电子设备或者电子设备中能够实现该数据处理方法的功能模块或功能实体,本申请实施例提及的电子设备包括但不限于手机、平板电脑、电脑、相机、可穿戴设备等,下面以电子设备作为执行主体为例对本申请实施例提供的数据处理方法进行说明。
图1是本申请实施例提供的数据处理方法的流程示意图。如图1所示,该数据处理方法可以包括步骤110、步骤120和步骤130。
步骤110、获取蓝牙芯片接收到的第一广播数据包;
步骤120、根据第一信息,从第一广播数据包中确定目标广播数据包;
步骤130、基于目标广播数据包,唤醒中央处理器;
第一信息包括以下至少一项:
第一广播数据包的信号强度;
第一广播数据包对应的数据内容;
第一广播数据包的地址信息。
在步骤110中,电子设备可以获取蓝牙芯片接收到的第一广播数据包。
第一广播数据包可以是蓝牙芯片在当前时刻扫描到的全部或部分广播数据包。部分广播数据包可以是通过设置预设条件来获取的,预设条件例如可以是仅获取信号强度超过某一阈值的广播数据包作为第一广播数据包等。
通过设置预设条件,可以实现对第一广播数据包的初步过滤。
CPU还可以下发读取指令,主动获取第一广播数据包中的至少部分广播数据包,从而CPU可以及时获取到需要的广播数据包,无需等待过长的扫描时间。
在步骤120中,根据第一信息,可以对第一广播数据包进一步过滤,即可以从第一广播数据包中筛选出目标广播数据包,目标广播数据包为上报至CPU的数据包。
第一信息为第一广播数据包的信号强度、第一广播数据包对应的数据内容和第一广播数据包的地址信息中的一种或多种。
需要说明的是,信号强度即接收信号的强度指示值,可以用于指示信号链接的质量。
数据内容可以为广播数据包中可以私有定义的数据,例如可以是不同业务对应的应用程序的私有协议数据。该数据可以反映当前哪个互联业务在前台使用或机器的账户信息等等。
地址信息可以用于识别不同的电子设备,例如可以是蓝牙设备在数据交互时所使用的唯一媒体存取控制位址(Media Access Control Address,MAC)信息。
在本申请实施例中,需要预先设置第一信息对应的相关条件,才可以从第一广播数据包中确定目标广播数据包。在后面的多个实施例中,将从多个方面详细说明目标广播数据包满足的各个条件。
在步骤130中,在确定目标广播数据包之后,可以将目标广播数据包上报 至CPU,从而可以唤醒CPU;也可以在CPU有读取操作的情况下,向CPU发送目标广播数据包,同样也可以唤醒CPU。
而相关技术中,电子设备通过设置向外发送常驻式的BLE广播,来达到让对端设备近场感知到本端设备的目的。而常驻式的BLE广播,会影响电子设备的功耗和无线性能,所以BLE广播的扫描时间间隔会设置得较大,例如可以设置为间隔1~2s发送一次BLE广播,并且设置在业务触发时才开始进行扫描。所以在此场景下,当业务触发后,电子设备需要一段时间才能把附近设备扫描完成且显示出来,一般需要2~20秒才能查找完毕,比较费时。
电子设备通常会在亮屏状态设置常驻式的BLE扫描,这种静默扫描同样需要考虑功耗和性能的影响,常驻式的BLE扫描是低功耗模式,占空比是10%;在业务应用程序处于前台时,占空比是100%。为降低功耗,在灭屏状态下,电子设备可以设置不进行BLE扫描,同样会导致无法及时获取到扫描到的设备数据。
相比于相关技术,本申请实施例可以在减少广播数据包的上报次数的情况下,不仅能够达到减少CPU负荷或者减少CPU唤醒次数的目的,还能在CPU需要近场设备数据时,可以马上返回结果,无需等待过长的扫描时间。
在实际执行中,可以设置可编程器件对第一广播数据包进行缓存,具体地,CPU可以设置特定命令,使此可编程器件在灭屏或亮屏状态下对蓝牙芯片接收到的第一广播数据包进行获取,并将第一广播数据包缓存在此器件的数据队列中。此器件还可以基于CPU发送的读取指令,向CPU发送数据队列中缓存的广播数据包。
CPU可以在此器件中设置第一信息相关的过滤条件,从而可以从此器件获取的第一广播数据包中确定目标广播数据包。进而可以基于目标广播数据包,向CPU主动上报目标广播数据包,或者基于CPU发送的读取指令,向CPU发送目标广播数据包。
当然,上述可编程器件也可以由电子设备中的其他功能模块完成,在此不作具体限定。
根据本申请实施例提供的数据处理方法,通过根据第一信息,从蓝牙芯片获取的第一广播数据包中确定目标广播数据包,可以实现对第一广播数据包的过滤,将目标广播数据包上报至中央处理器,可以有效降低唤醒中央处理器的次数,从而减弱了频繁唤醒中央处理器对其功耗和性能的影响。
在一些实施例中,目标广播数据包为满足第一条件的广播数据包;
在第一信息包括第一广播数据包的信号强度和第一广播数据包的地址信息的情况下,第一条件为:
目标广播数据包的信号强度与第二时刻接收到的第二广播数据包的信号强度之差大于第一阈值,目标广播数据包的信号强度大于第二广播数据包的信号强度,且目标广播数据包的地址信息与第二广播数据包的地址信息相同,第二时刻早于第一时刻,第一时刻为接收目标广播数据包的时刻。
可以理解的是,第一广播数据包可以包括第一时刻接收到的目标广播数据包和第二时刻接收到的第二广播数据包,其中,第二时刻早于第一时刻。
例如:第一时刻为2022年9月1号10点,第二时刻为2022年9月1号9点,上述时刻仅用作示例,本申请实施例对时刻不作具体限定。
通过对比分析不同时刻接收到的来自同一地址信息的广播数据包,可以是确定同一地址信息的广播数据包的信号强度是否发生变化。
在本申请实施例中,信号强度变化可以包括如下几种情况:信号强度不变,信号强度变小或信号强度增大。
信号强度变化值可以用第一阈值来衡量。信号强度变化值超过第一阈值时,可以说明信号强度浮动过大,需要将信号强度变化后的广播数据包进行上报,以告知CPU该地址信息对应的广播数据包需要更新;信号强度变化值不超过第一阈值时,可以说明信号强度浮动较小,可以不进行上报。
第一阈值的大小可以根据实际需求设置,在此不作具体限定。例如:第一阈值可以为5db或10db等,也可以设置为一个浮动范围,如5db至10db等。
在目标广播数据包的地址信息与第二广播数据包的地址信息相同,目标广播数据包的信号强度大于第二广播数据包的信号强度,且目标广播数据包的信 号强度与第二广播数据包的信号强度之差大于第一阈值的情况下,说明相比于第二时刻,第一时刻接收的目标广播数据包的信号强度变化值超过第一阈值。
在此情况下,可以认为该目标广播数据包为满足第一条件的广播数据包。
本申请实施例可以应用于如下场景:
场景一:当平板电脑处于灭屏状态时,如果需要实现能感知到同一个用户的手机靠近时就自动亮屏解锁的功能,相关技术中会让平板电脑在灭屏状态下一直扫描手机的BLE广播,这样会频繁唤醒平板电脑的CPU,影响其休眠功耗。
而采用本实施例的方案可以有效降低这种影响。只有手机对应的BLE广播数据包的信号强度增强到一定程度,才会主动唤醒平板电脑的CPU,由此可以明显降低CPU的唤醒频次。
场景二:在人员密集的场所中,手机经常收到大量而频繁的BLE广播,从而拖慢CPU性能甚至影响待机功耗。
例如:蓝牙BLE广播在协议上定义的最小间隔interval是20ms,而蓝牙耳机在开盖后会发送一个高频的BLE广播(接近20ms)。
如果此时在同一场所中的手机进行BLE扫描,一个蓝牙耳机所带来的BLE广播事件就是每秒500次。那么当附近有多个蓝牙耳机时,在进行BLE扫描的手机CPU中就会出现高频的BLE广播上报。
相关技术中,在此场景下,每1ms蓝牙芯片会上报多个BLE广播事件,手机的蓝牙进程以及相关的业务进程也会出现严重的负荷影响。
本申请实施例可以对这类高频BLE广播进行预处理,即当搜索到相同的地址信息的广播数据包后,只有在广播数据包的信号强度变化值超过第一阈值的情况下,才会唤醒CPU,由此可以明显降低CPU的唤醒频次。
根据本申请实施例提供的数据处理方法,通过第一广播数据包的信号强度和地址信息来设置第一条件确定目标广播数据包,可以大幅度降低广播数据包的上报次数,从而有效降低中央处理器的负荷,解决了常驻式扫描导致的高频广播打扰,甚至影响中央处理器性能的问题,同时可以降低在灭屏状态下的待 机功耗,进而能够延长电子设备的待机时间。
在一些实施例中,目标广播数据包为满足第二条件的广播数据包;
在第一信息包括第一广播数据包对应的数据内容和第一广播数据包的地址信息的情况下,第二条件为:
目标广播数据包对应的数据内容与第三时刻接收到的第三广播数据包对应的数据内容存在区别,且目标广播数据包的地址信息与第三广播数据包的地址信息相同,第三时刻早于第一时刻,第一时刻为接收目标广播数据包的时刻。
在实际执行中,第一广播数据包可以包括第一时刻接收到的目标广播数据包和第三时刻接收到的第三广播数据包,其中,第三时刻早于第一时刻。
例如:第一时刻为2022年9月1号10点,第三时刻为2022年9月1号9点30分,上述时刻仅用作示例,本申请实施例对时刻不作具体限定。
在本申请实施例中,通过对比分析不同时刻接收到的来自同一地址信息的广播数据包,可以是确定同一地址信息的广播数据包对应的数据内容是否发生变化。
在不同时刻,同一地址信息对应的电子设备在前台使用的互联业务可能不同,即广播数据包对应的数据内容会发生变化,或者是数据内容中其他私有定义的数据内容发生变化,本申请实施例对数据内容变化的具体情形不作具体限定。
本申请实施例可以应用于如下场景,在此场景中,手机用于接收对端设备发送的广播数据包。
在广播数据包对应的数据内容包括设备名称的情况下,若对端设备修改了设备名称,那么对端设备发送的广播数据包中的设备名称也会相应修改。在对端设备修改设备名称前后,手机接收的来自同一对端设备的广播数据包对应的数据内容存在区别,可以确定设备名称修改后的对端设备所发送的广播数据包为满足第二条件的目标广播数据包,可以将目标广播数据包上报至手机的CPU。
在广播数据包对应的数据内容包括业务特征标识的情况下,对端设备对应的互联业务场景发生变化时,比如从投屏广播场景切换到文件发送场景,那么 对端设备发送的广播数据包对应的数据内容会跟随业务场景发生变化,即从投屏广播场景对应的业务特征标识变化为文件发送场景对应业务特征标识,在业务场景变化前后,手机接收的来自同一对端设备的广播数据包对应的数据内容存在区别,可以确定业务特征标识变化后的对端设备所发送的广播数据包为满足第二条件的目标广播数据包,可以将目标广播数据包上报至手机的CPU。
在广播数据包对应的数据内容包括热点名称和热点密码的情况下,对端设备设置的热点名称或热点密码发生变化时,对端设备发送的广播数据包对应的数据内容也会随之变化,在热点名称或热点密码变化前后,手机接收的来自同一对端设备的广播数据包对应的数据内容存在区别,可以确定热点名称或热点密码变化后的对端设备所发送的广播数据包为满足第二条件的目标广播数据包,可以将目标广播数据包上报至手机的CPU。
相关技术中,不管手机接收到的广播数据包对应的数据内容是否变化,经常会接收到不同对端设备大量且重复的广播数据包。
本申请实施例可以对这类重复的广播数据包进行处理,即当搜索到相同的地址信息的广播数据包后,只有在接收到的广播数据包对应的数据内容发生变化的情况下,才会将目标广播数据包上报给CPU,从而有效降低CPU的唤醒频次。若接收到的广播数据包对应的数据内容没有任何变化,将不会进行上报。
因此,在不同时刻,同一地址信息的广播数据包对应的数据内容发生变化的情况下,就需要将变化后的广播数据包上报至CPU,以告知CPU该地址信息对应的广播数据包对应的数据内容已更新,若数据内容没有变化,就不会重复上报此广播数据包。
在目标广播数据包的地址信息与第三广播数据包的地址信息相同,且目标广播数据包对应的数据内容与第三时刻接收到的第三广播数据包对应的数据内容存在区别,说明相比于第三时刻,第一时刻接收的目标广播数据包对应的数据内容已发生变化。
在此情况下,可以认为该目标广播数据包为满足第二条件的广播数据包。
根据本申请实施例提供的数据处理方法,通过第一广播数据包对应的数据 内容和地址信息来设置第二条件确定目标广播数据包,对于同一地址信息对应的广播数据包,在数据内容的变化的情况下才进行上报,从而可以大幅度降低广播数据包的上报次数,从而有效降低中央处理器的负荷。
在一些实施例中,目标广播数据包对应的数据内容包括业务特征标识,第三广播数据包对应的数据内容不包括业务特征标识。
其中,业务特征标识用于指示进行蓝牙通信的电子设备之间存在互联业务。互联业务指的是不同业务场景下智能电子设备之间的互联。例如:办公互联业务可以是手机与平板电脑或者台式电脑之间的交互业务,可以包括:屏幕投影、文件分享或应用数据的接力切换等;家庭互联业务可以是智能家用设备之间的交互业务,例如:智能音箱、智能灯光或智能空调之间的控制业务等。
在实际执行中,在目标广播数据包的地址信息与第三时刻接收到的第三广播数据包的地址信息相同,且目标广播数据包对应的数据内容包括业务特征标识,第三广播数据包对应的数据内容不包括业务特征标识,说明相比于第三时刻,第一时刻接收的目标广播数据包对应的数据内容中新增了业务特征标识。
在此情况下,可以认为该目标广播数据包为满足第二条件的广播数据包。
在实际执行中,目标广播数据包上报至CPU后,CPU可以根据实际需求,确定是否生成目标数据指令,该目标数据指令可以用于切换电子设备的屏幕状态,例如:由灭屏状态切换至亮屏状态,或由灭屏状态切换至屏幕解锁状态等。
根据本申请实施例提供的数据处理方法,在不同时刻,同一地址信息的广播数据包对应的数据内容中业务特征标识发生变化的情况下,确定满足第二条件的广播数据包为目标广播数据包,从而可以在电子设备处于灭屏状态时,只会向中央处理器上报满足第二条件的目标广播数据包,使得中央处理器可以保持休眠待机功耗的稳定,不会出现功耗大幅度增加的情形。
在一些实施例中,第一广播数据包存储于传感集线器对应的存储区域;
获取蓝牙芯片接收到的第一广播数据包之后,该方法还包括:
在第一广播数据包中存在满足第三条件的第四广播数据包的情况下,在所述传感集线器对应的存储区域中删除第四广播数据包;
该第三条件包括以下至少一项:
在第一时间段内未接收到对应第一地址信息的广播数据包,第一地址信息为第四广播数据包的地址信息;
第四广播数据包的地址信息与第四时刻接收到的第五广播数据包的地址信息相同,第五时刻早于第四时刻,第五时刻为接收第四广播数据包的时刻。
在本申请实施例中,电子设备可以获取到蓝牙芯片接收的第一广播数据包,将第一广播数据包存储于传感集线器对应的存储区域。
在实际执行中,传感集线器接收蓝牙芯片发送的第一广播数据包,并对第一广播数据包进行缓存,还可以按照地址信息,对第一广播数据包中满足第三条件的广播数据包进行去重过滤。
下面从两个方面说明第三条件:
一、在第四时刻接收到第五广播数据包时,可以将第五广播数据包的地址信息与在第四时刻之前接收到的广播数据包的地址信息进行比对。
在第五时刻接收到的第四广播数据包的地址信息与第五广播数据包的地址信息相同,且第五时刻早于第四时刻时,说明同一地址信息的广播数据包中,第五广播数据包为最新获取的广播数据包,第四广播数据包满足第三条件的数据包,可以从第一广播数据包中删除第四广播数据包。
例如:第四时刻为2022年9月1号10点,第五时刻为2022年9月1号9点30分,上述时刻仅用作示例,本申请实施例对时刻不作具体限定。
二、在第一时段前,第一广播数据包可以包括第一地址信息对应的第四广播数据包。
若发现从接收到第四广播数据包的时刻开始,在第一时段内未接收到对应第一地址信息的广播数据包,可以确定该第四广播数据包满足第三条件,则从第一广播数据包中删除第四广播数据包,从而可以实现每隔一段时间删除不再扫描到的广播数据包,保证第一广播数据包的及时更新。其中,第一时段例如可以是5分钟、10分钟或20分钟等。
可以理解的是,为了减小开销,对于不同时刻接收到的同一地址信息的广 播数据包,若同一地址信息的广播数据包之间数据内容或信号强度变化很小或没有变化,则可以只保留这个地址信息下的最近时刻的广播数据包,或者在这几个广播数据包中任选一个保留。
根据本申请实施例提供的数据处理方法,基于广播数据包的地址信息进行去重过滤,可以获得良好的过滤效果。
图2是本申请实施例提供的电子设备的结构示意图之一。
如图2所示,电子设备可以包括:蓝牙芯片201、传感集线器202和中央处理器203。传感集线器202设置在蓝牙芯片201与中央处理器203连接之间。
蓝牙芯片201可以包括经典蓝牙模块(Bluetooth,BT)或低功耗蓝牙模块(Bluetooth Low Energy,BLE)。
BT模块泛指支持蓝牙协议在4.0以下的模块,一般用于数据量比较大的传输,如:语音、音乐或较高数据量传输等。
BLE模块是指支持蓝牙协议4.0或更高的模块,最大的特点是成本和功耗的降低,应用于实时性要求比较高,但是数据速率比较低的产品,如:遥控类设备(鼠标或键盘等)的、传感设备(心跳带、血压计或温度传感器等)的数据发送等。
在本实施例中,如图2所示,在蓝牙芯片201和中央处理器203之间加入一个可编程器件,即传感器集线器(Sensorhub)202,该传感器集线器202在通常情况下可以对广播数据包做直通处理,而在本申请实施例中,可以在传感器集线器202设置第一信息对应的相关条件,可以从蓝牙芯片201获取的第一广播数据包确定目标广播数据包。
其中,第一信息包括以下至少一项:
第一广播数据包的信号强度;
第一广播数据包对应的数据内容;
第一广播数据包的地址信息。
第一信息的相关条件可以包括第一条件和第二条件。
第一条件可以为:
目标广播数据包的信号强度与第二时刻接收到的第二广播数据包的信号强度之差大于第一阈值,目标广播数据包的信号强度大于第二广播数据包的信号强度,且目标广播数据包的地址信息与第二广播数据包的地址信息相同,第二时刻早于第一时刻,第一时刻为接收目标广播数据包的时刻。
第二条件可以为:
目标广播数据包对应的数据内容与第三时刻接收到的第三广播数据包对应的数据内容存在区别,且目标广播数据包的地址信息与第三广播数据包的地址信息相同,第三时刻早于第一时刻,第一时刻为接收目标广播数据包的时刻。
在实际执行中,蓝牙芯片201将获取到的第一广播数据包发送至传感集线器202。
传感集线器202接收到第一广播数据包之后,可以对第一广播数据包进行缓存,并根据第一信息对应的相关条件,从第一广播数据包中确定目标广播数据包。
传感集线器202得到目标广播数据包,将目标广播数据包发送至中央处理器203。
中央处理器203接收到目标广播数据包后,则可以被唤醒。
相关技术中,第一广播数据包是汇总在中央处理器进行处理,本申请实施例是在传感集线器202中进行处理,从而可以降低中央处理器203的负荷。
传感集线器202可以将蓝牙芯片201发送的第一广播数据包缓存在数据队列中,并对数据队列中的数据进行处理。
传感集线器202可以按照地址信息,对第一广播数据包进行去重过滤。
例如:对于不同时刻接收到的同一地址信息的广播数据包,传感集线器202可以每隔一段时间删除在目标时长内不再扫描到的广播数据包。目标时长例如包括:5分钟或10分钟等,在此不作具体限定。
例如:传感集线器202在2022年9月1日10点扫描到第一地址信息对应的广播数据包,在2022年9月1日10点10分已经无法扫描到第一地址信息对应的广播数据包,则可以将10点扫描到的广播数据包删除。
为了减小开销,对于不同时刻接收到的同一地址信息的广播数据包,若同一地址信息的广播数据包之间数据内容或信号强度变化很小或没有变化,传感集线器202可以只保留这个地址信息下的最近时刻的广播数据包,或者在这几个广播数据包中任选一个保留。
可以理解的是,在中央处理器203需要数据队列中的广播数据包时,传感集线器202可以直接向中央处理器203发送需要的广播数据包。在中央处理器203不需要数据队列中的数据时,则数据队列可以不断刷新队列中的数据,持续保持数据更新,且不会频繁唤醒中央处理器203,降低中央处理器203的负荷。
根据本申请实施例提供的电子设备,通过在蓝牙芯片和中央处理器之间设置传感集线器,在传感集线器中对广播数据包进行处理,相比于采用中央处理器对广播数据包进行处理的情况,可以实现以更低的功耗实现数据处理,并且可以随时获取传感集线器中处理后的数据,无需等待过长的扫描时间,从而可以节省用户等待时间,优化用户体验。
图3是本申请实施例提供的数据处理装置的结构示意图。
如图3所示,该数据处理装置300可以包括:获取模块310、确定模块320和唤醒模块330。
获取模块310,用于获取蓝牙芯片接收到的第一广播数据包;
确定模块320,用于根据第一信息,从所述第一广播数据包中确定目标广播数据包;
唤醒模块330,用于基于所述目标广播数据包,唤醒中央处理器;
所述第一信息包括以下至少一项:
所述第一广播数据包的信号强度;
所述第一广播数据包对应的数据内容;
所述第一广播数据包的地址信息。
根据本申请实施例提供的数据处理装置,通过根据第一信息,从蓝牙芯片获取的第一广播数据包中确定目标广播数据包,可以实现对第一广播数据包的 过滤,将目标广播数据包上报至中央处理器,可以有效降低唤醒中央处理器的次数,从而减弱了频繁唤醒中央处理器对其功耗和性能的影响。
在一些实施例中,所述目标广播数据包为满足第一条件的广播数据包;
在所述第一信息包括所述第一广播数据包的信号强度和所述第一广播数据包的地址信息的情况下,所述第一条件为:
所述目标广播数据包的信号强度与第二时刻接收到的第二广播数据包的信号强度之差大于第一阈值,所述目标广播数据包的信号强度大于所述第二广播数据包的信号强度,且所述目标广播数据包的地址信息与所述第二广播数据包的地址信息相同,所述第二时刻早于第一时刻,所述第一时刻为接收所述目标广播数据包的时刻。
在一些实施例中,所述目标广播数据包为满足第二条件的广播数据包;
在所述第一信息包括所述第一广播数据包对应的数据内容和所述第一广播数据包的地址信息的情况下,所述第二条件为:
所述目标广播数据包对应的数据内容与第三时刻接收到的第三广播数据包对应的数据内容存在区别,且所述目标广播数据包的地址信息与所述第三广播数据包的地址信息相同,所述第三时刻早于第一时刻,所述第一时刻为接收所述目标广播数据包的时刻。
在一些实施例中,所述目标广播数据包对应的数据内容与第三时刻接收到的第三广播数据包对应的数据内容存在区别,包括:
所述目标广播数据包对应的数据内容包括业务特征标识,所述第三广播数据包对应的数据内容不包括所述业务特征标识。
在一些实施例中,所述第一广播数据包存储于传感集线器对应的存储区域;
所述装置还包括:
删除模块,用于在所述第一广播数据包中存在满足第三条件的第四广播数据包的情况下,在所述传感集线器对应的存储区域中删除所述第四广播数据包;
所述第三条件包括以下至少一项:
在第一时间段内未接收到对应第一地址信息的广播数据包,所述第一地址 信息为所述第四广播数据包的地址信息;
所述第四广播数据包的地址信息与第四时刻接收到的第五广播数据包的地址信息相同,第五时刻早于所述第四时刻,所述第五时刻为接收所述第四广播数据包的时刻。
本申请实施例中的数据处理装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的数据处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的数据处理装置能够实现图2的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图4所示,本申请实施例还提供一种电子设备400,包括处理器401,存储器402,存储在存储器402上并可在所述处理器401上运行的程序或指令,该程序或指令被处理器401执行时实现上述数据处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图5为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备500包括但不限于:射频单元501、网络模块502、音频输出 单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509以及处理器510等部件。
本领域技术人员可以理解,电子设备500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器510,用于获取蓝牙芯片接收到的第一广播数据包;
根据第一信息,从所述第一广播数据包中确定目标广播数据包;
基于所述目标广播数据包,唤醒中央处理器;
所述第一信息包括以下至少一项:
所述第一广播数据包的信号强度;
所述第一广播数据包对应的数据内容;
所述第一广播数据包的地址信息。
根据本申请实施例提供的电子设备,通过根据第一信息,从蓝牙芯片获取的第一广播数据包中确定目标广播数据包,可以实现对第一广播数据包的过滤,将目标广播数据包上报至中央处理器,可以有效降低唤醒中央处理器的次数,从而减弱了频繁唤醒中央处理器对其功耗和性能的影响。
可选地,所述目标广播数据包为满足第一条件的广播数据包;
在所述第一信息包括所述第一广播数据包的信号强度和所述第一广播数据包的地址信息的情况下,所述第一条件为:
所述目标广播数据包的信号强度与第二时刻接收到的第二广播数据包的信号强度之差大于第一阈值,所述目标广播数据包的信号强度大于所述第二广播数据包的信号强度,且所述目标广播数据包的地址信息与所述第二广播数据包的地址信息相同,所述第二时刻早于第一时刻,所述第一时刻为接收所述目标广播数据包的时刻。
可选地,所述目标广播数据包为满足第二条件的广播数据包;
在所述第一信息包括所述第一广播数据包对应的数据内容和所述第一广播数据包的地址信息的情况下,所述第二条件为:
所述目标广播数据包对应的数据内容与第三时刻接收到的第三广播数据包对应的数据内容存在区别,且所述目标广播数据包的地址信息与所述第三广播数据包的地址信息相同,所述第三时刻早于第一时刻,所述第一时刻为接收所述目标广播数据包的时刻。
可选地,所述目标广播数据包对应的数据内容与第三时刻接收到的第三广播数据包对应的数据内容存在区别,包括:
所述目标广播数据包对应的数据内容包括业务特征标识,所述第三广播数据包对应的数据内容不包括所述业务特征标识。
可选地,所述第一广播数据包存储于传感集线器对应的存储区域;
处理器510,还用于在所述第一广播数据包中存在满足第三条件的第四广播数据包的情况下,在所述传感集线器对应的存储区域中删除所述第四广播数据包;
所述第三条件包括以下至少一项:
在第一时间段内未接收到对应第一地址信息的广播数据包,所述第一地址信息为所述第四广播数据包的地址信息;
所述第四广播数据包的地址信息与第四时刻接收到的第五广播数据包的地址信息相同,第五时刻早于所述第四时刻,所述第五时刻为接收所述第四广播数据包的时刻。
应理解的是,本申请实施例中,输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元506可包括显示面板5061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板5061。用户输入单元507包括触控面板5071以及其他输入设备5072中的至少一种。触控面板5071,也称为触摸屏。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其他 输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器509可以包括易失性存储器或非易失性存储器,或者,存储器509可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器509包括但不限于这些和任意其它适合类型的存储器。
处理器510可包括一个或多个处理单元;可选地,处理器510集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述数据处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取 存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述数据处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保 护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (15)

  1. 一种数据处理方法,包括:
    获取蓝牙芯片接收到的第一广播数据包;
    根据第一信息,从所述第一广播数据包中确定目标广播数据包;
    基于所述目标广播数据包,唤醒中央处理器;
    所述第一信息包括以下至少一项:
    所述第一广播数据包的信号强度;
    所述第一广播数据包对应的数据内容;
    所述第一广播数据包的地址信息。
  2. 根据权利要求1所述的数据处理方法,其中,所述目标广播数据包为满足第一条件的广播数据包;
    在所述第一信息包括所述第一广播数据包的信号强度和所述第一广播数据包的地址信息的情况下,所述第一条件为:
    所述目标广播数据包的信号强度与第二时刻接收到的第二广播数据包的信号强度之差大于第一阈值,所述目标广播数据包的信号强度大于所述第二广播数据包的信号强度,且所述目标广播数据包的地址信息与所述第二广播数据包的地址信息相同,所述第二时刻早于第一时刻,所述第一时刻为接收所述目标广播数据包的时刻。
  3. 根据权利要求1所述的数据处理方法,其中,所述目标广播数据包为满足第二条件的广播数据包;
    在所述第一信息包括所述第一广播数据包对应的数据内容和所述第一广播数据包的地址信息的情况下,所述第二条件为:
    所述目标广播数据包对应的数据内容与第三时刻接收到的第三广播数据包对应的数据内容存在区别,且所述目标广播数据包的地址信息与所述第三广播数据包的地址信息相同,所述第三时刻早于第一时刻,所述第一时刻为接收所述目标广播数据包的时刻。
  4. 根据权利要求3所述的数据处理方法,其中,所述目标广播数据包对应 的数据内容与第三时刻接收到的第三广播数据包对应的数据内容存在区别,包括:
    所述目标广播数据包对应的数据内容包括业务特征标识,所述第三广播数据包对应的数据内容不包括所述业务特征标识。
  5. 根据权利要求1-4任一项所述的数据处理方法,其中,所述第一广播数据包存储于传感集线器对应的存储区域;
    所述获取蓝牙芯片接收到的第一广播数据包之后,所述方法还包括:
    在所述第一广播数据包中存在满足第三条件的第四广播数据包的情况下,在所述传感集线器对应的存储区域中删除所述第四广播数据包;
    所述第三条件包括以下至少一项:
    在第一时间段内未接收到对应第一地址信息的广播数据包,所述第一地址信息为所述第四广播数据包的地址信息;
    所述第四广播数据包的地址信息与第四时刻接收到的第五广播数据包的地址信息相同,第五时刻早于所述第四时刻,所述第五时刻为接收所述第四广播数据包的时刻。
  6. 一种数据处理装置,包括:
    获取模块,用于获取蓝牙芯片接收到的第一广播数据包;
    确定模块,用于根据第一信息,从所述第一广播数据包中确定目标广播数据包;
    唤醒模块,用于基于所述目标广播数据包,唤醒中央处理器;
    所述第一信息包括以下至少一项:
    所述第一广播数据包的信号强度;
    所述第一广播数据包对应的数据内容;
    所述第一广播数据包的地址信息。
  7. 根据权利要求6所述的数据处理装置,其中,所述目标广播数据包为满足第一条件的广播数据包;
    在所述第一信息包括所述第一广播数据包的信号强度和所述第一广播数 据包的地址信息的情况下,所述第一条件为:
    所述目标广播数据包的信号强度与第二时刻接收到的第二广播数据包的信号强度之差大于第一阈值,所述目标广播数据包的信号强度大于所述第二广播数据包的信号强度,且所述目标广播数据包的地址信息与所述第二广播数据包的地址信息相同,所述第二时刻早于第一时刻,所述第一时刻为接收所述目标广播数据包的时刻。
  8. 根据权利要求6所述的数据处理装置,其中,所述目标广播数据包为满足第二条件的广播数据包;
    在所述第一信息包括所述第一广播数据包对应的数据内容和所述第一广播数据包的地址信息的情况下,所述第二条件为:
    所述目标广播数据包对应的数据内容与第三时刻接收到的第三广播数据包对应的数据内容存在区别,且所述目标广播数据包的地址信息与所述第三广播数据包的地址信息相同,所述第三时刻早于第一时刻,所述第一时刻为接收所述目标广播数据包的时刻。
  9. 根据权利要求8所述的数据处理装置,其中,所述目标广播数据包对应的数据内容与第三时刻接收到的第三广播数据包对应的数据内容存在区别,包括:
    所述目标广播数据包对应的数据内容包括业务特征标识,所述第三广播数据包对应的数据内容不包括所述业务特征标识。
  10. 根据权利要求6-9任一项所述的数据处理装置,其中,所述第一广播数据包存储于传感集线器对应的存储区域;
    所述装置还包括:
    删除模块,用于在所述第一广播数据包中存在满足第三条件的第四广播数据包的情况下,在所述传感集线器对应的存储区域中删除所述第四广播数据包;
    所述第三条件包括以下至少一项:
    在第一时间段内未接收到对应第一地址信息的广播数据包,所述第一地址信息为所述第四广播数据包的地址信息;
    所述第四广播数据包的地址信息与第四时刻接收到的第五广播数据包的地址信息相同,第五时刻早于所述第四时刻,所述第五时刻为接收所述第四广播数据包的时刻。
  11. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5任一项所述的数据处理方法的步骤。
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的数据处理方法的步骤。
  13. 一种计算机程序产品,所述计算机程序产品被至少一个处理器执行以实现如权利要求1-5任一项所述的数据处理方法。
  14. 一种电子设备,所述电子设备用于执行如权利要求1-5任一项所述的数据处理方法。
  15. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-5任一项所述的数据处理方法。
PCT/CN2023/122563 2022-09-30 2023-09-28 数据处理方法、数据处理装置、电子设备和可读存储介质 WO2024067803A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211216938.8A CN115407864A (zh) 2022-09-30 2022-09-30 数据处理方法、数据处理装置、电子设备和可读存储介质
CN202211216938.8 2022-09-30

Publications (1)

Publication Number Publication Date
WO2024067803A1 true WO2024067803A1 (zh) 2024-04-04

Family

ID=84168749

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/122563 WO2024067803A1 (zh) 2022-09-30 2023-09-28 数据处理方法、数据处理装置、电子设备和可读存储介质

Country Status (2)

Country Link
CN (1) CN115407864A (zh)
WO (1) WO2024067803A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115407864A (zh) * 2022-09-30 2022-11-29 维沃移动通信有限公司 数据处理方法、数据处理装置、电子设备和可读存储介质
CN117135719A (zh) * 2023-02-27 2023-11-28 荣耀终端有限公司 Wi-Fi信号增强的方法及电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150099467A1 (en) * 2013-10-04 2015-04-09 Samsung Electronics Co., Ltd. Method of and device for broadcasting ble packet, and method of and device for adjusting operation mode of application processor
CN108010298A (zh) * 2017-12-19 2018-05-08 青岛海信移动通信技术股份有限公司 设备控制方法及装置
CN109348431A (zh) * 2018-11-14 2019-02-15 Oppo广东移动通信有限公司 蓝牙扫描方法、装置、设备及存储介质
CN110881212A (zh) * 2019-12-09 2020-03-13 Oppo广东移动通信有限公司 设备省电的方法、装置、电子设备及介质
CN113490191A (zh) * 2020-01-14 2021-10-08 荣耀终端有限公司 蓝牙通信方法及其介质和电子设备
CN114050907A (zh) * 2020-07-23 2022-02-15 华为技术有限公司 网络数据包的过滤方法、传输方法以及终端设备
CN115407864A (zh) * 2022-09-30 2022-11-29 维沃移动通信有限公司 数据处理方法、数据处理装置、电子设备和可读存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150099467A1 (en) * 2013-10-04 2015-04-09 Samsung Electronics Co., Ltd. Method of and device for broadcasting ble packet, and method of and device for adjusting operation mode of application processor
CN108010298A (zh) * 2017-12-19 2018-05-08 青岛海信移动通信技术股份有限公司 设备控制方法及装置
CN109348431A (zh) * 2018-11-14 2019-02-15 Oppo广东移动通信有限公司 蓝牙扫描方法、装置、设备及存储介质
CN110881212A (zh) * 2019-12-09 2020-03-13 Oppo广东移动通信有限公司 设备省电的方法、装置、电子设备及介质
CN113490191A (zh) * 2020-01-14 2021-10-08 荣耀终端有限公司 蓝牙通信方法及其介质和电子设备
CN114050907A (zh) * 2020-07-23 2022-02-15 华为技术有限公司 网络数据包的过滤方法、传输方法以及终端设备
CN115407864A (zh) * 2022-09-30 2022-11-29 维沃移动通信有限公司 数据处理方法、数据处理装置、电子设备和可读存储介质

Also Published As

Publication number Publication date
CN115407864A (zh) 2022-11-29

Similar Documents

Publication Publication Date Title
US11244672B2 (en) Speech recognition method and apparatus, and storage medium
WO2024067803A1 (zh) 数据处理方法、数据处理装置、电子设备和可读存储介质
US10732696B2 (en) Method and apparatus for wake-up control of intelligent terminal
CN110018901B (zh) 内存回收方法、装置、计算机设备和计算机可读存储介质
CN108566634B (zh) 降低蓝牙音箱连续唤醒延时的方法、装置及蓝牙音箱
WO2021052413A1 (zh) 节能信号监听时刻的确定方法、配置方法及相关设备
WO2020024732A1 (zh) 进程处理方法、电子设备、计算机可读存储介质
US11395226B2 (en) Wake-up management method, timer management method, and terminal device
WO2015081664A1 (zh) 控制无线网络开关方法、装置、设备及系统
KR20170012182A (ko) 마스터 mcu를 깨우는 회로, 방법 및 디바이스
CN110032266B (zh) 信息处理方法、装置、计算机设备和计算机可读存储介质
JP2017535085A (ja) 省エネルギーモードを開始するための方法及び装置
KR20150033505A (ko) 전자 장치에서 절전 모드를 수행하는 방법 및 이를 위한 전자 장치
WO2022262434A1 (zh) 一种功耗优化方法和电子设备
WO2023246516A1 (zh) 一种临床研究项目的访视报告生成方法和装置
CN117539614A (zh) 资源调度方法和电子设备
JP2019185771A (ja) ブルートゥーススピーカーデータ処理の方法、装置及びブルートゥーススピーカー
WO2019128586A1 (zh) 应用程序处理方法、电子设备、计算机可读存储介质
CN114158018A (zh) 数据传输方法、装置、蓝牙从设备及蓝牙主设备
CN113254088A (zh) 功能程序唤醒方法、终端及存储介质
CN109511139B (zh) Wifi控制方法、装置、移动设备、计算机可读存储介质
US10813051B2 (en) Power management method and terminal device
CN106249843B (zh) 一种进程控制方法、装置及移动设备
CN110046033B (zh) 应用程序处理方法和装置、电子设备、计算机可读存储介质
WO2019128570A1 (zh) 应用程序冻结方法、装置、存储介质和终端

Legal Events

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

Ref document number: 23871028

Country of ref document: EP

Kind code of ref document: A1