Bluetooth communication method, electronic device and storage medium

By using the auxiliary broadcast channel to send broadcast messages of the determined period in Bluetooth devices, responding to the connection request of the main broadcast channel, the problems of channel conflict and high power consumption in Bluetooth device management are solved, and low-power bidirectional communication and high efficiency are achieved manage.

CN114765743BActive Publication Date: 2025-01-10ALIBABA GROUP HOLDING LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110041904.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-13
Publication Date
2025-01-10
Estimated Expiration
2041-01-13

AI Technical Summary

Technical Problem

In the scenario of managing multiple Bluetooth devices, during the traditional Bluetooth connection, the shortening of the broadcast cycle of the Bluetooth device leads to an increase in channel conflicts, excessive power consumption, and high power consumption of equipment scanning, affecting management efficiency.

Method used

The auxiliary broadcast channel is used to send a first broadcast message with a certain transmission cycle, instructing the Bluetooth device to respond to the bidirectional communication connection request of the main broadcast channel, establish a bidirectional communication connection, reduce scanning power consumption, and realize bidirectional communication through the main broadcast channel, improve management efficiency.

Benefits of technology

The determined auxiliary broadcast channel transmission cycle reduces the scanning power consumption of Bluetooth devices, improves the channel reliability and management efficiency, reduces the conflict rate, and realizes low-power bidirectional communication of Bluetooth devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114765743B_ABST
    Figure CN114765743B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a Bluetooth communication method, an electronic device, and a storage medium. The Bluetooth communication method includes: sending a first broadcast message to a Bluetooth device based on an auxiliary broadcast channel, wherein the first broadcast message has a determined transmission period, and the first broadcast message instructs the Bluetooth device to send a two-way communication connection request based on the main broadcast channel in response to the transmission period; and establishing a two-way communication connection with the Bluetooth device in response to the two-way communication connection request sent based on the main broadcast channel. Since the first broadcast message has a determined transmission period, the way in which the first broadcast message is sent based on the auxiliary broadcast channel of Bluetooth communication reduces or even eliminates the scanning power consumption of the Bluetooth device due to the delay in the transmission period. In addition, a two-way communication connection is established by sending a two-way communication connection request through the main broadcast channel, which is conducive to blue device management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a Bluetooth communication method, an electronic device, and a storage medium. Background Art

[0002] In the process of establishing a traditional low-power Bluetooth connection, the connected party sends a Bluetooth broadcast and waits for the connecter to connect. In the scenario of managing multiple Bluetooth devices, on the one hand, when establishing a connection, if a Bluetooth broadcast is sent by a Bluetooth device and scanned by a Bluetooth base station, in order to achieve the management efficiency of multiple Bluetooth devices, the broadcast cycle will be shortened to shorten the waiting time for the connection, which will have a great impact on the Bluetooth broadcast channel. On the other hand, the Bluetooth base station can send broadcasts regularly, and the Bluetooth device can perform Bluetooth scans regularly to see if the base station requires the price tag to initiate a connection. If so, the Bluetooth device will actively reconnect. However, in this case, continuous scanning by the Bluetooth device will cause the Bluetooth device to consume too much power. Summary of the invention

[0003] In view of this, embodiments of the present application provide a Bluetooth communication method, an electronic device, and a storage medium to solve or alleviate the above-mentioned problems.

[0004] According to the first aspect of an embodiment of the present application, a Bluetooth communication method is provided, which is applied to a Bluetooth base station, and the method comprises: sending a first broadcast message to a Bluetooth device based on a secondary broadcast channel, wherein the first broadcast message has a determined sending period, and the first broadcast message instructs the Bluetooth device to send a two-way communication connection request based on a main broadcast channel in response to the sending period; and establishing a two-way communication connection with the Bluetooth device in response to the two-way communication connection request sent based on the main broadcast channel.

[0005] According to the second aspect of an embodiment of the present application, a Bluetooth communication method is provided, which is applied to a Bluetooth device, and the method comprises: receiving a first broadcast message sent by a Bluetooth base station based on a secondary broadcast channel, wherein the first broadcast message has a determined sending period; in response to the sending period of the first broadcast message, based on the primary broadcast channel, sending a two-way communication connection request to the Bluetooth base station, so as to establish a two-way communication connection with the Bluetooth base station.

[0006] According to a third aspect of an embodiment of the present application, a Bluetooth communication method is provided, which is applied to a Bluetooth base station, and the method comprises: based on a first Bluetooth protocol, sending a first broadcast message to a Bluetooth device, wherein the first broadcast message has a determined sending period, and the first broadcast message instructs the Bluetooth device to send a two-way communication connection request based on a second Bluetooth protocol in response to the sending period; and in response to establishing a two-way communication connection with the Bluetooth device based on the two-way communication connection request.

[0007] According to the fourth aspect of an embodiment of the present application, a Bluetooth communication method is provided, which is applied to a Bluetooth device, and the method comprises: receiving a first broadcast message sent by a Bluetooth base station based on a first Bluetooth protocol, wherein the first broadcast message has a determined sending period; in response to the sending period of the first broadcast message, based on a second Bluetooth protocol, sending a two-way communication connection request to the Bluetooth base station, so as to establish a two-way communication connection with the Bluetooth base station.

[0008] According to the fifth aspect of the embodiment of the present application, a Bluetooth communication method is provided, which is applied to a Bluetooth base station, and the Bluetooth base station is used to manage multiple Bluetooth devices in real time. The method comprises: based on a secondary broadcast channel, sending a first broadcast message to a target Bluetooth device among multiple Bluetooth devices, wherein the first broadcast message has a determined sending period, and the first broadcast message instructs the target Bluetooth device to send a two-way communication connection request based on a main broadcast channel in response to the sending period; and in response to the two-way communication connection request sent based on the main broadcast channel, establishing a two-way communication connection with the target Bluetooth device.

[0009] According to the sixth aspect of an embodiment of the present application, an electronic device is provided, comprising: a message sending module, which sends a first broadcast message to a Bluetooth device based on a secondary broadcast channel, wherein the first broadcast message has a determined sending period, and the first broadcast message instructs the Bluetooth device to send a two-way communication connection request based on a main broadcast channel in response to the sending period; and a connection establishing module, which establishes a two-way communication connection with the Bluetooth device in response to the two-way communication connection request sent based on the main broadcast channel.

[0010] According to the seventh aspect of an embodiment of the present application, an electronic device is provided, comprising: a message receiving module, receiving a first broadcast message sent by a Bluetooth base station based on a secondary broadcast channel, wherein the first broadcast message has a determined sending period; a request sending module, responding to the sending period of the first broadcast message, and sending a two-way communication connection request to the Bluetooth base station based on a primary broadcast channel, so as to establish a two-way communication connection with the Bluetooth base station.

[0011] According to the eighth aspect of the embodiments of the present application, an electronic device is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method described in the first aspect or the second aspect.

[0012] According to a ninth aspect of an embodiment of the present application, a storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect or the second aspect is implemented.

