CN110691332A - Data processing method, device and storage medium based on Bluetooth broadcast - Google Patents

Data processing method, device and storage medium based on Bluetooth broadcast Download PDF

Info

Publication number
CN110691332A
CN110691332A CN201910877619.3A CN201910877619A CN110691332A CN 110691332 A CN110691332 A CN 110691332A CN 201910877619 A CN201910877619 A CN 201910877619A CN 110691332 A CN110691332 A CN 110691332A
Authority
CN
China
Prior art keywords
bluetooth
broadcast
data packet
uuid
chip
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.)
Pending
Application number
CN201910877619.3A
Other languages
Chinese (zh)
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.)
Hunan Jian Cheng Information Technology Co Ltd
Original Assignee
Hunan Jian Cheng Information Technology Co 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 Hunan Jian Cheng Information Technology Co Ltd filed Critical Hunan Jian Cheng Information Technology Co Ltd
Priority to CN201910877619.3A priority Critical patent/CN110691332A/en
Publication of CN110691332A publication Critical patent/CN110691332A/en
Pending legal-status Critical Current

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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • 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

Abstract

The invention discloses a data processing method, data processing equipment and a storage medium based on Bluetooth broadcasting. Wherein, the method comprises the following steps: acquiring a first broadcast data packet, wherein a Universal Unique Identifier (UUID) in the first broadcast data packet carries at least one of the following: query instructions and control instructions; and acquiring the query instruction and/or the control instruction carried in the UUID in the first broadcast data packet based on the first broadcast data packet. The method of the embodiment of the invention can save the time delay caused by establishing the Bluetooth connection for data communication and can reduce the cost of equipment based on the Bluetooth communication. In addition, because the application program in the apple smart phone can only configure the UUID in the Bluetooth broadcast packet, the technical scheme is adopted to enable the Bluetooth broadcast communication equipment to be communicated with the apple smart phone.

Description

