Communication methods, communication devices, Bluetooth devices, communication systems, media and products
By using Bluetooth Low Energy Extended Broadcast and periodic broadcast technologies, the problems of high power consumption and imbalance between devices in Bluetooth intercom solutions are solved, enabling rapid team formation of multiple devices and extending communication distance, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ACTIONS ZHUHAI TECH CO
- Filing Date
- 2025-07-24
- Publication Date
- 2026-08-04
AI Technical Summary
Existing Bluetooth intercom solutions rely on custom hardware, which consumes a lot of power and requires distinguishing between master and slave devices, resulting in uneven power consumption and poor user experience between devices.
Multiple Bluetooth devices can be grouped together by extending Bluetooth Low Energy broadcast, and periodic broadcasts can be used for communication to extend the communication distance and improve the user experience.
It enables quick team formation and flexible entry and exit from teams, expands communication distance, and improves user experience.
Smart Images

Figure CN121357516B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, specifically to a communication method, communication device, Bluetooth device, communication system, medium, and product. Background Technology
[0002] Bluetooth is a low-cost, short-range mobile communication technology. Its simple and efficient data and audio transmission capabilities have led to its widespread use in consumer electronics. In recent years, various device manufacturers have been experimenting with implementing two-way communication functionality using Bluetooth technology.
[0003] Currently, most Bluetooth intercom solutions are designed based on data networks, proprietary communication frameworks, or classic Bluetooth, relying on custom hardware or consuming significant power. Furthermore, they typically require distinguishing between master and slave devices, leading to poor user experience and uneven power consumption between devices in some scenarios. Summary of the Invention
[0004] The purpose of this disclosure is to provide a communication method, communication device, Bluetooth device, communication system, medium, and product.
[0005] To achieve the above objectives, a first aspect of this disclosure provides a communication method executed by a first Bluetooth device, the communication method comprising:
[0006] In response to the operation of initiating a team, a target team identifier is generated, which is used to form a first communication team;
[0007] In response to receiving a first extended broadcast from a second Bluetooth device, the device teams up with the second Bluetooth device, the first extended broadcast including the target team identifier and the device identifier of the second Bluetooth device;
[0008] In response to the completion of the formation of the first communication team, a first periodic broadcast is sent in the first communication team, the first periodic broadcast including the communication data to be sent by the first Bluetooth device.
[0009] A second aspect of this disclosure provides a communication method executed by a second Bluetooth device, the communication method comprising:
[0010] In response to a request to join a communications team, determine whether the user has already joined a communications team.
[0011] In response to not having joined a communication team, a first extended broadcast is sent, the first extended broadcast being used to form a first communication team with the first Bluetooth device that generated the target team identifier, the first extended broadcast including the target team identifier and the device identifier of the second Bluetooth device;
[0012] The first communication team receives a second periodic broadcast sent by a first other Bluetooth device. The second periodic broadcast includes communication data to be sent by the first other Bluetooth device. The broadcast upon completion of the formation of the first communication team is sent by the first Bluetooth device after the formation of the first communication team is completed.
[0013] A third aspect of this disclosure provides a communication device deployed in a first Bluetooth device, the communication device comprising:
[0014] The first generation module is configured to generate a target team identifier in response to an operation of initiating a team formation, the target team identifier being used to form a first communication team;
[0015] The team-up module is configured to team up with the second Bluetooth device in response to receiving a first extended broadcast sent by the second Bluetooth device, wherein the first extended broadcast includes the target team-up identifier and the device identifier of the second Bluetooth device.
[0016] The first transmitting module is configured to transmit a first periodic broadcast in the first communication team in response to the completion of the first communication team formation. The first periodic broadcast includes communication data to be transmitted by the first Bluetooth device.
[0017] A fourth aspect of this disclosure provides a communication device deployed in a second Bluetooth device, the communication device comprising:
[0018] The first determining module is configured to determine whether a communication team has already been joined in response to a request to join the communication team.
[0019] The fourth sending module is configured to send a first extended broadcast based on the obtained target team identifier in response to not having joined a communication team. The first extended broadcast is used to form a first communication team with the first Bluetooth device that generated the target team identifier. The first extended broadcast includes the target team identifier and the device identifier of the second Bluetooth device.
[0020] The first receiving module is configured to receive a second periodic broadcast sent by a first other Bluetooth device in the first communication team. The second periodic broadcast includes communication data to be sent by the first other Bluetooth device. The broadcast upon completion of the formation of the first communication team is sent by the first Bluetooth device after the formation of the first communication team is completed.
[0021] This disclosure, in its fifth aspect, provides a first Bluetooth device, comprising:
[0022] A memory on which computer programs are stored;
[0023] A processor for executing the computer program in the memory to implement the steps of the communication method described in the first aspect of this disclosure.
[0024] A sixth aspect of this disclosure provides a second Bluetooth device, comprising:
[0025] A memory on which computer programs are stored;
[0026] A processor for executing the computer program in the memory to implement the steps of the communication method described in the second aspect of this disclosure.
[0027] A seventh aspect of this disclosure provides a communication system, the system comprising a first Bluetooth device as described in the fifth aspect of this disclosure and a second Bluetooth device as described in the sixth aspect of this disclosure.
[0028] The eighth aspect of this disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the communication method described in the first aspect of this disclosure, or implements the steps of the communication method described in the second aspect of this disclosure.
[0029] The ninth aspect of this disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the communication method described in the first aspect of this disclosure, or implements the steps of the communication method described in the second aspect of this disclosure.
[0030] Through the above technical solution, the first Bluetooth device can team up with the second Bluetooth device by receiving the first extended broadcast sent by the second Bluetooth device. Thus, by using Bluetooth Low Energy extended broadcast to enable multiple Bluetooth devices to team up, it is possible to achieve rapid team formation and flexible entry and exit from teams. Furthermore, using periodic broadcasts for communication extends the communication distance and improves the communication experience.
[0031] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description
[0032] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the following detailed description to explain the present disclosure, but do not constitute a limitation thereof. In the drawings:
[0033] Figure 1 This is a schematic diagram illustrating a communication system according to an exemplary embodiment.
[0034] Figure 2 This is a flowchart illustrating a communication method according to an exemplary embodiment.
[0035] Figure 3This is a schematic diagram illustrating a first team-up interface according to an exemplary embodiment.
[0036] Figure 4 This is a schematic diagram illustrating a second team interface according to an exemplary embodiment.
[0037] Figure 5 This is a schematic diagram illustrating a third team interface according to an exemplary embodiment.
[0038] Figure 6 This is a schematic diagram illustrating a first Bluetooth intercom interface according to an exemplary embodiment.
[0039] Figure 7 This is a schematic diagram illustrating another first Bluetooth intercom interface according to an exemplary embodiment.
[0040] Figure 8 This is a schematic diagram illustrating a communication method according to an exemplary embodiment.
[0041] Figure 9 This is a flowchart illustrating a communication method according to an exemplary embodiment.
[0042] Figure 10 This is a schematic diagram illustrating a fourth team interface according to an exemplary embodiment.
[0043] Figure 11 This is a schematic diagram illustrating a fifth team interface according to an exemplary embodiment.
[0044] Figure 12 This is a schematic diagram illustrating a seventh team interface according to an exemplary embodiment.
[0045] Figure 13 This is a schematic diagram illustrating clock synchronization according to an exemplary embodiment.
[0046] Figure 14 This is a schematic diagram illustrating another clock synchronization according to an exemplary embodiment.
[0047] Figure 15 This is a schematic diagram illustrating yet another clock synchronization according to an exemplary embodiment.
[0048] Figure 16 This is a schematic diagram illustrating a timing arrangement for intercom according to an exemplary embodiment.
[0049] Figure 17 This is a schematic diagram illustrating a sixth team interface according to an exemplary embodiment.
[0050] Figure 18 This is a schematic diagram illustrating another communication method according to an exemplary embodiment.
[0051] Figure 19A-21B This is a schematic diagram illustrating a reference device for determining a two-person intercom scenario according to an exemplary embodiment.
[0052] Figure 22-26 This is a schematic diagram illustrating a reference device for determining a four-person intercom scenario according to an exemplary embodiment.
[0053] Figure 27 This is a block diagram illustrating a communication device deployed in a first Bluetooth device according to an exemplary embodiment.
[0054] Figure 28 This is a block diagram illustrating a communication device deployed in a second Bluetooth device according to an exemplary embodiment.
[0055] Figure 29 This is a block diagram illustrating a first Bluetooth device according to an exemplary embodiment.
[0056] Figure 30 This is a block diagram illustrating a second Bluetooth device according to an exemplary embodiment. Detailed Implementation
[0057] The specific embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit this disclosure.
[0058] As mentioned in the background section, current Bluetooth intercom solutions are mostly designed based on data networks, proprietary communication frameworks, or classic Bluetooth, relying on customized hardware or consuming significant power. Furthermore, they typically require distinguishing between master and slave devices, leading to poor user experience and uneven power consumption between devices in some scenarios.
[0059] In view of this, this disclosure provides a communication method, communication device, Bluetooth device, communication system, medium, and product, which enables multiple Bluetooth devices to form a group through Bluetooth Low Energy extended broadcast, thus achieving the goal of rapid group formation and flexible entry and exit from the group. Furthermore, the use of periodic broadcasting for communication extends the communication distance and improves the communication experience.
[0060] Before describing the communication method provided in this disclosure in detail, the communication system provided in this disclosure will be described first. Figure 1 This is a schematic diagram illustrating a communication system according to an exemplary embodiment. For example... Figure 1 As shown, the communication system may include a first Bluetooth device 100 and a second Bluetooth device 200. The first Bluetooth device 100 and the second Bluetooth device 200 can team up to form a communication team. In this communication team, the first Bluetooth device 100 and the second Bluetooth device 200 communicate with each other.
[0061] The first Bluetooth device 100 and the second Bluetooth device 200 can be mobile terminals, such as mobile phones, computers, tablets, smart wearable devices (e.g., smartwatches), etc. As another example, the first Bluetooth device 100 and the second Bluetooth device 200 can also be in-vehicle infotainment systems, etc. This disclosure does not limit them in this regard.
[0062] The first Bluetooth device 100 and the second Bluetooth device 200 can be the same type of device or different types of devices, and this disclosure does not limit them in this regard.
[0063] It should be understood that either the first Bluetooth device 100 or the second Bluetooth device 200 can be the initiator of a pairing or the joiner of a pairing. In this disclosure, for ease of description, the example will be the first Bluetooth device 100 as the initiator of the pairing and the second Bluetooth device 200 as the joiner of the pairing.
[0064] Furthermore, the second Bluetooth device 200, as a joining party, can be one or more; for ease of description, in Figure 1 The following description uses three Bluetooth devices, including the second Bluetooth device 200, as an example.
[0065] Figure 2 This is a flowchart illustrating a communication method according to an exemplary embodiment. This communication method can be performed by a first Bluetooth device, for example, by... Figure 1 The first Bluetooth device 100 shown performs this action. (As indicated) Figure 2 As shown, the communication method may include the following steps.
[0066] In step S21, in response to the operation of initiating a team, a target team identifier is generated, which is used to form the first communication team.
[0067] Users can trigger team formation through certain operations. In this disclosure, operations can include, but are not limited to: user-triggered operations on corresponding options using a finger or touch device. For example, users can perform operations using finger gestures, which can be any one of the following: single-click gesture, swipe gesture, drag gesture, pressure-recognition gesture, long-press gesture, short-press gesture, area-change gesture, double-press gesture, double-tap gesture, or a combination thereof. Similarly, users can perform trigger operations using a touch device, such as single-click, double-click, or any number of clicks, and can also perform long-press or short-press operations.
[0068] In addition, the operation may also include voice input, for example, the user can input the command "start a team" via voice, and the operation of starting a team can be the same as the operation of the user inputting the command "start a team" via voice, and so on.
[0069] The target team identifier can be a target team identifier, such as a team code consisting of 6 digits.
[0070] In step S22, in response to receiving a first extended broadcast sent by the second Bluetooth device, the user teams up with the second Bluetooth device. The first extended broadcast includes a target team identifier and a device identifier of the second Bluetooth device.
[0071] After the first Bluetooth device generates the target group identifier, the user of the first Bluetooth device can send the target group identifier to the second Bluetooth device through other means, and then the second Bluetooth device can generate a first extended broadcast including the target group identifier.
[0072] For example, a user of a first Bluetooth device sends a target group identifier to a user of a second Bluetooth device. Then, the user of the second Bluetooth device enters the target group identifier into the second Bluetooth device, causing the second Bluetooth device to generate a first extended broadcast that includes the target group identifier.
[0073] In the Bluetooth communication protocol, to clearly identify the source of each broadcast, each broadcast sent by a Bluetooth device typically includes the device identifier of that Bluetooth device. This device identifier can be a Bluetooth address. That is, the first extended broadcast includes the target group identifier and the Bluetooth address of the second Bluetooth device.
[0074] After receiving the first extended broadcast sent by the second Bluetooth device, the first Bluetooth device can team up with the second Bluetooth device when it verifies that the team identifier included in the first extended broadcast is consistent with its own target team identifier, that is, when it determines that the first extended broadcast includes the target team identifier.
[0075] It should be understood that after the first Bluetooth device teams up with the second Bluetooth device, the teaming up can end or continue to team up with more Bluetooth devices to increase the number of Bluetooth devices included in the first communication team.
[0076] For example, suppose the second Bluetooth device includes device B, device C, and device D. After receiving a first extended broadcast from device B, the first Bluetooth device teams up with device B. If teaming continues, it continues scanning for broadcasts. If it receives first extended broadcasts from devices C and D, it teams up with devices C and D. If teaming ends, the first Bluetooth device stops scanning for first extended broadcasts from other devices.
[0077] In step S23, in response to the completion of the first communication team formation, a first periodic broadcast is sent in the first communication team, the first periodic broadcast including the communication data to be sent by the first Bluetooth device.
[0078] For example, when the first Bluetooth device detects that the teaming operation is complete, it considers the first communication team to be formed and ready to communicate. During communication, each Bluetooth device in the first communication team can send its own periodic broadcast, which includes its own communication data to be sent.
[0079] Among them, by sending communication data through Bluetooth Low Energy (Bluetooth LE) connectionless periodic broadcasting, a point-to-point communication distance of more than 200 meters (typical value under line-of-sight conditions) can be achieved in open environments, thus significantly expanding the coverage of traditional BLE point-to-point connections.
[0080] Using the above technical solution, the first Bluetooth device can team up with the second Bluetooth device by receiving the first extended broadcast sent by the second Bluetooth device. Thus, by using Bluetooth Low Energy extended broadcast to enable multiple Bluetooth devices to team up, it is possible to achieve rapid team formation and flexible entry and exit from teams. Furthermore, using periodic broadcasts for communication extends the communication distance and improves the communication experience.
[0081] In addition, the communication data can be Bluetooth intercom data.
[0082] When the communication data is Bluetooth intercom data, the first Bluetooth device includes a first voice acquisition device and a first voice playback device, and the second Bluetooth device includes a second voice acquisition device and a second voice playback device. For example, the voice acquisition device can be a microphone, and the voice playback device can be a speaker. This allows for intercom communication between multiple devices, meeting the needs of multi-device intercom.
[0083] For example, in fleet application scenarios, each vehicle belonging to the same fleet can communicate with other vehicles via Bluetooth through the vehicle's infotainment system after forming a communication team. This enables multiple devices belonging to the same fleet to communicate via Bluetooth, improving the user's driving experience.
[0084] This allows multiple devices to communicate via Bluetooth, improving the user experience.
[0085] The following describes the interactive interface during the team formation process.
[0086] In one embodiment, the communication method further includes:
[0087] Display the first team-up interface, which includes a team-up initiation control;
[0088] The operation of initiating a team is an operation on the initiating a team control.
[0089] Reference Figure 3The first Bluetooth device displays a first team-up interface. This first team-up interface includes a team-up initiation control. When a team-up initiation is needed, the user of the first Bluetooth device can click the team-up initiation control; the operation to initiate a team-up is an operation on the team-up initiation control. After detecting the operation on the team-up initiation control, the first Bluetooth device generates a target team identifier. For example, such as... Figure 3 As shown, the first Bluetooth device can be a smartwatch.
[0090] In addition, the first team-up interface also displays the communication type, for example, such as Figure 3 As shown, the first team interface also displays the communication type as "Bluetooth walkie-talkie".
[0091] As shown above, the first Bluetooth device can not only initiate a team, but also join a communication team initiated by other Bluetooth devices. Accordingly, the first team-up interface can also include a "Join Team" control; when the user clicks the "Join Team" control, the first Bluetooth device can join a communication team initiated by other Bluetooth devices.
[0092] The first Bluetooth device joins the communication team in the same way as the second Bluetooth device. The method of the second Bluetooth device joining the communication team will be described in detail below and will not be described here.
[0093] In this disclosure, after generating the target group identifier, the first Bluetooth device can also output the target group identifier, so that the user can know the target group identifier and then send it to the user of the second Bluetooth device.
[0094] In one embodiment, the communication method further includes:
[0095] The second team-up interface is displayed, which includes the target team icon.
[0096] Reference Figure 4 The first Bluetooth device's display interface can also show a second team-up interface. For example, after detecting that a user clicks the "Initiate Team-up" control in the first team-up interface, a second team-up interface including the target team identifier can be displayed. For example, such as... Figure 4 As shown, the target group identifier is "897894". This allows the user to view the target group identifier and then send it to the user of the second Bluetooth device, so that the user of the second Bluetooth device becomes aware of the target group identifier.
[0097] This allows the target team identifier to be displayed on the first Bluetooth device, enhancing interactivity and improving communication reliability.
[0098] In addition, the second team-up interface may also include an abandon team-up control. When the abandon team-up control is triggered, the first Bluetooth device abandons the team-up.
[0099] For example, the first Bluetooth device abandons teaming up when it detects that the user clicks the abandon teaming control, that is, it does not team up with any Bluetooth device.
[0100] By adopting the above technical solution, the first team-up interface includes an abandon team-up control. In this way, the first Bluetooth device can be controlled to abandon the team-up by abandoning the team-up control, which improves the flexibility of team-up and enhances the user experience.
[0101] After the user of the first Bluetooth device sends the target group identifier to the user of the second Bluetooth device, the user of the second Bluetooth device can then input the target group identifier into the second Bluetooth device. Upon receiving the target group identifier, the second Bluetooth device generates and sends a first extended broadcast, which includes the target group identifier and the device identifier of the second Bluetooth device.
[0102] After receiving a first extended broadcast from the second Bluetooth device, the first Bluetooth device teams up with the second Bluetooth device because the first extended broadcast includes a target team identifier.
[0103] In one embodiment, the communication method further includes:
[0104] The third team interface is displayed, which includes the device identifier of the second Bluetooth device that has been teamed with the first Bluetooth device.
[0105] In this embodiment, the first Bluetooth device also displays a third team-up interface, which includes the device identifier of the second Bluetooth device that has teamed up with the first Bluetooth device. This allows the user of the first Bluetooth device to know the device identifier of the second Bluetooth device that has teamed up with the first Bluetooth device in real time.
[0106] It should be understood that the second Bluetooth device here does not refer to a specific device, but rather to other Bluetooth devices that team up with the first Bluetooth device.
[0107] For example, the third team interface includes a list of members who have joined. (See reference...) Figure 5 The list of added team members includes a second Bluetooth device identified as “user_000000”.
[0108] In addition, such as Figure 5 As shown, the third team-up interface may also include at least one of the following: the target team-up identifier, the team-up completion control, and the team-up abandonment control.
[0109] Users can end or complete a team by clicking the "Complete Team Formation" control. They can abandon a team by clicking the "Abandon Team Formation" control.
[0110] Using the above technical solution, the first Bluetooth device can display the device identifier of the second Bluetooth device that is teamed up with it, making it easier for users to know the device information of the devices teamed up with the first Bluetooth device and improving the team-up experience. Furthermore, users can flexibly choose to complete the team-up and / or abandon it, increasing the flexibility of the team-up process.
[0111] In one embodiment, the communication method further includes:
[0112] In response to the completion of the first communication team formation, a first Bluetooth intercom interface is displayed, which includes at least one of the following: microphone working status, speaker working status, cancel listening control, exit intercom control, and the number of Bluetooth devices currently participating in the intercom.
[0113] For example, when detected Figure 5 After completing the team formation control as shown, the first communication team is confirmed to be formed. At this time, the first Bluetooth device can display the first Bluetooth intercom interface. The first Bluetooth intercom interface includes at least one of the following: a first control for switching the microphone's working state, a second control for switching the speaker's working state, a cancel listening control, an exit intercom control, and the number of Bluetooth devices currently participating in the intercom.
[0114] Reference Figure 6 The first Bluetooth device displays a first Bluetooth intercom interface, which includes a first control for switching the microphone's operating state, a second control for switching the speaker's operating state, a cancel listening control, an exit intercom control, and the number of Bluetooth devices currently participating in the intercom. The user can switch the microphone's operating state using the first control and the speaker's operating state using the second control. Figure 6 In this configuration, the microphone and speaker are both off.
[0115] For example, clicking the first control can switch the microphone's working state to the on state, and clicking the first control can switch the speaker's working state to the on state, such as... Figure 7 As shown.
[0116] In addition, users can click the "Cancel Listen" control to stop the first Bluetooth device from sending periodic broadcasts to other Bluetooth devices and from receiving periodic broadcasts from other Bluetooth devices. That is, after the user clicks the "Cancel Listen" control, the first Bluetooth device terminates communication with other Bluetooth devices in the first communication team. Users can also click the "Exit Intercom" control to remove the first Bluetooth device from the first communication team.
[0117] By adopting the above technical solution, the first Bluetooth intercom interface can include different controls. Users only need to trigger the corresponding controls in the first Bluetooth intercom interface to realize different functions, which improves the flexibility of communication.
[0118] In this disclosure, Bluetooth devices periodically send extended broadcasts during communication both during and after team formation. It should be understood that the content of the extended broadcasts differs at different stages.
[0119] In one embodiment, the communication method may further include:
[0120] Before the first communication team is fully formed, a second extended broadcast is sent, which includes the target team identifier.
[0121] The second extended broadcast also includes at least one of the following: teaming status, device identifier of the second Bluetooth device teaming with the first Bluetooth device, and number of the second Bluetooth devices teaming with the first Bluetooth device.
[0122] During the team formation process, the first Bluetooth device periodically sends a second extended broadcast. In addition to the target team formation identifier, the second extended broadcast also includes at least one of the following: team formation status, device identifier of the second Bluetooth device that is teamed with the first Bluetooth device, and number of second Bluetooth devices that are teamed with the first Bluetooth device.
[0123] The team status indicates that a team is currently being formed.
[0124] It should be understood that at the initial stage of team formation, if there is no second Bluetooth device teaming up with the first Bluetooth device, the device identifier of the second Bluetooth device teaming up with the first Bluetooth device included in the second extended broadcast is empty, and the number of second Bluetooth devices teaming up with the first Bluetooth device is also 0.
[0125] In this way, before the team is formed, the first Bluetooth device sends a second extended broadcast, so that other Bluetooth devices that receive the second extended broadcast can know the team formation status, thus improving the user experience.
[0126] After the first Bluetooth device completes the formation of the first communication team, it initiates low-power Bluetooth periodic advertising (PA) to send communication data, using a connectionless unidirectional communication method, hereinafter referred to as periodic advertising. Considering that 2.4G Bluetooth is limited by bandwidth and Bluetooth clock, and there are instabilities and uncertainties in the communication network, in order to solve the problems of instability and uncertainty in the communication network, in this disclosure, periodic advertising synchronization PA SYNC can be performed during the communication process.
[0127] Therefore, the communication method further includes:
[0128] In response to the completion of the first communication team formation, a third extended broadcast is sent to enable Bluetooth devices that receive the third extended broadcast and the first periodic broadcast to periodically broadcast synchronize with the first Bluetooth device;
[0129] The third extended broadcast includes the target team identifier, the device information of the first Bluetooth device, the transmission period of the periodic broadcast, the first start time of transmitting the first periodic broadcast, the number of Bluetooth devices included in the first communication team, and the communication sequence number of each Bluetooth device in the first communication team. The communication sequence number is determined by the first Bluetooth device according to the order in which it receives the first extended broadcast.
[0130] For example, in the third extended broadcast, the device information of the second Bluetooth devices that are teamed up with the first Bluetooth device can be arranged according to the order in which the first Bluetooth device receives the first extended broadcast. Therefore, for each second Bluetooth device, its own communication sequence number can be determined according to the order in the list of device information of the second Bluetooth device.
[0131] After the first communication team is formed, the first Bluetooth device sends a third extended broadcast in addition to the first periodic broadcast, so that the Bluetooth devices that receive the first periodic broadcast and the third extended broadcast can synchronize their Bluetooth clocks with the first Bluetooth device using the first Bluetooth device as a reference device.
[0132] In this first communication team, the periodic broadcast transmission period of each device is the same; for example, the transmission period can be 20ms. The communication sequence number of each Bluetooth device in the first communication team is determined by the order in which the first Bluetooth device receives the first extended broadcast.
[0133] When each Bluetooth device joins the first communication group, the first Bluetooth device can assign a communication sequence number to itself based on the order in which it receives the first extended broadcast. For example, suppose the first communication group includes a first Bluetooth device (device A) and a second Bluetooth device (including devices B, C, and D). During the group search process, device A receives the first extended broadcast in the order of device B, device C, and device D. That is, device A receives the first extended broadcast sent by device B at time t1, the first extended broadcast sent by device C at time t2, and the first extended broadcast sent by device D at time t3, and t1 is earlier than t2, and t2 is earlier than t3. Therefore, device A's communication sequence number is 1, device B's is 2, device C's is 3, and device D's is 4. In the third extended broadcast, device A's device information is in the first position of the list, device B's is in the second position, device C's is in the third position, and device D's is in the fourth position.
[0134] Assuming device B receives a first periodic broadcast and a third extended broadcast from a first Bluetooth device, device B determines the first Bluetooth device as its reference device based on the first periodic broadcast, and determines the start time for device B to send its periodic broadcast based on the third extended broadcast sent by the first Bluetooth device. Device B then activates PA at that start time, i.e., it sends its periodic broadcast at that start time. It should be understood that in the initial team formation scenario, the team formation initiator is the original reference device in the first communication team; that is, the first Bluetooth device itself is the reference and does not need to determine a reference device to activate PA.
[0135] The specific methods by which device B determines its own reference device and the start time of its periodic broadcasts will be described in detail in the communication method executed by the second Bluetooth device, and will not be repeated here.
[0136] Figure 8 This is a schematic diagram illustrating a communication method according to an exemplary embodiment. For example... Figure 8As shown, firstly, during the search phase, initiator A (device A that initiated the team formation) initiates the team formation and sends a second extended broadcast. Joiners B (device B), C (device C), and D (device D) send a first extended broadcast to request to team up with initiator A. Next, upon receiving the first extended broadcasts from joiners B, C, and D, initiator A, since each of the first extended broadcasts includes a target team formation identifier, teams up with joiners B, C, and D respectively. Simultaneously, initiator A continues to send the second extended broadcast, so that joiners B, C, and D who receive the second extended broadcast are aware that they have teamed up with initiator A. In other words, after the search or team formation is completed, joiners B, C, and D who receive the second extended broadcast are aware that they have teamed up with initiator A.
[0137] After the search or team formation is complete, the clock synchronization phase begins. Initiator A is the first to activate PA and send PA and a third extended broadcast. Participants who receive the first periodic broadcast can determine their own PA activation start time based on the received third extended broadcast. Finally, the intercom phase begins, where each participant activates PA and sends PA when their own PA activation start time is reached.
[0138] For example, assume the communication sequence numbers of devices A, B, C, and D are as shown above. (Refer to...) Figure 8 After receiving the first periodic broadcast and the third extended broadcast sent by the initiator A, participant B determines the start time for sending its own periodic broadcast and sends PA at that start time.
[0139] For example, suppose device C does not receive the first periodic broadcast and the third extended broadcast sent by initiator A, but receives the periodic broadcast and extended broadcast sent by device B. Then device B is identified as its reference device, and the start time for sending its own periodic broadcast is determined based on the extended broadcast sent by device B, and PA is sent at that start time.
[0140] For another example, suppose device D receives a first periodic broadcast and a third extended broadcast from initiator A, as well as periodic broadcasts and extended broadcasts from devices B and C. In this case, initiator A is used as the reference device to determine the start time for device D to send its periodic broadcast. Alternatively, if device D receives periodic broadcasts and extended broadcasts from devices B and C, and device B's reference device is device A, then device B is used as the reference device for device D to determine the start time for device D to send its periodic broadcast.
[0141] It should be understood that in the first communication team, each Bluetooth device will periodically send extended broadcasts, both during the team formation process and during communication after the team formation is completed.
[0142] Using the above technology, after the first communication team is formed, a third extended broadcast can be sent. This allows Bluetooth devices that receive both the third extended broadcast and the first periodic broadcast to determine the start time for sending their own periodic broadcasts. Thus, synchronization between the periodic broadcasts of the Bluetooth devices and the first Bluetooth device is achieved.
[0143] Figure 9 This is a flowchart illustrating a communication method according to an exemplary embodiment, the communication method being performed by a second Bluetooth device, for example, which may be... Figure 1 The second Bluetooth device 200 shown performs this operation. (As indicated...) Figure 9 As shown, the communication method may include the following steps.
[0144] In step S91, in response to a request to join a communication team, it is determined whether the user has already joined a communication team.
[0145] For example, a request to join a communication team can be generated based on an action of joining the team. This action can include, but is not limited to, a user triggering a corresponding option via a finger or touch device. Furthermore, the action can also include voice input, such as a user voice-inputting the command "Join Team," and the request to join the communication team can be generated based on that command.
[0146] When a request to join a communication group is detected, it is determined whether the second Bluetooth device has already joined a communication group. It should be understood that the second Bluetooth device records the group identifier of each communication group it joins. That is, the second Bluetooth device records the group identifier of every communication group it has joined in the past. Therefore, when a request to join a communication group is detected, it can determine whether it has already joined a communication group based on whether it has recorded the group identifier.
[0147] In step S92, in response to not having joined the communication team, a first extended broadcast is sent.
[0148] The first extended broadcast is used to form a first communication team with the first Bluetooth device that generates the target team identifier. The first extended broadcast includes the target team identifier and the device identifier of the second Bluetooth device.
[0149] In this disclosure, if the second Bluetooth device has not joined a communication team before (i.e., this is the second Bluetooth device's first time joining a communication team), a first extended broadcast is generated based on the obtained target team identifier and the device identifier of the second Bluetooth device, and then the first extended broadcast is sent. For example, the obtained target team identifier may be sent by the first Bluetooth device that generated the target team identifier. For instance, after the user of the second Bluetooth device obtains the target team identifier from the user of the first Bluetooth device, the user of the second Bluetooth device inputs the target team identifier into the second Bluetooth device, so that the second Bluetooth device obtains the target team identifier. Upon receiving the first extended broadcast sent by the second Bluetooth device, the first Bluetooth device teams up with the second Bluetooth device.
[0150] In step S93, a second periodic broadcast sent by a first other Bluetooth device is received in the first communication team.
[0151] The second periodic broadcast includes communication data to be sent by the first other Bluetooth device, and the broadcast upon completion of the first communication team formation is sent by the first Bluetooth device after the first communication team formation is completed.
[0152] For example, the first other Bluetooth device can be the first Bluetooth device, that is, the second Bluetooth device receives the first periodic broadcast from the first Bluetooth device.
[0153] As another example, the first other Bluetooth device can also be any Bluetooth device in the first communication team other than the first Bluetooth device. For example, suppose the first communication team includes device A (the initiator), device B, device C, and device D. After receiving the first periodic broadcast and the third extended broadcast sent by device A, device B determines the start time for sending the periodic broadcast and sends the periodic broadcast at the start time. Device C cannot receive the periodic broadcast sent by device A, but it can receive the periodic broadcast and extended broadcast sent by device B. Therefore, for device C, what it receives is the periodic broadcast sent by device B.
[0154] Using the above technical solution, when a second Bluetooth device joins the communication team for the first time, it can achieve the purpose of teaming up with other Bluetooth devices by sending a first extended broadcast. Thus, by using Bluetooth Low Energy extended broadcast to achieve teaming up of multiple Bluetooth devices, the goal of rapid team formation and flexible entry and exit from teams can be achieved. Furthermore, using periodic broadcasts for communication extends the communication distance and improves the communication experience.
[0155] The following describes the interactive interface when the second Bluetooth device joins the communication team for the first time.
[0156] In one embodiment, the communication method may further include:
[0157] The fourth team interface is displayed, which includes a team joining control;
[0158] The request to join the communication team is generated when an operation on the join team control is detected.
[0159] Reference Figure 10 The second Bluetooth device displays the fourth team-up interface. This fourth team-up interface includes a "Join Team" control. When a user on the second Bluetooth device needs to join a team, they can click the "Join Team" control; correspondingly, the "Join Team" operation is an operation performed on the "Join Team" control. For example, as... Figure 10 As shown, the second Bluetooth device can be a smartwatch.
[0160] In addition, the fourth team interface also displays the communication type, such as... Figure 10 As shown, the fourth team interface also displays a communication type of "Bluetooth walkie-talkie".
[0161] As shown above, the second Bluetooth device can not only join a communication team initiated by other Bluetooth devices, but also initiate a team. Correspondingly, the fourth team interface can also include a team-initiating control; when the user clicks the team-initiating control, the second Bluetooth device can initiate a team.
[0162] The way the second Bluetooth device initiates the team is the same as the way the first Bluetooth device initiates the team, and will not be repeated here.
[0163] By adopting the above technical solution, a fourth team interface is displayed on the second Bluetooth device, which improves interactivity.
[0164] In one embodiment, the target group identifier is entered by a user of the second Bluetooth device in the second Bluetooth device. In this embodiment, the communication method may further include:
[0165] The fifth team-up interface is displayed, which includes an editing control for inputting the target team identifier;
[0166] The target team identifier is obtained through the editing control.
[0167] Reference Figure 11 The second Bluetooth device displays the fifth team interface. For example... Figure 11 As shown, the fifth team interface includes a numeric keypad area displaying numbers 0-9, a clear control, an exit control, and a complete control. Users can input a target team identifier on the keypad and complete the input by clicking the complete control. This allows the second Bluetooth device to obtain the user-input target team identifier.
[0168] Using the above technical solution, users can display the fifth team interface on the second Bluetooth device and enter the target team identifier in the fifth team interface, which further improves interactivity and the convenience of team formation.
[0169] After sending the first extended broadcast, the second Bluetooth device can also display the seventh team interface. (See reference...) Figure 12 The seventh team-up interface includes a target team icon, a notification message indicating that a team is being formed (e.g., "Teaming..."), and an exit control. When the user clicks the exit control, the second Bluetooth device exits the first communication team, meaning it does not rejoin the first communication team. Furthermore, after the first communication team has been formed, the second Bluetooth device can also display something like... Figure 6 and Figure 7 The interface shown will not be described in detail here.
[0170] It should be understood that the second Bluetooth device can determine whether the first communication team has been formed based on the extended broadcast sent by the first Bluetooth device. Specifically, in this disclosure, the first Bluetooth device periodically sends extended broadcasts during the team-up and communication processes. These extended broadcasts can include the team-up status. Thus, when the first Bluetooth device detects that the user clicks the "Complete Team-up" control, it switches the team-up status in the extended broadcast from "Team-up in progress" to "Team-up complete." That is, after the first communication team is formed, the third extended broadcast sent by the first Bluetooth device can also include the team-up status, which is now "Team-up complete." Therefore, when the second Bluetooth device receives the third extended broadcast from the first Bluetooth device, it determines that the first communication team has been formed based on the team-up status in the third extended broadcast, and can then display as shown below. Figure 6 and Figure 7 The interface shown.
[0171] In one embodiment, the communication method further includes:
[0172] Receive a fourth extended broadcast sent by each of the first other Bluetooth devices. The fourth extended broadcast includes the target team identifier, the device information of the first other Bluetooth devices, the transmission period of the periodic broadcast, the second start time of sending the second periodic broadcast, the number of Bluetooth devices currently included in the first communication team, and the communication sequence number of each Bluetooth device in the first communication team. The communication sequence number is determined by the first Bluetooth device according to the order in which the first extended broadcast is received.
[0173] The current reference device is determined based on the received second periodic broadcast;
[0174] Based on the fourth extended broadcast sent by the reference device, a third start time for sending a third periodic broadcast is determined, the third periodic broadcast including communication data to be sent by the second Bluetooth device;
[0175] The third periodic broadcast is sent at the third starting time.
[0176] After the team is formed, the second Bluetooth device can receive the fourth extended broadcast sent by each of the first other Bluetooth devices, where the first other Bluetooth devices are those that the second Bluetooth device can receive periodic broadcasts. For example, continuing with the above example, assume the first communication team includes the initiator (device A) and the participants (devices B, C, and D). If device D can only receive the second periodic broadcasts sent by devices B and C, and cannot receive the first periodic broadcasts sent by device A, then for device D, it receives both the second periodic broadcasts and the fourth extended broadcasts sent by devices B and C.
[0177] For example, the fourth extended broadcast of device B includes the target group identifier, device information of device B (e.g., Bluetooth address information of device B), the transmission period of the periodic broadcast (e.g., 20ms), the second start time of transmitting the second periodic broadcast, the number of Bluetooth devices currently included in the first communication group, and the communication sequence number of each Bluetooth device in the first communication group.
[0178] Before synchronizing, the second Bluetooth device first determines its current reference device. In this disclosure, the current reference device can be determined based on a received second periodic broadcast.
[0179] In one implementation, determining the current reference device based on the received second periodic broadcast may include:
[0180] Based on the received second periodic broadcast, update the intercom list of the second Bluetooth device, wherein the intercom list is used to record the device identifier of the source device of the second periodic broadcast received by the second Bluetooth device;
[0181] The current reference device is determined at least based on the talk list of the second Bluetooth device.
[0182] It should be understood that periodic broadcasts include an intercom list. For example, a periodic broadcast sent by device B includes the device identifiers of the source devices from which device B can receive the periodic broadcasts. Assuming device B can receive periodic broadcasts from devices A and C, the intercom list in the periodic broadcast sent by device B will include the device identifiers of devices A and C. Device B can then determine the current reference device based at least on the intercom list.
[0183] By adopting the above technical solution, the current reference device can be determined at least based on the intercom list of the second Bluetooth device, thereby improving the reliability of clock synchronization.
[0184] In one implementation, determining the current reference device based at least on the walkie-talkie list of the second Bluetooth device may include:
[0185] If the device identifier of the original clock reference device exists in the walkie-talkie list of the second Bluetooth device, then the original clock reference device is determined as the current reference device. The original clock reference device is the device with the smallest communication sequence number in the communication team that the second Bluetooth device is currently in.
[0186] In other words, when a second Bluetooth device joins the communication team for the first time, the original clock reference device is the device with the smallest current communication sequence number in the first communication team. For example, the original clock reference device is the initiating device, such as the first Bluetooth device. If the second Bluetooth device's talk list includes the device identifier of the first Bluetooth device, then the first Bluetooth device is determined as the current reference for the second Bluetooth device.
[0187] In the first communication queue, the device with the smallest communication sequence number is always selected as the original clock reference device. For example, if device A exists in the first communication queue, then device A is determined as the original clock reference device; if device A does not exist in the first communication queue and only devices B, C, and D exist, then device B is determined as the original clock reference device.
[0188] Reference Figure 13 Assume that device B with communication sequence number 2, device C with communication sequence number 3, and device D with communication sequence number 4 can all receive the periodic broadcast from device A with communication sequence number 1. Then device A is the reference device for devices B, C, and D, respectively.
[0189] By adopting the above technical solution, if the device identifier of the original clock reference device exists in the intercom list of the second Bluetooth device, the original clock reference device will be determined as the current reference device, which improves the convenience of determining the reference device.
[0190] In another implementation, determining the current reference device based at least on the walkie-talkie list of the second Bluetooth device may include:
[0191] If the original clock reference device is not present in the intercom list of the second Bluetooth device, but the original clock reference device is present in the intercom list of the fifth Bluetooth device included in the intercom list, then the fifth Bluetooth device is determined as the current reference device.
[0192] For example, refer to Figure 14Assuming that device C with communication sequence number 3 has a walkie-talkie list that includes the device identifier of device B with communication sequence number 2, and device B has a walkie-talkie list that includes the device identifier of device A with communication sequence number 1, then device B is determined as the current reference device of device C.
[0193] By adopting the above technical solution, for devices that cannot receive periodic broadcasts sent by the original clock reference device, the Bluetooth devices in the device's intercom list that include the original clock reference device can be identified as the current reference device for that device, thus improving the flexibility of determining the reference device.
[0194] In another embodiment, determining the current reference device based at least on the walkie-talkie list of the second Bluetooth device may include:
[0195] If the original clock reference device is not present in the intercom list of the second Bluetooth device, but the intercom list of the sixth Bluetooth device included in the intercom list includes a Bluetooth device with the original clock reference device as the reference, then the sixth Bluetooth device is determined as the current reference device.
[0196] For example, refer to Figure 15 Assuming that the intercom list of device D with communication sequence number 4 includes the device identifier of device C with communication signal number 3, the intercom list of device C with communication sequence number 3 includes the device identifier of device B with communication signal number 2, and the intercom list of device B includes the device identifier of device A with communication sequence number 1, then device C is determined as the current reference device of device D.
[0197] Thus, even for devices that cannot receive periodic broadcasts from the original clock reference device, the reference device can still be determined, further improving the flexibility and reliability of reference device determination.
[0198] In addition, the communication method also includes:
[0199] In response to the second Bluetooth device not being the original clock reference device in the communication queue to which the second Bluetooth device belongs, the third periodic broadcast is stopped when the second Bluetooth device leaves the communication queue.
[0200] For example, if the second Bluetooth device is not the original clock reference device in the current communication queue, the PA of the second Bluetooth device can be turned off when the second Bluetooth device leaves the communication queue to avoid clock skew.
[0201] By adopting the above technical solution, when there is no pairing device for the non-original clock reference device, the periodic broadcast can be stopped to avoid clock deviation, thereby improving the stability of communication.
[0202] In this disclosure, only one original clock reference device can exist in a communication team. For example, if the communication team to which the second Bluetooth device belongs includes a first sub-communication team and a second sub-communication team, the device with the smallest communication sequence number among the first original clock reference device in the first sub-communication team and the second original clock reference device in the second sub-communication team is determined as the original clock reference device of the communication team.
[0203] For example, suppose that after forming the first communication team, devices A and B are close to each other, devices C and D are close to each other, and devices A and B are far from devices C and D. That is, devices A and B form the first sub-communication team, and devices C and D form the second sub-communication team. When the first and second sub-communication teams are close together, devices in the first sub-communication team can scan the extended broadcasts sent by devices in the second sub-communication team, that is, the two sub-communication teams can form a single communication team. At this time, each device can determine whether it has the smallest communication sequence number based on its communication sequence number. If it does not have the smallest communication sequence number, the PA is turned off, and periodic broadcasts are not sent. For example, suppose devices C and D scan the extended broadcast of device A or device B and determine that they are not the devices with the smallest communication sequence number. Then, devices C and D both turn off their PAs and join the first sub-communication team to form a single communication team. In this communication team, the device with the smallest communication sequence number is determined as the original clock reference device.
[0204] By adopting the above technical solution, when multiple sub-communication teams are combined into one communication team, the device with the smallest communication sequence number among the first original clock reference device in the first sub-communication team and the second original clock reference device in the second sub-communication team can be determined as the original clock reference device of the communication team, thereby improving the reliability and stability of communication.
[0205] After determining the current reference device for the second Bluetooth device in the manner described above, a third start time for sending the third periodic broadcast is determined based on the fourth extended broadcast sent by the reference device. The third periodic broadcast includes the communication data to be sent by the second Bluetooth device. Then, the third periodic broadcast is sent at the third start time.
[0206] By adopting the above technical solution, when the current reference device of the second Bluetooth device is determined, the third start time for sending the third periodic broadcast is determined according to the fourth extended broadcast of the reference device. That is, the second Bluetooth device and the reference device perform periodic broadcast synchronization to improve the stability of communication.
[0207] In one implementation, determining the third start time for sending the third periodic broadcast based on the fourth extended broadcast may include:
[0208] Based on the transmission duration of the second periodic broadcast, the number of Bluetooth devices, and the transmission period, the time interval for two Bluetooth devices with adjacent communication sequence numbers to send periodic broadcasts is determined.
[0209] The communication sequence number of the reference device is determined based on the device information of the reference device and the communication sequence number of each Bluetooth device in the first communication team;
[0210] The third start time for the second Bluetooth device to send the third periodic broadcast is determined based on the difference between the communication sequence number of the second Bluetooth device and the communication sequence number of the reference device, the time interval, and the second start time.
[0211] The transmission duration of the second periodic broadcast is determined based on the amount of communication data to be sent. For example, the transmission duration of the second periodic broadcast could be 3.3 ms.
[0212] The time interval between two Bluetooth devices with adjacent communication sequence numbers sending periodic broadcasts should be greater than the transmission duration. Furthermore, all Bluetooth devices in the first communication queue send a periodic broadcast once within a transmission cycle. Therefore, the time interval between two Bluetooth devices with adjacent communication sequence numbers sending periodic broadcasts needs to be determined based on the transmission duration, the number of Bluetooth devices, and the transmission cycle.
[0213] For example, assuming the first communication team includes four Bluetooth devices and the transmission duration of the second periodic broadcast is 3.3 ms, the time interval between two Bluetooth devices with adjacent communication sequence numbers sending periodic broadcasts can range from 4 ms to 5 ms. For example, the time interval can be 4 ms.
[0214] In addition, the communication sequence number of the reference device can be determined based on the device information of the reference device and the communication sequence number of each Bluetooth device included in the fourth extended broadcast, and the sequence number difference between the communication sequence number of the second Bluetooth device and the communication sequence number of the reference device can be calculated. Then, the product of the sequence number difference and the time interval and the sum of the second start time are used to determine the third start time for the second Bluetooth device to send the third periodic broadcast.
[0215] For example, suppose the first communication team includes two Bluetooth devices. That is, in a two-person conversation scenario, the transmission period is 20ms, and the transmission duration of the second periodic broadcast is 3.3ms. Then the time interval between the two Bluetooth devices with adjacent communication sequence numbers sending periodic broadcasts can be 10ms.
[0216] For example, assuming the first communication team includes four Bluetooth devices with a transmission period of 20ms and the second periodic broadcast transmission duration of 3.3ms, the time interval between two Bluetooth devices with adjacent communication sequence numbers sending periodic broadcasts can be 4ms.
[0217] Figure 16 This is a schematic diagram illustrating a communication timing arrangement according to an exemplary embodiment. It is assumed that the first communication team includes four Bluetooth devices. Figure 16 Only the intercom timing of two Bluetooth devices was used. (Refer to...) Figure 16 Assuming that device C (communication sequence number 3) has device B (communication sequence number 2) as its reference device, and device B sends its second periodic broadcast at time P1, then device C sends its third periodic broadcast at time P2. The time interval between P2 and P1 is 4 ms. Figure 13 In the diagram, row L1 represents the received signal of the receive pin of device B, row L2 represents the transmitted signal of the transmit pin of device B, row L3 represents the received signal of the receive pin of device C, and row L4 represents the transmitted signal of the transmit pin of device C.
[0218] By adopting the above technical solution, bandwidth can be reasonably allocated for multiple Bluetooth devices located in the same communication team, so as to achieve orderly communication and improve communication stability.
[0219] In another embodiment, the communication method may further include:
[0220] In response to a previously joined communication team, a second communication team to be reconnected to is identified, and a fifth extended broadcast is sent, which includes the fourth start time of sending the fifth extended broadcast and the team identifier of the second communication team.
[0221] Receive a sixth extended broadcast sent by a third Bluetooth device within the second communication team. The sixth extended broadcast includes a fifth start time of sending the sixth extended broadcast and a team identifier of the second communication team.
[0222] In response to the determination that the fourth start time is earlier than the fifth start time, a seventh extended broadcast and a third periodic broadcast are sent. The seventh extended broadcast is used to enable the third Bluetooth device that receives the seventh extended broadcast and the third periodic broadcast to periodically synchronize with the second Bluetooth device. The seventh extended broadcast includes the team identifier of the second communication team, the device identifier of the second Bluetooth device, the transmission period of the periodic broadcast, the third start time of sending the third periodic broadcast, the number of Bluetooth devices currently included in the second communication team, and the communication sequence number of each Bluetooth device in the second communication team. The communication sequence number is determined when each Bluetooth device first joins the second communication team.
[0223] In this embodiment, if the second Bluetooth device already has a recorded team identifier for the communication team, it is determined that the second Bluetooth device has joined the communication team. At this point, the second communication team to be reconnected to can be identified. For example, the team identifier of the communication team that has already been joined can be displayed in the second Bluetooth device.
[0224] In one embodiment, the communication method further includes:
[0225] In response to having already joined a communication team, a sixth team interface is displayed, the sixth team interface including the team identifier of the communication team that the second Bluetooth device has joined, the team identifier including at least the team identifier of the second communication team;
[0226] The second communication team to be identified for reconnection includes:
[0227] The selected communication team is designated as the second communication team to be reconnected.
[0228] For example, if the second Bluetooth device has previously joined communication teams A and B, then the team icons for communication teams A and B can be displayed on the second Bluetooth device. The user can select the second communication team to reconnect to. For instance, if the user clicks on the team icon for communication team A, then communication team A will be selected as the second communication team to reconnect to. Similarly, if the user clicks on the team icon for communication team B, then communication team B will be selected as the second communication team to reconnect to.
[0229] For example, when the user clicks Figure 10 After the join control is shown, if it is confirmed that the second Bluetooth device has already joined the communication team, the following will be displayed: Figure 17 The sixth team interface is shown below. (Refer to...) Figure 17 The sixth grouping interface includes the group identifiers of the communication groups that the second Bluetooth device has joined. For example, the sixth grouping interface may include the group identifier Group_A for communication group A and the group identifier Group_B for communication group B. It should be understood that the number of communication groups that the second Bluetooth device has joined may be one or more, and this disclosure does not limit this.
[0230] In addition, the sixth team-up interface may also include a clear team-up control and a return-to-home control. The clear team-up control is used to remove the team identifier of any previously joined communication teams. For example, when the user clicks the clear team-up control, the second Bluetooth device removes the team identifier of any communication teams it has previously joined. The return-to-home control is used to return to the previous interface. For example, when the user clicks the return-to-home control, the second Bluetooth device displays the following... Figure 10 The fourth team interface shown.
[0231] By adopting the above technical solution, the team identifiers of the communication teams that the second Bluetooth device has joined are displayed, making it easier for users to select the second communication team to reconnect to and improving the user experience.
[0232] After identifying the second communication team to reconnect, a fifth extended broadcast is sent. This fifth extended broadcast includes the fourth start time of its transmission and the team identifier of the second communication team. Simultaneously, a sixth extended broadcast can be received from a third Bluetooth device within the second communication team. This sixth extended broadcast includes the fifth start time of its transmission and the team identifier of the second communication team. Here, "third Bluetooth device" does not refer to a specific device, but rather is a collective term for all Bluetooth devices reconnecting to the second communication team.
[0233] In this way, the second Bluetooth device can determine whether it was the first device to send the extended broadcast based on the fifth start time included in the received sixth extended broadcast and the fourth start time when it sent the fifth extended broadcast.
[0234] When the fourth start time is determined to be earlier than the fifth start time, that is, when the second Bluetooth device determines itself to be the earliest device to send the extended broadcast, the second Bluetooth device first activates the AP and sends the third periodic broadcast and the seventh extended broadcast. The seventh extended broadcast is used to synchronize the periodic broadcasts of the third Bluetooth device that receives the seventh extended broadcast and the third periodic broadcast with the second Bluetooth device. Similarly, the seventh extended broadcast includes the team identifier of the second communication team, the device identifier of the second Bluetooth device, the transmission period of the periodic broadcast, the third start time of sending the third periodic broadcast, the number of Bluetooth devices currently included in the second communication team, and the communication sequence number of each Bluetooth device in the second communication team, which is determined when each Bluetooth device first joins the second communication team.
[0235] It should be understood that the communication sequence number is determined for each Bluetooth device when it first joins the second communication group. For example, for each Bluetooth device, the initiator of the second communication group determines the sequence number based on the order in which the first extended broadcast of that Bluetooth device is received. The specific method for determining the communication sequence number is similar to how the first Bluetooth device determines the communication sequence number of each Bluetooth device in the first communication group, and will not be elaborated further here.
[0236] Furthermore, the periodic broadcast synchronization between the third Bluetooth device, which receives the seventh extended broadcast and the third periodic broadcast, and the second Bluetooth device means that the third Bluetooth device uses the second Bluetooth device as a reference device to determine the start time of its own periodic broadcast. The method by which the third Bluetooth device, upon receiving the seventh extended broadcast and the third periodic broadcast, determines the start time of its own periodic broadcast is similar to the method described above for the second Bluetooth device to determine the third start time of its third periodic broadcast based on the fourth extended broadcast, and will not be repeated here.
[0237] Figure 18 This is a schematic diagram illustrating another communication method according to an exemplary embodiment. Figure 18As shown, first, participants A, B, C, and D initiate extended broadcasts to search for devices in the same communication team nearby. Next, after finding devices in the same communication team nearby, they listen to each other's extended broadcasts to form a team. Finally, based on the listened extended broadcasts, the participant who first sent the extended broadcast initiates PA (Active Activation Protocol). For example, as... Figure 18 As shown, participant C sends the extended broadcast first, therefore, participant C sends the PA first. Finally, after the grouping is complete, each device activates its PA based on its base device to communicate.
[0238] By employing the above technology, stable communication can be achieved even when the second Bluetooth device is not joining the second communication team for the first time, thus improving the user experience.
[0239] To avoid wasted workload caused by the third Bluetooth device quickly leaving the second communication team after reconnecting to it, in one embodiment, after a third Bluetooth device in the same communication team appears around the second Bluetooth device, if a sixth extended broadcast sent by the third Bluetooth device is continuously detected, a seventh extended broadcast and a third periodic broadcast are sent.
[0240] Therefore, in this embodiment, in response to determining that the fourth start time is earlier than the fifth start time, sending the seventh extended broadcast and the third periodic broadcast includes: in response to the existence of two instances where the duration of receiving the sixth extended broadcast is greater than a preset duration, and the fourth start time is earlier than the fifth start time, sending the seventh extended broadcast and the third periodic broadcast.
[0241] For example, if the sixth extended broadcast is received at time t4 and the sixth extended broadcast can still be received at time t4+Δt or later, and the fourth start time is earlier than the fifth start time, then the seventh extended broadcast and the third periodic broadcast are sent.
[0242] This further improves the stability of communication.
[0243] In one embodiment, the communication method may further include:
[0244] In response to determining that the fourth start time is later than the fifth start time, the second communication team receives a fourth periodic broadcast and an eighth extended broadcast sent by the second other device, the fourth periodic broadcast including communication data to be sent by the second other device;
[0245] The current reference device is determined based on the received fourth periodic broadcast;
[0246] The third start time for sending the third periodic broadcast is determined based on the eighth extended broadcast sent by the reference device.
[0247] A third periodic broadcast is sent at the third starting time;
[0248] The eighth extended broadcast includes the team identifier of the second communication team, device information of the second other Bluetooth devices, the transmission period of the periodic broadcast, the fourth start time of the fourth periodic broadcast, the number of Bluetooth devices currently included in the second communication team, and the communication sequence number of each Bluetooth device in the second communication team, which is determined when each Bluetooth device first joins the second communication team.
[0249] In this implementation, if the fourth start time is later than the fifth start time, the second Bluetooth device is not the first device to activate the AP. In this case, the third Bluetooth device that first sends the sixth extended broadcast activates the AP.
[0250] It should be understood that, with reference Figure 18 Assuming that participant C sends the sixth extended broadcast first, and participant B sends the second Bluetooth broadcast, then participant C will be the first to turn on the AP and send periodic broadcasts and extended broadcasts to synchronize with the periodic broadcasts of the users.
[0251] The second other device can be either the device that first sent the sixth extended broadcast, or another device that uses the device that first sent the sixth extended broadcast as its reference device. In either case, the second other device is one that has already periodically synchronized with its reference device through broadcasts.
[0252] After receiving the fourth periodic broadcast and the eighth extended broadcast from the second other device, the second broadcast device determines the current reference device based on the received fourth periodic broadcast. Determining the current reference device based on the received fourth periodic broadcast may include: updating the walkie-talkie list of the second Bluetooth device based on the received fourth periodic broadcast, the walkie-talkie list being used to record the device identifier of the source device of the periodic broadcast received by the second Bluetooth device; and determining the current reference device based at least on the walkie-talkie list of the second Bluetooth device.
[0253] The specific implementation method for determining the current reference device based on the received fourth periodic broadcast is similar to the method for determining the current reference device based on the received second periodic broadcast described above, and will not be repeated here.
[0254] After the reference device is identified, the third start time for sending the third periodic broadcast is determined based on the eighth extended broadcast sent by the reference device; the third periodic broadcast is then sent at the third start time.
[0255] The method for determining the third start time of sending the third periodic broadcast is similar to that described above for determining the third start time of sending the third periodic broadcast based on the fourth extended broadcast, and will not be repeated here.
[0256] By adopting the above technical solution, if the fourth start time is later than the fifth start time, the second Bluetooth device can determine the current reference device based on the received fourth periodic broadcast, and then perform periodic broadcast synchronization with the reference device, thereby improving the stability of communication.
[0257] It should be understood that during communication, each Bluetooth device can update its own reference device based on the periodic broadcast when it receives the broadcast, so as to match the current communication scenario.
[0258] Reference Figure 19A In a two-person conversation scenario, assuming that the device with communication sequence number 1 is the reference device for the device with communication sequence number 2, Bluetooth conversation can proceed normally after the two devices establish periodic broadcast synchronization.
[0259] Reference Figure 19B In a two-person conversation scenario, assuming that the device with communication sequence number 2 is the reference device for the device with communication sequence number 1, Bluetooth conversation can proceed normally after the two devices establish periodic broadcast synchronization.
[0260] See Figure 20A In a two-person intercom scenario, assuming that the device with communication sequence number 1 is the reference device for the device with communication sequence number 2, if the device with communication sequence number 1 cannot receive the periodic broadcast from the device with communication sequence number 2, the reference remains unchanged, and the two devices continue to send periodic broadcasts.
[0261] See Figure 20B In a two-person intercom scenario, assuming that the device with communication sequence number 2 is the reference device of the device with communication sequence number 1, if the device with communication sequence number 2 cannot receive the periodic broadcast of the device with communication sequence number 1, the reference remains unchanged, and the two devices continue to send periodic broadcasts.
[0262] See Figure 21A In a two-person intercom scenario, assuming that the device with communication sequence number 2 is the reference device of the device with communication sequence number 1, and the device with communication sequence number 1 cannot receive the periodic broadcast of the device with communication sequence number 2, that is, the non-reference device loses the reference device LOST SYNC, then the non-reference device is turned into the reference device, that is, the device with communication sequence number 1 is turned into the reference device of the device with communication sequence number 2.
[0263] See Figure 21BIn a two-person intercom scenario, assuming that the device with communication sequence number 1 is the reference device of the device with communication sequence number 2, and the device with communication sequence number 2 cannot receive the periodic broadcast of the device with communication sequence number 1, that is, the non-reference device loses the reference device LOST SYNC, then the non-reference device is turned into the reference device, that is, the device with communication sequence number 2 is turned into the reference device of the device with communication sequence number 1.
[0264] Furthermore, in a two-person intercom scenario, assuming that the device with communication sequence number 1 is the reference device for the device with communication sequence number 2, and the device with communication sequence number 2 cannot receive the periodic broadcasts of the device with communication sequence number 1, and the device with communication sequence number 1 does not receive the periodic broadcasts of the device with communication sequence number 2, that is, the non-reference device loses the reference device's LOSTSYNC, and the reference device has no PA SYNC, at this time, the reference device continues to turn on the PA and send periodic broadcasts, while the non-reference device turns off the PA.
[0265] The following describes a four-person conversation scenario.
[0266] Scenario 1: Reference Figure 22 Devices with communication serial number 1, 2, 3, and 4 can all establish a periodic broadcast synchronization PA SYNC, and then they can communicate normally.
[0267] Scenario 2: The reference device has not left the communication queue, but a loss of synchronization (LOST SYNC) occurs in the communication queue.
[0268] Scenario 2.1: The reference device cannot receive periodic broadcasts from non-reference devices. (Refer to...) Figure 23 The device with communication sequence number 1 is the reference device, and it cannot receive the periodic broadcast sent by the device with communication sequence number 2. At this time, the reference device remains unchanged.
[0269] Scenario 2.2: Non-reference devices cannot receive periodic broadcasts sent by other non-reference devices. (Refer to...) Figure 24 The device with communication sequence number 3 cannot receive the periodic broadcast sent by the device with communication sequence number 2. At this time, the reference device remains unchanged.
[0270] Scenario 3: The reference device leaves the communication queue. Based on the rules for determining the reference, the device with the smallest communication sequence number in the current communication queue is designated as the reference device. (Refer to...) Figure 25 The device with communication sequence number 1 is designated as the reference device and leaves the communication team. At this time, the device with communication sequence number 2 is designated as the reference device of the communication team.
[0271] Scenario 4: When two communication teams form a new communication team, according to the rules determined by the baseline, after the two communication teams merge, the device with the smallest communication sequence number is used as the baseline device after the merge. (Refer to...) Figure 26 The device with communication sequence number 1 and the device with communication sequence number 4 form the first sub-communication team, with the device with communication sequence number 1 serving as the reference device for the first sub-communication team. The device with communication sequence number 2 and the device with communication sequence number 3 form the second sub-communication team, with the device with communication sequence number 2 serving as the reference device for the first sub-communication team. After the first and second sub-communication teams are merged, the device with communication sequence number 1 will be used as the reference device for the merged communication team.
[0272] Thus, by adopting the above technical solution, a reference device for each Bluetooth device can be determined, and periodic broadcast synchronization can be established with the reference device, ensuring the stability of the communication team.
[0273] Based on the same inventive concept, this disclosure also provides a communication device deployed in a first Bluetooth device. Figure 27 This is a block diagram illustrating a communication device deployed in a first Bluetooth device according to an exemplary embodiment. Figure 27 As shown, the communication device 2300 may include:
[0274] The first generation module 2301 is configured to generate a target team identifier in response to an operation of initiating a team formation, the target team identifier being used to form a first communication team;
[0275] Teaming module 2302 is configured to team up with the second Bluetooth device in response to receiving a first extended broadcast sent by the second Bluetooth device, the first extended broadcast including the target teaming identifier and the device identifier of the second Bluetooth device;
[0276] The first transmitting module 2303 is configured to transmit a first periodic broadcast in the first communication team in response to the completion of the first communication team formation. The first periodic broadcast includes communication data to be transmitted by the first Bluetooth device.
[0277] Optionally, the communication data is Bluetooth intercom data.
[0278] Optionally, the communication device 2300 may further include:
[0279] The second sending module is configured to send a second extended broadcast before the first communication team is formed, the second extended broadcast including the target team identifier;
[0280] The second extended broadcast further includes at least one of the following: team status, device identifier of the second Bluetooth device teamed with the first Bluetooth device, and number of second Bluetooth devices teamed with the first Bluetooth device.
[0281] Optionally, the communication device 2300 may further include:
[0282] The third sending module is configured to send a third extended broadcast in response to the completion of the first communication team formation, so that the Bluetooth devices that receive the third extended broadcast and the first periodic broadcast can periodically broadcast and synchronize with the first Bluetooth device.
[0283] The third extended broadcast includes the target team identifier, the device information of the first Bluetooth device, the transmission period of the periodic broadcast, the first start time of transmitting the first periodic broadcast, the number of Bluetooth devices included in the first communication team, and the communication sequence number of each Bluetooth device in the first communication team. The communication sequence number is determined by the first Bluetooth device according to the order in which it receives the first extended broadcast.
[0284] Optionally, the communication device 2300 may further include:
[0285] The first display module is configured to display a first team-up interface, which includes a team-up initiation control.
[0286] The operation of initiating a team is an operation on the initiating a team control.
[0287] Optionally, the communication device 2300 may further include:
[0288] The second display module is configured to display a second team interface, which includes the target team identifier.
[0289] The second team-up interface also includes an abandon team-up control. When the abandon team-up control is triggered, the first Bluetooth device abandons the team-up.
[0290] Optionally, the communication device 2300 may further include:
[0291] The third display module is configured to display a third teaming interface, which includes the device identifier of the second Bluetooth device that has teamed up with the first Bluetooth device.
[0292] The third team-up interface also includes at least one of the following: the target team-up identifier, the complete team-up control, and the abandon team-up control.
[0293] Optionally, the communication device 2300 may further include:
[0294] The fourth display module is configured to display a first Bluetooth intercom interface in response to the completion of the first communication team formation. The first Bluetooth intercom interface includes at least one of the following: a first control for switching the working state of the microphone, a second control for switching the working state of the speaker, a cancel listening control, an exit intercom control, and the number of Bluetooth devices currently participating in the intercom.
[0295] Based on the same inventive concept, this disclosure also provides a communication device deployed in a second Bluetooth device. Figure 28 This is a block diagram illustrating a communication device deployed in a second Bluetooth device according to an exemplary embodiment. Figure 28 As shown, the communication device 2400 may include:
[0296] The first determining module 2401 is configured to determine whether a communication team has already been joined in response to a request to join the communication team.
[0297] The fourth sending module 2402 is configured to send a first extended broadcast based on the obtained target team identifier in response to not having joined a communication team. The first extended broadcast is used to form a first communication team with the first Bluetooth device that generated the target team identifier. The first extended broadcast includes the target team identifier and the device identifier of the second Bluetooth device.
[0298] The first receiving module 2403 is configured to receive a second periodic broadcast sent by a first other Bluetooth device in the first communication team after receiving a broadcast announcing the completion of the first communication team formation. The second periodic broadcast includes communication data to be sent by the first other Bluetooth device. The broadcast announcing the completion of the first communication team formation is sent by the first Bluetooth device after the first communication team formation is completed.
[0299] Optionally, the communication device 2400 may further include:
[0300] The second receiving module is configured to receive a fourth extended broadcast sent by each of the first other Bluetooth devices. The fourth extended broadcast includes the target team identifier, device information of the first other Bluetooth devices, the transmission period of the periodic broadcast, the second start time of sending the second periodic broadcast, the number of Bluetooth devices currently included in the first communication team, and the communication sequence number of each Bluetooth device in the first communication team. The communication sequence number is determined by the first Bluetooth device according to the order in which the first extended broadcast is received.
[0301] The second determining module is configured to determine the current reference device based on the received second periodic broadcast;
[0302] The third determining module is configured to determine a third start time for sending a third periodic broadcast based on a fourth extended broadcast sent by the reference device, the third periodic broadcast including communication data to be sent by the second Bluetooth device;
[0303] The fifth transmitting module is configured to transmit the third periodic broadcast at the third start time.
[0304] Optionally, the third determining module is configured to:
[0305] The time interval for two Bluetooth devices with adjacent communication sequence numbers to send periodic broadcasts is determined based on the second periodic broadcast transmission duration, the number of Bluetooth devices, and the transmission period.
[0306] The communication sequence number of the reference device is determined based on the device information of the reference device and the communication sequence number of each Bluetooth device in the first communication team;
[0307] The third start time for the second Bluetooth device to send the third periodic broadcast is determined based on the difference between the communication sequence number of the second Bluetooth device and the communication sequence number of the reference device, the time interval, and the second start time.
[0308] Optionally, the communication device 2400 may further include:
[0309] The fifth display module is configured to display the fourth team interface, which includes a team joining control.
[0310] The request to join the communication team is generated when an operation on the join team control is detected.
[0311] Optionally, the communication device 2400 may further include:
[0312] The sixth display module is configured to display the fifth team interface, which includes an editing control for inputting the target team identifier;
[0313] The acquisition module is configured to acquire the target team identifier through the editing control.
[0314] Optionally, the communication device 2400 may further include:
[0315] The fourth determination module is configured to, in response to a previously joined communication team, determine a second communication team to be reconnected to, and send a fifth extended broadcast, the fifth extended broadcast including a fourth start time for sending the fifth extended broadcast and the team identifier of the second communication team;
[0316] The third receiving module is configured to receive a sixth extended broadcast sent by a third Bluetooth device within the second communication team, the sixth extended broadcast including a fifth start time for sending the sixth extended broadcast and a team identifier of the second communication team;
[0317] The sixth transmitting module is configured to transmit a seventh extended broadcast and a third periodic broadcast in response to determining that the fourth start time is earlier than the fifth start time. The seventh extended broadcast is used to enable the third Bluetooth device receiving the seventh extended broadcast and the third periodic broadcast to periodically broadcast and synchronize with the second Bluetooth device. The seventh extended broadcast includes the team identifier of the second communication team, the device identifier of the second Bluetooth device, the transmission period of the periodic broadcast, the third start time of transmitting the third periodic broadcast, the number of Bluetooth devices currently included in the second communication team, and the communication sequence number of each Bluetooth device in the second communication team, which is determined when each Bluetooth device first joins the second communication team.
[0318] Optionally, the sixth sending module is configured to: in response to the existence of two instances where the duration of receiving the sixth extended broadcast is greater than a preset duration, and the fourth start time is earlier than the fifth start time, send a seventh extended broadcast and a third periodic broadcast.
[0319] Optionally, the communication device 2400 may further include:
[0320] The fourth receiving module is configured to receive, in response to determining that the fourth start time is later than the fifth start time, a fourth periodic broadcast and an eighth extended broadcast sent by a second other device in the second communication queue, the fourth periodic broadcast including communication data to be sent by the second other device;
[0321] The fifth determining module is configured to determine the current reference device based on the received fourth periodic broadcast;
[0322] The sixth determining module is configured to determine the third start time for sending the third periodic broadcast based on the eighth extended broadcast sent by the reference device;
[0323] The seventh transmitting module is configured to transmit the third periodic broadcast at the third start time;
[0324] The eighth extended broadcast includes the team identifier of the second communication team, the device information of the second other Bluetooth devices, the transmission period of the periodic broadcast, the fourth start time of transmitting the fourth periodic broadcast, the number of Bluetooth devices currently included in the second communication team, and the communication sequence number of each Bluetooth device in the second communication team, which is determined when each Bluetooth device first joins the second communication team.
[0325] Optionally, the communication device 2400 may further include:
[0326] The seventh display module is configured to display a sixth team interface in response to a communication team that has been joined. The sixth team interface includes the team identifier of the communication team that the second Bluetooth device has joined, and the team identifier includes at least the team identifier of the second communication team.
[0327] The fourth determining module is configured to determine the selected communication team as the second communication team to be reconnected to.
[0328] Optionally, the current reference device can be determined in the following ways:
[0329] The second Bluetooth device updates its intercom list based on the received periodic broadcasts, the intercom list being used to record the device identifier of the source device of the periodic broadcasts received by the second Bluetooth device.
[0330] The current reference device is determined at least based on the talk list of the second Bluetooth device.
[0331] Optionally, determining the current reference device based at least on the walkie-talkie list of the second Bluetooth device includes:
[0332] If the device identifier of the original clock reference device exists in the walkie-talkie list of the second Bluetooth device, then the original clock reference device is determined as the current reference device. The original clock reference device is the device with the smallest communication sequence number in the communication team that the second Bluetooth device is currently in.
[0333] Optionally, determining the current reference device based at least on the walkie-talkie list of the second Bluetooth device includes:
[0334] If the original clock reference device is not present in the intercom list of the second Bluetooth device, but the original clock reference device is present in the intercom list of the fifth Bluetooth device included in the intercom list, then the fifth Bluetooth device is determined as the current reference device.
[0335] Optionally, determining the current reference device based at least on the walkie-talkie list of the second Bluetooth device includes:
[0336] If the original clock reference device is not present in the intercom list of the second Bluetooth device, but the intercom list of the sixth Bluetooth device included in the intercom list includes a Bluetooth device with the original clock reference device as the reference, then the sixth Bluetooth device is determined as the current reference device.
[0337] Optionally, the communication team to which the second Bluetooth device belongs includes a first sub-communication team and a second sub-communication team. The device with the smallest communication sequence number among the first original clock reference device in the first sub-communication team and the second original clock reference device in the second sub-communication team is determined as the original clock reference device of the communication team.
[0338] Optionally, the communication device 2400 may further include:
[0339] In response to the second Bluetooth device not being the original clock reference device in the communication queue to which the second Bluetooth device belongs, the third periodic broadcast is stopped when the second Bluetooth device leaves the communication queue.
[0340] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0341] Figure 29 This is a block diagram illustrating a first Bluetooth device according to an exemplary embodiment. Figure 29 As shown, the first Bluetooth device 100 may include a processor 701 and a memory 702. The first Bluetooth device 100 may also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.
[0342] The processor 701 controls the overall operation of the first Bluetooth device 100 to complete all or part of the steps in the communication method described above. The memory 702 stores various types of data to support the operation of the first Bluetooth device 100. This data may include, for example, instructions for any application or method operating on the first Bluetooth device 100, and application-related data such as contact data, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. Multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touchscreen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in memory 702 or transmitted via communication component 705. The audio component also includes at least one speaker for outputting audio signals. I / O interface 704 provides an interface between processor 701 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual or physical buttons. Communication component 705 is used for wired or wireless communication between the first Bluetooth device 100 and other devices. Wireless communication may include Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination thereof; therefore, the corresponding communication component 705 may include a Wi-Fi module, a Bluetooth module, or an NFC module.
[0343] In an exemplary embodiment, the first Bluetooth device 100 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the communication method described above.
[0344] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, which, when executed by a processor, implement the steps of the communication method described above. For example, the computer-readable storage medium may be the memory 702 including the program instructions, which may be executed by the processor 701 of the first Bluetooth device 100 to complete the communication method described above.
[0345] Figure 30 This is a block diagram illustrating a second Bluetooth device according to an exemplary embodiment. Figure 30 As shown, the second Bluetooth device 200 may include a processor 801 and a memory 802. The second Bluetooth device 200 may also include one or more of a multimedia component 803, an input / output (I / O) interface 804, and a communication component 805.
[0346] The processor 801 controls the overall operation of the second Bluetooth device 200 to complete all or part of the steps in the communication method described above. The memory 802 stores various types of data to support the operation of the second Bluetooth device 200. This data may include, for example, instructions for any application or method operating on the second Bluetooth device 200, and application-related data such as contact data, sent and received messages, pictures, audio, video, etc. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. Multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touchscreen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in memory 802 or transmitted via communication component 805. The audio component also includes at least one speaker for outputting audio signals. I / O interface 804 provides an interface between processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual or physical buttons. Communication component 805 is used for wired or wireless communication between the second Bluetooth device 200 and other devices. Wireless communication may include Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination thereof; therefore, the corresponding communication component 805 may include a Wi-Fi module, a Bluetooth module, or an NFC module.
[0347] In an exemplary embodiment, the second Bluetooth device 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the communication method described above.
[0348] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, which, when executed by a processor, implement the steps of the communication method described above. For example, the computer-readable storage medium may be the memory 802 including the program instructions, which may be executed by the processor 801 of the second Bluetooth device 200 to complete the communication method described above.
[0349] In another exemplary embodiment, a computer program product is also provided, which includes a computer program executable by a processor, which, when executed by the processor, implements the steps of the communication method described above.
[0350] The preferred embodiments of this disclosure have been described in detail above with reference to the accompanying drawings. However, this disclosure is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this disclosure, various simple modifications can be made to the technical solutions of this disclosure, and these simple modifications all fall within the protection scope of this disclosure.
[0351] It should also be noted that the various specific technical features described in the above embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, this disclosure will not describe the various possible combinations separately.
[0352] Furthermore, various different embodiments of this disclosure can be combined in any way, as long as they do not violate the spirit of this disclosure, they should also be regarded as the content disclosed in this disclosure.
Claims
1. A communication method, characterized in that, Performed by a first Bluetooth device, the communication method includes: In response to the operation of initiating a team, a target team identifier is generated, which is used to form a first communication team; In response to receiving a first extended broadcast from a second Bluetooth device, the device teams up with the second Bluetooth device, the first extended broadcast including the target team identifier and the device identifier of the second Bluetooth device; In response to the completion of the first communication team formation, a first periodic broadcast and a third extended broadcast are sent in the first communication team. The first periodic broadcast includes communication data to be sent by the first Bluetooth device. The third extended broadcast includes the target team identifier, the device information of the first Bluetooth device, the transmission period of the periodic broadcast, the first start time of sending the first periodic broadcast, the number of Bluetooth devices included in the first communication team, and the communication sequence number of each Bluetooth device in the first communication team. The communication sequence number is determined by the first Bluetooth device according to the order in which the first extended broadcast is received. The first periodic broadcast and the third extended broadcast are used to instruct the second Bluetooth device to determine the first Bluetooth device as its reference device based on the first periodic broadcast, and to determine the start time for the second Bluetooth device to send the periodic broadcast based on the third extended broadcast.
2. The communication method according to claim 1, characterized in that, The communication method further includes: Before the first communication team is formed, a second extended broadcast is sent, the second extended broadcast including the target team identifier; The second extended broadcast further includes at least one of the following: team status, device identifier of the second Bluetooth device teamed with the first Bluetooth device, and number of second Bluetooth devices teamed with the first Bluetooth device.
3. The communication method according to claim 1, characterized in that, The communication method further includes: In response to the completion of the first communication team formation, a first Bluetooth intercom interface is displayed. The first Bluetooth intercom interface includes at least one of the following: a first control for switching the working state of the microphone, a second control for switching the working state of the speaker, a cancel listening control, an exit intercom control, and the number of Bluetooth devices currently participating in the intercom.
4. A communication method, characterized in that, Performed by a second Bluetooth device, the communication method includes: In response to a request to join a communications team, determine whether the user has already joined a communications team. In response to not having joined a communication team, a first extended broadcast is sent, the first extended broadcast being used to form a first communication team with a first Bluetooth device that generates a target team identifier, the first extended broadcast including the target team identifier and the device identifier of the second Bluetooth device; After receiving the broadcast that the first communication team has completed its formation, the system receives a second periodic broadcast from a first other Bluetooth device within the first communication team. The second periodic broadcast includes communication data to be sent by the first other Bluetooth device. The broadcast that the first communication team has completed its formation is sent by the first Bluetooth device after the first communication team has completed its formation. Receive a fourth extended broadcast sent by each of the first other Bluetooth devices. The fourth extended broadcast includes the target team identifier, the device information of the first other Bluetooth devices, the transmission period of the periodic broadcast, the second start time of sending the second periodic broadcast, the number of Bluetooth devices currently included in the first communication team, and the communication sequence number of each Bluetooth device in the first communication team. The communication sequence number is determined by the first Bluetooth device according to the order in which the first extended broadcast is received. The current reference device is determined based on the received second periodic broadcast; Based on the fourth extended broadcast sent by the reference device, a third start time for sending a third periodic broadcast is determined, the third periodic broadcast including communication data to be sent by the second Bluetooth device; The third periodic broadcast is sent at the third starting time.
5. The communication method according to claim 4, characterized in that, Determining the third start time for sending the third periodic broadcast based on the fourth extended broadcast includes: The time interval for two Bluetooth devices with adjacent communication sequence numbers to send periodic broadcasts is determined based on the second periodic broadcast transmission duration, the number of Bluetooth devices, and the transmission period. The communication sequence number of the reference device is determined based on the device information of the reference device and the communication sequence number of each Bluetooth device in the first communication team; The third start time for the second Bluetooth device to send the third periodic broadcast is determined based on the difference between the communication sequence number of the second Bluetooth device and the communication sequence number of the reference device, the time interval, and the second start time.
6. The communication method according to claim 4, characterized in that, The communication method further includes: In response to a previously joined communication team, a second communication team to be reconnected to is identified, and a fifth extended broadcast is sent, the fifth extended broadcast including a fourth start time for sending the fifth extended broadcast and the team identifier of the second communication team; Receive a sixth extended broadcast sent by a third Bluetooth device within the second communication team, the sixth extended broadcast including a fifth start time of sending the sixth extended broadcast and a team identifier of the second communication team; In response to determining that the fourth start time is earlier than the fifth start time, a seventh extended broadcast and a third periodic broadcast are sent. The seventh extended broadcast is used to enable the third Bluetooth device receiving the seventh extended broadcast and the third periodic broadcast to periodically synchronize with the second Bluetooth device. The seventh extended broadcast includes the team identifier of the second communication team, the device identifier of the second Bluetooth device, the transmission period of the periodic broadcast, the third start time of sending the third periodic broadcast, the number of Bluetooth devices currently included in the second communication team, and the communication sequence number of each Bluetooth device in the second communication team. The communication sequence number is determined when each Bluetooth device first joins the second communication team.
7. The communication method according to claim 6, characterized in that, In response to determining that the fourth start time is earlier than the fifth start time, a seventh extended broadcast and a third periodic broadcast are sent, including: In response to the existence of two instances where the duration of the sixth extended broadcast is longer than a preset duration, and the fourth start time is earlier than the fifth start time, a seventh extended broadcast and a third periodic broadcast are sent.
8. The communication method according to claim 6, characterized in that, The communication method further includes: In response to determining that the fourth start time is later than the fifth start time, a fourth periodic broadcast and an eighth extended broadcast sent by a second other device are received in the second communication queue, the fourth periodic broadcast including communication data to be sent by the second other device; The current reference device is determined based on the received fourth periodic broadcast; The third start time for sending the third periodic broadcast is determined based on the eighth extended broadcast sent by the reference device; The third periodic broadcast is sent at the third starting time; The eighth extended broadcast includes the team identifier of the second communication team, the device information of the second other device, the transmission period of the periodic broadcast, the fourth start time of transmitting the fourth periodic broadcast, the number of Bluetooth devices currently included in the second communication team, and the communication sequence number of each Bluetooth device in the second communication team, which is determined when each Bluetooth device first joins the second communication team.
9. The communication method according to claim 4 or 8, characterized in that, The current reference device is determined in the following way: The second Bluetooth device updates its intercom list based on the received periodic broadcasts, the intercom list being used to record the device identifier of the source device of the periodic broadcasts received by the second Bluetooth device. The current reference device is determined at least based on the talk list of the second Bluetooth device.
10. The communication method according to claim 9, characterized in that, The step of determining the current reference device based at least on the walkie-talkie list of the second Bluetooth device includes: If the device identifier of the original clock reference device exists in the walkie-talkie list of the second Bluetooth device, then the original clock reference device is determined as the current reference device. The original clock reference device is the device with the smallest communication sequence number in the communication team that the second Bluetooth device is currently in.
11. The communication method according to claim 10, characterized in that, The step of determining the current reference device based at least on the walkie-talkie list of the second Bluetooth device includes: If the original clock reference device is not present in the intercom list of the second Bluetooth device, but the original clock reference device is present in the intercom list of the fifth Bluetooth device included in the intercom list, then the fifth Bluetooth device is determined as the current reference device.
12. The communication method according to claim 10, characterized in that, The step of determining the current reference device based at least on the walkie-talkie list of the second Bluetooth device includes: If the original clock reference device is not present in the intercom list of the second Bluetooth device, but the intercom list of the sixth Bluetooth device included in the intercom list includes a Bluetooth device with the original clock reference device as the reference, then the sixth Bluetooth device is determined as the current reference device.
13. The communication method according to claim 9, characterized in that, The communication team to which the second Bluetooth device belongs includes a first sub-communication team and a second sub-communication team. The device with the smallest communication sequence number among the first original clock reference device in the first sub-communication team and the second original clock reference device in the second sub-communication team is determined as the original clock reference device of the communication team.
14. The communication method according to claim 10, characterized in that, The communication method further includes: In response to the second Bluetooth device not being the original clock reference device in the communication queue to which the second Bluetooth device belongs, the third periodic broadcast is stopped when the second Bluetooth device leaves the communication queue.
15. A communication device, characterized in that, Deployed in a first Bluetooth device, the communication device includes: The first generation module is configured to generate a target team identifier in response to an operation of initiating a team formation, the target team identifier being used to form a first communication team; The team-up module is configured to team up with the second Bluetooth device in response to receiving a first extended broadcast sent by the second Bluetooth device, wherein the first extended broadcast includes the target team-up identifier and the device identifier of the second Bluetooth device. A first transmitting module is configured to transmit a first periodic broadcast and a third extended broadcast in the first communication team in response to the completion of the first communication team formation. The first periodic broadcast includes communication data to be transmitted by the first Bluetooth device. The third extended broadcast includes the target team identifier, device information of the first Bluetooth device, the transmission period of the periodic broadcast, the first start time of transmitting the first periodic broadcast, the number of Bluetooth devices included in the first communication team, and the communication sequence number of each Bluetooth device in the first communication team. The communication sequence number is determined by the first Bluetooth device according to the order in which the first extended broadcast is received. The first periodic broadcast and the third extended broadcast are used to instruct the second Bluetooth device to determine the first Bluetooth device as its reference device based on the first periodic broadcast, and to determine the start time for the second Bluetooth device to send the periodic broadcast based on the third extended broadcast.
16. A communication device, characterized in that, Deployed in a second Bluetooth device, the communication device includes: The first determining module is configured to determine whether a communication team has already been joined in response to a request to join the communication team. The fourth sending module is configured to send a first extended broadcast based on the obtained target team identifier in response to not having joined a communication team. The first extended broadcast is used to form a first communication team with the first Bluetooth device that generated the target team identifier. The first extended broadcast includes the target team identifier and the device identifier of the second Bluetooth device. The first receiving module is configured to receive a second periodic broadcast sent by a first other Bluetooth device in the first communication team after receiving a broadcast announcing the completion of the first communication team formation. The second periodic broadcast includes communication data to be sent by the first other Bluetooth device. The broadcast announcing the completion of the first communication team formation is sent by the first Bluetooth device after the first communication team formation is completed. The second receiving module is configured to receive a fourth extended broadcast sent by each of the first other Bluetooth devices. The fourth extended broadcast includes the target team identifier, device information of the first other Bluetooth devices, the transmission period of the periodic broadcast, the second start time of sending the second periodic broadcast, the number of Bluetooth devices currently included in the first communication team, and the communication sequence number of each Bluetooth device in the first communication team. The communication sequence number is determined by the first Bluetooth device according to the order in which the first extended broadcast is received. The second determining module is configured to determine the current reference device based on the received second periodic broadcast; The third determining module is configured to determine a third start time for sending a third periodic broadcast based on a fourth extended broadcast sent by the reference device, the third periodic broadcast including communication data to be sent by the second Bluetooth device; The fifth transmitting module is configured to transmit the third periodic broadcast at the third start time.
17. A communication system, characterized in that, The system includes a first Bluetooth device and a second Bluetooth device; The first Bluetooth device is used to implement the steps of the communication method according to any one of claims 1-3; The second Bluetooth device is used to implement the steps of the communication method according to any one of claims 4-14.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the communication method according to any one of claims 1-3, or implements the steps of the communication method according to any one of claims 4-14.
19. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the communication method according to any one of claims 1-3, or implements the steps of the communication method according to any one of claims 4-14.