[0013] In the scheme of the embodiment of the present application, the Bluetooth base station sends a first broadcast message to the Bluetooth device based on the auxiliary broadcast channel, the first broadcast message has a certain sending period, and the first broadcast message instructs the Bluetooth device to send a two-way communication connection request based on the main broadcast channel in response to the sending period; in response to the two-way communication connection request, a two-way communication connection is established with the Bluetooth device. Since the first broadcast message has a certain sending period, the way in which the first broadcast message is sent based on the auxiliary broadcast channel of Bluetooth communication reduces or even eliminates the scanning power consumption of the Bluetooth device due to the delay in the sending period. In addition, a two-way communication connection is established by sending a two-way communication connection request through the main broadcast channel, which is conducive to blue device management. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0015] Figure 1 A schematic diagram of a communication network applicable to Bluetooth communication as a typical example;

[0016] Figure 2A A schematic flow chart of a Bluetooth communication method according to an embodiment of the present application;

[0017] Figure 2B A schematic diagram of Bluetooth broadcast communication according to another embodiment of the present application;

[0018] Figure 2C A schematic diagram of a Bluetooth communication method according to another embodiment of the present application;

[0019] Figure 3 A schematic interactive diagram of a Bluetooth communication method according to another embodiment of the present application;

[0020] Figure 4A A schematic flow chart of a communication method of a Bluetooth base station according to another embodiment of the present application;

[0021] Figure 4B A schematic flow chart of a communication method of a Bluetooth device according to another embodiment of the present application;

[0022] Figure 5A schematic flow chart of a Bluetooth communication method according to another embodiment of the present application;

[0023] Figure 6 A schematic block diagram of an electronic device according to another embodiment of the present application;

[0024] Figure 7 A schematic block diagram of an electronic device according to another embodiment of the present application;

[0025] Figure 8 A schematic flow chart of a Bluetooth communication method according to another embodiment of the present application;

[0026] Fig. 9 A schematic flow chart of a Bluetooth communication method according to another embodiment of the present application;

[0027] Fig.10 A schematic flow chart of a Bluetooth communication method according to another embodiment of the present application; and

[0028] Fig.11 This is a hardware structure of an electronic device according to another embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.

[0030] The specific implementation of the embodiment of the present application is further described below in conjunction with the accompanying drawings of the embodiment of the present application. Bluetooth communication can be communication between Bluetooth devices, or communication between a Bluetooth base station and a Bluetooth device. Figure 1 Schematic diagram of a communication network applicable to a typical example of Bluetooth communication. As shown in the figure, the Bluetooth base station 110 communicates with Bluetooth devices 121-124. It should be understood that the above four Bluetooth devices are only exemplary, and the Bluetooth base station can communicate with more or fewer Bluetooth devices. As an example, when managing multiple Bluetooth devices, when establishing a connection, multiple Bluetooth devices send Bluetooth broadcasts so that the Bluetooth base station can scan. Due to the huge number of Bluetooth devices, the sending timing between each Bluetooth broadcast message becomes particularly intensive, so that the impact between different Bluetooth broadcast channels will be very large.

[0031] The general broadcast channel of Bluetooth protocol version 4.0 is also called the primary broadcast channel. Specifically, there are three broadcast channels of Bluetooth protocol version 4.0, namely, channels numbered 37, 38, and 39.

[0032] Bluetooth communication includes broadcasters and scanners. For Bluetooth protocol version 4.0, in order to avoid normal collisions between different broadcasters, a random delay of 0-10ms is required between each broadcast event. Therefore, scanners such as Bluetooth devices actually need to take the random delay time into consideration. Then, the scanner can initiate a Bluetooth connection after scanning the Bluetooth broadcast message of the broadcaster.

[0033] It should also be understood that the auxiliary broadcast channel can be a channel in the Bluetooth protocol version 5.0, that is, any one of the 37 channels numbered 0-36 (that is, the other 37 channels other than 37, 38, and 39). The first broadcast message includes but is not limited to the AUX_SYNC_IND periodic broadcast message in the Bluetooth protocol version 5.0. The periodic broadcast of the Bluetooth protocol version 5.0 is a one-way broadcast message that cannot allow the scanner (in this embodiment, the Bluetooth device) to establish a connection.

[0034] Specifically, in the scenario of an electronic price tag as a Bluetooth device, there will be more than 10,000 stock keeping units (SKU) of commodity types in scenarios such as medium and large supermarkets, that is, correspondingly, there are more than 10,000 stock keeping units of electronic price tags (ESL) in this scenario. Usually, the broadcast cycle of the Bluetooth broadcast message of the Bluetooth management device is 376us. In other words, in the space of this scenario, it takes about 3.76 seconds for 10,000 ESLs to send and receive a round in succession. That is, after scanning the broadcast message, each ESL needs to initiate a connection with the Bluetooth management device. The collision probability between different ESL cycles is inversely proportional to the entire Bluetooth broadcast cycle of all ESLs, that is, the shorter the entire Bluetooth broadcast cycle, the greater the collision probability between different ESL cycles. Therefore, shortening the broadcast cycle in order to shorten the waiting time between each connection of a specific ESL will increase the above-mentioned collision probability, and thus the reliability of the Bluetooth broadcast channel will be greatly affected.

[0035] Therefore, if the Bluetooth base station broadcasts regularly, the electronic price tag regularly performs Bluetooth scanning to check whether the base station requires the price tag to initiate a connection. If so, the price tag actively connects back. This means that the base station only needs to broadcast Bluetooth, and the electronic price tag only needs to scan, so that the congestion of the broadcast channel will be alleviated.

[0036] Since scanning electronic price tags consumes a lot of power, how to reduce the power consumption during the scanning process is an urgent problem to be solved.

[0037] Figure 2A A schematic flowchart of a Bluetooth communication method according to an embodiment of the present application. Figure 2A The Bluetooth communication method can be applied to a Bluetooth base station, the method comprising:

[0038] 210: Send a first broadcast message to the Bluetooth device based on the secondary broadcast channel, wherein the first broadcast message has a certain sending period, and the first broadcast message instructs the Bluetooth device to send a two-way communication connection request based on the primary broadcast channel in response to the sending period.

[0039] It should be understood that the Bluetooth device in the text may include any Bluetooth device such as an electronic price tag, and may be one or more Bluetooth devices. In addition, one or more Bluetooth base stations may be used. The embodiment of the present invention does not limit this.

[0040] In other words, the Bluetooth base station can perform a roll call using periodic broadcast (AUX_SYNC_IND message) based on the auxiliary broadcast channel when a Bluetooth device is newly connected or when a Bluetooth device exists.

[0041] 220: Respond to the two-way communication connection request sent based on the main broadcast channel and establish a two-way communication connection with the Bluetooth device.

[0042] Specifically, when a Bluetooth device such as an electronic price tag receives a periodic broadcast roll call message, it enters the Bluetooth device broadcast mode and sends an ADV_IND broadcast message of Bluetooth protocol version 4.0 to wait for the Bluetooth base station to establish a reverse connection.

[0043] Since the transmission cycle of the auxiliary broadcast channel of Bluetooth communication is fixed, the first broadcast message is sent based on the auxiliary broadcast channel of Bluetooth communication, which reduces or even eliminates the scanning power consumption of the Bluetooth device due to the delay of the transmission cycle. In addition, since the main broadcast channel of Bluetooth communication can realize two-way communication, a two-way communication connection request can be sent through the main broadcast channel to establish a two-way communication connection.

[0044] In other words, since the auxiliary broadcast channel will randomly switch among the 37 auxiliary broadcast channels (the switching order can be predetermined through negotiation), the scanner does not need to consider the problem of random delay, thereby significantly reducing the power consumption of the scanner.

[0045] In addition, since the transmission period of the secondary broadcast channel of the Bluetooth communication is determined, the response accuracy corresponding to the transmission period of the secondary broadcast channel is achieved.

[0046] Compared with the method of using price tags for broadcasting and base stations for scanning, the embodiment of the present application uses a Bluetooth base station for broadcasting and an electronic price tag for scanning, which has less impact on the channel.

[0047] In addition, the broadcast messages (first broadcast message, second broadcast message and third broadcast message) of the embodiment of the present application are basically sent on the auxiliary broadcast channel, which effectively reduces the impact of the broadcast messages of the Bluetooth protocol version 4.0 on the main broadcast channels 37, 38 and 39.

[0048] For example, when the periodic broadcast interval is 2 seconds and the packet error ratio (PER) is 30%, the average time for the electronic price tag (example of a Bluetooth device) to receive the wake-up device identification is: 1x0.7+3x0.3x0.7+5x0.3 2 ⅹ0.7+7ⅹ0.3 3 = 1.83 seconds. In addition, assuming that it takes 100ms for the price tag to switch from the periodic broadcast synchronization mode to the general broadcast mode, and the general Bluetooth broadcast cycle after the price tag is named is 200ms, the average time to complete the connection establishment is: 0.1+0.1ⅹ0.7+0.3ⅹ0.3ⅹ0.7+0.5ⅹ0.3 2 ⅹ0.7+0.7ⅹ0.3 3 =0.28 seconds.

[0049] For Bluetooth protocol version 4.0, each broadcast event will send an ADV_IND message on three main broadcast channels 37, 38, and 39 (an example of the fourth broadcast message). After receiving the ADV_IND message, the Bluetooth device can send a CONNECT_IND message to establish a connection.

[0050] Figure 2B This is a schematic diagram of Bluetooth broadcast communication of another embodiment of the present application. As shown in the figure, when a Bluetooth base station uses Bluetooth protocol version 5.0 to send an ADV_EXT_IND type broadcast, the Bluetooth device can send an AUX_CONNECT_REQ message after receiving the AUX_ADV_IND message to initiate a request to establish a connection, and the Bluetooth base station replies with an AUX_CONNECT_RSP message to complete the establishment of the connection.

[0051] Bluetooth protocol version 5.0 defines a periodic AUX_SYNC_IND message (first broadcast message) broadcast function, and its interval is fixed. The configuration of the periodic broadcast will be included in the AUX_ADV_IND message. After receiving the AUX_ADV_IND message, the receiver can use the AdvDataInfo and SyncInfo carried in it to obtain the configuration information of the AUX_SYNC_IND message.

[0052] It should be understood that AdvDataInfo may include a broadcast data identification (Advertising Data ID) field and a broadcast set identification (Advertising Set ID) field. SyncInfo may include, but is not limited to, a field for information about an offset (OFFSEST).

[0053] In another implementation of the embodiment of the present application, the method also includes: sending a second broadcast message to the Bluetooth device based on the main broadcast channel, wherein, based on the secondary broadcast channel, sending a first broadcast message to the Bluetooth device, including: periodically sending the first broadcast message based on the secondary broadcast channel, wherein the second broadcast message is used to determine the periodic broadcast information of the first broadcast message, and the periodic broadcast information instructs the Bluetooth device to scan the secondary broadcast channel based on the sending period to obtain the first broadcast message.

[0054] Since the second broadcast message is sent based on the primary broadcast channel and is used to determine the periodic broadcast information of the first broadcast message, the channel resources of the primary broadcast channel are utilized, and backward compatibility of Bluetooth communication is achieved. In addition, the secondary broadcast channel adopts a frequency hopping mechanism, so the periodic broadcast information instructs the Bluetooth device to scan the secondary broadcast channel based on the sending period to obtain the first broadcast message, thereby achieving timely update of communication information.

[0055] In another implementation of the embodiment of the present application, the method further includes: sending network access configuration information to the Bluetooth device based on the main broadcast channel, wherein the network access configuration information instructs the Bluetooth device to scan based on the main broadcast channel to obtain a second broadcast message.

[0056] Since the network access configuration information instructs the Bluetooth device to scan based on the primary broadcast channel to obtain the second broadcast message, switching from the primary broadcast channel to the secondary broadcast channel is achieved.

[0057] For example, after obtaining the network access configuration, a Bluetooth device such as an electronic price tag can re-enter the scanning state to search for the corresponding periodic broadcast of the Bluetooth protocol version 5.0, that is, scan the ADV_EXT_IND message (an example of the second broadcast message), the AUX_ADV_IND message (an example of the third broadcast message) and the AUX_SYNC_IND message (an example of the first broadcast message).

[0058] In addition, the second broadcast message can be a periodic broadcast message of the ADV_EXT_IND type. Specifically, compared with the Bluetooth protocol version 4.0, in the Bluetooth protocol version 5.0, ADV_EXT_IND can be sent on the three main broadcast channels numbered 37, 38, and 39 to indicate the sending time information, sending channel information, etc. of AUX_ADV_IND including the actual broadcast content. The broadcast message can be configured to the auxiliary broadcast channel, thereby avoiding the congestion caused by the main broadcast channels 37, 38, and 39 occupying too much air time. For example, when the Bluetooth device receives ADV_EXT_IND, it can obtain information indicating the time point when AUX_ADV_IND appears and the corresponding channel.

[0059] In another implementation of the embodiment of the present application, the method further includes: sending a third broadcast message to the Bluetooth device based on the secondary broadcast channel, wherein the third broadcast message includes periodic broadcast information, and the second broadcast message is used to determine the channel information of the third broadcast message.

[0060] Since the third broadcast message includes periodic broadcast information, the second broadcast message is used to determine the channel information of the third broadcast message, thereby achieving functional separation between the first broadcast message with periodic broadcast information and the third broadcast message, thereby enabling more communication modes.

[0061] In another implementation of the embodiment of the present application, the periodic broadcast information includes at least one of the broadcast address information, broadcast identification information and broadcast data encryption information of the first broadcast message.

[0062] In other words, when a Bluetooth base station receives a network access application from a new Bluetooth device (for example, a new electronic price tag), it will configure a network access identifier for the new Bluetooth device and inform it of the corresponding periodic broadcast information of version 5.0 of the Bluetooth protocol. For example, the periodic broadcast information may include the broadcast address information used by the Bluetooth base station (for example, AdvertisingAddress), broadcast set identification information (for example, Advertising Set ID), broadcast data encryption information (for example, encryption key), etc.

[0063] In another implementation of the embodiment of the present application, the method further includes: receiving a network access request sent by a Bluetooth device based on a primary broadcast channel, wherein, based on a secondary broadcast channel, a first broadcast message is sent to the Bluetooth device, including: responding to the network access request, and sending the first broadcast message to the Bluetooth device based on the secondary broadcast channel. Since the first broadcast message is sent to the Bluetooth device based on the secondary broadcast channel in response to the network access request, an instant two-way communication connection is achieved, which is conducive to instant information update.

[0064] In other words, when a new Bluetooth device joins the network, it can obtain the broadcast information of Bluetooth protocol version 4.0 of surrounding base stations by scanning the main broadcast channel (scanning ADV_IND message (example of the fourth broadcast message)). It can also select the most suitable Bluetooth base station to establish a connection for network authentication based on (for example) signal strength.

[0065] In another implementation of the embodiment of the present application, the method also includes: responding to a network access request, determining that the Bluetooth device is within the communication range of the Bluetooth base station, wherein responding to a two-way communication connection request, establishing a two-way communication connection with the Bluetooth device, including: when a two-way communication connection request is received within a target cycle duration, responding to the two-way communication connection request, establishing a two-way communication connection with the Bluetooth device, wherein the method also includes: when no two-way communication connection request is received within the target cycle duration, determining that the Bluetooth device is not within the communication range.

[0066] When no two-way communication connection request is received within the target cycle time, it is determined that the Bluetooth device is not within the communication range, thereby improving the device management efficiency of the Bluetooth base station.

[0067] In other words, if the roll call times out, it is determined that the Bluetooth device has left the communication range covered by it and is removed.

[0068] In another implementation of the embodiment of the present application, the method further includes: based on the primary broadcast channel, sending a fourth broadcast message to the Bluetooth device, the fourth broadcast message instructing the Bluetooth device to determine the Bluetooth base station and send a network access request to the Bluetooth base station.

[0069] Since the fourth broadcast message instructs the Bluetooth device to determine the Bluetooth base station, it can determine a suitable Bluetooth base station among multiple Bluetooth base stations, thereby improving communication efficiency.

[0070] In another implementation method of the embodiment of the present application, a first broadcast message is sent to a Bluetooth device based on a secondary broadcast channel, including: when the Bluetooth device and the Bluetooth base station are in a synchronized state, determining a timing for sending information to be transmitted; at the sending timing, based on the secondary broadcast channel, sending a first broadcast message to the Bluetooth device.

[0071] Since when the Bluetooth device and the Bluetooth base station are in a synchronized state, the timing for sending the information to be transmitted is directly determined to send the first broadcast message to the Bluetooth device, there is no need to resend the network access configuration information.

[0072] In other words, whenever the Bluetooth base station has information to send to a Bluetooth device such as an electronic price tag that has joined the network, the base station will again use periodic broadcasts to call the Bluetooth device to make a reverse connection. It should be understood that, preferably, the Bluetooth device maintains periodic broadcast synchronization with the Bluetooth base station during the network access period.

[0073] Figure 2C This is a schematic diagram of a Bluetooth communication method of another embodiment of the present application. As shown in the figure, an electronic price tag management device such as a Bluetooth base station sends a periodic broadcast message to an electronic price tag (one or more electronic price tags), and the electronic price tag receives the periodic broadcast message by scanning and sends a two-way communication request to the electronic price tag management device. The electronic price tag management device manages the electronic price tag when two-way communication is established, for example, sending the item price data corresponding to the electronic price tag to the electronic price tag.

[0074] Figure 3 This is a schematic interaction diagram of a Bluetooth communication method according to another embodiment of the present application. Figure 3 The interaction process between the Bluetooth base station 310 and the Bluetooth device 320 is shown. It should be understood that in this example, each step is merely exemplary and may include more or fewer steps, or different steps or alternative steps.

[0075] In step 301, a Bluetooth device sends a network access request to a Bluetooth base station.

[0076] In step 302, the Bluetooth base station sends a first broadcast message to the Bluetooth device based on the secondary broadcast channel.

[0077] In step 303, the Bluetooth device sends a two-way communication connection request based on the primary broadcast channel.

[0078] In step 304, the Bluetooth base station responds to the two-way communication connection request, establishes a two-way communication connection with the Bluetooth device, and sends a message including transmission information to the Bluetooth device, where the transmission information may indicate display update information of the Bluetooth device.

[0079] Figure 4A This is a schematic flow chart of a Bluetooth communication method according to another embodiment of the present application. As shown in the figure,

[0080] In step S401, the Bluetooth base station determines whether it is currently time to perform periodic broadcasting (broadcasting of the secondary broadcast channel), if yes, it proceeds to step S402, if not, it proceeds to step S403.

[0081] In step S402, the Bluetooth base station performs periodic broadcasting, and then proceeds to step S403.

[0082] In step S403, the Bluetooth base station determines whether to perform general broadcasting, and if so, proceeds to step S404, and if not, proceeds to step S405.

[0083] In step S404, the Bluetooth base station determines whether there is a new device accessed by general Bluetooth broadcasting, if yes, then the process proceeds to step S405, if no, then the process proceeds to step S406.

[0084] In step S405, the Bluetooth base station configures a network access identifier and periodic broadcast information.

[0085] In step S406, the Bluetooth base station determines whether to name the networked device. If yes, the process proceeds to step S407; if no, the process proceeds to step S408.

[0086] In step S407, the Bluetooth base station announces the networked identifier through periodic broadcasting, and then proceeds to step S409.

[0087] In step S408, the Bluetooth base station determines whether to wait for the named device to send a general broadcast (a broadcast message of the main broadcast channel). If yes, the process proceeds to step S409; if no, the process returns to step S404.

[0088] In step S409 , the Bluetooth base station periodically scans for general Bluetooth broadcasts.

[0089] Figure 4B This is a schematic flow chart of a communication method of a Bluetooth device according to another embodiment of the present application. As shown in the figure,

[0090] In step S411, the Bluetooth device performs synchronous periodic broadcasting and proceeds to step S412.

[0091] In step S412, the Bluetooth device determines whether the periodic broadcast carries a device identification, and if so, proceeds to step S413; if not, proceeds to step S415.

[0092] In step S413, the Bluetooth device sends a general Bluetooth broadcast, waits for the Bluetooth base station to connect, and proceeds to step S414.

[0093] In step S414, the Bluetooth connection of the Bluetooth device ends and the process proceeds to step S411.

[0094] In step S415, the Bluetooth device determines whether a synchronization timeout occurs, and if so, proceeds to step S416; if not, proceeds to step S411.

[0095] In step S416, the Bluetooth device is determined to be a Bluetooth device that is not connected to the network, and the process proceeds to step S417.

[0096] In step S417 , the Bluetooth device scans for general Bluetooth broadcasts and proceeds to step S418 .

[0097] In step S418, the Bluetooth device selects a suitable Bluetooth base station, establishes a connection for network authentication, and proceeds to step S419.

[0098] In step S419, the Bluetooth device accepts the network access identification and the periodic broadcast configuration.

[0099] Figure 5 This is a schematic flowchart of a Bluetooth communication method according to another embodiment of the present application. Figure 5 The Bluetooth communication method is applied to a Bluetooth device, the method comprising:

[0100] 510: Receive a first broadcast message sent by a Bluetooth base station based on a secondary broadcast channel, wherein the first broadcast message has a certain sending period.

[0101] 520: In response to the sending cycle of the first broadcast message, based on the primary broadcast channel, a two-way communication connection request is sent to the Bluetooth base station, so as to establish a two-way communication connection with the Bluetooth base station.

[0102] Since the transmission cycle of the auxiliary broadcast channel of Bluetooth communication is fixed, the first broadcast message is sent based on the auxiliary broadcast channel of Bluetooth communication, which reduces or even eliminates the scanning power consumption of the Bluetooth device due to the delay of the transmission cycle. In addition, since the main broadcast channel of Bluetooth communication can realize two-way communication, a two-way communication connection request can be sent through the main broadcast channel to establish a two-way communication connection.

[0103] In another implementation of the embodiment of the present application, the method also includes: receiving a second broadcast message sent by the Bluetooth base station based on the main broadcast channel, wherein receiving a first broadcast message sent by the Bluetooth base station based on the auxiliary broadcast channel includes: determining the periodic broadcast information of the first broadcast message based on the second broadcast message; in response to the periodic broadcast information, scanning the auxiliary broadcast channel based on the sending period to obtain the first broadcast message sent by the Bluetooth base station.

[0104] Since the second broadcast message is sent based on the primary broadcast channel and is used to determine the periodic broadcast information of the first broadcast message, the channel resources of the primary broadcast channel are utilized, and backward compatibility of Bluetooth communication is achieved. In addition, the secondary broadcast channel adopts a frequency hopping mechanism, so the periodic broadcast information instructs the Bluetooth device to scan the secondary broadcast channel based on the sending period to obtain the first broadcast message, thereby achieving timely update of communication information.

[0105] In another implementation of the embodiment of the present application, the method also includes: receiving network access configuration information sent by the Bluetooth base station based on the main broadcast channel, wherein receiving a second broadcast message sent by the Bluetooth base station based on the main broadcast channel includes: responding to the network access configuration information, scanning based on the main broadcast channel to obtain the second broadcast message sent by the Bluetooth base station.

[0106] Since the network access configuration information instructs the Bluetooth device to scan based on the primary broadcast channel to obtain the second broadcast message, switching from the primary broadcast channel to the secondary broadcast channel is achieved.

[0107] In another implementation of the embodiment of the present application, the method also includes: receiving a third broadcast message sent by the Bluetooth base station based on a secondary broadcast channel, wherein the third broadcast message includes periodic broadcast information, wherein based on the second broadcast message, the periodic broadcast information of the first broadcast message is determined, including: based on the second broadcast message, determining the channel information of the third broadcast message; scanning based on the channel information of the third broadcast message to obtain the third broadcast message.

[0108] Since the third broadcast message includes periodic broadcast information, the second broadcast message is used to determine the channel information of the third broadcast message, thereby achieving functional separation between the first broadcast message with periodic broadcast information and the third broadcast message, thereby enabling more communication modes.

[0109] In another implementation of the embodiment of the present application, the periodic broadcast information includes at least one of the broadcast address information, broadcast identification information and broadcast data encryption information of the first broadcast message.

[0110] In another implementation of the embodiment of the present application, the method further includes: sending a network access request to the Bluetooth base station based on the primary broadcast channel, so that the Bluetooth base station generates a first broadcast message in response to the network access request.

[0111] In another implementation of the embodiment of the present application, the method further includes: receiving a fourth broadcast message sent by the Bluetooth base station based on the main broadcast channel; determining the Bluetooth base station based on the fourth broadcast message; and sending a network access request to the Bluetooth base station.

[0112] Since the fourth broadcast message instructs the Bluetooth device to determine the Bluetooth base station, it can determine a suitable Bluetooth base station among multiple Bluetooth base stations, thereby improving communication efficiency.

[0113] Figure 6 A schematic block diagram of an electronic device according to another embodiment of the present application. Figure 6 The electronic device may be a Bluetooth base station, and the electronic device includes:

[0114] The message sending module 610 sends a first broadcast message to the Bluetooth device based on the secondary broadcast channel, wherein the first broadcast message has a certain sending period, and the first broadcast message instructs the Bluetooth device to send a two-way communication connection request based on the primary broadcast channel in response to the sending period.

[0115] The connection establishing module 620 establishes a two-way communication connection with the Bluetooth device in response to the two-way communication connection request sent based on the primary broadcast channel.

[0116] Since the transmission cycle of the auxiliary broadcast channel of Bluetooth communication is fixed, the first broadcast message is sent based on the auxiliary broadcast channel of Bluetooth communication, which reduces or even eliminates the scanning power consumption of the Bluetooth device due to the delay of the transmission cycle. In addition, since the main broadcast channel of Bluetooth communication can realize two-way communication, a two-way communication connection request can be sent through the main broadcast channel to establish a two-way communication connection.

[0117] In another implementation method of the embodiment of the present application, the message sending module is also used to: send a second broadcast message to the Bluetooth device based on the main broadcast channel, wherein the message sending module is specifically used to: periodically send a first broadcast message based on the auxiliary broadcast channel, wherein the second broadcast message is used to determine the periodic broadcast information of the first broadcast message, and the periodic broadcast information instructs the Bluetooth device to scan the auxiliary broadcast channel based on the sending period to obtain the first broadcast message.

[0118] In another implementation of the embodiment of the present application, the Bluetooth base station also includes: an information sending module, which sends network access configuration information to the Bluetooth device based on the main broadcast channel, and the network access configuration information instructs the Bluetooth device to scan based on the main broadcast channel to obtain a second broadcast message.

[0119] In another implementation of the embodiment of the present application, the message sending module is also used to: send a third broadcast message to the Bluetooth device based on the auxiliary broadcast channel, wherein the third broadcast message includes periodic broadcast information, and the second broadcast message is used to determine the channel information of the third broadcast message.

[0120] In another implementation of the embodiment of the present application, the periodic broadcast information includes at least one of the broadcast address information, broadcast identification information and broadcast data encryption information of the first broadcast message.

[0121] In another implementation of the embodiment of the present application, the Bluetooth base station also includes: a receiving module, receiving a network access request sent by a Bluetooth device based on a main broadcast channel, wherein the message sending module is specifically used to: respond to the network access request, and send a first broadcast message to the Bluetooth device based on a secondary broadcast channel.

[0122] In another implementation of the embodiment of the present application, the Bluetooth base station also includes: a first determination module, which responds to the network access request and determines that the Bluetooth device is within the communication range of the Bluetooth base station; the connection establishment module is specifically used to: when a two-way communication connection request is received within the target cycle duration, respond to the two-way communication connection request and establish a two-way communication connection with the Bluetooth device; the Bluetooth base station also includes: a second determination module, which determines that the Bluetooth device is not within the communication range when no two-way communication connection request is received within the target cycle duration.

[0123] In another implementation of the embodiment of the present application, the message sending module is also used to: send a fourth broadcast message to the Bluetooth device based on the main broadcast channel, the fourth broadcast message instructs the Bluetooth device to determine the Bluetooth base station and send a network access request to the Bluetooth base station.

[0124] In another implementation of the embodiment of the present application, the message sending module is specifically used to: when the Bluetooth device and the Bluetooth base station are in a synchronized state, determine the sending timing of the information to be transmitted; at the sending timing, send a first broadcast message to the Bluetooth device based on the auxiliary broadcast channel.

[0125] The device of this embodiment is used to implement the corresponding methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, the functional implementation of each module in the device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be repeated here.

[0126] Figure 7 A schematic block diagram of an electronic device according to another embodiment of the present application. Figure 7 The electronic device may be a Bluetooth device, and the electronic device includes:

[0127] The message receiving module 710 receives a first broadcast message sent by a Bluetooth base station based on a secondary broadcast channel, wherein the first broadcast message has a certain sending period.

[0128] The request sending module 720 sends a two-way communication connection request to the Bluetooth base station based on the primary broadcast channel in response to the sending cycle of the first broadcast message, so as to establish a two-way communication connection with the Bluetooth base station.

[0129] Since the transmission cycle of the auxiliary broadcast channel of Bluetooth communication is fixed, the first broadcast message is sent based on the auxiliary broadcast channel of Bluetooth communication, which reduces or even eliminates the scanning power consumption of the Bluetooth device due to the delay of the transmission cycle. In addition, since the main broadcast channel of Bluetooth communication can realize two-way communication, a two-way communication connection request can be sent through the main broadcast channel to establish a two-way communication connection.

[0130] In another implementation method of the embodiment of the present application, the message receiving module is also used for: a receiving module, receiving a second broadcast message sent by the Bluetooth base station based on the main broadcast channel, wherein the message receiving module is specifically used for: determining the periodic broadcast information of the first broadcast message based on the second broadcast message; in response to the periodic broadcast information, scanning the auxiliary broadcast channel based on the sending period to obtain the first broadcast message sent by the Bluetooth base station.

[0131] In another implementation method of the embodiment of the present application, the Bluetooth device is also used for: an information receiving module, receiving network access configuration information sent by the Bluetooth base station based on the main broadcast channel, wherein the message receiving module is specifically used for: responding to the network access configuration information, scanning based on the main broadcast channel to obtain a second broadcast message sent by the Bluetooth base station.

[0132] In another implementation method of the embodiment of the present application, the message receiving module is also used to: receive a third broadcast message sent by the Bluetooth base station based on a secondary broadcast channel, wherein the third broadcast message includes periodic broadcast information, wherein the message receiving module is specifically used to: determine the channel information of the third broadcast message based on the second broadcast message; and scan based on the channel information of the third broadcast message to obtain the third broadcast message.

[0133] In another implementation of the embodiment of the present application, the periodic broadcast information includes at least one of the broadcast address information, broadcast identification information and broadcast data encryption information of the first broadcast message.

[0134] In another implementation of the embodiment of the present application, the Bluetooth device further includes: a request sending module, which sends a network access request to the Bluetooth base station based on the primary broadcast channel, so that the Bluetooth base station generates a first broadcast message in response to the network access request.

[0135] In another implementation method of the embodiment of the present application, the message receiving module is also used to: receive the fourth broadcast message sent by the Bluetooth base station based on the main broadcast channel; the Bluetooth device also includes: a determination module, which determines the Bluetooth base station based on the fourth broadcast message, and the request sending module is also used to: send a network access request to the Bluetooth base station.

[0136] The device of this embodiment is used to implement the corresponding methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, the functional implementation of each module in the device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be repeated here.

[0137] Figure 8 This is a schematic flowchart of a Bluetooth communication method according to another embodiment of the present application. Figure 8 A Bluetooth communication method is applied to a Bluetooth base station, the method comprising:

[0138] 810: Based on the first Bluetooth protocol, send a first broadcast message to the Bluetooth device, wherein the first broadcast message has a certain sending period, and the first broadcast message instructs the Bluetooth device to send a two-way communication connection request based on the second Bluetooth protocol in response to the sending period.

[0139] 820: In response to the two-way communication connection request, establish a two-way communication connection with the Bluetooth device.

[0140] Fig. 9 This is a schematic flowchart of a Bluetooth communication method according to another embodiment of the present application. Fig. 9 A Bluetooth communication method is applied to a Bluetooth device, the method comprising:

[0141] 910: Receive a first broadcast message sent by a Bluetooth base station based on a first Bluetooth protocol, wherein the first broadcast message has a certain sending period.

[0142] 920: In response to the sending cycle of the first broadcast message, based on the second Bluetooth protocol, send a two-way communication connection request to the Bluetooth base station, so as to establish a two-way communication connection with the Bluetooth base station.

[0143] Fig.10 A schematic flow chart of a Bluetooth communication method according to another embodiment of the present application. A Bluetooth communication method is applied to a Bluetooth base station, where the Bluetooth base station is used to manage multiple Bluetooth devices in real time, and the method includes:

[0144] 1010: Based on the secondary broadcast channel, send a first broadcast message to a target Bluetooth device among multiple Bluetooth devices, wherein the first broadcast message has a certain sending period, and the first broadcast message instructs the target Bluetooth device to send a two-way communication connection request based on the primary broadcast channel in response to the sending period.

[0145] 1020: In response to the two-way communication connection request sent based on the primary broadcast channel, establish a two-way communication connection with the target Bluetooth device.

[0146] In another implementation of the present invention, the plurality of Bluetooth devices include a plurality of electronic price tags, wherein the method further comprises: performing price update management on the plurality of electronic price tags based on a two-way communication connection.

[0147] In one example, a Bluetooth base station for electronic price label management may send electronic price label management data to the electronic price label, such as current price data, updated price data, display free price data, etc.

[0148] In another implementation of the present invention, the plurality of Bluetooth devices include a plurality of mobile devices having Bluetooth functionality, and the method further includes: performing user location management on the plurality of mobile devices based on a two-way communication connection.

[0149] In one example, user location management of multiple mobile devices is performed based on a two-way communication connection, including: within a preset range, broadcast messages are sent to multiple mobile devices, monitoring whether the current location of the mobile device is within the preset range (by establishing two-way communication, if the two-way communication is successfully established, the mobile device is judged to be within the preset range), and if it is within the preset range, the user carrying the corresponding mobile device is judged to be within the preset range. If the current location of the mobile device is not within the preset range, it is judged that the user carrying the corresponding mobile device is not within the preset range.

[0150] In one example, the Bluetooth base station may send a user sign-in trigger message to the mobile device to complete the user's sign-in. For example, the sign-in trigger message may trigger a corresponding application in the mobile device, and after the user signs in, a sign-in completion response may be sent through the two-way communication or the mobile network connection with the Bluetooth base station.

[0151] In one example, a Bluetooth base station may send a device discovery message to a mobile device, and the device discovery message may indicate triggering a corresponding application in the mobile device (e.g., an electronic sign-in application) so that a complete sign-in operation (a signature gesture or a confirmation gesture, etc.) can be performed in the application, and a sign-in completion response may be sent through the two-way communication, or through a mobile network with the Bluetooth base station, or other network connections such as a wireless local area network.

[0152] Fig.11 The hardware structure of the electronic device of another embodiment of the present application; Fig.11 As shown, the hardware structure of the electronic device may include: a processor 1101, a communication interface 1102, a storage medium 1103 and a communication bus 1104;

[0153] The processor 1101, the communication interface 1102, and the storage medium 803 communicate with each other via the communication bus 804;

[0154] Optionally, the communication interface 1102 may be an interface of a communication module;

[0155] The processor 1101 may be specifically configured to implement the method in any of the above embodiments.

[0156] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0157] The above-mentioned storage medium can be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.

[0158] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a storage medium, and the computer program includes a program code configured to execute the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), the above functions defined in the method of the present application are executed. It should be noted that the storage medium described in the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access storage medium (RAM), a read-only storage medium (ROM), an erasable programmable read-only storage medium (EPROM or flash memory), an optical fiber, a portable compact disk read-only storage medium (CD-ROM), an optical storage medium, a magnetic storage medium, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, an apparatus, or a device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any storage medium other than a computer-readable storage medium that can send, propagate, or transmit a program configured to be used by or in conjunction with an instruction execution system, an apparatus, or a device. The program code contained on the storage medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0159] Computer program code configured to perform the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0160] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of the code contains one or more executable instructions configured to implement the specified logical function. There are specific sequential relationships in the above-mentioned specific embodiments, but these sequential relationships are only exemplary. When the specific implementation is implemented, these steps may be less, more, or the execution order may be adjusted. That is, in some implementations as replacements, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0161] The modules involved in the embodiments described in this application may be implemented by software or hardware. The names of these modules do not constitute limitations on the modules themselves in some cases.

[0162] As another aspect, the present application further provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the method described in the above embodiment is implemented.

[0163] As another aspect, the present application also provides a storage medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above storage medium carries one or more programs, and when the above one or more programs are executed by the device, the device implements the method in any of the above embodiments.

[0164] The expressions "first", "second", "the first" or "the second" used in various embodiments of the present disclosure may modify various components regardless of order and / or importance, but these expressions do not limit the corresponding components. The above expressions are only configured for the purpose of distinguishing an element from other elements. For example, a first user device and a second user device represent different user devices, although both are user devices. For example, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element without departing from the scope of the present disclosure.

[0165] When one element (e.g., a first element) is referred to as being "(operably or communicatively) coupled" or "(operably or communicatively) coupled to" or "connected to" another element (e.g., a second element), it is understood that the one element is directly connected to the other element or the one element is indirectly connected to the other element via yet another element (e.g., a third element). Conversely, it is understood that when an element (e.g., a first element) is referred to as being "directly connected" or "directly coupled" to another element (the second element), no element (e.g., a third element) is interposed between the two.

[0166] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A Bluetooth communication method, applied to a Bluetooth base station, the method comprising: Based on the secondary broadcast channel, periodically sending a first broadcast message to the Bluetooth device, wherein the first broadcast message has a determined sending period, and the first broadcast message instructs the Bluetooth device to send a two-way communication connection request based on the primary broadcast channel in response to the sending period; Based on the primary broadcast channel, sending a second broadcast message to the Bluetooth device, wherein the second broadcast message is used to determine periodic broadcast information of the first broadcast message, and the periodic broadcast information instructs the Bluetooth device to scan the secondary broadcast channel based on the sending period to obtain the first broadcast message; Based on the secondary broadcast channel, sending a third broadcast message to the Bluetooth device, wherein the third broadcast message includes the periodic broadcast information, and the second broadcast message is used to determine the channel information of the third broadcast message; In response to the two-way communication connection request sent based on the primary broadcast channel, a two-way communication connection is established with the Bluetooth device.

2. The method according to claim 1, wherein: The method further comprises: Based on the primary broadcast channel, network access configuration information is sent to the Bluetooth device, where the network access configuration information instructs the Bluetooth device to scan based on the primary broadcast channel to obtain the second broadcast message.

3. The method according to claim 1, wherein: The periodic broadcast information includes at least one of broadcast address information, broadcast identification information, and broadcast data encryption information of the first broadcast message.

4. The method according to claim 1, wherein: The method further comprises: Receiving a network access request sent by the Bluetooth device based on the primary broadcast channel, wherein sending the first broadcast message to the Bluetooth device based on the secondary broadcast channel includes: In response to the network access request, a first broadcast message is sent to the Bluetooth device based on the secondary broadcast channel.

5. The method according to claim 4, wherein: The method further comprises: In response to the network access request, determining that the Bluetooth device is within the communication range of the Bluetooth base station, The responding to the two-way communication connection request sent based on the primary broadcast channel to establish a two-way communication connection with the Bluetooth device includes: When the two-way communication connection request is received within the target cycle duration, responding to the two-way communication connection request, establishing a two-way communication connection with the Bluetooth device, The method further comprises: When the two-way communication connection request is not received within the target cycle time, it is determined that the Bluetooth device is not within the communication range.

6. The method according to claim 4, wherein: The method further comprises: Based on the primary broadcast channel, a fourth broadcast message is sent to the Bluetooth device, wherein the fourth broadcast message instructs the Bluetooth device to determine a Bluetooth base station and send the network access request to the Bluetooth base station.

7. The method according to claim 1, wherein: The sending of the first broadcast message to the Bluetooth device based on the secondary broadcast channel includes: When the Bluetooth device is in a synchronized state with the Bluetooth base station, determining a sending timing of the information to be transmitted; At the sending opportunity, based on the secondary broadcast channel, the first broadcast message is sent to the Bluetooth device.

