Bluetooth communication method and device, electronic equipment, storage medium and program product
By selecting the best Bluetooth controller for data transmission in the Bluetooth communication system, the problem of Bluetooth communication quality affected by device distance and environment is solved, and a more stable communication effect is achieved.
Patent Information
- Application Number
- CN202411216744.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-09-02
AI Technical Summary
Bluetooth communication quality is affected by device distance, direction and environmental factors in single-unit systems or distributed systems, resulting in instability in communication.
By determining the target terminal and selecting the best controller from multiple candidate Bluetooth controllers for data transmission based on the communication quality parameters between the candidate Bluetooth controller and the target terminal, dynamically switching the binding relationship to improve communication quality.
Improves the stability and quality of Bluetooth communication, ensures the optimal path to data transmission, and reduces communication interruptions caused by environmental changes.
Smart Images

Figure CN120583403A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a Bluetooth communication method, device, electronic device, storage medium, and program product. Background Art
[0002] Bluetooth technology is a wireless communication technology that allows data transmission between different devices within a short distance. It has the characteristics of ease of use, flexibility and low power consumption.
[0003] In related technologies, in a single system or distributed system with Bluetooth communication capabilities, the Bluetooth protocol stack and upper-layer applications are bound to specific Bluetooth hardware. During the entire process of connecting and communicating with the communication peer device, the communication quality is affected by factors such as the distance, direction, and environment of the two devices. Summary of the Invention
[0004] To overcome the problems existing in the related art, the present disclosure provides a Bluetooth communication method, device, electronic device, storage medium and program product to improve the communication quality of Bluetooth communication.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a Bluetooth communication method, including: Determine a target terminal corresponding to the source terminal; determining a target Bluetooth controller from a plurality of candidate Bluetooth controllers according to a communication quality parameter between the candidate Bluetooth controllers and the target terminal; Data transmission between the source terminal and the target terminal is achieved through the target Bluetooth controller.
[0006] Optionally, the communication quality parameter includes a communication distance; The step of determining a target Bluetooth controller from a plurality of candidate Bluetooth controllers based on a communication quality parameter between the candidate Bluetooth controllers and the target terminal comprises: determining a communication distance between each of the plurality of candidate Bluetooth controllers and the target terminal; The target Bluetooth controller is determined from the multiple candidate Bluetooth controllers according to the communication distance.
[0007] Optionally, determining a communication distance between each of the multiple candidate Bluetooth controllers and the target terminal includes: determining a target location of the target terminal; Based on the target location of the target terminal and the location of each candidate Bluetooth controller among the plurality of candidate Bluetooth controllers, a communication distance between each candidate Bluetooth controller and the target terminal is determined.
[0008] Optionally, determining the target location of the target terminal includes: Acquire multiple target images including the target terminal through a camera; Image recognition is performed on the multiple target images to obtain a target position of the target terminal.
[0009] Optionally, determining the target location of the target terminal includes: determining a round trip time of positioning signals between a plurality of positioning devices and the target terminal; A target location of the target terminal is determined according to the round-trip time.
[0010] Optionally, determining the target location of the target terminal includes: Determining a time difference between multiple base stations receiving a pulse signal sent by the target terminal; The target location of the target terminal is determined according to the time difference.
[0011] Optionally, the communication quality parameter further includes Bluetooth communication strength; The method further comprises: Determining a Bluetooth communication strength between each candidate Bluetooth controller among the plurality of candidate Bluetooth controllers and the target terminal; The step of determining the target Bluetooth controller from the plurality of candidate Bluetooth controllers according to the communication distance includes: The target Bluetooth controller is determined from the multiple candidate Bluetooth controllers according to the communication distance and the Bluetooth communication strength.
[0012] According to a second aspect of an embodiment of the present disclosure, there is provided a Bluetooth communication device, including: A first determining module is configured to determine a target terminal corresponding to the source terminal; A second determining module is configured to determine a target Bluetooth controller from a plurality of candidate Bluetooth controllers according to a communication quality parameter between the candidate Bluetooth controller and the target terminal; The transmission module is configured to realize data transmission between the source terminal and the target terminal through the target Bluetooth controller.
[0013] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the Bluetooth communication method provided in the first aspect of the present disclosure when executing.
[0014] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps of the Bluetooth communication method provided in the first aspect of the present disclosure are implemented.
[0015] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the Bluetooth communication method provided in the first aspect of the present disclosure.
[0016] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects: By determining a target terminal corresponding to a source terminal and, based on communication quality parameters between the candidate Bluetooth controllers and the target terminal, determining a target Bluetooth controller from multiple candidate Bluetooth controllers, the communication data is then transmitted to the target terminal via the target Bluetooth controller. The binding relationship can be dynamically switched based on the communication quality parameters between the candidate Bluetooth controllers and the target terminal, thereby improving the quality of Bluetooth communication with the target device.
[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] Figure 1 The present invention is a schematic block diagram showing an application scenario of a Bluetooth communication method according to an exemplary embodiment.
[0020] Figure 2 The figure is a flowchart of a Bluetooth communication method according to an exemplary embodiment.
[0021] Figure 3 The figure is a block diagram of a Bluetooth communication device according to an exemplary embodiment.
[0022] Figure 4 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0023] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0024] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the corresponding data protection laws and policies of the country where they are located and with the authorization given by the owner of the corresponding device.
[0025] Bluetooth technology is a wireless communication technology that allows data transmission between different devices within a short distance. It has the characteristics of ease of use, flexibility and low power consumption.
[0026] In related technologies, in a single system or distributed system with Bluetooth communication capabilities, the Bluetooth protocol stack and upper-layer applications are bound to specific Bluetooth hardware. During the entire process of connecting and communicating with the communication peer device, the communication quality is affected by factors such as the distance, direction, and environment between the two devices.
[0027] To address the above technical issues, embodiments of the present disclosure provide a Bluetooth communication method, apparatus, electronic device, storage medium, and program product. These methods determine a target terminal corresponding to a source terminal and, based on communication quality parameters between the candidate Bluetooth controllers and the target terminal, determine a target Bluetooth controller from multiple candidate Bluetooth controllers. Communication data is then transmitted to the target terminal via the target Bluetooth controller. The binding relationship can be dynamically switched based on the communication quality parameters between the candidate Bluetooth controllers and the target terminal, thereby improving the quality of Bluetooth communication with the target device.
[0028] Figure 1 is a schematic block diagram of an application scenario of a Bluetooth communication method according to an exemplary embodiment. Figure 1 As shown, it may include a manager, multiple applications and multiple Bluetooth controllers, wherein the manager may be a Bluetooth communication device, which may include multiple Bluetooth protocols and positioning management modules, multiple Bluetooth protocol stacks and a positioning device.
[0029] Among them, multiple Bluetooth controllers can be deployed in a single system or multiple subsystems of a distributed system, including Bluetooth control-related hardware, firmware, radio frequency devices, etc., and communicate with the system deploying the Bluetooth protocol stack through the standard HCI (Host Controller Interface).
[0030] Among them, multiple Bluetooth protocol stacks are deployed in a single system or a central or hub system in a distributed system. Each Bluetooth protocol stack is connected to the HCI standard interface of the system and the Bluetooth controller to communicate with a specific Bluetooth controller and jointly implement the Bluetooth communication protocol.
[0031] Among them, multiple Bluetooth protocol stacks and positioning management modules are deployed in a single system or a central or hub system in a distributed system to manage multiple Bluetooth protocol stacks and provide Bluetooth communication services to multiple upper-layer applications; the multiple Bluetooth protocol stacks and positioning management modules use Bluetooth and other positioning device capabilities to determine the relative position relationship of multiple devices connected to each Bluetooth controller, and dynamically switch the binding relationship according to the position relationship between each device and each Bluetooth controller, to ensure that the device communicates with the Bluetooth controller closest to it, and to ensure the optimal communication quality.
[0032] Each application uses Bluetooth communication capabilities through multiple Bluetooth protocol stacks and positioning management modules, without having to worry about the connection relationship between the peer device and the Bluetooth controller.
[0033] Figure 2 FIG. 1 is a flow chart showing a Bluetooth communication method according to an exemplary embodiment. Figure 2 As shown, it can be applied to the manager and may include the following steps.
[0034] In step S201, a target terminal corresponding to a source terminal is determined.
[0035] In this embodiment, a user can establish a Bluetooth connection with a target terminal based on an application on a source terminal and through a manager and a Bluetooth controller, thereby enabling data transmission between the source terminal and the target terminal, wherein the manager can be a Bluetooth communication device. During data transmission, the source terminal can first transmit the target communication data to be transmitted to the Bluetooth communication device, and the Bluetooth communication device then transmits the target communication data to the target terminal through the corresponding Bluetooth controller. After receiving the target communication data, the Bluetooth communication device can determine the target terminal corresponding to the target communication data. Specifically, the target communication data can carry a terminal identifier, which includes the terminal identifier of the source terminal and the terminal identifier of the target terminal. The target terminal can be determined by the terminal identifier of the target terminal. Alternatively, before data transmission, the source terminal can send the terminal identifier of the target terminal to the Bluetooth communication device so that the Bluetooth communication device can determine the target terminal.
[0036] In step S202, a target Bluetooth controller is determined from a plurality of candidate Bluetooth controllers according to the communication quality parameters between the candidate Bluetooth controllers and the target terminal.
[0037] In this embodiment, the Bluetooth communication device can be connected to multiple candidate Bluetooth controllers. Each candidate Bluetooth controller is connected to the Bluetooth communication device via a Bluetooth protocol stack. The multiple candidate Bluetooth controllers are located in different locations. The target terminal can be a fixed terminal or a mobile terminal. The target Bluetooth controller can be determined based on communication quality parameters between the candidate Bluetooth controllers and the target terminal. For example, the candidate Bluetooth controller with the best communication quality with the target terminal can be determined as the target Bluetooth controller.
[0038] In step S203, data transmission between the source terminal and the target terminal is implemented through the target Bluetooth controller.
[0039] In this embodiment, after determining the target Bluetooth controller, the Bluetooth communication device can realize data transmission between the source terminal and the target terminal through the target Bluetooth controller. For example, the target communication data sent by the source terminal can be transmitted to the target terminal through the target Bluetooth controller, thereby realizing data transmission between the source terminal and the target terminal.
[0040] In this embodiment, the binding relationship can be dynamically switched according to the communication quality parameters between multiple candidate Bluetooth controllers and the target terminal. During each data transmission process, the target Bluetooth controller with the best communication quality with the target terminal can be used to transmit data, so as to improve the communication quality of Bluetooth communication with the target device.
[0041] In a possible implementation manner, the communication quality parameter includes a communication distance.
[0042] According to the communication quality parameters between the candidate Bluetooth controllers and the target terminal, the method for determining the target Bluetooth controller from multiple candidate Bluetooth controllers may be: Determine the communication distance between each of the multiple candidate Bluetooth controllers and the target terminal; and determine the target Bluetooth controller from the multiple candidate Bluetooth controllers based on the communication distance.
[0043] In this embodiment, the communication quality parameter may include a communication distance, and the communication quality may be determined based on the communication distance. Specifically, the communication quality may be negatively correlated with the communication distance. The communication distance between each candidate Bluetooth controller and the target terminal may be determined separately, and then the candidate Bluetooth controller with the shortest communication distance to the target terminal among the multiple candidate Bluetooth controllers may be determined as the target Bluetooth controller to ensure optimal Bluetooth communication quality.
[0044] In a possible implementation, a method for determining the communication distance between each of the multiple candidate Bluetooth controllers and the target terminal may be: Determine a target location of the target terminal; and determine a communication distance between each candidate Bluetooth controller and the target terminal based on the target location of the target terminal and the location of each candidate Bluetooth controller among a plurality of candidate Bluetooth controllers.
[0045] In this embodiment, the target location of the target terminal can be determined first, and the target location can include location coordinates. Each candidate Bluetooth controller is set at a different and fixed location, and the location coordinates of each candidate Bluetooth controller can be directly obtained, thereby determining the communication distance between each candidate Bluetooth controller and the target terminal based on the location coordinates of each Bluetooth controller and the location coordinates of the target terminal. Specifically, for any candidate Bluetooth controller, the straight-line distance between the two coordinates can be directly calculated based on the location coordinates of the candidate Bluetooth controller and the location coordinates of the target terminal to obtain the communication distance between the candidate Bluetooth controller and the target terminal.
[0046] In a possible implementation, a method for determining the target location of the target terminal may be: A plurality of target images including a target terminal are acquired through a camera; image recognition is performed on the plurality of target images to obtain a target position of the target terminal.
[0047] In this embodiment, the Bluetooth communication device may include a positioning device, which may be multiple cameras. The positioning device may detect the target terminal based on multiple cameras at different locations to obtain multiple target images including the target terminal. Image recognition may then be performed on the multiple target images to identify the location of the target terminal in the target images and obtain the target location.
[0048] In a possible implementation, a method for determining the target location of the target terminal may be: The round trip time of positioning signals between the plurality of positioning devices and the target terminal is determined; and the target position of the target terminal is determined based on the round trip time.
[0049] In this embodiment, multiple positioning devices can each send positioning signals to a target terminal and receive return positioning signals from the target terminal, thereby determining the round-trip time of the positioning signals between the multiple positioning devices and the target terminal. The target terminal's target location is then determined based on the round-trip time of the positioning signals between each positioning device and the target terminal, combined with the position coordinates of the positioning devices.
[0050] In a possible implementation, a method for determining the target location of the target terminal may be: Determine the time difference between multiple base stations receiving the pulse signal sent by the target terminal; and determine the target position of the target terminal based on the time difference.
[0051] In this embodiment, the positioning device may include multiple base stations, the target terminal may send a pulse signal, and the multiple base stations may receive the pulse signal sent by the target terminal and determine the time when each base station receives the pulse signal, thereby determining the time difference between the multiple base stations receiving the pulse signal sent by the target terminal based on the time when each base station receives the pulse signal, so as to determine the target position of the target terminal based on the time difference.
[0052] In a possible implementation, the communication quality parameter further includes Bluetooth communication strength. The method further includes: Determine the Bluetooth communication strength between each candidate Bluetooth controller among the plurality of candidate Bluetooth controllers and the target terminal.
[0053] In this embodiment, the Bluetooth communication strength between each candidate Bluetooth controller and the target terminal may be determined. The Bluetooth communication strength may be directly determined according to the signal strength of the target terminal detected by the candidate Bluetooth controller.
[0054] After obtaining the Bluetooth communication strength between each candidate Bluetooth controller and the target terminal, a method for determining a target Bluetooth controller from multiple candidate Bluetooth controllers based on the communication distance may be: A target Bluetooth controller is determined from multiple candidate Bluetooth controllers according to the communication distance and the Bluetooth communication strength.
[0055] In this embodiment, the communication quality between each candidate Bluetooth controller and the target terminal can be determined in combination with the communication distance and the Bluetooth communication strength. Specifically, the communication quality is negatively correlated with the communication distance, and the communication quality is positively correlated with the Bluetooth communication strength. For any candidate Bluetooth controller, a first coefficient corresponding to the communication distance between the candidate Bluetooth controller and the target terminal, and a second coefficient corresponding to the Bluetooth communication strength between the candidate Bluetooth controller and the target terminal can be determined. Among them, the first coefficient is inversely proportional to the communication data, and the second coefficient is inversely proportional to the Bluetooth communication strength. The communication quality score corresponding to the Bluetooth controller can be obtained based on the product of the communication distance between the candidate Bluetooth controller and the target terminal and the corresponding first coefficient, and the product of the Bluetooth communication strength between the candidate Bluetooth controller and the target terminal and the second coefficient, so as to determine the communication quality according to the communication quality score. Among them, the communication quality score is positively correlated with the communication quality, and the candidate Bluetooth controller with the largest communication quality score among multiple candidate Bluetooth controllers can be determined as the target Bluetooth controller.
[0056] In a possible implementation, the communication quality parameter includes Bluetooth communication strength.
[0057] According to the communication quality parameters between the candidate Bluetooth controllers and the target terminal, the method for determining the target Bluetooth controller from multiple candidate Bluetooth controllers may be: Determine the Bluetooth communication strength between each candidate Bluetooth controller among the multiple candidate Bluetooth controllers and the target terminal; and determine a target Bluetooth controller from the multiple candidate Bluetooth controllers based on the Bluetooth communication strength.
[0058] In this embodiment, the candidate Bluetooth controller with the strongest Bluetooth communication strength may be directly determined as the target Bluetooth controller.
[0059] Figure 3 FIG. 1 is a block diagram of a Bluetooth communication device according to an exemplary embodiment. Figure 3 The Bluetooth communication device 300 includes a first determination module 301 , a second determination module 302 and a transmission module 303 .
[0060] The first determining module 301 is configured to determine a target terminal corresponding to a source terminal; The second determining module 302 is configured to determine a target Bluetooth controller from multiple candidate Bluetooth controllers based on a communication quality parameter between the candidate Bluetooth controller and the target terminal; The transmission module 303 is configured to implement data transmission between the source terminal and the target terminal through the target Bluetooth controller.
[0061] Optionally, the communication quality parameter includes a communication distance; The second determining module 302 includes: A first determining submodule is configured to determine a communication distance between each candidate Bluetooth controller among the multiple candidate Bluetooth controllers and the target terminal; The second determining submodule is configured to determine the target Bluetooth controller from the multiple candidate Bluetooth controllers according to the communication distance.
[0062] Optionally, the first determining submodule includes: a first determining unit, configured to determine a target location of the target terminal; The second determining unit is configured to determine a communication distance between each candidate Bluetooth controller and the target terminal based on a target location of the target terminal and a location of each candidate Bluetooth controller among the multiple candidate Bluetooth controllers.
[0063] Optionally, the first determining unit includes: an acquisition subunit, configured to acquire a plurality of target images including the target terminal through a camera; The obtaining subunit is configured to perform image recognition on the multiple target images to obtain the target position of the target terminal.
[0064] Optionally, the first determining unit includes: A first determining subunit is configured to determine a round trip time of positioning signals between a plurality of positioning devices and the target terminal; The second determining subunit is configured to determine a target location of the target terminal according to the round-trip time.
[0065] Optionally, the first determining unit includes: A third determining subunit is configured to determine a time difference between multiple base stations receiving the pulse signal sent by the target terminal; The fourth determining subunit is configured to determine a target location of the target terminal according to the time difference.
[0066] Optionally, the communication quality parameter further includes Bluetooth communication strength; The Bluetooth communication device 300 further includes: a third determining module, configured to determine the Bluetooth communication strength between each candidate Bluetooth controller among the multiple candidate Bluetooth controllers and the target terminal; The second determining submodule includes: The third determining unit is configured to determine the target Bluetooth controller from the multiple candidate Bluetooth controllers according to the communication distance and the Bluetooth communication strength.
[0067] Regarding the Bluetooth communication device 300 in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated on here.
[0068] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon. When the program instructions are executed by a processor, the steps of the Bluetooth communication method provided by the present disclosure are implemented.
[0069] Figure 4 FIG. 4 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 400 may be the manager described above.
[0070] Reference Figure 4 The electronic device 400 may include one or more of the following components: a processing component 402 , a first memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output interface 412 , a sensor component 414 , and a communication component 416 .
[0071] The processing component 402 generally controls the overall operation of the electronic device 400, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 402 may include one or more first processors 420 to execute instructions to complete all or part of the steps of the Bluetooth communication method described above. In addition, the processing component 402 may include one or more modules to facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
[0072] The first memory 404 is configured to store various types of data to support operations on the electronic device 400. Examples of such data include instructions for any application or method operating on the electronic device 400, contact data, phone book data, messages, pictures, videos, etc. The first memory 404 can be implemented by any type of volatile or non-volatile memory 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 memory, flash memory, magnetic disk, or optical disk.
[0073] The power supply assembly 406 provides power to the various components of the electronic device 400. The power supply assembly 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 400.
[0074] The multimedia component 408 includes a screen that provides an output interface between the electronic device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, it may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensors can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, the multimedia component 408 includes a front-facing camera and / or a rear-facing camera. When the electronic device 400 is in an operating mode, such as a capture mode or a video mode, the front-facing camera and / or the rear-facing camera can receive external multimedia data. Each front-facing camera and the rear-facing camera can have a fixed optical lens system or have focal length and optical zoom capabilities.
[0075] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 400 is in an operating mode, such as a call mode, a recording mode, or a voice recognition mode. The received audio signals may be further stored in the first memory 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 further includes a speaker for outputting audio signals.
[0076] The input / output interface 412 provides an interface between the processing component 402 and peripheral interface modules, such as a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0077] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the electronic device 400. For example, the sensor assembly 414 can detect the open / closed state of the electronic device 400, the relative positioning of components, such as the display and keypad of the electronic device 400. The sensor assembly 414 can also detect changes in the position of the electronic device 400 or a component of the electronic device 400, the presence or absence of user contact with the electronic device 400, the orientation or acceleration / deceleration of the electronic device 400, and temperature changes of the electronic device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0078] The communication component 416 is configured to facilitate wired or wireless communication between the electronic device 400 and other devices. The electronic device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0079] In an exemplary embodiment, the electronic device 400 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 above-mentioned Bluetooth communication method.
[0080] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is further provided, such as a first memory 404 including instructions. The instructions may be executed by a first processor 420 of an electronic device 400 to implement the Bluetooth communication method described above. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, or the like.
[0081] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device, and has a code portion for executing the above-mentioned Bluetooth communication method when executed by the programmable device.
[0082] Those skilled in the art will also understand that the various illustrative logical blocks and steps listed in the embodiments of this application can be implemented through electronic hardware, computer software, or a combination of both. Whether such functions are implemented through hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be construed as exceeding the scope of protection of the embodiments of this application.
[0083] It will be understood that the features of the various embodiments of the present disclosure described herein may be combined with each other unless specifically stated otherwise.
[0084] Although terms such as "first", "second" and "third" may be used herein to describe various components, parts, regions, layers or sections, these components, parts, regions, layers or sections are not limited to these terms. On the contrary, these terms are only used to distinguish one component, part, region, layer or section from another component, part, region, layer or section. Therefore, without departing from the teachings of each example, the first component, part, region, layer or section mentioned in the examples described herein may also be referred to as the second component, part, region, layer or section. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" can explicitly or implicitly include at least one such feature. In the description herein, the meaning of "multiple" is at least two, for example, two, three, etc., unless otherwise clearly and specifically defined.
[0085] Furthermore, the word "exemplary" is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as "exemplary" is not necessarily to be construed as advantageous over other aspects or designs. Rather, the use of the word exemplary is intended to present concepts in a concrete manner. As used herein, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or." That is, unless otherwise specified or clear from the context, "X applies to A or B" is intended to mean any of the natural inclusive permutations. That is, if X applies to A; X applies to B; or X applies to both A and B, then "X applies to A or B" satisfies any of the aforementioned instances. Furthermore, the articles "a" and "an," as used in this application and the appended claims, are generally understood to mean "one or more," unless otherwise specified or clear from the context to refer to the singular form.
[0086] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding this specification and the accompanying drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. With particular regard to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if not structurally equivalent to the disclosed structure. In addition, although particular features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and advantageous for any given or particular application. Furthermore, to the extent that the terms "include," "have," "have," "have," or variations thereof are used in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term "comprising."
[0087] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the appended claims.
[0088] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A Bluetooth communication method, characterized in that: include: Determine a target terminal corresponding to the source terminal; determining a target Bluetooth controller from a plurality of candidate Bluetooth controllers according to a communication quality parameter between the candidate Bluetooth controllers and the target terminal; Data transmission between the source terminal and the target terminal is achieved through the target Bluetooth controller.
2. The Bluetooth communication method according to claim 1, wherein: The communication quality parameters include communication distance; The step of determining a target Bluetooth controller from a plurality of candidate Bluetooth controllers based on a communication quality parameter between the candidate Bluetooth controllers and the target terminal comprises: determining a communication distance between each of the plurality of candidate Bluetooth controllers and the target terminal; The target Bluetooth controller is determined from the multiple candidate Bluetooth controllers according to the communication distance.
3. The Bluetooth communication method according to claim 2, wherein: The determining of the communication distance between each of the plurality of candidate Bluetooth controllers and the target terminal includes: determining a target location of the target terminal; Based on the target location of the target terminal and the location of each candidate Bluetooth controller among the plurality of candidate Bluetooth controllers, a communication distance between each candidate Bluetooth controller and the target terminal is determined.
4. The Bluetooth communication method according to claim 3, wherein: Determining the target location of the target terminal includes: Acquire multiple target images including the target terminal through a camera; Image recognition is performed on the multiple target images to obtain a target position of the target terminal.
5. The Bluetooth communication method according to claim 3, wherein: Determining the target location of the target terminal includes: determining a round trip time of positioning signals between a plurality of positioning devices and the target terminal; A target location of the target terminal is determined according to the round-trip time.
6. The Bluetooth communication method according to claim 3, wherein: Determining the target location of the target terminal includes: Determining a time difference between multiple base stations receiving a pulse signal sent by the target terminal; The target location of the target terminal is determined according to the time difference.
7. The Bluetooth communication method according to any one of claims 2 to 6, wherein: The communication quality parameter also includes Bluetooth communication strength; The method further comprises: Determining a Bluetooth communication strength between each candidate Bluetooth controller among the plurality of candidate Bluetooth controllers and the target terminal; The step of determining the target Bluetooth controller from the plurality of candidate Bluetooth controllers according to the communication distance includes: The target Bluetooth controller is determined from the multiple candidate Bluetooth controllers according to the communication distance and the Bluetooth communication strength.
8. A Bluetooth communication device, characterized in that: include: A first determining module is configured to determine a target terminal corresponding to the source terminal; A second determining module is configured to determine a target Bluetooth controller from a plurality of candidate Bluetooth controllers according to a communication quality parameter between the candidate Bluetooth controller and the target terminal; The transmission module is configured to realize data transmission between the source terminal and the target terminal through the target Bluetooth controller.
9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the Bluetooth communication method according to any one of claims 1 to 7 when executed.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the Bluetooth communication method according to any one of claims 1 to 7 are implemented.
11. A computer program product, characterized in that The invention comprises a computer program, which implements the steps of the Bluetooth communication method according to any one of claims 1 to 7 when the computer program is executed by a processor.