Data processing method, device and storage medium based on Bluetooth broadcast
Technical Field
The present invention relates to the field of wireless communications, and in particular, to a data processing method, device, and storage medium based on bluetooth broadcast.
Background
With the development of wireless communication technology, there are various wireless communication modes for users to select, such as bluetooth, wifi, zigbee, 4G, and other wireless modes, wherein zigbee needs to be connected to the internet through a gateway, which is not beneficial to direct connection and control of a mobile terminal, and the general flow of existing bluetooth communication is as follows: sending a broadcast signal from a slave device (an intelligent household appliance terminal or a sensor terminal) → searching for a slave device broadcast signal from a master device (a control device) → establishing a pairing connection → sending an instruction from the master device → receiving an instruction from the slave device. Therefore, the existing bluetooth module has three main problems: firstly, the command needs to be transmitted after the communication connection is established through pairing, so that the data transmission has time delay, and the user experience needs to be improved; secondly, the cost of the Bluetooth module hardware needing pairing communication is high; third, the bluetooth module can only be connected in a one-to-one pairing mode, only can control one slave device, and cannot control a plurality of slave devices.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data processing method, device and storage medium based on bluetooth broadcast, which aim to reduce the cost of a bluetooth communication device and improve the information interaction quality of bluetooth communication.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a data processing method based on Bluetooth broadcast, which comprises the following steps:
acquiring a first broadcast data packet, wherein a Universal Unique Identifier (UUID) in the first broadcast data packet carries at least one of the following: query instructions and control instructions;
and acquiring the query instruction and/or the control instruction carried in the UUID in the first broadcast data packet based on the first broadcast data packet.
An embodiment of the present invention further provides a data processing device based on bluetooth broadcast, including: a control module and a Bluetooth broadcast transceiving module, wherein,
the control module is used for acquiring feedback information of the equipment and/or controlling the working state of the equipment according to a control instruction;
the Bluetooth broadcast transceiver module is connected with the control module and used for sending at least one of the following through a universal unique identifier UUID in a broadcast data packet: the method comprises the steps of receiving at least one of a query instruction, a control instruction, feedback information, service identification information, or receiving the following through a UUID in a broadcast data packet: the system comprises a query instruction, a control instruction, feedback information and service identification information.
An embodiment of the present invention further provides a data processing device based on bluetooth broadcast, including: a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor is configured to execute the steps of the method according to any embodiment of the present invention when running the computer program.
The embodiment of the present invention further provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the method according to any embodiment of the present invention are implemented.
According to the technical scheme provided by the embodiment of the invention, the corresponding query instruction and/or control instruction is acquired by acquiring the first broadcast data packet and acquiring the corresponding query instruction and/or control instruction based on the information carried by the UUID in the first broadcast data packet, so that the time delay caused by data communication by establishing a Bluetooth connection can be saved, and for equipment adopting Bluetooth communication, as the information is only required to be transmitted and received at the Bluetooth broadcast frequency and is not required to be communicated after being matched and connected with other Bluetooth equipment, complete GAP (generic Access Profile) and GATT (generic Attribute Profile) Bluetooth protocols are not required, a Bluetooth protocol stack processor is not required to be configured, and the cost of the equipment based on the Bluetooth communication can be saved. In addition, because the application program in the apple smart phone can only configure the UUID in the Bluetooth broadcast packet, the technical scheme is adopted to enable the Bluetooth broadcast communication equipment to be communicated with the apple smart phone.
Drawings
Fig. 1 is a flowchart illustrating a data processing method based on bluetooth broadcast according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an encoding structure of a broadcast packet according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data processing device based on bluetooth broadcast according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
In the related art, data is transmitted and received by Bluetooth broadcasting generally following a low-power Bluetooth (BLE) protocol, and a protocol stack (protocol stack) corresponding to the BLE protocol adopts a layered structure, and encapsulates application data layer by layer to generate an air data packet satisfying the BLE protocol, and broadcasts the air data packet to peripheral devices. The BLE protocol stack comprises: PHY (Physical Layer), LL (Link Layer), and GAP layers, where the PHY is used to specify a radio frequency band, a modulation and demodulation method, and the like used by BLE. The LL layer is a core of the whole BLE protocol stack, and has many processing matters, such as specifically selecting which radio frequency channel to communicate, how to identify an air data packet, specifically sending out the data packet at which time point, how to ensure data integrity, how to receive ACK, how to retransmit, how to manage and control a link, and the like. The LL layer is only responsible for sending data out or receiving data back, and what kind of parsing is done to the GAP or attribute protocol above. The GAP layer is mainly used for broadcasting, scanning, initiating connection and the like. According to the BLE protocol, one broadcast packet occupies a maximum of 31 bytes, resulting in a limited amount of information carried by the broadcast packet. In addition, a Universally Unique Identifier (UUID) in the broadcast packet is only used for identifying the service, and does not carry additional information, thereby causing the information carried by the broadcast packet to be more limited.
Based on this, in each embodiment of the present invention, the UUID in the broadcast packet is used to carry additional information, so that the broadcast packet is fully used to transmit information, and the information to be broadcast can be carried only by the UUID, so that complete gap (generic Access profile) and gatt (generic Attribute profile) bluetooth protocols are not required, a bluetooth protocol stack processor is not required, and the cost of the equipment based on bluetooth communication can be saved. In addition, because the application program in the apple smart phone can only configure the UUID in the Bluetooth broadcast packet, by adopting the technical scheme, the Bluetooth broadcast communication equipment can communicate with the apple smart phone.
The embodiment of the invention provides a data processing method based on Bluetooth broadcasting, which is applied to terminal equipment based on Bluetooth communication, and the terminal equipment can be various electronic equipment based on Bluetooth communication, such as a mobile phone, a tablet personal computer, an intelligent television, an intelligent sound box, an intelligent gateway, an intelligent router, intelligent household appliance equipment, an intelligent bracelet, intelligent wearable equipment, intelligent beauty equipment, a thermometer, a hygrometer, a sensor and the like. As shown in fig. 1, the method includes:
step 101, obtaining a first broadcast data packet, where a UUID in the first broadcast data packet carries at least one of the following: query instructions and control instructions;
in the embodiment of the invention, a control device (namely, another terminal device based on Bluetooth communication) broadcasts a first broadcast data packet, and a UUID in the first broadcast data packet carries an inquiry instruction and/or a control instruction. The terminal device (also called intelligent device) obtains the first broadcast data packet through scanning in a Bluetooth broadcast channel.
Here, the query instruction includes at least one of: the on/off state, time, intensity, temperature, humidity, operation mode, and the like may be instructions for querying the operation state of the electronic device, which is not limited herein.
Here, the control instruction includes at least one of: the electronic device may be, for example, a computer.
And 102, acquiring the query instruction and/or the control instruction carried in the UUID in the first broadcast data packet based on the first broadcast data packet.
In practical application, the control equipment and the intelligent equipment transmit information in the UUID based on a coding and decoding mode with good protocol. Therefore, the intelligent device can decode the coding information in the UUID to obtain a corresponding query instruction and/or control instruction and execute the query instruction and/or control instruction after acquiring the first broadcast data packet.
According to the method provided by the embodiment of the invention, the first broadcast data packet is obtained, and the corresponding query instruction and/or control instruction is obtained based on the information carried by the UUID in the first broadcast data packet, so that the time delay caused by establishing the Bluetooth connection for data communication can be saved, and for equipment adopting the Bluetooth communication, because the information is only required to be transmitted and received at the Bluetooth broadcast frequency and the equipment does not need to be communicated after being matched and connected with other Bluetooth equipment, complete GAP (GenericAccess profile) and GATT (Generic Attribute profile) Bluetooth protocols are not required, a Bluetooth protocol stack processor is not required to be configured, and the cost of the equipment based on the Bluetooth communication can be saved.
In an embodiment, the UUID in the first broadcast packet further carries service identification information, and the method further includes:
acquiring a service attribute corresponding to the first broadcast data packet based on the service identification information;
and determining that the corresponding service attribute meets a set condition, and executing the query instruction and/or the control instruction.
Here, the service identification information includes at least one of: user ID, service ID, target device ID. The user ID is used for identifying the ID corresponding to the user equipment, the service ID is used for identifying the type corresponding to the service, and the target equipment ID is used for identifying the identity corresponding to the target equipment. The intelligent device scans a broadcast data packet, and can judge whether the broadcast data packet needs to be processed by the intelligent device according to the service identification information corresponding to the broadcast data packet, and if so, executes corresponding operation, such as executing the query instruction and/or the control instruction; if not, the broadcast data packet is discarded. In an application example, the target device ID is a Media access control Address (MAC Address) of a bluetooth broadcast transceiver module or a bluetooth broadcast transceiver chip on the smart device or a part of the MAC Address. When the MAC address is too long, the latter part can be intercepted and sent out as the target device ID to identify the device, which can save resources.
In an embodiment, the number of the UUIDs in the first broadcast packet is two or more, and the data information including one or more of the query command, the control command, and the service identification information is distributed among the two or more UUIDs.
The format definition for UUIDs in bluetooth broadcast supports 16-bit, 32-bit, and 128-bit UUIDs. In practical application, if data information consisting of one or more of a control instruction, an inquiry instruction and service identification information is long and needs to be sent out in a broadcast data packet, the data information can be divided into two or more parts and encapsulated in two or more UUIDs, and the two or more UUIDs containing the data information are encapsulated in one broadcast data packet.
In practical application, the information carried in the first broadcast packet may include one or more of an inquiry command, a control command, and service identification information, and if one UUID is not enough, one or more of the inquiry command, the control command, and the service identification information may be split into two or more UUIDs, for example, the user ID and the service ID may be additionally encapsulated in one or two UUIDs, or the inquiry command/the control command, the user ID, and the service ID may be split into different UUIDs, which is not limited herein.
In an embodiment, the method further comprises:
responding to the control instruction and/or the query instruction, and acquiring corresponding feedback information;
generating a second broadcast data packet based on the corresponding feedback information;
and broadcasting the second broadcast data packet.
The intelligent equipment executes a corresponding control instruction and/or query instruction after confirming that the received control instruction and/or query instruction is the control instruction and/or query instruction received by the intelligent equipment according to the service identification information, and acquires corresponding feedback information of the equipment, wherein the feedback information comprises state information such as working state of the intelligent equipment, and the like, the intelligent equipment writes the feedback information into a broadcast data packet based on a preset coding mechanism, generates a second broadcast data packet, and broadcasts the second broadcast data packet through a Bluetooth broadcast receiving and transmitting module. Therefore, the one-way Bluetooth broadcast between the two Bluetooth communication devices is realized, and the two-way Bluetooth broadcast receiving and transmitting can be realized to exchange information.
In an embodiment, at least one UUID in the second broadcast packet is a fixed UUID, and information in the fixed UUID remains unchanged, where the fixed UUID may be a service ID. The second broadcast data packet comprises the fixed UUID, so that the broadcast data packet broadcasted by the intelligent device can still be received when the application program of the intelligent device scanned by the apple smartphone moves back to the background operation.
Fig. 2 shows an encoding structure of a broadcast packet in an embodiment of the present invention. As shown in fig. 2, the effective byte length of the broadcast data packet is 31 bytes, wherein the coding information corresponding to the byte number 0-1 is a bluetooth name flag, the coding information corresponding to the byte number 2-4 is a bluetooth name-drx, the coding information corresponding to the byte number 5-6 is a UUID flag corresponding to UUID1, the UUID1 is a 128-bit UUID, and occupies 16 bytes (corresponding to the byte number 7-22), and the coding information of the UUID1 includes: MAC address (i.e., device ID), elapsed time, total time, control instructions, query instructions, status parameters, timestamp, model, product type, vendor ID. The encoding information corresponding to the byte numbers 23-24 is a UUID mark corresponding to the UUID2, the UUID2 is a 16-bit UUID, 2 bytes are occupied (corresponding to the byte numbers 24-26), and the encoding information is a protocol version. The byte numbers 27-28, the corresponding coding information is a UUID mark corresponding to the UUID3, the UUID3 is a 16-bit UUID, the occupied 2 bytes (corresponding byte numbers 29-30) are occupied, and the coding information is a user ID. The broadcast packet shown in fig. 2 includes three UUIDs, and information to be transmitted is carried by the three UUIDs. Of course, in other embodiments, the encoding format of the broadcast packet is not limited to the form shown in fig. 2, and may include only one UUID or two UUIDs.
In order to implement the method according to the embodiment of the present invention, as shown in fig. 3, an embodiment of the present invention further provides a data processing device based on bluetooth broadcast (that is, the aforementioned terminal device or intelligent device based on bluetooth communication), including: a control module 301 and a bluetooth broadcast transceiving module 302, wherein,
the control module 301 is configured to obtain feedback information of the device and/or control a working state of the device according to a control instruction;
the bluetooth broadcast transceiver module 302, connected to the control module 301, is configured to send at least one of the following via the UUID in the broadcast packet: the method comprises the steps of receiving at least one of a query instruction, a control instruction, feedback information, service identification information, or receiving the following through a UUID in a broadcast data packet: the system comprises a query instruction, a control instruction, feedback information and service identification information.
In practical applications, the data processing apparatus may further include a power supply for supplying power to the control module 301 and the bluetooth broadcast transceiver module 302.
In an embodiment, the number of the UUIDs in the received broadcast packet is two or more, and the data information including one or more of the query command, the control command, and the service identification information is distributed among the two or more UUIDs.
Here, the number of UUIDs in the broadcast data packet scanned and acquired by the bluetooth broadcast transceiver module 302 may be two or more, the broadcast data packet may carry corresponding service identification information, and data information composed of one or more of an inquiry instruction, a control instruction, and feedback information is distributed in the two or more UUIDs.
In an embodiment, the broadcast packet includes at least one fixed UUID, and information in the fixed UUID remains unchanged, where the fixed UUID may be a service ID. The broadcast data packet may be a broadcast data packet obtained by scanning by the bluetooth broadcast transceiver module 302, or a broadcast data packet broadcast by the bluetooth broadcast transceiver module 302.
In an embodiment, the bluetooth broadcast transceiver module 302 includes a bluetooth broadcast transceiver chip, and the bluetooth broadcast transceiver chip adopts a system on chip SOC chip including a MCU. The SOC chip can be a master-slave integrated Bluetooth standard chip supporting broadcast transceiving and connection, or an SOC chip with an MCU, which can only carry out broadcast transceiving and cannot be connected. The SOC chip can broadcast and receive in 3 Bluetooth broadcast channels, does not support pairing connection with other Bluetooth equipment, does not need to be configured with complete GAP and GATT protocols because of being incapable of pairing connection with other Bluetooth equipment and transmitting data in 37 data channels, does not need to be configured with a Bluetooth protocol stack processor which generally needs a 32-bit processor, and is high in cost. Therefore, the SOC chip can realize the receiving and transmitting in the Bluetooth broadcast channel only by configuring a low-cost 8-bit processor without configuring a Bluetooth protocol stack processor. By configuring 8-bit MCU for similar chips such as a Bluetooth front-end chip, a beacon chip or a 2.4G chip, and the like, embedded software such as Bluetooth broadcast receiving and transmitting frequency, frequency hopping interval and the like is configured in the MCU, so that the receiving and transmitting can be realized in a Bluetooth broadcast channel.
In an embodiment, the bluetooth broadcast transceiver module includes a bluetooth broadcast transceiver chip, the bluetooth broadcast transceiver chip includes a bluetooth broadcast wafer and an MCU wafer, and the bluetooth broadcast wafer and the MCU wafer are packaged in the bluetooth broadcast transceiver chip. The Bluetooth broadcasting wafer is not provided with the MCU, supports receiving and sending of Bluetooth broadcasting information in a Bluetooth broadcasting channel, does not support pairing connection with other Bluetooth equipment, can adopt 8-bit MCU, and can reduce the sealing cost and reduce peripheral circuits by sealing the MCU wafer and the Bluetooth broadcasting wafer in one chip.
In an embodiment, the bluetooth broadcast transceiver module includes a bluetooth broadcast transceiver chip and an MCU chip, and the bluetooth broadcast transceiver chip is connected to the MCU chip. The Bluetooth broadcast receiving and transmitting chip comprises a radio frequency chip, does not support pairing connection with other Bluetooth equipment, and does not have an MCU (microprogrammed control unit), and the MCU chip can adopt an 8-bit MCU to be matched with the Bluetooth broadcast receiving and transmitting chip to realize Bluetooth broadcast channel receiving and transmitting Bluetooth broadcast information.
In an embodiment, the bluetooth broadcast transceiver module includes a bluetooth broadcast transceiver chip, and the bluetooth broadcast transceiver chip is connected to the control module. Here, the bluetooth broadcast transceiver module does not include an MCU, and the bluetooth broadcast transceiver chip processes related information using the MCU in the control module, so that the structure of the bluetooth broadcast transceiver module can be simplified and the cost can be reduced. Specifically, the control module includes an MCU, and the MCU is electrically connected to the bluetooth broadcast transceiver chip via a circuit board (PCB) (the two may be directly electrically connected or electrically connected via one or more of auxiliary electronic components such as a resistor, a capacitor, a diode, and a transistor). The control module encapsulates the state information of the equipment in the UUID and sends out the Bluetooth broadcast data packet through the Bluetooth broadcast receiving and sending chip.
In an embodiment, the MCU in the control module is an MCU in the bluetooth broadcast transceiver module or an MCU in the bluetooth broadcast chip. The Bluetooth broadcast transceiver module or the Bluetooth broadcast chip is provided with an MCU which can bear the work of the control module.
In the embodiment of the invention, the Bluetooth broadcast receiving and transmitting chip only needs to transmit and receive information at the Bluetooth broadcast frequency and does not need to be connected with other Bluetooth equipment in a matching way at the Bluetooth data frequency for connection and communication, so that complete GAP and GATT Bluetooth protocols are not needed, a Bluetooth protocol stack processor is not needed, the structure is very simple, and the cost is also very low. For example, the bluetooth broadcast transceiver chip may adopt a 2.4G chip, a bluetooth beacon chip for bluetooth beacon, or the like, which is not limited herein. The Bluetooth broadcast transceiver module can be used for transmitting and receiving information on a Bluetooth broadcast channel by transforming similar chips without a Bluetooth protocol stack processor, such as a Bluetooth beacon chip, a Bluetooth broadcast chip and the like for a 2.4G chip and a Bluetooth beacon, and configuring embedded software and/or peripheral circuits.
The embodiment of the invention also provides data processing equipment based on Bluetooth broadcast, which is characterized by comprising the following components: a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor is configured to execute the steps of the method according to any embodiment of the present invention when running the computer program. Wherein the processor may be at least one of: the MCU in the Bluetooth broadcast transceiver module, the MCU in the Bluetooth broadcast chip and the MCU in the control module.
The data processing method disclosed by the embodiment of the invention can be applied to a processor or realized by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the data processing method may be performed by integrated logic circuits of hardware or instructions in the form of software in a processor. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium that is located in a memory, and a processor reads information in the memory and performs the steps of the data processing method provided by the embodiments of the present invention in combination with hardware thereof.
It will be appreciated that the memory can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The described memory for embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In an exemplary embodiment, the embodiment of the present invention further provides a storage medium, that is, a computer storage medium, which may be specifically a computer readable storage medium, for example, a memory including a storage memory storing a computer program, where the computer program is executable by a processor of a data processing device based on bluetooth broadcast to complete the steps of the method according to the embodiment of the present invention. The computer readable storage medium may be a ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM, among others.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In addition, the technical solutions described in the embodiments of the present invention may be arbitrarily combined without conflict.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (13)

1. A data processing method based on Bluetooth broadcast is characterized by comprising the following steps:
acquiring a first broadcast data packet, wherein a Universal Unique Identifier (UUID) in the first broadcast data packet carries at least one of the following: query instructions and control instructions;
and acquiring the query instruction and/or the control instruction carried in the UUID in the first broadcast data packet based on the first broadcast data packet.
2. The method of claim 1, wherein the UUID in the first broadcast packet further carries service identification information, and wherein the method further comprises:
acquiring a service attribute corresponding to the first broadcast data packet based on the service identification information;
and determining that the corresponding service attribute meets a set condition, and executing the query instruction and/or the control instruction.
3. The method of claim 2, wherein the number of UUIDs in the first broadcast packet is two or more, and the data information comprising one or more of the query command, the control command, and the service identification information is distributed among the two or more UUIDs.
4. The method of claim 2,
the service identification information includes at least one of: user ID, service ID, target device ID.
5. The method of claim 1, further comprising:
responding to the query instruction and/or the control instruction, and acquiring corresponding feedback information;
generating a second broadcast data packet based on the corresponding feedback information;
and broadcasting the second broadcast data packet.
6. The method of claim 5,
the second broadcast data packet at least comprises a fixed UUID, and the information in the fixed UUID is kept unchanged.
7. A data processing apparatus based on bluetooth broadcasting, comprising: a control module and a Bluetooth broadcast transceiving module, wherein,
the control module is used for acquiring feedback information of the equipment and/or controlling the working state of the equipment according to a control instruction;
the Bluetooth broadcast transceiver module is connected with the control module and used for sending at least one of the following through a universal unique identifier UUID in a broadcast data packet: the method comprises the steps of receiving at least one of a query instruction, a control instruction, feedback information, service identification information, or receiving the following through a UUID in a broadcast data packet: the system comprises a query instruction, a control instruction, feedback information and service identification information.
8. The apparatus of claim 7,
the number of the UUIDs in the received broadcast data packet is two or more, and data information consisting of one or more of the query instruction, the control instruction and the service identification information is distributed in the two or more UUIDs.
9. The apparatus of claim 7,
the transmitted broadcast data packet at least comprises a fixed UUID, and the information in the fixed UUID is kept unchanged.
10. The apparatus of claim 7,
the Bluetooth broadcast receiving and transmitting module comprises a Bluetooth broadcast receiving and transmitting chip, and the Bluetooth broadcast receiving and transmitting chip adopts a System On Chip (SOC) chip comprising a Micro Control Unit (MCU); alternatively, the first and second electrodes may be,
the Bluetooth broadcast receiving and transmitting module comprises a Bluetooth broadcast receiving and transmitting chip, the Bluetooth broadcast receiving and transmitting chip comprises a Bluetooth broadcast wafer and an MCU wafer, and the Bluetooth broadcast wafer and the MCU wafer are packaged in the Bluetooth broadcast receiving and transmitting chip; alternatively, the first and second electrodes may be,
the Bluetooth broadcast receiving and transmitting module comprises a Bluetooth broadcast receiving and transmitting chip and an MCU chip, and the Bluetooth broadcast receiving and transmitting chip is connected with the MCU chip; alternatively, the first and second electrodes may be,
the Bluetooth broadcast receiving and transmitting module comprises a Bluetooth broadcast receiving and transmitting chip, and the Bluetooth broadcast receiving and transmitting chip is connected with the control module.
11. The apparatus of claim 10,
the SOC chip or the MCU wafer or the MCU chip adopts 8-bit MCU.
12. A data processing apparatus based on bluetooth broadcasting, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor, when executing the computer program, is adapted to perform the steps of the method of any of claims 1 to 6.
13. A storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of the method of any one of claims 1 to 6.
CN201910877619.3A 2019-09-17 2019-09-17 Data processing method, device and storage medium based on Bluetooth broadcast Pending CN110691332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910877619.3A CN110691332A (en) 2019-09-17 2019-09-17 Data processing method, device and storage medium based on Bluetooth broadcast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910877619.3A CN110691332A (en) 2019-09-17 2019-09-17 Data processing method, device and storage medium based on Bluetooth broadcast

Publications (1)

Publication Number Publication Date
CN110691332A true CN110691332A (en) 2020-01-14

Family

ID=69109324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910877619.3A Pending CN110691332A (en) 2019-09-17 2019-09-17 Data processing method, device and storage medium based on Bluetooth broadcast

Country Status (1)

Country Link
CN (1) CN110691332A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669714A (en) * 2020-05-19 2020-09-15 刘全武 Method and device for controlling other terminals based on multiple Bluetooth terminals
CN112020047A (en) * 2020-09-02 2020-12-01 上海富芮坤微电子有限公司 Bluetooth communication method, medium, bluetooth device and communication system
CN112367657A (en) * 2020-11-10 2021-02-12 宁波公牛数码科技有限公司 System and method for controlling a target device
CN113271579A (en) * 2021-05-24 2021-08-17 杭州涂鸦信息技术有限公司 Bluetooth device control method, client, computer device and readable storage medium
CN115442754A (en) * 2021-06-04 2022-12-06 菜鸟智能物流控股有限公司 Data processing method and device, electronic equipment and storage medium
CN115767486A (en) * 2021-09-03 2023-03-07 成都极米科技股份有限公司 Bluetooth communication method, first device, second device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780285A (en) * 2012-10-23 2014-05-07 中兴通讯股份有限公司 Method for broadcasting data through Bluetooth and Bluetooth devices
CN104318741A (en) * 2014-10-20 2015-01-28 小米科技有限责任公司 Bluetooth device control method and device
US20160171883A1 (en) * 2014-12-10 2016-06-16 Intel IP Corporation Road crossing assistance for the visually impaired
CN105942993A (en) * 2016-05-06 2016-09-21 上海中医药大学 Bluetooth pulse-taking bracelet and pulse data transmission method
CN105966356A (en) * 2015-10-22 2016-09-28 乐视移动智能信息技术(北京)有限公司 Method and device for controlling unlocking and locking of automobile door lock based on Bluetooth technology
CN106596982A (en) * 2015-10-14 2017-04-26 北京众思铭信息技术有限公司 Alcohol concentration tester having intelligent content pushing system
CN108200541A (en) * 2018-02-11 2018-06-22 张戈零 Bluetooth control terminal based on Internet of Things
CN109276872A (en) * 2018-11-05 2019-01-29 湖南简成信息技术有限公司 A kind of smart motion equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780285A (en) * 2012-10-23 2014-05-07 中兴通讯股份有限公司 Method for broadcasting data through Bluetooth and Bluetooth devices
CN104318741A (en) * 2014-10-20 2015-01-28 小米科技有限责任公司 Bluetooth device control method and device
US20160171883A1 (en) * 2014-12-10 2016-06-16 Intel IP Corporation Road crossing assistance for the visually impaired
CN106596982A (en) * 2015-10-14 2017-04-26 北京众思铭信息技术有限公司 Alcohol concentration tester having intelligent content pushing system
CN105966356A (en) * 2015-10-22 2016-09-28 乐视移动智能信息技术(北京)有限公司 Method and device for controlling unlocking and locking of automobile door lock based on Bluetooth technology
CN105942993A (en) * 2016-05-06 2016-09-21 上海中医药大学 Bluetooth pulse-taking bracelet and pulse data transmission method
CN108200541A (en) * 2018-02-11 2018-06-22 张戈零 Bluetooth control terminal based on Internet of Things
CN109276872A (en) * 2018-11-05 2019-01-29 湖南简成信息技术有限公司 A kind of smart motion equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669714A (en) * 2020-05-19 2020-09-15 刘全武 Method and device for controlling other terminals based on multiple Bluetooth terminals
CN112020047A (en) * 2020-09-02 2020-12-01 上海富芮坤微电子有限公司 Bluetooth communication method, medium, bluetooth device and communication system
CN112367657A (en) * 2020-11-10 2021-02-12 宁波公牛数码科技有限公司 System and method for controlling a target device
CN113271579A (en) * 2021-05-24 2021-08-17 杭州涂鸦信息技术有限公司 Bluetooth device control method, client, computer device and readable storage medium
CN115442754A (en) * 2021-06-04 2022-12-06 菜鸟智能物流控股有限公司 Data processing method and device, electronic equipment and storage medium
CN115767486A (en) * 2021-09-03 2023-03-07 成都极米科技股份有限公司 Bluetooth communication method, first device, second device and storage medium

Similar Documents

Publication Publication Date Title
CN110691332A (en) Data processing method, device and storage medium based on Bluetooth broadcast
CN110620995A (en) Intelligent device based on Bluetooth broadcast communication
US10693969B2 (en) Electronic device using logical channels for communication
CN112787685B (en) Method, apparatus and system for supporting wireless communication
US9961633B2 (en) Bluetooth low energy combined listen and scan window
EP2840455B1 (en) Method, apparatus and system for intelligently controlling device, and plug-and-play device
EP2790361B1 (en) Usb device communication method, device and system
US9177467B2 (en) Electrical gateway and communication method of electrical gateway
WO2019056383A9 (en) Resource configuration method, terminal device and network device
US20130272186A1 (en) Techniques for traffic delivery to a group of devices
TWI574518B (en) Ble transmitting equipment, ble receiving equipment, and methods thereof
WO2017019167A1 (en) Bluetooth low energy interlaced advertising and scanning
CN105246126A (en) Intelligent equipment access method, device and system
US10999780B2 (en) Bluetooth trigger for NAN
CN104869609A (en) Information providing method and device
US20240107427A1 (en) Access method and communication apparatus
CN210444487U (en) Intelligent device based on Bluetooth broadcast communication
WO2016043294A1 (en) Wireless communication integrated circuit, wireless communication terminal, and wireless communication method
CN104424036A (en) Synchronous operation method and device of smart terminal
US20070268866A1 (en) Ieee 802.15.4 network system providing mobility and operating method thereof
JP6880719B2 (en) Communication equipment, communication methods, electronic clocks and programs
JP7011841B2 (en) Base stations, terminals, communication systems, communication methods, and programs
US20220272745A1 (en) Communication method and communications apparatus
WO2020029857A1 (en) Data scheduling and transmitting method, network device, terminal, and computer storage medium
KR101203717B1 (en) Apparatus and method for device inquiry for high speed based bluetooth applications

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200114