8. A Bluetooth communication method, applied to a Bluetooth device, the method comprising: Receiving a second broadcast message sent by the Bluetooth base station based on the primary broadcast channel; Determining channel information of a third broadcast message based on the second broadcast message; Scanning based on the channel information of the third broadcast message, receiving the third broadcast message sent by the Bluetooth base station based on the secondary broadcast channel, wherein the third broadcast message includes periodic broadcast information, and the periodic broadcast information instructs the Bluetooth device to scan the secondary broadcast channel based on a sending period to obtain the first broadcast message; In response to the periodic broadcast information, scanning the secondary broadcast channel based on the sending period to obtain the first broadcast message sent by the Bluetooth base station, wherein the first broadcast message has a determined sending period; In response to the sending cycle of the first broadcast message, a two-way communication connection request is sent to the Bluetooth base station based on the primary broadcast channel, so as to establish a two-way communication connection with the Bluetooth base station.

9. The method according to claim 8, wherein: The method further comprises: receiving network access configuration information sent by the Bluetooth base station based on the primary broadcast channel, wherein: The receiving a second broadcast message sent by the Bluetooth base station based on the primary broadcast channel includes: In response to the network access configuration information, scanning is performed based on the primary broadcast channel to obtain the second broadcast message sent by the Bluetooth base station.

10. The method according to claim 8, wherein: The periodic broadcast information includes at least one of broadcast address information, broadcast identification information, and broadcast data encryption information of the first broadcast message.

11. The method according to claim 8, wherein: The method further comprises: Based on the primary broadcast channel, a network access request is sent to the Bluetooth base station, so that the Bluetooth base station generates the first broadcast message in response to the network access request.

12. The method according to claim 11, wherein: The method further comprises: Receiving a fourth broadcast message sent by the Bluetooth base station based on the primary broadcast channel; Determine a Bluetooth base station based on the fourth broadcast message; Send the network access request to the Bluetooth base station.

13. A Bluetooth communication method, applied to a Bluetooth base station, the method comprising: Based on the first Bluetooth protocol, periodically sending a first broadcast message to the Bluetooth device, wherein the first broadcast message has a certain sending period, and the first broadcast message instructs the Bluetooth device to send a two-way communication connection request based on the second Bluetooth protocol in response to the sending period; Based on the second Bluetooth protocol, sending a second broadcast message to the Bluetooth device, wherein the second broadcast message is used to determine periodic broadcast information of the first broadcast message, and the periodic broadcast information instructs the Bluetooth device to scan the first Bluetooth protocol based on the sending period to obtain the first broadcast message; Based on the first Bluetooth protocol, sending a third broadcast message to the Bluetooth device, wherein the third broadcast message includes the periodic broadcast information, and the second broadcast message is used to determine the channel information of the third broadcast message; In response, based on the two-way communication connection request, a two-way communication connection is established with the Bluetooth device.

14. A Bluetooth communication method, applied to a Bluetooth device, the method comprising: Receiving a second broadcast message sent by the Bluetooth base station based on a second Bluetooth protocol; Determining channel information of a third broadcast message based on the second broadcast message; Scanning based on the channel information of the third broadcast message, receiving the third broadcast message sent by the Bluetooth base station based on the first Bluetooth protocol, wherein the third broadcast message includes periodic broadcast information, and the periodic broadcast information instructs the Bluetooth device to scan the first Bluetooth protocol based on a sending period to obtain the first broadcast message; In response to the periodic broadcast information, scanning the first Bluetooth protocol based on the sending period to obtain the first broadcast message sent by the Bluetooth base station; In response to the sending cycle of the first broadcast message, based on the second Bluetooth protocol, a two-way communication connection request is sent to the Bluetooth base station, so as to establish a two-way communication connection with the Bluetooth base station.

15. A Bluetooth communication method, applied to a Bluetooth base station, wherein the Bluetooth base station is used to manage multiple Bluetooth devices in real time, the method comprising: Based on the secondary broadcast channel, periodically sending a first broadcast message to a target Bluetooth device among the multiple Bluetooth devices, wherein the first broadcast message has a determined sending period, and the first broadcast message instructs the target Bluetooth device to send a two-way communication connection request based on the primary broadcast channel in response to the sending period; Based on the primary broadcast channel, sending a second broadcast message to the target Bluetooth device, wherein the second broadcast message is used to determine the periodic broadcast information of the first broadcast message, and the periodic broadcast information instructs the target Bluetooth device to scan the secondary broadcast channel based on the sending period to obtain the first broadcast message; Based on the secondary broadcast channel, sending a third broadcast message to the target Bluetooth device, wherein the third broadcast message includes the periodic broadcast information, and the second broadcast message is used to determine the channel information of the third broadcast message; In response to the two-way communication connection request sent based on the primary broadcast channel, a two-way communication connection is established with the target Bluetooth device.

16. The method according to claim 15, wherein: The plurality of Bluetooth devices include a plurality of electronic price tags, wherein the method further comprises: Based on the two-way communication connection, price update management is performed on the multiple electronic price tags.

17. The method according to claim 15, wherein: The plurality of Bluetooth devices include a plurality of mobile devices having Bluetooth functions, and the method further includes: Based on the two-way communication connection, user location management is performed on the multiple mobile devices.

18. An electronic device, comprising: A message sending module, based on a secondary broadcast channel, periodically sending a first broadcast message to a Bluetooth device, wherein the first broadcast message has a determined sending period, and the first broadcast message instructs the Bluetooth device to send a two-way communication connection request based on a primary broadcast channel in response to the sending period; based on the primary broadcast channel, sending a second broadcast message to the Bluetooth device, wherein the second broadcast message is used to determine the periodic broadcast information of the first broadcast message, and the periodic broadcast information instructs the Bluetooth device to scan the secondary broadcast channel based on the sending period to obtain the first broadcast message; based on the secondary broadcast channel, sending a third broadcast message to the Bluetooth device, wherein the third broadcast message includes the periodic broadcast information, and the second broadcast message is used to determine the channel information of the third broadcast message; The connection establishing module establishes a two-way communication connection with the Bluetooth device in response to the two-way communication connection request sent based on the main broadcast channel.

19. An electronic device comprising: A message receiving module, receiving a second broadcast message sent by the Bluetooth base station based on the main broadcast channel; Determining channel information of a third broadcast message based on the second broadcast message; Scanning based on the channel information of the third broadcast message, receiving the third broadcast message sent by the Bluetooth base station based on the secondary broadcast channel, the third broadcast message including periodic broadcast information, the periodic broadcast information instructing the Bluetooth device to scan the secondary broadcast channel based on the sending period to obtain the first broadcast message; in response to the periodic broadcast information, scanning the secondary broadcast channel based on the sending period to obtain the first broadcast message sent by the Bluetooth base station, wherein the first broadcast message has a determined sending period; The request sending module sends a two-way communication connection request to the Bluetooth base station based on the main broadcast channel in response to the sending cycle of the first broadcast message, so as to establish a two-way communication connection with the Bluetooth base station.

20. An electronic device, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method according to any one of claims 1-17.

21. A storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 17 is implemented.

Citation Information

Patent Citations

  • Advertisement and connection setup in a wireless communication network

    CN107211261A

  • System and method for bluetooth device discovery

    CN108886677A