CN113965889B - Data processing, filtering information quantity determining and configuring method, equipment and medium - Google Patents

Data processing, filtering information quantity determining and configuring method, equipment and medium Download PDF

Info

Publication number
CN113965889B
CN113965889B CN202010637491.6A CN202010637491A CN113965889B CN 113965889 B CN113965889 B CN 113965889B CN 202010637491 A CN202010637491 A CN 202010637491A CN 113965889 B CN113965889 B CN 113965889B
Authority
CN
China
Prior art keywords
bluetooth
broadcast packet
chip
filtering information
main control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010637491.6A
Other languages
Chinese (zh)
Other versions
CN113965889A (en
Inventor
黄启生
刘勇锋
刘兆健
汪贇
胡俊锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010637491.6A priority Critical patent/CN113965889B/en
Publication of CN113965889A publication Critical patent/CN113965889A/en
Application granted granted Critical
Publication of CN113965889B publication Critical patent/CN113965889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0245Filtering by information in the payload
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a method, equipment and medium for data processing and filtering information quantity determination and configuration. In some embodiments of the present application, a bluetooth chip in a bluetooth device filters a current bluetooth broadcast packet through broadcast packet filtering information issued before a main control chip, so as to filter a repeatedly transmitted bluetooth broadcast packet; the Bluetooth chip sends the unfiltered Bluetooth broadcast packet to the main control chip so that the main control chip can process the current Bluetooth broadcast packet; the same Bluetooth broadcast packet does not need to be processed repeatedly, the CPU occupancy rate of the main control chip is reduced, the data processing efficiency of the main control chip is improved, and the overall power consumption of the Bluetooth device is reduced.

Description

Data processing, filtering information quantity determining and configuring method, equipment and medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, device, and medium for determining and configuring data processing and filtering information quantity.
Background
Nowadays, the bluetooth Mesh technology is widely applied to various types of intelligent devices. The bluetooth Mesh V1.0 adopts a mode of "floating ADV" to transmit instructions and data, and the "floating ADV" adopts a communication mode of broadcasting and no link, so that the communication mode of the "floating ADV" has poor anti-interference capability in the transmission of data and instructions, and has the possibility of failure to some extent. Therefore, at present, each time a mainstream bluetooth Mesh product transmits an instruction and data, a mode of "continuously sending multiple groups of broadcast packets" (for example, continuously sending the same broadcast for 200ms at a broadcast interval of 20 ms) is adopted to improve the success rate of communication, which means that the same Mesh instruction and data can be received by a wireless communication controller chip of the embedded bluetooth Mesh device for multiple times; and the wireless communication controller chip of the Bluetooth Mesh product sends the data packet to the main control chip for processing.
At present, the internal data processing efficiency of a Bluetooth Mesh product is low, and the power consumption of the whole machine is high.
Disclosure of Invention
Aspects of the application provide a method, equipment and medium for determining and configuring data processing and filtering information quantity, and the method, equipment and medium are used for improving the internal data processing efficiency of a Bluetooth Mesh product and reducing the power consumption of the whole machine.
The embodiment of the application provides a data processing method, which is suitable for a wireless communication chip in intelligent equipment, and comprises the following steps:
receiving a current broadcast packet sent by opposite-end intelligent equipment;
filtering the current broadcast packet according to the broadcast packet filtering information issued by the main control chip in the intelligent equipment;
and if the current broadcast packet is not filtered, reporting the current broadcast packet to a main control chip so that the main control chip can process the current broadcast packet.
The embodiment of the present application further provides a data processing method, which is applicable to a main control chip in an intelligent device, and the method includes:
receiving a current broadcast packet reported by a wireless communication chip in the intelligent equipment;
analyzing the current broadcast packet to obtain broadcast packet filtering information corresponding to the current broadcast packet;
and transmitting the broadcast packet filtering information corresponding to the current broadcast packet to the wireless communication chip so that the wireless communication chip can filter the subsequently received broadcast packet.
The embodiment of the present application further provides a data processing method, which is applicable to a bluetooth chip in a bluetooth device, and the method includes:
receiving a current Bluetooth broadcast packet sent by opposite-end Bluetooth equipment;
filtering the current Bluetooth broadcast packet according to broadcast packet filtering information issued by a master control chip in the Bluetooth equipment;
and if the current Bluetooth broadcast packet is not filtered, reporting the current Bluetooth broadcast packet to a main control chip so that the main control chip can process the current Bluetooth broadcast packet.
The embodiment of the present application further provides a data processing method, which is applicable to a main control chip in a bluetooth device, and the method includes:
receiving a current Bluetooth broadcast packet reported by a Bluetooth chip in the Bluetooth equipment;
analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet;
and transmitting broadcast packet filtering information corresponding to the current Bluetooth broadcast packet to the Bluetooth chip so that the Bluetooth chip can filter the subsequent received Bluetooth broadcast packets.
An embodiment of the present application further provides a bluetooth device, including: a memory and a processor;
the memory to store one or more computer instructions;
the processor to execute the one or more computer instructions to:
receiving a current Bluetooth broadcast packet sent by opposite-end Bluetooth equipment;
filtering the current Bluetooth broadcast packet according to broadcast packet filtering information issued by a master control chip in the Bluetooth equipment;
and if the current Bluetooth broadcast packet is not filtered, reporting the current Bluetooth broadcast packet to a main control chip so that the main control chip can process the current Bluetooth broadcast packet.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program that, when executed by one or more processors, causes the one or more processors to perform actions comprising:
receiving a current Bluetooth broadcast packet sent by opposite-end Bluetooth equipment;
filtering the current Bluetooth broadcast packet according to broadcast packet filtering information issued by a master control chip in the Bluetooth equipment;
if the current Bluetooth broadcast packet is not filtered, reporting the current Bluetooth broadcast packet to a main control chip so that the main control chip can process the current Bluetooth broadcast packet.
The embodiment of the present application further provides a bluetooth device, including: a memory and a processor;
the memory to store one or more computer instructions;
the processor to execute the one or more computer instructions to:
receiving a current Bluetooth broadcast packet reported by a Bluetooth chip in the Bluetooth equipment;
analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet;
and transmitting broadcast packet filtering information corresponding to the current Bluetooth broadcast packet to the Bluetooth chip so that the Bluetooth chip can filter the subsequent received Bluetooth broadcast packets.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program that, when executed by one or more processors, causes the one or more processors to perform actions comprising:
receiving a current Bluetooth broadcast packet reported by a Bluetooth chip in the Bluetooth equipment;
analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet;
and transmitting broadcast packet filtering information corresponding to the current Bluetooth broadcast packet to the Bluetooth chip so that the Bluetooth chip can filter the subsequent received Bluetooth broadcast packets.
The embodiment of the present application further provides a method for determining the amount of filtering information, which is applicable to a wireless communication chip in an intelligent device, and includes:
receiving a first specified number of configuration broadcast packet filtering information issued by a main control chip;
judging whether the first appointed number of broadcast packet filtering information can be configured in the memory of the self-body;
if yes, a space for containing a first specified number of broadcast packet filtering information is created in the memory;
if not, sending a configuration failure instruction to the main control chip so that the main control chip can determine a second designated number of the configuration broadcast packet filtering information again, wherein the second designated number is smaller than the first designated number.
The embodiment of the present application further provides a method for determining the amount of filtering information, which is applicable to a main control chip in an intelligent device, and includes:
responding to a starting instruction of the intelligent equipment, and sending a first specified number of the configuration broadcast packet filtering information to a wireless communication chip in the intelligent equipment;
receiving a configuration failure instruction returned by the wireless communication chip;
and re-determining a second designated number of the filtering information of the configuration broadcast packet according to the configuration failure instruction, wherein the second designated number is smaller than the first designated number of the data.
The embodiment of the present application further provides an intelligent device, including: a memory and a processor;
the memory to store one or more computer instructions;
the processor to execute the one or more computer instructions to:
receiving a first specified number of configuration broadcast packet filtering information issued by a main control chip;
judging whether the first appointed number of broadcast packet filtering information can be configured in the memory of the self-body;
if yes, a space for containing a first specified number of broadcast packet filtering information is created in the memory;
if not, sending a configuration failure instruction to the main control chip so that the main control chip can determine a second designated number of the configuration broadcast packet filtering information again, wherein the second designated number is smaller than the first designated number.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program that, when executed by one or more processors, causes the one or more processors to perform actions comprising:
receiving a first specified number of configuration broadcast packet filtering information issued by a main control chip;
judging whether the first appointed number of broadcast packet filtering information can be configured in the memory of the self-body;
if yes, a space for containing a first specified number of broadcast packet filtering information is created in the memory;
if not, sending a configuration failure instruction to the main control chip so that the main control chip can determine a second designated number of the configuration broadcast packet filtering information again, wherein the second designated number is smaller than the first designated number.
An embodiment of the present application further provides an intelligent device, including: a memory and a processor;
the memory to store one or more computer instructions;
the processor to execute the one or more computer instructions to:
responding to a starting instruction of the intelligent equipment, and sending a first specified number of the configuration broadcast packet filtering information to a wireless communication chip in the intelligent equipment;
receiving a configuration failure instruction returned by the wireless communication chip;
and according to the configuration failure instruction, re-determining a second specified number of the configuration broadcast packet filtering information, wherein the second specified number is smaller than the first specified number of data.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program that, when executed by one or more processors, causes the one or more processors to perform actions comprising:
responding to a starting instruction of the intelligent equipment, and sending a first specified number of configuration broadcast packet filtering information to a wireless communication chip in the intelligent equipment;
receiving a configuration failure instruction returned by the wireless communication chip;
and re-determining a second designated number of the filtering information of the configuration broadcast packet according to the configuration failure instruction, wherein the second designated number is smaller than the first designated number of the data.
The embodiment of the present application further provides a filtering information configuration method, which is applicable to a wireless communication chip in an intelligent device, and includes:
receiving broadcast packet filtering information corresponding to a current broadcast packet issued by a master control chip;
and updating the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current broadcast packet.
The embodiment of the present application further provides a filtering information configuration method, which is applicable to a main control chip in an intelligent device, and includes:
receiving a current broadcast packet reported by a wireless communication chip in the intelligent equipment;
analyzing the current broadcast packet to obtain broadcast packet filtering information corresponding to the current broadcast packet;
and transmitting the broadcast packet filtering information corresponding to the current broadcast packet to the wireless communication chip so that the wireless communication chip can update the previously received broadcast packet filtering information.
The embodiment of the present application further provides an intelligent device, including: a memory and a processor;
the memory to store one or more computer instructions;
the processor to execute the one or more computer instructions to:
receiving broadcast packet filtering information corresponding to a current broadcast packet issued by a master control chip;
and updating the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current broadcast packet.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program that, when executed by one or more processors, causes the one or more processors to perform actions comprising:
receiving broadcast packet filtering information corresponding to a current broadcast packet and issued by a main control chip;
and updating the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current broadcast packet.
An embodiment of the present application further provides an intelligent device, including: a memory and a processor;
the memory to store one or more computer instructions;
the processor to execute the one or more computer instructions to:
receiving a current broadcast packet reported by a wireless communication chip in the intelligent equipment;
analyzing the current broadcast packet to obtain broadcast packet filtering information corresponding to the current broadcast packet;
and transmitting the broadcast packet filtering information corresponding to the current broadcast packet to the wireless communication chip so that the wireless communication chip can update the previously received broadcast packet filtering information.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program, which, when executed by one or more processors, causes the one or more processors to perform actions comprising:
receiving a current broadcast packet reported by a wireless communication chip in the intelligent equipment;
analyzing the current broadcast packet to obtain broadcast packet filtering information corresponding to the current broadcast packet;
and transmitting the broadcast packet filtering information corresponding to the current broadcast packet to the wireless communication chip so that the wireless communication chip can update the previously received broadcast packet filtering information.
An embodiment of the present application further provides a data processing method, which is applicable to an intelligent device, where the intelligent device includes a main control chip and a wireless communication chip, and includes:
the wireless communication chip receives a plurality of broadcast packets sent by the opposite terminal equipment and sends the broadcast packets to the main control chip;
the main control chip generates various broadcast packet filtering information according to the plurality of broadcast packets;
the main control chip sends the filtering information of various broadcast packets to the wireless communication chip;
and the wireless communication chip filters the subsequently received broadcast packet according to the filtering information of the various broadcast packets.
The embodiment of the present application further provides a data processing method, which is applicable to an intelligent device, where the intelligent device includes a main control chip and a wireless communication chip, and the method includes:
the main control chip receives target filtering information sent by the intelligent terminal;
the master control chip sends the target filtering information to a wireless communication chip;
and the wireless communication chip filters the broadcast packet received later according to the target filtering information.
An embodiment of the present application further provides a data processing method, including:
receiving a current Bluetooth broadcast packet reported by a Bluetooth chip in the first Bluetooth device;
analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet;
and sending the broadcast packet filtering information to a second Bluetooth device so that the second Bluetooth device can filter the subsequent received Bluetooth broadcast packet.
In some embodiments of the present application, a bluetooth chip in a bluetooth device filters a current bluetooth broadcast packet through broadcast packet filtering information issued before a main control chip, so as to filter a repeatedly transmitted bluetooth broadcast packet; the Bluetooth chip sends the unfiltered Bluetooth broadcast packet to the master control chip so that the master control chip can process the current Bluetooth broadcast packet; the same Bluetooth broadcast packet does not need to be processed repeatedly, the CPU occupancy rate of the main control chip is reduced, the data processing efficiency of the main control chip is improved, and the overall power consumption of the Bluetooth device is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1a is a block diagram illustrating a data processing system 10 according to an exemplary embodiment of the present application;
FIG. 1b is a communication diagram of a data processing system 20 according to an exemplary embodiment of the present application;
FIG. 2a is a schematic flowchart of a data processing method according to an exemplary embodiment of the present application;
FIG. 2b is a schematic flow chart of a data processing method according to an exemplary embodiment of the present application;
fig. 3 is a schematic flowchart of a data processing method according to an exemplary embodiment of the present application;
FIG. 4a is a schematic flow chart diagram of another data processing method provided in an exemplary embodiment of the present application;
FIG. 4b is a schematic flow chart diagram of another data processing method provided in an exemplary embodiment of the present application;
fig. 5a is a schematic flowchart of a method for determining the amount of filtering information according to an exemplary embodiment of the present application;
fig. 5b is a schematic flowchart of another method for determining the amount of filtering information according to an exemplary embodiment of the present application;
fig. 6a is a schematic flowchart of a filtering information configuration method according to an exemplary embodiment of the present application;
FIG. 6b is a schematic flow chart diagram illustrating another filtering information configuring method according to an exemplary embodiment of the present application;
FIG. 7 is a method flow diagram of another data processing method provided by an exemplary embodiment of the present application;
FIG. 8 is a method flow diagram of another data processing method provided in an exemplary embodiment of the present application;
FIG. 9 is a method flow diagram of another data processing method provided by an exemplary embodiment of the present application;
fig. 10 is a schematic structural diagram of a bluetooth device according to an exemplary embodiment of the present application;
fig. 11 is a schematic structural diagram of a bluetooth device according to an exemplary embodiment of the present application;
fig. 12 is a schematic structural diagram of another smart device provided in an exemplary embodiment of the present application;
fig. 13 is a schematic structural diagram of another smart device provided in an exemplary embodiment of the present application;
fig. 14 is a schematic structural diagram of another smart device provided in an exemplary embodiment of the present application;
fig. 15 is a schematic structural diagram of another smart device provided in an exemplary embodiment of the present application;
FIG. 16 is a schematic structural diagram of another smart device provided in an exemplary embodiment of the present application;
fig. 17 is a schematic structural diagram of another smart device according to an exemplary embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Nowadays, the bluetooth Mesh technology is widely applied to various types of intelligent devices. The bluetooth Mesh V1.0 adopts a mode of "floating ADV" to transmit instructions and data, and the "floating ADV" adopts a communication mode of broadcasting and no link, so that the communication mode of the "floating ADV" has poor anti-interference capability in the transmission of data and instructions, and has the possibility of failure to some extent. Therefore, at present, each time a mainstream bluetooth Mesh product transmits an instruction and data, a mode of "continuously sending multiple groups of broadcast packets" (for example, continuously sending the same broadcast for 200ms at a broadcast interval of 20 ms) is adopted to improve the success rate of communication, which means that the same Mesh instruction and data can be received by a wireless communication controller chip of the embedded bluetooth Mesh device for multiple times; the wireless communication controller chip of the Bluetooth Mesh product sends the data packet to the main control chip for processing, which means that the main control chip can process a large number of repeated and meaningless broadcast packets, so that the CPU occupancy rate is increased, and the power consumption of the whole machine is high.
At present, more and more battery-powered bluetooth Mesh products are available, and therefore, the power consumption of the bluetooth Mesh is very important for the standby time of the battery-powered products. Under the premise that more and more Bluetooth Mesh intelligent devices with batteries are provided, how to improve the power consumption performance of the Bluetooth Mesh becomes very significant.
In some embodiments of the present application, a bluetooth chip in a bluetooth device filters a current bluetooth broadcast packet through broadcast packet filtering information issued before a main control chip, so as to filter a repeatedly transmitted bluetooth broadcast packet; the Bluetooth chip sends the unfiltered Bluetooth broadcast packet to the main control chip so that the main control chip can process the current Bluetooth broadcast packet; the same Bluetooth broadcast packet does not need to be processed repeatedly, the CPU occupancy rate of the main control chip is reduced, the data processing efficiency of the main control chip is improved, and the overall power consumption of the Bluetooth device is reduced.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings. The technical solution of the present application is described below by taking bluetooth Mesh communication as an example, and it is obvious that the embodiment of the present application is not limited to bluetooth Mesh communication, and may also be applied to other wireless communications, for example, wifi Mesh communication.
Fig. 1a is a schematic structural diagram of a data processing system 10 according to an exemplary embodiment of the present application. As shown in FIG. 1a, the data processing system 10 includes: a bluetooth device 10a and at least one counterpart bluetooth device 10b. The bluetooth device 10a includes a main control chip 101a and a bluetooth chip 102a. The bluetooth chip 102a sends the received bluetooth broadcast packet to the main control chip 101a for processing, and the main control chip 101a executes corresponding control operation according to the bluetooth broadcast packet.
In this embodiment, a communication connection is established between the bluetooth device 10a and at least one peer bluetooth device 10b through bluetooth communication, so as to control the at least one peer bluetooth device 10b. The bluetooth device 10a may be a computer device or a handheld device, and may be implemented in various forms, for example, a smart phone, a personal computer, a tablet computer, a smart speaker, and the like. The opposite-end bluetooth device 10b can be an intelligent bulb, an intelligent television, an intelligent washing machine, an intelligent electric appliance such as a robot and the like. Wherein, bluetooth device 10a and at least one opposite terminal bluetooth device 10b have different realization forms according to the scene of difference, and in the household electrical appliances scene, bluetooth device 10a is intelligent audio amplifier, and opposite terminal bluetooth device 10b is intelligent bulb, intelligent TV, cleans the floor the robot, intelligent household electrical appliances such as intelligent (window) curtain.
In this embodiment, the data processing system 10 relies on a bluetooth Mesh network for set up. The bluetooth Mesh network is a new network topology of bluetooth low energy for establishing many-to-many device communication. The method allows a large network based on a plurality of devices to be created, the network can comprise tens of, hundreds of or even thousands of Bluetooth Mesh devices, the devices can mutually transmit information, and the method is very suitable for building automation, wireless sensor networks and asset tracking solutions. Bluetooth Mesh was developed on the basis of low power consumption, and has five advantages over other protocols. The most important advantage is that the Bluetooth Mesh can directly communicate with the intelligent terminal without a gateway, so that the advantage of good human-computer interaction experience can be fully utilized; secondly, no gateway is arranged, so that the cost is low; thirdly, the installation is very convenient and fast, and the user experience is particularly good; fourthly, the low power consumption supporting capability is strong; fifthly, the wireless sensor network has strong networking capability, can be combined into 250 nodes in a bidirectional way, can be combined into 1000 nodes in a unidirectional way, and has strong networking capability compared with other wireless technologies.
In the existing bluetooth Mesh communication mode, a broadcast and unlinked communication mode is adopted, and the communication mode has poor anti-interference capability in data and instruction transmission and has a certain failure possibility. Therefore, at present, the mainstream bluetooth Mesh product adopts a mode of continuously sending a plurality of groups of broadcast packets every time one instruction and one data are transmitted. For example, since the same broadcast of 200ms is continuously transmitted at a broadcast interval of 20ms to increase the success rate of communication, the main control chip 101a needs to process a large number of repeated, meaningless bluetooth broadcast packets. Therefore, in order to enable the main control chip 101a to not process a large number of repeated and meaningless bluetooth broadcast packets, the main control chip 101a sends a configuration instruction to the bluetooth chip 102a after receiving a bluetooth broadcast packet, and the filter is configured on the bluetooth chip 102a to filter subsequent broadcast packets identical to the bluetooth broadcast packet, so that the power consumption of the main control chip 101a can be effectively reduced. A detailed description is given below of how the main control chip 101a controls the bluetooth chip 102a to configure the filter.
In this embodiment, before the bluetooth chip 102a is not configured with filtering information, after the bluetooth chip 102a in the bluetooth device 10a receives a bluetooth broadcast packet sent by the opposite-end bluetooth chip 102a, the bluetooth broadcast packet is sent to the main control chip 101a for processing, and after the main control chip 101a receives the bluetooth broadcast packet, the main control chip analyzes the current bluetooth broadcast packet to obtain broadcasting packet filtering information corresponding to the current bluetooth broadcast packet; the main control chip 101a issues the broadcast packet filtering information corresponding to the current bluetooth broadcast packet to the bluetooth chip 102a; the bluetooth chip 102a filters subsequent repeated advertisement packets according to the broadcast packet filtering information. For example, the bluetooth chip of the smart speaker receives a bluetooth broadcast packet that the bulb is turned off and is sent by the smart bulb, and sends the bluetooth broadcast packet to the main control chip of the smart speaker, and the main control chip analyzes the current bluetooth broadcast packet to obtain a physical address of the bulb corresponding to the current bluetooth broadcast packet and broadcast packet data that the bulb is turned off; sending the physical address of the bulb of the main control chip and the broadcasting packet data of the closed bulb to the Bluetooth chip; and after the Bluetooth chip receives the Bluetooth broadcast packet of which the bulb is turned off again, filtering the Bluetooth broadcast packet.
The bluetooth chip 102a configures a corresponding filter implemented based on software according to the broadcast packet filtering information, and filters subsequent bluetooth broadcast packets by using the filter, where the number of the following broadcast packet filtering information is the number of the filters. Wherein the broadcast packet filtering information includes a physical address and broadcast packet data. For example, the broadcast packet filtering information is in a combination of { bdAddr, sha256 (AdvData) }, where bdAddr is a physical address of a device that transmits a bluetooth broadcast packet, and AdvData in sha256 (AdvData) is broadcast packet data of the bluetooth broadcast packet defined in the bluetooth protocol specification. sha256 is one of the disclosed hash algorithms, and may be replaced with a message digest algorithm or other hash algorithms. The bluetooth chip 102a uses the physical address and the broadcast packet data as configuration parameters of a filter to filter subsequent bluetooth broadcast packets with the same physical address and broadcast packet data. The embodiment of the application adopts the physical address and the broadcast packet data as the configuration parameters of the filter, because the physical address and the broadcast packet data are the only judgment standard for judging whether the Bluetooth broadcast packets are the same or not, so as to provide the filtering accuracy of the Bluetooth broadcast packets.
When the bluetooth device 10a is started, the main control chip 101a of the bluetooth device 10a and the bluetooth chip 102a negotiate the number of filters that the bluetooth chip 102a can configure. In one implementation, when the bluetooth device is started, the main control chip 101a of the bluetooth device 10a responds to a power-on command of the bluetooth device 10a, and sends the first specified number of the configuration broadcast packet filtering information to the bluetooth chip 102a of the bluetooth device 10 a. The first designated number is determined according to actual product requirements, and in a common user scenario, the number of the bluetooth paired devices which can be searched around the bluetooth device is less than 255, so the empirical value may be 255. A bluetooth chip 102a of the bluetooth device 10a receives a first designated number of configured broadcast packet filtering information issued by a main control chip 101a, the bluetooth chip 102a judges whether the broadcast packet filtering information of the first designated number can be configured in a memory of the bluetooth chip 102a, and if so, a space for accommodating the broadcast packet filtering information of the first designated number is created in the memory; if not, a configuration failure instruction is sent to the main control chip 101a, so that the main control chip 101a can determine a second designated number of the configuration broadcast packet filtering information again, wherein the second designated number is smaller than the first designated number. In this embodiment of the application, the main control chip 101a of the bluetooth device 10a communicates with the bluetooth chip 102a to negotiate the number of filters that can be configured by the bluetooth chip 102a, so as to prevent the stutter caused by insufficient memory of the bluetooth chip 102a, and when the bluetooth device 10a is started each time, the bluetooth chip 102a can determine the number of configured filters, thereby ensuring a subsequent normal communication process.
In the above embodiment, the main control chip 101a receives the configuration failure instruction returned by the bluetooth chip 102a, reduces the first designated number by the set number of times according to the configuration failure instruction, obtains the second designated number for configuring the broadcast packet filtering information, and sends the first designated number for configuring the broadcast packet filtering information to the bluetooth chip 102a again until the number of times of failure attempts by the main control chip 101a to the bluetooth chip 102a is greater than the set threshold. The setting times and the setting threshold are not limited in the embodiment of the application, and can be adjusted according to actual conditions. For example, when the first designated number is 255, the second designated number is decreased by 5 to 250, and the bluetooth chip 102a is requested to attempt again until the negotiation is successful or the number of times of failed attempts from the master chip 101a to the bluetooth chip 102a is greater than the set threshold, and the negotiation is stopped.
When the bluetooth device 10a is in the inactive state, the bluetooth device 10a cannot process the bluetooth broadcast packet at this time, and the bluetooth Mesh function of the bluetooth chip 102a needs to be turned off. In one implementation, the main control chip 101a determines whether the bluetooth device 10a is in an active state, and sends target filtering information for discarding all bluetooth broadcast packets to the bluetooth chip if the bluetooth device is in an inactive state. The bluetooth chip 102a receives target filtering information sent by the master control chip for discarding all bluetooth broadcast packets, wherein a discarding instruction is sent by the master control chip when the bluetooth device is in an inactive state; the bluetooth chip 102a discards the received bluetooth broadcast packet according to the target filtering information. In this embodiment, when the bluetooth device 10a is in an inactive state, the bluetooth chip 102a configures target filtering information for discarding all bluetooth broadcast packets, and the bluetooth chip 102a discards all received bluetooth broadcast packets, so as to ensure that the main control chip 101a does not process any bluetooth broadcast packet, thereby reducing power consumption of the bluetooth device. According to the Bluetooth device and the Bluetooth Mesh control method, under the special condition that the Bluetooth device 10a is in an inactivated state, the Bluetooth Mesh function is turned off, the Bluetooth chip 102a discards all received Bluetooth broadcast packets, the master control chip 101a is guaranteed not to process any Bluetooth broadcast packet, the power consumption of the Bluetooth device is reduced, and the Bluetooth Mesh filter is flexible and controllable.
When the bluetooth device 10a is in an active state, the main control chip 101a responds to a request initiated by a user to discover a paired device; according to a request for finding paired equipment, a broadcast packet filtering information deleting instruction is sent to the Bluetooth chip 102a, the Bluetooth chip 102a receives the broadcast packet filtering information deleting instruction sent by the main control chip, and the broadcast packet filtering information deleting instruction is sent by the main control chip after receiving the request for finding the paired equipment initiated by a user; deleting the existing broadcast packet filtering information. For example, in response to the operation of discovering the paired device initiated by the user, the bluetooth device 10a receives the request for discovering the paired device, and sends a broadcast packet filtering information deleting instruction to the bluetooth chip 102a to delete the existing broadcast packet filtering information, so as to ensure that the master chip 101a can receive an instruction of any peer bluetooth device 10b to perform the pairing operation. According to the Bluetooth device, after a user initiates a request for finding the paired devices, the filters are flexibly configured, the existing parameters of the filters are deleted, the main control chip can be ensured to receive the instruction of any opposite-end Bluetooth device, so that the pairing operation is carried out, and the pairing success rate of Bluetooth products is improved.
In the above embodiment, the bluetooth chip 102a deletes the existing broadcast packet filtering information, and if the bluetooth chip 102a has an abnormality when deleting the existing broadcast packet filtering information, the main control chip 101a needs to send the broadcast packet filtering information deleting instruction again. The main control chip 101a judges whether the number of times of sending the broadcast packet filtering information deleting instruction to the bluetooth chip 102a is greater than a set number of times; if yes, a restart instruction is sent to the bluetooth chip 102a. The bluetooth chip 102a receives a restart instruction sent by the main control chip 101a, wherein the restart instruction is sent when the number of times that the main control chip 101a sends the filtering information deleting instruction is greater than the set number of times; the bluetooth chip 102a performs a restart operation on the bluetooth chip 102a according to the restart instruction. In the embodiment of the application, if the times of failure of deleting the existing broadcast packet filtering information by the bluetooth chip are greater than the set times, the bluetooth chip is indicated to have a fault, and the master control chip controls the bluetooth chip to restart so as to remove the fault.
In this embodiment, the bluetooth chip 102a receives broadcast packet filtering information corresponding to a current bluetooth broadcast packet issued by the main control chip; the bluetooth chip 102a updates the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current bluetooth broadcast packet.
In the above embodiment, the bluetooth chip 102a determines whether the number of the existing broadcast packet filtering information reaches the target number; if so, deleting the earliest broadcast packet filtering information to configure new broadcast packet filtering information; if not, continuing to configure the broadcast packet filtering information. Because the restriction of bluetooth chip's memory space, this application embodiment adopts first-out's mode when the number of broadcast package filtering information reaches the target number, keeps up-to-date broadcast package filtering information, rejects earliest broadcast package filtering information. In the implementation of the application, the number of the targets is not limited, and the value of the number of the targets can be limited according to the actual condition of the product.
FIG. 1b is a communication diagram of a data processing system 20 according to an exemplary embodiment of the present application. The data processing system 20 includes: a bluetooth device 20a and at least one counterpart bluetooth device 20b. The bluetooth device 20a includes a main control chip 201a and a bluetooth chip 202a. As shown in FIG. 1b, the communication process of data processing system 20 is roughly divided into four phases: the method comprises a device starting stage, a Bluetooth activating stage, a device pairing stage and a normal communication stage.
Referring to fig. 1b, in the device start phase, when the bluetooth device 20a starts, the main control chip 201a and the bluetooth chip 202a of the bluetooth device 20a negotiate the number of filters that the bluetooth chip 202a can configure. In one implementation, when the bluetooth device is started, the main control chip 201a of the bluetooth device 20a responds to the power-on command of the bluetooth device 20a, and sends the first specified number of the configuration broadcast packet filtering information to the bluetooth chip 202a of the bluetooth device 20 a. The first designated number is determined according to actual product requirements, and in a common user scenario, the number of the bluetooth paired devices which can be searched around the bluetooth device is less than 255, so that the empirical value may be 255. A bluetooth chip 202a of the bluetooth device 20a receives a first designated number of configured broadcast packet filtering information issued by a main control chip 201a, the bluetooth chip 202a determines whether the broadcast packet filtering information of the first designated number can be configured in a memory of the bluetooth chip 202a, and if so, a space for accommodating the broadcast packet filtering information of the first designated number is created in the memory; if not, a configuration failure instruction is sent to the main control chip 201a, so that the main control chip 201a determines a second specified number of the configuration broadcast packet filtering information again, wherein the second specified number is smaller than the first specified number. In this embodiment of the application, the main control chip 201a of the bluetooth device 20a communicates with the bluetooth chip 202a to negotiate the number of filters that the bluetooth chip 202a can configure, so as to prevent the stutter caused by insufficient memory of the bluetooth chip 202a, and when the bluetooth device 20a is started each time, the bluetooth chip 202a can determine the number of the configured filters, thereby ensuring a subsequent normal communication process.
In the above embodiment, the main control chip 201a receives the configuration failure instruction returned by the bluetooth chip 202a, reduces the first designated number by the set number of times according to the configuration failure instruction, obtains the second designated number for configuring the broadcast packet filtering information, and sends the first designated number for configuring the broadcast packet filtering information to the bluetooth chip 202a again until the number of times of failure attempts by the main control chip 201a to the bluetooth chip 202a is greater than the set threshold. The setting times and the setting threshold are not limited in the embodiment of the application, and can be adjusted according to actual conditions. For example, when the first designated number is 255, the second designated number is decreased by 5 to 250, and the bluetooth chip 202a is requested to attempt again until the negotiation is successful or the number of times that the master chip 201a fails to attempt the bluetooth chip 202a is greater than the set threshold, and the negotiation is stopped.
In the bluetooth active phase, when the bluetooth device 20a is in the inactive state, the bluetooth device 20a cannot process the bluetooth broadcast packet at this time, and the bluetooth Mesh function of the bluetooth chip 202a needs to be turned off. In one implementation, the main control chip 101a determines whether the bluetooth device 20a is in an active state, and sends target filtering information for discarding all bluetooth broadcast packets to the bluetooth chip if the bluetooth device is in an inactive state. The bluetooth chip 202a receives target filtering information sent by the master control chip for discarding all bluetooth broadcast packets, wherein a discarding instruction is sent by the master control chip when the bluetooth device is in an inactive state; the bluetooth chip 202a discards the received bluetooth broadcast packet according to the target filtering information. In this embodiment, when the bluetooth device 20a is in the inactive state, the bluetooth chip 202a configures target filtering information for discarding all bluetooth broadcast packets, and the bluetooth chip 202a discards all received bluetooth broadcast packets, so as to ensure that the main control chip 201a does not process any bluetooth broadcast packet, thereby reducing the power consumption of the bluetooth device. According to the Bluetooth device and the Bluetooth Mesh control method, under the special condition that the Bluetooth device 20a is in an inactivated state, the Bluetooth Mesh function is turned off, the Bluetooth chip 202a discards all received Bluetooth broadcast packets, the master control chip 201a is guaranteed not to process any Bluetooth broadcast packet, the power consumption of the Bluetooth device is reduced, and the Bluetooth Mesh filter is flexible and controllable.
In the device pairing stage, the main control chip 201a responds to a request initiated by a user to discover paired devices; according to a request for finding paired equipment, sending a broadcast packet filtering information deleting instruction to the Bluetooth chip 202a, receiving the broadcast packet filtering information deleting instruction sent by the main control chip by the Bluetooth chip 202a, and sending the broadcast packet filtering information deleting instruction after the main control chip receives the request for finding the paired equipment initiated by a user; deleting the existing broadcast packet filtering information. For example, in response to the operation of discovering the paired device initiated by the user, the bluetooth device 20a receives the request for discovering the paired device, and sends a broadcast packet filtering information deleting instruction to the bluetooth chip 202a to delete the existing broadcast packet filtering information, so as to ensure that the master control chip 201a can receive an instruction of any peer bluetooth device 10b to perform the pairing operation. According to the Bluetooth device, after a user initiates a request for finding the paired devices, the filters are flexibly configured, the existing parameters of the filters are deleted, the main control chip can be ensured to receive the instruction of any opposite-end Bluetooth device, so that the pairing operation is carried out, and the pairing success rate of Bluetooth products is improved.
In the above embodiment, the bluetooth chip 202a deletes the existing broadcast packet filtering information, and if the bluetooth chip 202a is abnormal when deleting the existing broadcast packet filtering information, the main control chip 201a needs to send the broadcast packet filtering information deleting instruction again. The main control chip 201a judges whether the number of times of sending the broadcast packet filtering information deleting instruction to the bluetooth chip 202a is greater than the set number of times; if yes, a restart instruction is sent to the bluetooth chip 202a. The bluetooth chip 202a receives a restart instruction sent by the main control chip 201a, wherein the restart instruction is sent when the number of times that the main control chip 201a sends a filtering information deleting instruction is greater than a set number of times; the bluetooth chip 202a performs a restart operation on the bluetooth chip 202a according to the restart instruction. In the embodiment of the application, if the number of times that the bluetooth chip fails to delete the existing broadcast packet filtering information is greater than the set number of times, it indicates that the bluetooth chip has a fault, and the master control chip controls the bluetooth chip to restart so as to remove the fault.
In the normal communication stage, the bluetooth chip 202a receives broadcast packet filtering information corresponding to the current bluetooth broadcast packet, which is issued by the main control chip; the bluetooth chip 202a updates the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current bluetooth broadcast packet. In the above embodiment, the bluetooth chip 202a determines whether the number of the existing broadcast packet filtering information reaches the target number; if so, deleting the earliest broadcast packet filtering information to configure new broadcast packet filtering information; if not, continuing to configure the broadcast packet filtering information. Because the restriction of bluetooth chip's memory space, this application embodiment adopts first-out's mode when the number of broadcast package filtering information reaches the target number, keeps up-to-date broadcast package filtering information, rejects earliest broadcast package filtering information. In the implementation of the application, the number of the targets is not limited, and the value of the number of the targets can be limited according to the actual condition of the product.
In the system embodiment of the present application, the bluetooth chip in the bluetooth device filters the current bluetooth broadcast packet through the broadcast packet filtering information issued before the main control chip, so as to filter the repeatedly transmitted bluetooth broadcast packet; the Bluetooth chip sends the unfiltered Bluetooth broadcast packet to the main control chip so that the main control chip can process the current Bluetooth broadcast packet; the same Bluetooth broadcast packet does not need to be processed repeatedly, the CPU occupancy rate of the main control chip is reduced, the data processing efficiency of the main control chip is improved, and the overall power consumption of the Bluetooth device is reduced.
In addition, this application closes the bluetooth Mesh function under this special situation of bluetooth equipment in the inactive state, and the bluetooth chip is abandoned all bluetooth broadcast packages received, guarantees that main control chip does not handle any bluetooth broadcast package, reduces bluetooth equipment's consumption, and bluetooth Mesh's filter is more nimble controllable. According to the method, after a user initiates a request for finding the paired devices, the Bluetooth device flexibly configures the filter, deletes the parameters of the existing filter, ensures that the main control chip can receive the instruction of any opposite-end Bluetooth device, performs pairing operation, and improves the pairing success rate of Bluetooth products.
In addition to the data processing system provided above, some embodiments of the present application also provide a data processing method, and the data processing method provided herein may be applied to the data processing system described above, but is not limited to the data processing system provided in the above embodiments.
From the perspective of the bluetooth chip 102a of the bluetooth device 10a, fig. 2a is a schematic flowchart of a data processing method provided in an exemplary embodiment of the present application. As shown in fig. 2a, the method comprises:
s211: receiving a current Bluetooth broadcast packet sent by opposite-end Bluetooth equipment;
s212: filtering the current Bluetooth broadcast packet according to broadcast packet filtering information issued by a master control chip in the Bluetooth equipment;
s213: if the current Bluetooth broadcast packet is not filtered, reporting the current Bluetooth broadcast packet to a main control chip so that the main control chip can process the current Bluetooth broadcast packet.
From the perspective of the main control chip 101a of the bluetooth device 10a, fig. 2b is a schematic flowchart of a data processing method according to an exemplary embodiment of the present application. As shown in fig. 2b, the method comprises:
s221: receiving a current Bluetooth broadcast packet reported by a Bluetooth chip in Bluetooth equipment;
s222: analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet;
s223: and transmitting broadcast packet filtering information corresponding to the current Bluetooth broadcast packet to the Bluetooth chip so that the Bluetooth chip can filter the subsequent received Bluetooth broadcast packets.
In this embodiment, the main bluetooth device for executing the method may be a computer device or a handheld device, and the implementation forms of the main bluetooth device may be various, for example, a smart phone, a personal computer, a tablet computer, a smart speaker, and the like. The opposite-end Bluetooth device matched with the Bluetooth device can be an intelligent bulb, an intelligent television, an intelligent washing machine, an intelligent electric appliance such as a robot and the like. The Bluetooth device and the at least one opposite-end Bluetooth device have different implementation forms according to different scenes, and in the scene of the household appliance device, the Bluetooth device is an intelligent sound box, the opposite-end Bluetooth device is an intelligent bulb, an intelligent television is arranged, a sweeping robot is arranged, and intelligent household appliances such as an intelligent curtain are arranged.
In this embodiment, the data processing system relies on a bluetooth Mesh network for set up. The bluetooth Mesh network is a new network topology of bluetooth low energy for establishing many-to-many device communication. The method allows a large network based on a plurality of devices to be created, the network can contain dozens of, hundreds of or even thousands of Bluetooth Mesh devices, the devices can mutually transmit information, and the method is very suitable for building automation, wireless sensor networks and asset tracking solutions. Bluetooth Mesh was developed on the basis of low power consumption, and has five advantages over other protocols. The most important advantage is that the Bluetooth Mesh can directly communicate with the intelligent terminal without a gateway, so that the advantage of good human-computer interaction experience can be fully utilized; secondly, no gateway is arranged, so that the cost is low; thirdly, the installation is very convenient and fast, and the user experience is particularly good; fourthly, the low power consumption supporting capability is strong; fifthly, the wireless sensor network has strong networking capability, 250 nodes can be assembled in a bidirectional mode, 1000 nodes can be assembled in a unidirectional mode, and the wireless sensor network has strong networking capability compared with other wireless technologies.
In the existing bluetooth Mesh communication mode, a broadcast and unlinked communication mode is adopted, and the communication mode has poor anti-interference capability in data and instruction transmission and has a certain failure possibility. Therefore, at present, the mainstream bluetooth Mesh product adopts a mode of continuously sending a plurality of groups of broadcast packets every time one instruction and one data are transmitted. For example, since the same broadcast is continuously transmitted for 200ms at a broadcast interval of 20ms to increase the success rate of communication, the main control chip needs to process a large number of repeated, meaningless bluetooth broadcast packets. Therefore, in order to enable the main control chip not to process a large number of repeated and meaningless Bluetooth broadcast packets, the main control chip sends a configuration instruction to the Bluetooth chip after receiving one Bluetooth broadcast packet, and the main control chip can effectively reduce the power consumption of the main control chip by configuring a filter on the Bluetooth chip to filter the subsequent broadcast packet which is the same as the Bluetooth broadcast packet. A detailed description is made below of how the main control chip controls the bluetooth chip configuration filter.
In this embodiment, before the bluetooth chip is not configured with the filtering information, after the bluetooth chip in the bluetooth device receives the bluetooth broadcast packet sent by the bluetooth chip of the opposite terminal, the bluetooth broadcast packet is sent to the main control chip for processing, and after the main control chip receives the bluetooth broadcast packet, the main control chip analyzes the current bluetooth broadcast packet to obtain the broadcast packet filtering information corresponding to the current bluetooth broadcast packet; the master control chip transmits broadcast packet filtering information corresponding to the current Bluetooth broadcast packet to the Bluetooth chip; and the Bluetooth chip filters the subsequent repeated advertisement packets according to the broadcast packet filtering information. For example, the bluetooth chip of the smart speaker receives a bluetooth broadcast packet that the bulb is turned off and is sent by the smart bulb, and sends the bluetooth broadcast packet to the main control chip of the smart speaker, and the main control chip analyzes the current bluetooth broadcast packet to obtain a physical address of the bulb corresponding to the current bluetooth broadcast packet and broadcast packet data that the bulb is turned off; sending the physical address of the bulb of the main control chip and the broadcasting packet data of the closed bulb to the Bluetooth chip; after the Bluetooth chip receives the Bluetooth broadcast packet of which the bulb is closed again, the Bluetooth chip filters the Bluetooth broadcast packet.
The Bluetooth chip configures a corresponding filter realized based on software according to the broadcast packet filtering information, and filters subsequent Bluetooth broadcast packets by using the filter, wherein the number of the following broadcast packet filtering information is the number of the filters. Wherein the broadcast packet filtering information includes a physical address and broadcast packet data. For example, the broadcast packet filtering information is in a combination of { bdAddr, sha256 (AdvData) }, where bdAddr is a physical address of a device that transmits a bluetooth broadcast packet, and AdvData in sha256 (AdvData) is broadcast packet data of the bluetooth broadcast packet defined in the bluetooth protocol specification. sha256 is one of the disclosed hash algorithms, and may be replaced with a message digest algorithm or other hash algorithms. The Bluetooth chip takes the physical address and the broadcast packet data as configuration parameters of a filter so as to filter subsequent Bluetooth broadcast packets with the same physical address and broadcast packet data. The embodiment of the application adopts the physical address and the broadcast packet data as the configuration parameters of the filter, because the physical address and the broadcast packet data are the only judgment standard for judging whether the Bluetooth broadcast packets are the same or not, so as to provide the filtering accuracy of the Bluetooth broadcast packets.
When the Bluetooth equipment is started, the main control chip of the Bluetooth equipment and the Bluetooth chip negotiate the number of filters which can be configured on the Bluetooth chip. One way to implement this is that, when the bluetooth device is started, the main control chip of the bluetooth device responds to the bluetooth device start-up instruction, and sends the first specified number of the configuration broadcast packet filter information to the bluetooth chip in the bluetooth device. The first designated number is determined according to actual product requirements, and in a common user scenario, the number of the bluetooth paired devices which can be searched around the bluetooth device is less than 255, so that the empirical value may be 255. The method comprises the steps that a Bluetooth chip of the Bluetooth device receives a first appointed number of configuration broadcast packet filtering information issued by a main control chip, the Bluetooth chip judges whether the broadcast packet filtering information of the first appointed number can be configured in a memory of the Bluetooth chip, and if yes, a space for containing the broadcast packet filtering information of the first appointed number is created in the memory; if not, sending a configuration failure instruction to the main control chip so that the main control chip can determine a second designated number of the configuration broadcast packet filtering information again, wherein the second designated number is smaller than the first designated number. In this application embodiment, the main control chip of bluetooth equipment communicates with the bluetooth chip and negotiates the number that the bluetooth chip can dispose the filter, prevents that the short-memory of bluetooth chip from causing the card pause, and when bluetooth equipment starts up at every turn, the number of the filter that the bluetooth chip can confirm the configuration ensures follow-up normal communication process.
In the above embodiment, the main control chip receives the configuration failure instruction returned by the bluetooth chip, reduces the first designated number by the set number according to the configuration failure instruction, obtains the second designated number for configuring the broadcast packet filtering information, and sends the first designated number for configuring the broadcast packet filtering information to the bluetooth chip again until the number of times for which the main control chip attempts to fail to the bluetooth chip is greater than the set threshold. The setting times and the setting threshold are not limited in the embodiment of the application, and can be adjusted according to actual conditions. For example, when the first designated number is 255, the second designated number is decreased by 5 to 250, and the bluetooth chip is requested to attempt again until the negotiation is successful or the number of times that the master chip fails to attempt to the bluetooth chip is greater than the set threshold, and the negotiation is stopped.
When the bluetooth device is in an inactive state, the bluetooth device cannot process the bluetooth broadcast packet at this time, and then the bluetooth Mesh function of the bluetooth chip needs to be turned off. One way to implement this is that the main control chip determines whether the bluetooth device is in an active state, and if the bluetooth device is in an inactive state, the main control chip sends target filtering information for discarding all bluetooth broadcast packets to the bluetooth chip. The Bluetooth chip receives target filtering information which is sent by the main control chip and used for discarding all Bluetooth broadcast packets, wherein a discarding instruction is sent by the main control chip when the Bluetooth device is in an inactivated state; and the Bluetooth chip discards the received Bluetooth broadcast packet according to the target filtering information. In this embodiment, when the bluetooth device is in an inactive state, the bluetooth chip configures target filtering information for discarding all bluetooth broadcast packets, and the bluetooth chip discards all received bluetooth broadcast packets, thereby ensuring that the master control chip does not process any bluetooth broadcast packet, and reducing power consumption of the bluetooth device. According to the Bluetooth broadcast packet processing method and device, under the special condition that the Bluetooth device is in an inactivated state, the Bluetooth Mesh function is turned off, the Bluetooth chip discards all received Bluetooth broadcast packets, the master control chip is guaranteed not to process any Bluetooth broadcast packet, the power consumption of the Bluetooth device is reduced, and the filter of the Bluetooth Mesh is flexible and controllable.
When the Bluetooth equipment is in an activated state, the main control chip responds to a request for discovering paired equipment initiated by a user; sending a broadcast packet filtering information deleting instruction to a Bluetooth chip according to a request for finding paired equipment, wherein the Bluetooth chip receives the broadcast packet filtering information deleting instruction sent by a main control chip, and the broadcast packet filtering information deleting instruction is sent by the main control chip after receiving the request for finding the paired equipment initiated by a user; deleting the existing broadcast packet filtering information. For example, the bluetooth device responds to an operation initiated by a user to discover the paired device, and the main control chip receives a request for discovering the paired device, and sends a broadcast packet filtering information deleting instruction to the bluetooth chip to delete the existing broadcast packet filtering information, so as to ensure that the main control chip can receive an instruction of any peer bluetooth device to perform the pairing operation. According to the method, after a user initiates a request for finding the paired devices, the Bluetooth device flexibly configures the filter, deletes the parameters of the existing filter, ensures that the main control chip can receive the instruction of any opposite-end Bluetooth device, performs pairing operation, and improves the pairing success rate of Bluetooth products.
In the above embodiment, the bluetooth chip deletes the existing broadcast packet filtering information, and if the bluetooth chip is abnormal when deleting the existing broadcast packet filtering information, the main control chip needs to send the broadcast packet filtering information deleting instruction again. The main control chip judges whether the frequency of sending the broadcast packet filtering information deleting instruction to the Bluetooth chip is greater than the set frequency; and if so, sending a restart instruction to the Bluetooth chip. The Bluetooth chip receives a restart instruction sent by the main control chip, wherein the restart instruction is sent when the number of times that the main control chip sends a filtering information deleting instruction is greater than the set number of times; and the Bluetooth chip performs restarting operation on the Bluetooth chip according to the restarting instruction. In the embodiment of the application, if the number of times that the bluetooth chip fails to delete the existing broadcast packet filtering information is greater than the set number of times, it indicates that the bluetooth chip has a fault, and the master control chip controls the bluetooth chip to restart so as to remove the fault.
In this embodiment, the bluetooth chip receives broadcast packet filtering information corresponding to a current bluetooth broadcast packet, which is issued by the main control chip; and the Bluetooth chip updates the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current Bluetooth broadcast packet.
In the above embodiment, the bluetooth chip determines whether the number of the existing broadcast packet filtering information reaches the target number; if so, deleting the earliest broadcast packet filtering information to configure new broadcast packet filtering information; if not, continuing to configure the broadcast packet filtering information. Due to the limitation of the memory space of the Bluetooth chip, when the number of the broadcast packet filtering information reaches the target number, the latest broadcast packet filtering information is reserved and the earliest broadcast packet filtering information is removed in a first-in first-out mode. In the implementation of the application, the number of the targets is not limited, and the value of the number of the targets can be limited according to the actual condition of the product.
FIG. 1b is a communication diagram of a data processing system according to an exemplary embodiment of the present application. The data processing system includes: bluetooth devices and at least one peer bluetooth device. The Bluetooth device comprises a main control chip and a Bluetooth chip. As shown in fig. 1b, the communication process of the data processing system is roughly divided into four phases: the method comprises a device starting stage, a Bluetooth activating stage, a device pairing stage and a normal communication stage.
With reference to fig. 1b, during the start-up phase of the apparatus: when the Bluetooth equipment is started, the main control chip of the Bluetooth equipment and the Bluetooth chip negotiate the number of filters which can be configured on the Bluetooth chip. One way to implement this is that, when the bluetooth device is started, the main control chip of the bluetooth device responds to the bluetooth device start-up instruction, and sends the first specified number of the configuration broadcast packet filter information to the bluetooth chip in the bluetooth device. The first designated number is determined according to actual product requirements, and in a common user scenario, the number of the bluetooth paired devices which can be searched around the bluetooth device is less than 255, so that the empirical value may be 255. The method comprises the steps that a Bluetooth chip of the Bluetooth device receives a first appointed number of configuration broadcast packet filtering information issued by a main control chip, the Bluetooth chip judges whether the broadcast packet filtering information of the first appointed number can be configured in a memory of the Bluetooth chip, and if yes, a space for containing the broadcast packet filtering information of the first appointed number is created in the memory; if not, sending a configuration failure instruction to the main control chip so that the main control chip can determine a second designated number of the configuration broadcast packet filtering information again, wherein the second designated number is smaller than the first designated number. In this application embodiment, the main control chip of bluetooth equipment communicates with the bluetooth chip and negotiates the number that the bluetooth chip can dispose the filter, prevents that the short-memory of bluetooth chip from causing the card pause, and when bluetooth equipment starts up at every turn, the number of the filter that the bluetooth chip can confirm the configuration ensures follow-up normal communication process.
In the above embodiment, the main control chip receives the configuration failure instruction returned by the bluetooth chip, reduces the first designated number by the set number according to the configuration failure instruction, obtains the second designated number for configuring the broadcast packet filtering information, and sends the first designated number for configuring the broadcast packet filtering information to the bluetooth chip again until the number of times for which the main control chip attempts to fail to the bluetooth chip is greater than the set threshold. The setting times and the setting threshold are not limited in the embodiment of the application, and can be adjusted according to actual conditions. For example, when the first designated number is 255, the second designated number is decreased by 5 to 250, and the bluetooth chip is requested to attempt again until the negotiation is successful or the number of times that the master control chip attempts to the bluetooth chip fails is greater than the set threshold, and the negotiation is stopped.
In the bluetooth activation phase: when the bluetooth device is in an inactive state, the bluetooth device cannot process the bluetooth broadcast packet at this time, and then the bluetooth Mesh function of the bluetooth chip needs to be turned off. One way to implement this is that the main control chip determines whether the bluetooth device is in an active state, and if the bluetooth device is in an inactive state, the main control chip sends target filtering information for discarding all bluetooth broadcast packets to the bluetooth chip. The Bluetooth chip receives target filtering information which is sent by the main control chip and used for discarding all Bluetooth broadcast packets, wherein a discarding instruction is sent by the main control chip when the Bluetooth device is in an inactivated state; and the Bluetooth chip discards the received Bluetooth broadcast packet according to the target filtering information. In this embodiment, when the bluetooth device is in an inactive state, the bluetooth chip configures target filtering information for discarding all bluetooth broadcast packets, and the bluetooth chip discards all received bluetooth broadcast packets, thereby ensuring that the master control chip does not process any bluetooth broadcast packet, and reducing power consumption of the bluetooth device. According to the method and the device, under the special condition that the Bluetooth device is in an inactive state, the Bluetooth Mesh function is turned off, the Bluetooth chip discards all received Bluetooth broadcast packets, the master control chip is guaranteed not to process any Bluetooth broadcast packet, the power consumption of the Bluetooth device is reduced, and a filter of the Bluetooth Mesh is flexible and controllable.
In the device pairing phase: the main control chip responds to a request for discovering paired equipment initiated by a user; sending a broadcast packet filtering information deleting instruction to a Bluetooth chip according to a request for finding paired equipment, wherein the Bluetooth chip receives the broadcast packet filtering information deleting instruction sent by a main control chip, and the broadcast packet filtering information deleting instruction is sent by the main control chip after receiving the request for finding the paired equipment initiated by a user; deleting the existing broadcast packet filtering information. For example, the bluetooth device responds to an operation initiated by a user to discover the paired device, and the main control chip receives a request for discovering the paired device, and sends a broadcast packet filtering information deleting instruction to the bluetooth chip to delete the existing broadcast packet filtering information, so as to ensure that the main control chip can receive an instruction of any peer bluetooth device to perform the pairing operation. According to the Bluetooth device, after a user initiates a request for finding the paired devices, the filters are flexibly configured, the existing parameters of the filters are deleted, the main control chip can be ensured to receive the instruction of any opposite-end Bluetooth device, so that the pairing operation is carried out, and the pairing success rate of Bluetooth products is improved.
In the above embodiment, the bluetooth chip deletes the existing broadcast packet filtering information, and if the bluetooth chip is abnormal when deleting the existing broadcast packet filtering information, the main control chip needs to send the broadcast packet filtering information deleting instruction again. The main control chip judges whether the frequency of sending the broadcast packet filtering information deleting instruction to the Bluetooth chip is greater than the set frequency; and if so, sending a restart instruction to the Bluetooth chip. The Bluetooth chip receives a restart instruction sent by the main control chip, wherein the restart instruction is sent when the number of times that the main control chip sends a filtering information deleting instruction is greater than the set number of times; and the Bluetooth chip performs restarting operation on the Bluetooth chip according to the restarting instruction. In the embodiment of the application, if the times of failure of deleting the existing broadcast packet filtering information by the bluetooth chip are greater than the set times, the bluetooth chip is indicated to have a fault, and the master control chip controls the bluetooth chip to restart so as to remove the fault.
In the normal communication phase: the Bluetooth chip receives broadcast packet filtering information which is issued by the main control chip and corresponds to a current Bluetooth broadcast packet; and the Bluetooth chip updates the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current Bluetooth broadcast packet. In the above embodiment, the bluetooth chip determines whether the number of the existing broadcast packet filtering information reaches the target number; if so, deleting the earliest broadcast packet filtering information to configure new broadcast packet filtering information; if not, continuing to configure the broadcast packet filtering information. Because the restriction of bluetooth chip's memory space, this application embodiment adopts first-out's mode when the number of broadcast package filtering information reaches the target number, keeps up-to-date broadcast package filtering information, rejects earliest broadcast package filtering information. In the implementation of the application, the number of the targets is not limited, and the value of the number of the targets can be limited according to the actual condition of the product.
Based on the above description of the embodiments, fig. 3 is a flowchart illustrating a data processing method according to an exemplary embodiment of the present application. As shown in fig. 3, the method includes:
s301: a Bluetooth chip of the Bluetooth device receives a current Bluetooth broadcast packet sent by an opposite-end Bluetooth device;
s302: the Bluetooth chip filters the current Bluetooth broadcast packet according to broadcast packet filtering information issued before by a main control chip in the Bluetooth equipment;
s303: if the current Bluetooth broadcast packet is not filtered, reporting the current Bluetooth broadcast packet to a main control chip;
s304: the main control chip receives a current Bluetooth broadcast packet reported by a Bluetooth chip in the Bluetooth equipment;
s305: the main control chip analyzes the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet;
s306: the main control chip sends broadcast packet filtering information corresponding to the current Bluetooth broadcast packet to the Bluetooth chip;
s307: the Bluetooth chip receives broadcast packet filtering information which is issued by the main control chip and corresponds to a current Bluetooth broadcast packet;
s308: and the Bluetooth chip updates the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current Bluetooth broadcast packet.
In this embodiment, the main bluetooth device for executing the method may be a computer device or a handheld device, and the implementation forms of the main bluetooth device may be various, for example, a smart phone, a personal computer, a tablet computer, a smart speaker, and the like. The opposite-end Bluetooth device matched with the Bluetooth device can be an intelligent bulb, an intelligent television, an intelligent washing machine, an intelligent electric appliance such as a robot and the like. The Bluetooth device and the at least one opposite-end Bluetooth device have different implementation forms according to different scenes, and in the scene of the household appliance device, the Bluetooth device is an intelligent sound box, the opposite-end Bluetooth device is an intelligent bulb, an intelligent television is arranged, a sweeping robot is arranged, and intelligent household appliances such as an intelligent curtain are arranged.
And (3) equipment starting: when the Bluetooth equipment is started, the main control chip of the Bluetooth equipment and the Bluetooth chip negotiate the number of filters which can be configured on the Bluetooth chip. One way to implement this is that, when the bluetooth device is started, the main control chip of the bluetooth device responds to the bluetooth device start-up instruction, and sends the first specified number of the configuration broadcast packet filter information to the bluetooth chip in the bluetooth device. The first designated number is determined according to actual product requirements, and in a common user scenario, the number of the bluetooth paired devices which can be searched around the bluetooth device is less than 255, so that the empirical value may be 255. The method comprises the steps that a Bluetooth chip of the Bluetooth device receives a first appointed number of configuration broadcast packet filtering information issued by a main control chip, the Bluetooth chip judges whether the broadcast packet filtering information of the first appointed number can be configured in a memory of the Bluetooth chip, and if yes, a space for containing the broadcast packet filtering information of the first appointed number is created in the memory; if not, sending a configuration failure instruction to the main control chip so that the main control chip can determine a second designated number of the configuration broadcast packet filtering information again, wherein the second designated number is smaller than the first designated number. In this application embodiment, the main control chip of bluetooth equipment communicates with the bluetooth chip and negotiates the number that the bluetooth chip can dispose the filter, prevents that the not enough card that causes of memory of bluetooth chip from pausing, and when bluetooth equipment starts at every turn, the number of the filter that the bluetooth chip can confirm the configuration can ensure follow-up normal communication process.
In the above embodiment, the main control chip receives the configuration failure instruction returned by the bluetooth chip, reduces the first designated number by the set number of times according to the configuration failure instruction, obtains the second designated number for configuring the broadcast packet filtering information, and sends the first designated number for configuring the broadcast packet filtering information to the bluetooth chip again until the number of times of failure attempts by the main control chip to the bluetooth chip is greater than the set threshold. The setting times and the setting threshold are not limited in the embodiment of the application, and can be adjusted according to actual conditions. For example, when the first designated number is 255, the second designated number is decreased by 5 to 250, and the bluetooth chip is requested to attempt again until the negotiation is successful or the number of times that the master control chip attempts to the bluetooth chip fails is greater than the set threshold, and the negotiation is stopped.
And (3) a Bluetooth activation stage: when the bluetooth device is in an inactive state, the bluetooth device cannot process the bluetooth broadcast packet at this time, and then the bluetooth Mesh function of the bluetooth chip needs to be turned off. One way to implement this is that the main control chip determines whether the bluetooth device is in an active state, and if the bluetooth device is in an inactive state, the main control chip sends target filtering information for discarding all bluetooth broadcast packets to the bluetooth chip. The Bluetooth chip receives target filtering information which is sent by the main control chip and used for discarding all Bluetooth broadcast packets, wherein a discarding instruction is sent by the main control chip when the Bluetooth device is in an inactivated state; and the Bluetooth chip discards the received Bluetooth broadcast packet according to the target filtering information. In this embodiment, when the bluetooth device is in an inactive state, the bluetooth chip configures target filtering information for discarding all bluetooth broadcast packets, and the bluetooth chip discards all received bluetooth broadcast packets, thereby ensuring that the master control chip does not process any bluetooth broadcast packet, and reducing power consumption of the bluetooth device. According to the Bluetooth broadcast packet processing method and device, under the special condition that the Bluetooth device is in an inactivated state, the Bluetooth Mesh function is turned off, the Bluetooth chip discards all received Bluetooth broadcast packets, the master control chip is guaranteed not to process any Bluetooth broadcast packet, the power consumption of the Bluetooth device is reduced, and the filter of the Bluetooth Mesh is flexible and controllable.
A device pairing stage: the main control chip responds to a request for discovering paired equipment initiated by a user; sending a broadcast packet filtering information deleting instruction to a Bluetooth chip according to a request for finding paired equipment, wherein the Bluetooth chip receives the broadcast packet filtering information deleting instruction sent by a main control chip, and the broadcast packet filtering information deleting instruction is sent by the main control chip after receiving the request for finding the paired equipment initiated by a user; deleting the existing broadcast packet filtering information. For example, the bluetooth device responds to an operation initiated by a user to discover the paired device, and the main control chip receives a request for discovering the paired device, and sends a broadcast packet filtering information deleting instruction to the bluetooth chip to delete the existing broadcast packet filtering information, so as to ensure that the main control chip can receive an instruction of any peer bluetooth device to perform the pairing operation. According to the Bluetooth device, after a user initiates a request for finding the paired devices, the filters are flexibly configured, the existing parameters of the filters are deleted, the main control chip can be ensured to receive the instruction of any opposite-end Bluetooth device, so that the pairing operation is carried out, and the pairing success rate of Bluetooth products is improved.
In the above embodiment, the bluetooth chip deletes the existing broadcast packet filtering information, and if the bluetooth chip is abnormal when deleting the existing broadcast packet filtering information, the main control chip needs to send the broadcast packet filtering information deleting instruction again. The main control chip judges whether the frequency of sending the broadcast packet filtering information deleting instruction to the Bluetooth chip is greater than the set frequency; and if so, sending a restart instruction to the Bluetooth chip. The Bluetooth chip receives a restart instruction sent by the main control chip, wherein the restart instruction is sent when the number of times that the main control chip sends a filtering information deleting instruction is greater than the set number of times; and the Bluetooth chip performs restarting operation on the Bluetooth chip according to the restarting instruction. In the embodiment of the application, if the number of times that the bluetooth chip fails to delete the existing broadcast packet filtering information is greater than the set number of times, it indicates that the bluetooth chip has a fault, and the master control chip controls the bluetooth chip to restart so as to remove the fault.
And (3) a normal communication stage: the Bluetooth chip receives broadcast packet filtering information which is issued by the main control chip and corresponds to a current Bluetooth broadcast packet; and the Bluetooth chip updates the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current Bluetooth broadcast packet. In the above embodiment, the bluetooth chip determines whether the number of the existing broadcast packet filtering information reaches the target number; if so, deleting the earliest broadcast packet filtering information to configure new broadcast packet filtering information; if not, continuing to configure the broadcast packet filtering information. Because the restriction of bluetooth chip's memory space, this application embodiment adopts first-out's mode when the number of broadcast package filtering information reaches the target number, keeps up-to-date broadcast package filtering information, rejects earliest broadcast package filtering information. In the implementation of the application, the number of the targets is not limited, and the value of the number of the targets can be limited according to the actual condition of the product.
Based on the above description of the embodiments, from the perspective of a wireless communication chip in an intelligent device, fig. 4a is a schematic flowchart of another data processing method provided in an exemplary embodiment of the present application, and as shown in fig. 4a, the method includes:
s411: receiving a current broadcast packet sent by opposite-end intelligent equipment;
s412: filtering the current broadcast packet according to broadcast packet filtering information issued by a main control chip in the intelligent equipment;
s413: if the current broadcast packet is not filtered, reporting the current broadcast packet to the main control chip so that the main control chip can process the current broadcast packet.
From the perspective of a host chip in an intelligent device, fig. 4b is a schematic flowchart of another data processing method provided in an exemplary embodiment of the present application, and as shown in fig. 4b, the method includes:
s421: receiving a current broadcast packet reported by a wireless communication chip in intelligent equipment;
s422: analyzing the current broadcast packet to obtain broadcast packet filtering information corresponding to the current broadcast packet;
s423: and transmitting the broadcast packet filtering information corresponding to the current broadcast packet to the wireless communication chip so that the wireless communication chip can filter the subsequently received broadcast packet.
In this embodiment, the main bluetooth device for executing the method may be a computer device or a handheld device, and the implementation forms of the main bluetooth device may be various, for example, a smart phone, a personal computer, a tablet computer, a smart speaker, and the like. The opposite-end Bluetooth device matched with the Bluetooth device can be an intelligent bulb, an intelligent television, an intelligent washing machine, an intelligent electric appliance such as a robot and the like. The Bluetooth device and the at least one opposite-end Bluetooth device have different implementation forms according to different scenes, and in the scene of the household appliance device, the Bluetooth device is an intelligent sound box, the opposite-end Bluetooth device is an intelligent bulb, an intelligent television is arranged, a sweeping robot is arranged, and intelligent household appliances such as an intelligent curtain are arranged.
For the execution steps of the data processing method, reference may be made to the description of the foregoing embodiments, and details are not repeated here.
Based on the above description of the embodiments, from the perspective of a wireless communication chip in an intelligent device, fig. 5a is a schematic flowchart of a method for determining the amount of filtering information according to an exemplary embodiment of the present application, and as shown in fig. 5a, the method includes:
s511: receiving a first specified number of configuration broadcast packet filtering information issued by a main control chip;
s512: judging whether the first appointed number of broadcast packet filtering information can be configured in the memory of the self-body; if yes, go to step S513, otherwise go to step S514;
s513: creating a space for accommodating a first specified number of broadcast packet filtering information in a memory;
s514: and sending a configuration failure instruction to the main control chip so that the main control chip can determine a second designated number of the configuration broadcast packet filtering information again, wherein the second designated number is smaller than the first designated number.
From the perspective of a main control chip in an intelligent device, fig. 5b is a schematic flowchart of another method for determining the amount of filtered information according to an exemplary embodiment of the present application, and as shown in fig. 5b, the method includes:
s521: responding to a starting instruction of the intelligent equipment, and sending a first specified number of configuration broadcast packet filtering information to a wireless communication chip in the intelligent equipment;
s522: receiving a configuration failure instruction returned by the wireless communication chip;
s523: and re-determining a second designated number of the filtering information of the configuration broadcast packet according to the configuration failure instruction, wherein the second designated number is smaller than the first designated number of the data.
In this embodiment, the main bluetooth device for executing the method may be a computer device or a handheld device, and the implementation forms of the main bluetooth device may be various, for example, a smart phone, a personal computer, a tablet computer, a smart speaker, and the like. The opposite-end Bluetooth device paired with the Bluetooth device can be an intelligent bulb, an intelligent television, an intelligent washing machine, an intelligent electric appliance such as a robot and the like. The Bluetooth device and the at least one opposite-end Bluetooth device have different implementation forms according to different scenes, and in the scene of the household appliance device, the Bluetooth device is an intelligent sound box, the opposite-end Bluetooth device is an intelligent bulb, an intelligent television is arranged, a sweeping robot is arranged, and intelligent household appliances such as an intelligent curtain are arranged.
For the execution steps of the method for determining the amount of filtering information, reference may be made to the description of the corresponding parts in the foregoing embodiments, and details are not repeated here.
Based on the above description of the embodiments, from the wireless communication chip in the smart device, fig. 6a is a flowchart illustrating a filtering information configuration method according to an exemplary embodiment of the present application. As shown in fig. 6a, the method comprises:
s611: receiving broadcast packet filtering information corresponding to a current broadcast packet and issued by a main control chip;
s612: and updating the broadcast packet filtering information which is received before according to the broadcast packet filtering information corresponding to the current broadcast packet.
Fig. 6b is a schematic flowchart of another filtering information configuration method provided in an exemplary embodiment of the present application from a master control chip in an intelligent device. As shown in fig. 6b, the method comprises:
s621: receiving a current broadcast packet reported by a wireless communication chip in intelligent equipment;
s622: analyzing the current broadcast packet to obtain broadcast packet filtering information corresponding to the current broadcast packet;
s623: and transmitting the broadcast packet filtering information corresponding to the current broadcast packet to the wireless communication chip so that the wireless communication chip can update the previously received broadcast packet filtering information.
In this embodiment, the main bluetooth device for executing the method may be a computer device or a handheld device, and the implementation forms of the main bluetooth device may be various, for example, a smart phone, a personal computer, a tablet computer, a smart speaker, and the like. The opposite-end Bluetooth device paired with the Bluetooth device can be an intelligent bulb, an intelligent television, an intelligent washing machine, an intelligent electric appliance such as a robot and the like. The Bluetooth device and the at least one opposite-end Bluetooth device have different implementation forms according to different scenes, and in the scene of the household appliance device, the Bluetooth device is an intelligent sound box, the opposite-end Bluetooth device is an intelligent bulb, an intelligent television is arranged, a sweeping robot is arranged, and intelligent household appliances such as an intelligent curtain are arranged.
For the execution steps of the filtering information configuration method, reference may be made to the description of the foregoing embodiments, which are not repeated herein.
Fig. 7 is a flowchart of another data processing method provided in an exemplary embodiment of the present application, and as shown in fig. 7, the method includes:
s701: the wireless communication chip receives a plurality of broadcast packets sent by the opposite terminal equipment and sends the broadcast packets to the main control chip;
s702: the main control chip generates various broadcast packet filtering information according to the plurality of broadcast packets;
s703: the main control chip sends the filtering information of various broadcast packets to the wireless communication chip;
s704: and the wireless communication chip filters the subsequently received broadcast packet according to the filtering information of the various broadcast packets.
In this embodiment, the main intelligent device for executing the method may be a computer device or a handheld device, and the implementation forms of the main intelligent device may be various, for example, a smart phone, a personal computer, a tablet computer, a smart speaker, and the like. The opposite-end Bluetooth device matched with the Bluetooth device can be an intelligent bulb, an intelligent television, an intelligent washing machine, an intelligent electric appliance such as a robot and the like. The Bluetooth device and the at least one opposite-end Bluetooth device have different implementation forms according to different scenes, and in the scene of the household appliance device, the Bluetooth device is an intelligent sound box, the opposite-end Bluetooth device is an intelligent bulb, an intelligent television is arranged, a sweeping robot is arranged, and intelligent household appliances such as an intelligent curtain are arranged.
In this embodiment, the main control chip may set a target transmission number of the broadcast packet filtering information, and after receiving different broadcast packets of the target transmission number sent by the peer device, analyze the broadcast packets of the target transmission number to obtain multiple broadcast packet filtering information. The main control chip sends the filtering information of the various broadcast packets to the wireless communication chip, and the wireless communication chip generates a corresponding filter to filter the subsequent broadcast packets according to the filtering information of the various broadcast packets.
For the configuration method of the broadcast packet filtering information, reference may be made to the description of the foregoing embodiments, and details are not repeated here.
Fig. 8 is a flowchart of another data processing method provided in an exemplary embodiment of the present application, where as shown in fig. 8, the method includes:
s801: the main control chip receives target filtering information sent by the intelligent terminal;
s802: the main control chip sends the target filtering information to the wireless communication chip;
s803: and the wireless communication chip filters the broadcast packet received later according to the target filtering information.
In this embodiment, the main intelligent device for executing the method may be a computer device or a handheld device, and the implementation form of the main intelligent device may be various, for example, a smart phone, a personal computer, a tablet computer, a smart sound box, and the like. The opposite-end Bluetooth device matched with the Bluetooth device can be an intelligent bulb, an intelligent television, an intelligent washing machine, an intelligent electric appliance such as a robot and the like. The Bluetooth device and the at least one opposite-end Bluetooth device have different implementation forms according to different scenes, and in the scene of the household appliance device, the Bluetooth device is an intelligent sound box, the opposite-end Bluetooth device is an intelligent bulb, an intelligent television is arranged, a sweeping robot is arranged, and intelligent household appliances such as an intelligent curtain are arranged.
In this embodiment, the intelligent terminal establishes a communication connection with the intelligent device, and the intelligent terminal sends the target filtering information to the intelligent terminal according to an actual situation. The target filtering information may be black and white list information of a specific terminal device, information for filtering a specific type of information, or information for not filtering a specific type of information. The main control chip sends the target filtering information to the wireless communication chip, and the wireless communication chip configures a corresponding filter according to the target filtering information to filter the subsequently received broadcast packet.
Fig. 9 is a flowchart of a method of another data processing method according to an exemplary embodiment of the present application, and as shown in fig. 9, the method includes:
s901: receiving a current Bluetooth broadcast packet reported by a Bluetooth chip in first Bluetooth equipment;
s902: analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet;
s903: and sending the broadcast packet filtering information to the second Bluetooth equipment so that the second Bluetooth equipment can filter the subsequently received Bluetooth broadcast packet.
In this embodiment, the main bluetooth device for executing the method may be a computer device or a handheld device, and the implementation forms of the main bluetooth device may be various, for example, a smart phone, a personal computer, a tablet computer, a smart speaker, and the like. The opposite-end Bluetooth device matched with the Bluetooth device can be an intelligent bulb, an intelligent television, an intelligent washing machine, an intelligent electric appliance such as a robot and the like. The Bluetooth device and the at least one opposite-end Bluetooth device have different implementation forms according to different scenes, and in the scene of the household appliance device, the Bluetooth device is an intelligent sound box, the opposite-end Bluetooth device is an intelligent bulb, an intelligent television is arranged, a sweeping robot is arranged, and intelligent household appliances such as an intelligent curtain are arranged.
In some application scenarios, there may be a plurality of bluetooth devices, but only one of the bluetooth devices may execute the instruction, for example, in a home environment, there are a plurality of smart speakers that can control the smart bulb to be turned on, but one smart speaker sends the control instruction to the smart bulb, and it is not necessary for the plurality of smart speakers to control the smart bulb. When a main control chip in the first Bluetooth equipment receives a current Bluetooth broadcast packet reported by a Bluetooth chip, analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet; at this moment, the main control chip in the first bluetooth device sends the overspread packet filtering information corresponding to the bluetooth broadcast packet to other bluetooth devices, and the bluetooth chips of other bluetooth devices configure a filter according to the broadcast packet filtering information corresponding to the current bluetooth broadcast packet, and filter the subsequent received bluetooth broadcast packet.
In the method embodiment of the present application, a bluetooth chip in a bluetooth device filters a current bluetooth broadcast packet through broadcast packet filtering information issued before a main control chip, so as to filter a repeatedly transmitted bluetooth broadcast packet; the Bluetooth chip sends the unfiltered Bluetooth broadcast packet to the main control chip so that the main control chip can process the current Bluetooth broadcast packet; the same Bluetooth broadcast packet does not need to be processed repeatedly, the CPU occupancy rate of the main control chip is reduced, the data processing efficiency of the main control chip is improved, and the overall power consumption of the Bluetooth device is reduced.
In addition, under the special condition that the Bluetooth device is in an inactive state, the Bluetooth Mesh function is turned off, the Bluetooth chip discards all received Bluetooth broadcast packets, the master control chip is guaranteed not to process any Bluetooth broadcast packet, the power consumption of the Bluetooth device is reduced, and a filter of the Bluetooth Mesh is more flexible and controllable. According to the method, after a user initiates a request for finding the paired devices, the Bluetooth device flexibly configures the filter, deletes the parameters of the existing filter, ensures that the main control chip can receive the instruction of any opposite-end Bluetooth device, performs pairing operation, and improves the pairing success rate of Bluetooth products.
It should be noted that, the executing subjects of the steps of the method provided in the foregoing embodiments may be the same device, or different devices may also be used as the executing subjects of the method. For example, the execution subject of steps 301 to 303 may be device a; for another example, the execution subject of steps 301 and 302 may be device a, and the execution subject of step 303 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 301, 302, etc., are merely used for distinguishing different operations, and the sequence numbers do not represent any execution order per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
Fig. 10 is a schematic structural diagram of a bluetooth device according to an exemplary embodiment of the present application. As shown in fig. 10, the bluetooth device includes a memory 1001 and a processor 1002. In addition, the bluetooth device further includes necessary components such as a power supply component 1004 and a communication component 1003.
A memory 1001 for storing computer programs and may be configured to store other various data to support operations on the bluetooth device. Examples of such data include instructions for any application or method operating on a bluetooth device.
The memory 1001 may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
A communication component 1003 for performing data transmission with other devices.
The processor 1002, may execute computer instructions stored in the memory 1001 for: receiving a current Bluetooth broadcast packet sent by opposite-end Bluetooth equipment; filtering the current Bluetooth broadcast packet according to broadcast packet filtering information issued by a master control chip in the Bluetooth equipment; if the current Bluetooth broadcast packet is not filtered, the current Bluetooth broadcast packet is reported to the main control chip so that the main control chip can process the current Bluetooth broadcast packet.
Optionally, after reporting the current bluetooth broadcast packet to the main control chip, the processor 1002 may further be configured to: receiving broadcast packet filtering information which is issued by a main control chip and corresponds to a current Bluetooth broadcast packet; and updating the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current Bluetooth broadcast packet.
Optionally, when the processor 1002 updates the broadcast packet filtering information that has been received before according to the broadcast packet filtering information corresponding to the current bluetooth broadcast packet, the processor is specifically configured to: judging whether the number of the existing broadcast packet filtering information reaches the target number or not; if yes, deleting the earliest broadcast packet filtering information to configure new broadcast packet filtering information.
Optionally, the processor 1002 may be further configured to, before filtering the current bluetooth broadcast packet: receiving a first specified number of configuration broadcast packet filtering information issued by a main control chip; judging whether the first appointed number of broadcast packet filtering information can be configured in the memory of the self-body; if yes, a space for containing the first appointed number of broadcast packet filtering information is created in the memory; if not, sending a configuration failure instruction to the main control chip so that the main control chip can determine a second designated number of the configuration broadcast packet filtering information again, wherein the second designated number is smaller than the first designated number.
Optionally, the processor 1002 is further operable to:
receiving target filtering information which is sent by a main control chip and used for discarding all Bluetooth broadcast packets, wherein a discarding instruction is sent by the main control chip when a Bluetooth device is in an inactivated state;
and discarding the received Bluetooth broadcast packet according to the target filtering information.
Optionally, the processor 1002 may be further configured to: receiving a broadcast packet filtering information deleting instruction sent by a main control chip, wherein the broadcast packet filtering information deleting instruction is sent by the main control chip after receiving a request for finding paired equipment initiated by a user; deleting the existing broadcast packet filtering information.
Optionally, the processor 1002 may be further configured to: receiving a restart instruction sent by a main control chip, wherein the restart instruction is sent when the number of times that the main control chip sends a filtering information deleting instruction is greater than a set number of times; and restarting the Bluetooth chip according to the restart instruction.
Correspondingly, the embodiment of the application also provides a computer readable storage medium storing the computer program. The computer-readable storage medium stores a computer program that, when executed by one or more processors, causes the one or more processors to perform the steps in the method embodiment of fig. 2a.
Fig. 11 is a schematic structural diagram of another bluetooth device according to an exemplary embodiment of the present application. As shown in fig. 11, the bluetooth device includes a memory 1101 and a processor 1102. In addition, the bluetooth device includes necessary components such as a power supply component 1104 and a communication component 1103.
A memory 1101 for storing computer programs and may be configured to store various other data to support operations on the bluetooth device. Examples of such data include instructions for any application or method operating on a bluetooth device.
The memory 1101 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A communication component 1103 configured to perform data transmission with other devices.
The processor 1102, which may execute computer instructions stored in the memory 1101, is configured to: receiving a current Bluetooth broadcast packet reported by a Bluetooth chip in Bluetooth equipment; analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet; and transmitting broadcast packet filtering information corresponding to the current Bluetooth broadcast packet to the Bluetooth chip so that the Bluetooth chip can filter the subsequently received Bluetooth broadcast packet.
Optionally, before receiving the current bluetooth broadcast packet reported by the bluetooth chip in the bluetooth device, the processor 1102 may further be configured to: responding to a starting instruction of the Bluetooth equipment, and sending a first appointed number of the broadcast packet filtering information to the Bluetooth chip in the Bluetooth equipment so that the Bluetooth chip can judge whether the broadcast packet filtering information with the first appointed number can be configured in the memory of the Bluetooth chip.
Optionally, the processor 1102 is further configured to: receiving a configuration failure instruction returned by the Bluetooth chip; according to the configuration failure instruction, reducing the first specified number by the set times to obtain a second specified number for configuring the broadcast packet filtering information; and transmitting the second specified number of the configuration broadcast packet filtering information to the Bluetooth chip.
Optionally, before receiving the current bluetooth broadcast packet reported by the bluetooth chip in the bluetooth device, the processor 1102 may further be configured to: judging whether the Bluetooth equipment is in an activated state or not; and if the Bluetooth equipment is in an inactivated state, sending target filtering information for discarding all Bluetooth broadcast packets to the Bluetooth chip.
Optionally, before receiving the current bluetooth broadcast packet reported by the bluetooth chip in the bluetooth device, the processor 1102 may be further configured to: receiving a request for discovering paired devices initiated by a user; and sending a broadcast packet filtering information deleting instruction to the Bluetooth chip according to the request of finding the paired equipment so as to enable the Bluetooth chip to delete the existing broadcast packet filtering information.
Optionally, the processor 1102 is further configured to: judging whether the number of times of sending broadcast packet filtering information deleting instructions to the Bluetooth chip is greater than the set number of times; and if so, sending a restart instruction to the Bluetooth chip.
Correspondingly, the embodiment of the application also provides a computer readable storage medium storing the computer program. The computer-readable storage medium stores a computer program, and the computer program, when executed by one or more processors, causes the one or more processors to perform the steps in the method embodiment of fig. 2 b.
Fig. 12 is a schematic structural diagram of an intelligent device according to an exemplary embodiment of the present application. As shown in fig. 12, the smart device includes a memory 1201 and a processor 1202. In addition, the intelligent device also comprises necessary components such as a power supply component 1204 and a communication component 1203.
A memory 1201 for storing a computer program and may be configured to store other various data to support operations on the smart device. Examples of such data include instructions for any application or method operating on the smart device.
The memory 1201 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A communication component 1203 used for data transmission with other devices.
A processor 1202 that can execute computer instructions stored in memory 1201 to: receiving a first specified number of configuration broadcast packet filtering information issued by a main control chip; judging whether the first appointed number of broadcast packet filtering information can be configured in the memory of the self-body; if yes, a space for containing a first specified number of broadcast packet filtering information is created in the memory; if not, sending a configuration failure instruction to the main control chip so that the main control chip can determine a second specified number of the configuration broadcast packet filtering information again, wherein the second specified number is smaller than the first specified number.
Optionally, the processor 1202 may be further configured to: receiving a second specified number of configuration broadcast packet filtering information sent by the main control chip; judging whether the self memory can be configured with a second specified number of broadcast packet filtering information; and if so, establishing a space for accommodating a second specified number of broadcast packet filtering information in the memory.
Correspondingly, the embodiment of the application also provides a computer readable storage medium storing the computer program. The computer-readable storage medium stores a computer program, and the computer program, when executed by one or more processors, causes the one or more processors to perform the steps in the method embodiment of fig. 5 a.
Fig. 13 is a schematic structural diagram of an intelligent device according to an exemplary embodiment of the present application. As shown in fig. 13, the smart device includes a memory 1301 and a processor 1302. In addition, the intelligent device further comprises necessary components such as a power component 1304 and a communication component 1303.
A memory 1301 for storing a computer program and may be configured to store other various data to support operations on the smart device. Examples of such data include instructions for any application or method operating on the smart device.
The memory 1301, may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
And a communication component 1303 for performing data transmission with other devices.
Processor 1302 may execute computer instructions stored in memory 1301 for: responding to a starting instruction of the intelligent equipment, and sending a first specified number of configuration broadcast packet filtering information to a wireless communication chip in the intelligent equipment; receiving a configuration failure instruction returned by the wireless communication chip; and re-determining a second designated number of the filtering information of the configuration broadcast packet according to the configuration failure instruction, wherein the second designated number is smaller than the first designated number of the data.
Optionally, the processor 1302, after sending the first specified number of configuration broadcast packet filtering information to the wireless communication chip in the smart device, may further be configured to: and receiving a configuration success instruction returned by the wireless communication chip.
Correspondingly, the embodiment of the application also provides a computer readable storage medium storing the computer program. The computer-readable storage medium stores a computer program, and the computer program, when executed by one or more processors, causes the one or more processors to perform the steps in the method embodiment of fig. 5 b.
Fig. 14 is a schematic structural diagram of an intelligent device according to an exemplary embodiment of the present application. As shown in fig. 14, the smart device includes a memory 1401 and a processor 1402. In addition, the smart device includes necessary components such as a power component 1404 and a communication component 1403.
The memory 1401 is used to store computer programs and may be configured to store other various data to support operations on the smart device. Examples of such data include instructions for any application or method operating on the smart device.
The memory 1401, which may be implemented by any type of volatile or non-volatile memory device or combination thereof, may include a Static Random Access Memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.
A communication component 1403 for communicating data with other devices.
The processor 1402, executing the computer instructions stored in the memory 1401, is to: receiving broadcast packet filtering information corresponding to a current broadcast packet and issued by a main control chip; and updating the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current broadcast packet.
Optionally, the processor 1402 may be further configured to: judging whether the number of the existing broadcast packet filtering information reaches a target number or not; if yes, deleting the earliest broadcast packet filtering information to configure new broadcast packet filtering information.
Correspondingly, the embodiment of the application also provides a computer readable storage medium storing the computer program. The computer-readable storage medium stores a computer program, and the computer program, when executed by one or more processors, causes the one or more processors to perform the steps in the method embodiment of fig. 6 a.
Fig. 15 is a schematic structural diagram of an intelligent device according to an exemplary embodiment of the present application. As shown in fig. 15, the smart device includes a memory 1501 and a processor 1502. In addition, the intelligent device also includes necessary components such as a power component 1504 and a communication component 1503.
A memory 1501 is used for storing computer programs and may be configured to store other various data to support operations on the smart device. Examples of such data include instructions for any application or method operating on the smart device.
The memory 1501, which may be implemented by any type of volatile or non-volatile memory device or combination thereof, may include, for example, static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
A communication component 1503 for data transmission with other devices.
The processor 1502, executing computer instructions stored in the memory 1501, is configured to: receiving a current broadcast packet reported by a wireless communication chip in the intelligent equipment; analyzing the current broadcast packet to obtain broadcast packet filtering information corresponding to the current broadcast packet; and transmitting the broadcast packet filtering information corresponding to the current broadcast packet to the wireless communication chip so that the wireless communication chip can update the previously received broadcast packet filtering information.
Correspondingly, the embodiment of the application also provides a computer readable storage medium storing the computer program. The computer-readable storage medium stores a computer program, and the computer program, when executed by one or more processors, causes the one or more processors to perform the steps in the method embodiment of fig. 6 b.
Fig. 16 is a schematic structural diagram of an intelligent device according to an exemplary embodiment of the present application. As shown in fig. 16, the smart device includes a memory 1601 and a processor 1602. In addition, the smart device includes necessary components such as a power component 1604 and a communication component 1603.
A memory 1601 is used to store computer programs and may be configured to store other various data to support operations on the smart device. Examples of such data include instructions for any application or method operating on the smart device.
The memory 1601 may be implemented by any type or combination of volatile and non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A communication component 1603 for data transmission with other devices.
Processor 1602, may execute computer instructions stored in memory 1601 to:
receiving a current broadcast packet sent by opposite-end intelligent equipment; filtering the current broadcast packet according to broadcast packet filtering information issued by a main control chip in the intelligent equipment; if the current broadcast packet is not filtered, reporting the current broadcast packet to a main control chip so that the main control chip can process the current broadcast packet.
Correspondingly, the embodiment of the application also provides a computer readable storage medium storing the computer program. The computer-readable storage medium stores a computer program, and the computer program, when executed by one or more processors, causes the one or more processors to perform the steps in the method embodiment of fig. 4 a.
Fig. 17 is a schematic structural diagram of an intelligent device according to an exemplary embodiment of the present application. As shown in fig. 17, the smart device includes a memory 1701 and a processor 1702. In addition, the smart device includes necessary components such as a power component 1704 and a communication component 1703.
The memory 1701 is used to store computer programs and may be configured to store other various data to support operations on the smart device. Examples of such data include instructions for any application or method operating on the smart device.
The memory 1701 may be implemented using any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A communication component 1703 for data transmission with other devices.
The processor 1702, which may execute computer instructions stored in the memory 1701, is configured to: receiving a current broadcast packet reported by a wireless communication chip in the intelligent equipment; analyzing the current broadcast packet to obtain broadcast packet filtering information corresponding to the current broadcast packet; and transmitting the broadcast packet filtering information corresponding to the current broadcast packet to the wireless communication chip so that the wireless communication chip can filter the subsequently received broadcast packet.
Correspondingly, the embodiment of the application also provides a computer readable storage medium storing the computer program. The computer-readable storage medium stores a computer program, and the computer program, when executed by one or more processors, causes the one or more processors to perform the steps in the method embodiment of fig. 4 b.
The communications components of fig. 10 and 17 described above are configured to facilitate communications between the device in which the communications component is located and other devices in a wired or wireless manner. The device where the communication component is located can access a wireless network based on a communication standard, such as a WiFi, a 2G, 3G, 4G/LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
The power supply components of fig. 7 and 14 described above provide power to the various components of the device in which the power supply components are located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
The bluetooth device may further include a display including a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The bluetooth device may further include an audio component configurable to output and/or input audio signals. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals.
In the device embodiment of the present application, the bluetooth chip in the bluetooth device filters the current bluetooth broadcast packet through the broadcast packet filtering information issued before the main control chip, so as to filter the repeatedly transmitted bluetooth broadcast packet; the Bluetooth chip sends the unfiltered Bluetooth broadcast packet to the main control chip so that the main control chip can process the current Bluetooth broadcast packet; the same Bluetooth broadcast packet does not need to be processed repeatedly, the CPU occupancy rate of the main control chip is reduced, the data processing efficiency of the main control chip is improved, and the overall power consumption of the Bluetooth device is reduced.
In addition, under the special condition that the Bluetooth device is in an inactive state, the Bluetooth Mesh function is turned off, the Bluetooth chip discards all received Bluetooth broadcast packets, the master control chip is guaranteed not to process any Bluetooth broadcast packet, the power consumption of the Bluetooth device is reduced, and a filter of the Bluetooth Mesh is more flexible and controllable. According to the method, after a user initiates a request for finding the paired devices, the Bluetooth device flexibly configures the filter, deletes the parameters of the existing filter, ensures that the main control chip can receive the instruction of any opposite-end Bluetooth device, performs pairing operation, and improves the pairing success rate of Bluetooth products.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (19)

1. A data processing method is suitable for a Bluetooth chip in Bluetooth equipment, and is characterized by comprising the following steps:
receiving a current Bluetooth broadcast packet sent by opposite-end Bluetooth equipment;
filtering the current Bluetooth broadcast packet according to a physical address and broadcast packet data contained in broadcast packet filtering information issued by a main control chip in the local terminal Bluetooth equipment; the physical address is the physical address of the bluetooth device which sends the bluetooth broadcast packet corresponding to the broadcast packet filtering information, and the number of the broadcast packet filtering information allowed to be configured in the bluetooth chip is obtained by communication negotiation between the bluetooth chip and the main control chip when the local-end bluetooth device is started;
if the current Bluetooth broadcast packet is not filtered, reporting the current Bluetooth broadcast packet to a main control chip so that the main control chip can process the current Bluetooth broadcast packet.
2. The method of claim 1, wherein after reporting the current bluetooth broadcast packet to the master chip, the method further comprises:
receiving broadcast packet filtering information which is issued by a main control chip and corresponds to a current Bluetooth broadcast packet;
and updating the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current Bluetooth broadcast packet.
3. The method of claim 2, wherein updating the previously received broadcast packet filtering information according to the broadcast packet filtering information corresponding to the current bluetooth broadcast packet comprises:
judging whether the number of the existing broadcast packet filtering information reaches a target number or not;
if yes, deleting the earliest broadcast packet filtering information to configure new broadcast packet filtering information.
4. The method of claim 1, wherein prior to filtering current bluetooth broadcast packets, the method further comprises:
receiving a first specified number of configuration broadcast packet filtering information issued by a main control chip;
judging whether the first appointed number of broadcast packet filtering information can be configured in the memory of the self-body;
if yes, a space for containing a first specified number of broadcast packet filtering information is created in the memory;
if not, sending a configuration failure instruction to the main control chip so that the main control chip can determine a second designated number of the configuration broadcast packet filtering information again, wherein the second designated number is smaller than the first designated number.
5. The method of claim 1, further comprising:
receiving target filtering information which is sent by a main control chip and used for discarding all Bluetooth broadcast packets, wherein a discarding instruction is sent by the main control chip when a Bluetooth device is in an inactivated state;
and discarding the received Bluetooth broadcast packet according to the target filtering information.
6. The method of claim 1, further comprising:
receiving a broadcast packet filtering information deleting instruction sent by a main control chip, wherein the broadcast packet filtering information deleting instruction is sent by the main control chip after receiving a request for discovering paired equipment initiated by a user;
deleting the existing broadcast packet filtering information.
7. The method of claim 6, further comprising:
receiving a restart instruction sent by a main control chip, wherein the restart instruction is sent when the number of times of sending a filtering information deleting instruction by the main control chip is more than a set number of times;
and restarting the Bluetooth chip according to the restart instruction.
8. A data processing method is suitable for a main control chip in Bluetooth equipment, and is characterized by comprising the following steps:
receiving a current Bluetooth broadcast packet reported by a Bluetooth chip in the local terminal Bluetooth equipment;
analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet;
the method comprises the steps of sending broadcast packet filtering information corresponding to a current Bluetooth broadcast packet to a Bluetooth chip so that the Bluetooth chip can filter a subsequent received Bluetooth broadcast packet based on a physical address and broadcast packet data contained in the broadcast packet filtering information, wherein the physical address is the physical address of Bluetooth equipment which sends the Bluetooth broadcast packet corresponding to the broadcast packet filtering information, and the number of the broadcast packet filtering information allowed to be configured in the Bluetooth chip is obtained by communication negotiation between the Bluetooth chip and a main control chip when the local end Bluetooth equipment is started.
9. The method of claim 8, wherein before receiving a current bluetooth broadcast packet reported by a bluetooth chip in the bluetooth device, the method further comprises:
responding to a starting instruction of the Bluetooth equipment, and sending a first appointed number of the broadcast packet filtering information to the Bluetooth chip in the Bluetooth equipment so that the Bluetooth chip can judge whether the broadcast packet filtering information with the first appointed number can be configured in the memory of the Bluetooth chip.
10. The method of claim 9, further comprising:
receiving a configuration failure instruction returned by the Bluetooth chip;
according to the configuration failure instruction, reducing the first specified number by a set number to obtain a second specified number for configuring the broadcast packet filtering information;
and issuing the second specified number of the configuration broadcast packet filtering information to the Bluetooth chip.
11. The method of claim 8, wherein before receiving the current bluetooth broadcast packet reported by the bluetooth chip in the bluetooth device, the method further comprises:
judging whether the Bluetooth equipment is in an activated state or not;
and if the Bluetooth equipment is in an inactivated state, sending target filtering information for discarding all Bluetooth broadcast packets to the Bluetooth chip.
12. The method of claim 8, wherein before receiving the current bluetooth broadcast packet reported by the bluetooth chip in the bluetooth device, the method further comprises:
receiving a request for discovering paired devices initiated by a user;
and sending a broadcast packet filtering information deleting instruction to the Bluetooth chip according to the request of finding the paired equipment so as to enable the Bluetooth chip to delete the existing broadcast packet filtering information.
13. The method of claim 12, further comprising:
judging whether the number of times of sending broadcast packet filtering information deleting instructions to the Bluetooth chip is greater than the set number of times;
and if so, sending a restart instruction to the Bluetooth chip.
14. A bluetooth device, comprising: a memory and a processor;
the memory to store one or more computer instructions;
the processor to execute the one or more computer instructions to:
receiving a current Bluetooth broadcast packet sent by opposite-end Bluetooth equipment;
filtering a current Bluetooth broadcast packet according to a physical address and broadcast packet data contained in broadcast packet filtering information issued by a main control chip in a local terminal Bluetooth device, wherein the physical address is the physical address of the Bluetooth device which sends the Bluetooth broadcast packet corresponding to the broadcast packet filtering information, and the number of the broadcast packet filtering information allowed to be configured in a Bluetooth chip in the local terminal Bluetooth device is obtained by communication negotiation between the Bluetooth chip and the main control chip when the local terminal Bluetooth device is started;
if the current Bluetooth broadcast packet is not filtered, reporting the current Bluetooth broadcast packet to a main control chip so that the main control chip can process the current Bluetooth broadcast packet.
15. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by one or more processors, causes the one or more processors to perform acts comprising:
receiving a current Bluetooth broadcast packet sent by opposite-end Bluetooth equipment;
filtering a current Bluetooth broadcast packet according to a physical address and broadcast packet data contained in broadcast packet filtering information issued by a main control chip in a local terminal Bluetooth device, wherein the physical address is the physical address of the Bluetooth device which sends the Bluetooth broadcast packet corresponding to the broadcast packet filtering information, and the number of the broadcast packet filtering information allowed to be configured in a Bluetooth chip in the local terminal Bluetooth device is obtained by communication negotiation between the Bluetooth chip and the main control chip when the local terminal Bluetooth device is started;
and if the current Bluetooth broadcast packet is not filtered, reporting the current Bluetooth broadcast packet to a main control chip so that the main control chip can process the current Bluetooth broadcast packet.
16. A bluetooth device, comprising: a memory and a processor;
the memory to store one or more computer instructions;
the processor to execute the one or more computer instructions to:
receiving a current Bluetooth broadcast packet reported by a Bluetooth chip in the local terminal Bluetooth equipment;
analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet;
and broadcast packet filtering information corresponding to the current Bluetooth broadcast packet is issued to the Bluetooth chip so that the Bluetooth chip filters a subsequent received Bluetooth broadcast packet based on a physical address and broadcast packet data contained in the broadcast packet filtering information, wherein the physical address is the physical address of a Bluetooth device which sends the Bluetooth broadcast packet corresponding to the broadcast packet filtering information, and the number of the broadcast packet filtering information allowed to be configured in the Bluetooth chip is obtained by communication negotiation between the Bluetooth chip and the main control chip when the local-end Bluetooth device is started.
17. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by one or more processors, causes the one or more processors to perform acts comprising:
receiving a current Bluetooth broadcast packet reported by a Bluetooth chip in the local terminal Bluetooth equipment;
analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet;
and broadcast packet filtering information corresponding to the current Bluetooth broadcast packet is issued to the Bluetooth chip so that the Bluetooth chip filters a subsequent received Bluetooth broadcast packet based on a physical address and broadcast packet data contained in the broadcast packet filtering information, wherein the physical address is the physical address of a Bluetooth device which sends the Bluetooth broadcast packet corresponding to the broadcast packet filtering information, and the number of the broadcast packet filtering information allowed to be configured in the Bluetooth chip is obtained by communication negotiation between the Bluetooth chip and the main control chip when the local-end Bluetooth device is started.
18. A data processing method is suitable for intelligent equipment, the intelligent equipment comprises a main control chip and a wireless communication chip, and the data processing method is characterized by comprising the following steps:
the wireless communication chip receives a plurality of broadcast packets sent by the opposite terminal equipment and sends the broadcast packets to the main control chip;
the main control chip generates various broadcast packet filtering information according to the plurality of broadcast packets;
the main control chip sends various broadcast packet filtering information to the wireless communication chip, wherein the number of the broadcast packet filtering information allowed to be configured in the wireless communication chip is obtained by communication negotiation between the wireless communication chip and the main control chip when the local intelligent equipment is started;
and the wireless communication chip filters the subsequently received broadcast packet according to a physical address and broadcast packet data contained in the various broadcast packet filtering information, wherein the physical address is the physical address of the intelligent equipment for transmitting the Bluetooth broadcast packet corresponding to the broadcast packet filtering information.
19. A method of data processing, the method comprising:
receiving a current Bluetooth broadcast packet reported by a Bluetooth chip in first Bluetooth equipment;
analyzing the current Bluetooth broadcast packet to obtain broadcast packet filtering information corresponding to the current Bluetooth broadcast packet;
and sending the broadcast packet filtering information to a second Bluetooth device so that the second Bluetooth device can filter a subsequent received Bluetooth broadcast packet based on a physical address and broadcast packet data contained in the broadcast packet filtering information, wherein the physical address is the physical address of the first Bluetooth device sending the Bluetooth broadcast packet corresponding to the broadcast packet filtering information, and the number of the broadcast packet filtering information allowed to be configured in the second Bluetooth device is obtained by communication negotiation between a local Bluetooth chip and a main control chip when the second Bluetooth device is started.
CN202010637491.6A 2020-07-03 2020-07-03 Data processing, filtering information quantity determining and configuring method, equipment and medium Active CN113965889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010637491.6A CN113965889B (en) 2020-07-03 2020-07-03 Data processing, filtering information quantity determining and configuring method, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010637491.6A CN113965889B (en) 2020-07-03 2020-07-03 Data processing, filtering information quantity determining and configuring method, equipment and medium

Publications (2)

Publication Number Publication Date
CN113965889A CN113965889A (en) 2022-01-21
CN113965889B true CN113965889B (en) 2023-03-31

Family

ID=79459237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010637491.6A Active CN113965889B (en) 2020-07-03 2020-07-03 Data processing, filtering information quantity determining and configuring method, equipment and medium

Country Status (1)

Country Link
CN (1) CN113965889B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114585054B (en) * 2022-02-23 2023-11-14 北京小米移动软件有限公司 WIFI connection control method, device and storage medium
CN117793675A (en) * 2022-09-21 2024-03-29 华为技术有限公司 Communication method and communication device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103378654B (en) * 2012-04-27 2015-06-17 南京南瑞继保电气有限公司 Method for filtering network messages of process level of intelligent substation
US9774985B2 (en) * 2015-03-25 2017-09-26 Intel IP Corporation Broadcast aging for bluetooth low energy
CN110191447A (en) * 2019-05-28 2019-08-30 深圳云里物里科技股份有限公司 The filter method and relevant apparatus of Bluetooth broadcast packet in a kind of ESL
CN110996268B (en) * 2019-12-12 2021-09-24 上海磐启微电子有限公司 SIG mesh-based broadcast bearer layer message filtering strategy method

Also Published As

Publication number Publication date
CN113965889A (en) 2022-01-21

Similar Documents

Publication Publication Date Title
KR102228343B1 (en) Swapping roles between untethered wirelessly connected devices
US10939490B2 (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices, and dual-mode Bluetooth device
CN112751699B (en) OTA upgrading and upgrading management method, equipment, network and storage medium
CN112584364B (en) Bluetooth network, communication method, device and storage medium thereof
CN112350981B (en) Method, device and system for switching communication protocol
CN105451369A (en) Method and apparatus for updating connection parameter of Bluetooth device with low power consumption
CN113395687B (en) Reconnection method, reconnection device, electronic equipment and storage medium
CN104853043A (en) Notification message filtering and control method, smart phone and system
CN113965889B (en) Data processing, filtering information quantity determining and configuring method, equipment and medium
CN105847067A (en) Method and device for upgrading Zigbee equipment
CN104853406A (en) Service set identifier SSID providing method, acquiring method and device
CN106909081B (en) Household electrical appliance and expansion platform based on same
CN112328318B (en) Method, device and storage medium for automatic planning of proprietary cloud platform
CN110769033A (en) Intelligent networking method and system
WO2023061127A1 (en) Communication method and apparatus, earphone set, and computer readable medium
CN113840269B (en) Multimedia data transmission method and device, electronic equipment and storage medium
CN107846646B (en) Control method and device of intelligent sound box and readable storage medium
CN109922465A (en) Network collocating method and device
WO2023061076A1 (en) Bluetooth connection method and apparatus, earphone, and storage medium
CN109673044A (en) Communication control method, chip, the gateway apparatus of chip
CN116321084A (en) Bluetooth communication method, bluetooth communication device, electronic equipment and computer readable medium
CN109712380A (en) Find method and device, the storage medium, terminal device, remote control equipment of remote control equipment
CN108923988B (en) Equipment grouping method and device
CN116527486B (en) Device independent function self-adaptive management method, device and medium
CN103957461A (en) Media play control method, terminal and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant