Short-range communication method, electronic device, and computer storage medium

By sharing a single short-range communication chip and managing the binding relationships across multiple screen devices, the problem of low Bluetooth chip utilization is solved, resulting in cost reduction and improved user experience.

CN119450420BActive Publication Date: 2026-01-06HUAWEI TECH CO LTD

Patent Information

Application Number
CN202311666495.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2023-07-31
Filing Date
2023-12-06
Publication Date
2026-01-06
Estimated Expiration
2043-12-06

AI Technical Summary

Technical Problem

The low utilization rate of Bluetooth chips in multi-screen devices leads to increased device costs, and some chips are not used.

Method used

By sharing a single short-range communication chip across multiple screen devices, the system enables the binding and communication between the display screen and the communication device, highlights the bound devices, and manages the binding relationship through the user interface, thus supporting multi-screen services.

Benefits of technology

It improved the utilization rate of short-range communication chips, reduced equipment costs, and ensured the normal operation of multi-screen devices and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119450420B_ABST
    Figure CN119450420B_ABST
Patent Text Reader

Abstract

The application discloses a short-distance communication method, an electronic device and a computer storage medium, the electronic device comprising a short-distance communication chip, and corresponding first and second display screens, the method comprising: receiving a first operation acting on the first display screen; establishing a connection through the short-distance communication chip and a first communication device, and binding the first display screen and the first communication device; displaying a first interface on the first display screen and a second interface on the second display screen, the first interface and the second interface both comprising the first communication device in a paired state, the first communication device in the first interface being highlighted, and the first communication device in the second interface being non-highlighted. The first and second display screens can share the short-distance communication chip, improving the utilization rate of the short-distance communication chip, and meanwhile, a user can obtain the binding relationship between the communication device and the display screen according to the display interface, so that the user can normally use the multi-screen device to perform multi-screen services.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to Chinese Patent Application No. 202310963610.0, filed with the China National Intellectual Property Administration on July 31, 2023, entitled "Bluetooth Usage Method, Electronic Device and Computer Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of computer technology, and more particularly to a short-range communication method, electronic device, and computer storage medium. Background Technology

[0003] Currently, multi-screen devices can be equipped with multiple Bluetooth chips and assigned to different displays. This can be understood as each screen in a multi-screen device being independently configured with a corresponding Bluetooth chip. Each screen can connect to Bluetooth devices such as headphones through its configured Bluetooth chip to achieve collaboration between each screen and the connected Bluetooth device. For example, a vehicle may have a central control screen, a passenger-side screen, and rear-seat screens. Each screen is equipped with a Bluetooth chip. The Bluetooth chip on the central control screen can be used to connect to the driver's mobile phone, while the Bluetooth chip on the passenger-side screen can be used to connect to headphones, allowing the passenger in the front seat to listen to audio related to the passenger-side screen through headphones. The rear-seat screens are similar. However, this results in low utilization of the Bluetooth chips. For example, the following situation may occur: when the passenger-side screen outputs data through a connected Bluetooth device, the rear-seat screen does not output data through a connected Bluetooth device. That is, when the Bluetooth chip configured for the passenger-side screen is used, the Bluetooth chip configured for the rear-seat screen is not used, leading to higher equipment costs. Summary of the Invention

[0004] This application discloses a short-range communication method, electronic device, and computer storage medium, which can improve the utilization rate of short-range communication chips, reduce costs, and also ensure that multi-screen devices can perform multi-screen services normally.

[0005] In a first aspect, this application provides a short-range communication method applied to an electronic device, the electronic device including a short-range communication chip, a first display screen, and a second display screen, both the first display screen and the second display screen corresponding to the short-range communication chip. The method includes: receiving a first operation applied to the first display screen; in response to the first operation, establishing a connection between the short-range communication chip and a first communication device, and binding the first display screen and the first communication device; displaying a first interface on the first display screen and a second interface on the second display screen, the first interface including the first communication device in a paired state, with the first communication device highlighted in the first interface, and the second interface including the first communication device in a paired state, with the first communication device not highlighted in the second interface.

[0006] In some examples, the first communication device and the first display screen are bound together, including: there is a connection between the first communication device and the electronic device, and the first display screen can communicate with the first display screen through the short-range communication chip to realize the services of the first display screen.

[0007] In some examples, the first communication device in the first interface is in a paired state and is highlighted, indicating that the first display screen and the first communication device are bound together; the first communication device in the second interface is in a paired state and is not highlighted, indicating that the second display screen and the first communication device are not bound together.

[0008] In the above method, the first and second displays can share a single short-range communication chip. Displays that require the chip can bind and communicate with communication devices, avoiding the situation where some short-range communication chips are idle when each display has its own chip. This improves the utilization rate of the short-range communication chip and reduces costs. Furthermore, after the first communication device is bound to the first display, the paired device can be displayed on both the first and second displays, instead of only on the first display, preventing users of the second display from accessing paired communication devices not bound to the second display. The first display bound to the first communication device will highlight it, while the second display not bound to it will not. This allows users to intuitively determine whether a display and the first communication device are bound, ensuring that users can use the current display and its bound communication device for relevant services. This guarantees that multi-screen devices can function normally for multi-screen services, improving the user experience.

[0009] In one possible implementation, the first interface and the second interface are settings interfaces for short-range communication functions.

[0010] In the above method, users can see whether the first communication device in the paired state is highlighted through the settings interface of the short-range communication function, thereby obtaining whether the current display screen and the first communication device have a binding relationship. This can be understood as adding relevant information to the existing commonly used function interface, which is more in line with the user's usage habits and further improves the user experience.

[0011] In one possible implementation, before receiving the first operation applied to the first display screen, the method further includes: scanning the first communication device through the short-range communication chip, displaying a third interface on the first display screen, and displaying a fourth interface on the second display screen; wherein the third interface includes the first communication device in an unpaired state, the fourth interface includes the first communication device in an unpaired state, and the first operation is an operation applied to the first communication device in the third interface.

[0012] In some examples, the third and fourth interfaces are settings interfaces for short-range communication functions.

[0013] In the above method, the first display screen and the second display screen can share a short-range communication chip. The communication devices scanned by the short-range communication chip can be displayed on the first display screen and the second display screen. Users of both the first display screen and the second display screen can view the communication devices scanned by the short-range communication chip and choose whether to connect and which communication device to connect according to their needs. This ensures that the short-range communication functions provided to users of the first display screen and the second display screen are consistent, thus guaranteeing the user experience for multiple users.

[0014] In one possible implementation, the highlighting method includes at least one of the following: highlighting, bolding, italicizing, underlining, providing a shading background, displaying a border around the character, using a different font color than other text, using a different font type than other text, or using a different font size than other text.

[0015] In the above methods, electronic devices can highlight the first communication device in a variety of ways, and the application scenarios are more extensive.

[0016] In one possible implementation, the first interface includes a first prompt message, and / or the second interface includes a second prompt message, wherein: the first prompt message indicates that the first communication device and the electronic device are connected, and / or the first prompt message indicates that the first communication device and the first display screen are bound; the second prompt message indicates that the first communication device and the electronic device are connected, and / or the second prompt message indicates that the first communication device and the first display screen are bound.

[0017] In some examples, when the first prompt message is "connected", it can indicate that the first communication device and the electronic device are connected; when the first prompt message is "connected to the first display screen", it can indicate that the first communication device and the first display screen are bound (including the first communication device and the electronic device being connected).

[0018] In the above method, the first display screen and / or the second display screen can display prompt information related to the first communication device, allowing users to more intuitively obtain whether the first communication device is connected to the electronic device or the display screen bound to the first communication device, thereby further improving the user experience.

[0019] In one possible implementation, the method further includes: receiving a second operation applied to the first communication device in the second interface; in response to the second operation, canceling the binding between the first display screen and the first communication device, and canceling the binding between the second display screen and the first communication device; displaying a fifth interface on the first display screen and a sixth interface on the second display screen, the fifth interface including the first communication device in a paired state, wherein the first communication device in the fifth interface is not highlighted, and the sixth interface including the first communication device in a paired state, wherein the first communication device in the sixth interface is highlighted.

[0020] In the above method, after the first display screen and the first communication device are bound together (including the electronic device and the first communication device being connected), the user of the second display screen can directly operate the first communication device displayed on the second display screen to switch the display screen bound to the first communication device from the first display screen to the second display screen. There is no need for the user to first disconnect the connection between the electronic device and the first communication device (so that the first display screen and the first communication device are unbound) and then control the second display screen and the first communication device to bind together (including the electronic device and the first communication device re-establishing the connection). It can be understood that the first display screen and the second display screen share a short-range communication chip. The user can modify the binding relationship between the display screen and the communication device with one operation, reducing user operations and device power consumption, and further improving the user experience.

[0021] In one possible implementation, the short-range communication chip supports the connection of N communication devices, where N is an integer greater than 1; the method further includes: when the short-range communication chip establishes a connection with S communication devices, receiving a third operation applied to the first display screen, the third operation being used to trigger the connection of a second communication device, the second communication device being different from the S communication devices, where S is a positive integer less than N; in response to the third operation, determining whether (S+1) is less than or equal to N; when (S+1) is less than or equal to N, establishing a connection between the short-range communication chip and the second communication device, and binding the first display screen to the second communication device.

[0022] In the above method, the first display screen and the second display screen share a short-range communication chip. When the electronic device receives a user operation (e.g., a third operation) applied to either of the displays screens (e.g., the first display screen) to trigger the connection of a new communication device, it first determines whether the short-range communication chip can currently support the addition of a new connection path, that is, whether (S+1) is less than or equal to N. When the determination result is yes, the electronic device will connect to the new communication device through the short-range communication chip, thereby ensuring that the short-range communication chip can normally support the connection path of the first display screen and the second display screen, avoiding abnormalities in the existing connection path or the new connection path when adding a new connection path, which would cause the first display screen and the second display screen to be unable to use the bound communication device normally, thereby reducing the occurrence of abnormal situations from the root and improving the availability of functions.

[0023] In one possible implementation, the method further includes: when (S+1) is greater than N, displaying a third prompt message on the first display screen, the third prompt message indicating that the second communication device cannot be connected; or, when (S+1) is greater than N, canceling the connection between the short-range communication chip and the third communication device among the S communication devices, establishing a connection between the short-range communication chip and the second communication device, and binding the first display screen to the second communication device; or, when (S+1) is greater than N, establishing a connection between the short-range communication chip and the second communication device, and binding the first display screen to the second communication device, the second communication device bound to the first display screen being in an unusable state.

[0024] In the above method, when it is determined that the short-range communication chip cannot support the addition of a new connection path, the electronic device can handle the situation in various ways, thereby expanding the application scenarios while ensuring that the short-range communication chip can normally support the connection path between the first display screen and the second display screen.

[0025] In one possible implementation, the short-range communication chip supports N communication devices for connected audio services, and the S communication devices and the second communication device both correspond to audio services.

[0026] In the above method, the short-range communication chip supports a maximum of N audio connections. When there are already S audio connections, if the user intends to add a new audio connection, the electronic device can determine whether the short-range communication chip can currently support the addition of a new audio connection, that is, whether (S+1) is less than or equal to N. When the determination result is yes, the electronic device will connect to the communication device of the new audio service through the short-range communication chip, thereby ensuring that the short-range communication chip can normally support the audio connection of the first display screen and the second display screen, and ensuring that the multi-screen device can normally carry out multi-screen audio services.

[0027] In one possible implementation, the number of communication devices supporting audio services connected to the short-range communication chip is N; the determination of whether (S+1) is less than or equal to N includes: when both the S communication devices and the third communication device correspond to audio services, determining whether (S+1) is less than or equal to N; the method further includes: when the S communication devices correspond to audio services and the third communication device corresponds to other services besides audio services, in response to the third operation, establishing a connection between the short-range communication chip and the third communication device, and binding the first display screen to the third communication device.

[0028] In the above method, the short-range communication chip supports a maximum of N audio connections. When there are already S audio connections, if the user intends to add a new connection, the electronic device can obtain the service of the new connection and determine whether the short-range communication chip can currently support the addition of the new connection based on the acquisition result. This can be understood as follows: considering that the short-range communication chip supports different maximum number of connection paths for different services, it can determine whether to add a new connection path based on the actual service situation. This ensures that the short-range communication chip can normally support the connection paths of the first and second displays, while making more effective use of the short-range communication chip and further improving its utilization rate.

[0029] In one possible implementation, the method further includes: receiving a fourth operation applied to a fourth communication device in the second interface; in response to the fourth operation, establishing a connection with the fourth communication device via the short-range communication chip, and binding the fourth communication device via the second display screen; displaying a seventh interface on the first display screen and an eighth interface on the second display screen, the seventh interface including the first communication device and the fourth communication device in a paired state, the first communication device being highlighted in the seventh interface and the fourth communication device not being highlighted in the seventh interface, the eighth interface including the first communication device and the fourth communication device in a paired state, the first communication device not being highlighted in the eighth interface and the fourth communication device being highlighted in the eighth interface.

[0030] In the above method, the first display screen and the second display screen share a short-range communication chip. When the first display screen and the first communication device are bound together, the second display screen and the fourth communication device can be bound together in response to user operation. That is, the binding relationship between the first display screen and the second display screen does not affect each other. Both the first display screen and the second display screen can realize the corresponding services through the bound communication device. In other words, they can realize their respective services independently without affecting each other, thus ensuring that the multi-screen device can carry out multi-screen services normally.

[0031] In one possible implementation, the first interface includes a first prompt message indicating that the first communication device and the electronic device are connected, and indicating that the first communication device and the first display screen are bound together; the method further includes: receiving a fifth operation performed on a fifth communication device in the first interface; in response to the fifth operation, the short-range communication chip and the first communication device are disconnected, a connection is established between the short-range communication chip and the fifth communication device, and the fifth communication device is bound together with the first display screen; a ninth interface is displayed on the first display screen, the ninth interface including the first communication device and the fifth communication device in a paired state, the first communication device in the ninth interface is not highlighted, the ninth interface does not include the first prompt message, the fifth communication device in the ninth interface is highlighted, the ninth interface includes a fourth prompt message indicating that the fifth communication device and the electronic device are connected, and indicating that the fifth communication device and the first display screen are bound together.

[0032] In the above method, after the first display screen and the first communication device are bound together, the user of the first display screen can directly operate the fifth communication device displayed on the first display screen to switch the communication device bound to the first display screen from the first communication device to the fifth communication device. There is no need for the user to manually disconnect the electronic device from the first communication device (so that the first display screen and the first communication device are unbound) and then control the binding of the first display screen and the fifth communication device, which reduces user operations and further improves the user experience.

[0033] In one possible implementation, the first interface includes a first prompt message indicating that the first communication device and the electronic device are connected, and indicating that the first communication device and the first display screen are bound together; the method further includes: receiving a sixth operation performed on a sixth communication device in the first interface; in response to the sixth operation, establishing a connection with the sixth communication device through the short-range communication chip, and binding the sixth communication device through the first display screen; displaying a tenth interface on the first display screen, the tenth interface including the first communication device and the sixth communication device in a paired state, the first communication device and the sixth communication device in the tenth interface being highlighted, the tenth interface including the first prompt message and a fifth prompt message, the fifth prompt message indicating that the sixth communication device and the electronic device are connected, and indicating that the sixth communication device and the first display screen are bound together.

[0034] In the above method, after the first display screen and the first communication device are bound together, the user of the first display screen can directly operate the sixth communication device displayed on the first display screen to add a sixth communication device to the communication devices bound to the first display screen. The first display screen can be bound to multiple communication devices, which can realize the scenario of the display screen and multiple communication devices working together, thereby meeting the user needs related to the scenario and expanding the application scenarios.

[0035] In one possible implementation, establishing a connection between the short-range communication chip and the sixth communication device, and binding the connection between the short-range communication chip and the sixth communication device via the first display screen, includes: when the multi-device connection function of the first communication device is enabled, establishing a connection between the short-range communication chip and the sixth communication device, and binding the connection between the short-range communication chip and the sixth communication device via the first display screen; the method further includes: when the multi-device connection function of the first communication device is disabled, canceling the connection between the short-range communication chip and the first communication device, establishing a connection between the short-range communication chip and the sixth communication device, and binding the connection between the short-range communication chip and the sixth communication device via the first display screen; or, when the multi-device connection function of the first communication device is disabled, displaying a sixth prompt message on the first display screen, the sixth prompt message indicating that the connection to the sixth communication device is unavailable.

[0036] In the above method, the first communication device can bind to the display screen at the same time as other communication devices only when the multi-device connection function of the first communication device is enabled. Users can customize whether to enable the function of binding multiple communication devices to the display screen to meet their personalized needs.

[0037] In one possible implementation, the method further includes: the first display screen communicating with the first communication device via the short-range communication chip.

[0038] In the above method, after the first display screen and the first communication device are bound together, the first display screen can communicate with the first communication device through the short-range communication chip to realize the relevant services on the first display screen. No additional operation or processing logic is required, making the implementation simpler, reducing user operation, and also reducing device power consumption.

[0039] In one possible implementation, the number of communication devices supported by the short-range communication chip is P, where P is a positive integer; the method further includes: when the electronic device communicates with T communication devices through the short-range communication chip, receiving a seventh operation acting on the first display screen, the seventh operation being used to trigger the use of the first communication device, the first communication device being different from the T communication devices, where T is a positive integer less than P; in response to the seventh operation, determining whether (T+1) is less than or equal to P; when (T+1) is less than or equal to P, the first display screen communicates with the first communication device through the short-range communication chip; when (T+1) is greater than P, displaying a seventh prompt message on the first display screen, the seventh prompt message indicating that the first communication device cannot be used.

[0040] In the above method, the first display screen and the second display screen share a short-range communication chip. When the electronic device receives a user operation (e.g., the seventh operation, which triggers the addition of a new communication path) applied to either of the displays screens (e.g., the first display screen), it first determines whether the short-range communication chip can currently support the addition of a new communication path, that is, whether (T+1) is less than or equal to P. Only when the determination result is yes will the short-range communication chip add a new communication path, thereby ensuring that the short-range communication chip can normally support the communication path between the first display screen and the second display screen. This avoids the existing communication path or the new communication path from becoming abnormal when adding a new communication path, which would cause the first display screen and the second display screen to be unable to use the bound communication device normally. This reduces the occurrence of abnormal situations from the root and improves the availability of functions.

[0041] In one possible implementation, the number of communication devices supported by the short-range communication chip for transmitting audio data is P; the determination of whether (T+1) is less than or equal to P includes: when both the T communication devices and the first communication device correspond to audio services, determining whether (T+1) is less than or equal to P; the method further includes: when the T communication devices correspond to audio services and the first communication device corresponds to other services besides audio services, in response to the seventh operation, the first display screen communicates with the first communication device through the short-range communication chip.

[0042] In the above method, the short-range communication chip supports a maximum of P audio communication channels. When there are already T audio communication channels, if the user intends to add a new communication channel, the electronic device can obtain the service of the new communication channel and determine whether the short-range communication chip can currently support the addition of the new communication channel based on the acquisition result. This can be understood as follows: considering that the maximum number of communication channels supported by the short-range communication chip for different services is different, it can determine whether to add a new communication channel based on the actual service situation. In this way, while ensuring that the short-range communication chip can normally support the communication channels of the first and second displays, the short-range communication chip can be used more effectively, further improving the utilization rate of the short-range communication chip.

[0043] In one possible implementation, the method further includes: receiving an eighth operation acting on the second display screen, the eighth operation being used to trigger the deletion of the first communication device; in response to the eighth operation, determining whether the first display screen communicates with the first communication device through the short-range communication chip; when the first display screen communicates with the first communication device through the short-range communication chip, displaying an eighth prompt message on the second display screen, the eighth prompt message indicating that the first communication device cannot be deleted; when the first display screen does not communicate with the first communication device through the short-range communication chip, the short-range communication chip and the first communication device are unpaired.

[0044] In some examples, after the second display screen and the communication device are paired, the electronic device can also receive user operations applied to the first display screen to trigger the deletion of the communication device. In response to the user operation, the electronic device determines whether the second display screen is communicating with the communication device via a short-range communication chip. If the determination result is yes, the first display screen displays a message indicating that the communication device cannot be deleted; if the determination result is no, the electronic device deletes the communication device. This can be understood as the first and second display screens sharing a single short-range communication chip. Users can operate any display screen (e.g., the second display screen) to trigger the deletion of communication devices paired with other display screens (e.g., the first communication device paired with the first display screen). In other words, each display screen of the electronic device provides the function of deleting communication devices, thus satisfying the needs of users on each screen.

[0045] In the above method, when the electronic device receives a user operation to trigger the deletion of the communication device, it first determines whether the communication device is being used by the bound display screen (i.e., whether the two are communicating). If the result is yes, the communication device will not be deleted. Only when the result is no will the communication device be deleted. This avoids the communication device being accidentally deleted during use, which would lead to a poor user experience. The function of deleting the communication device is more intelligent.

[0046] In one possible implementation, the method further includes: receiving a ninth operation applied to the second display screen, the ninth operation being used to trigger the deletion of the first communication device; in response to the ninth operation, determining whether the first display screen and the first communication device are bound together; when the first display screen and the first communication device are bound together, displaying a ninth prompt message on the second display screen, the ninth prompt message indicating that the first communication device cannot be deleted; when the first display screen and the first communication device are not bound together, unpairing the short-range communication chip with the first communication device.

[0047] In the above method, when the electronic device receives a user operation to trigger the deletion of the communication device, it first determines whether the communication device is bound to another display screen besides the current display screen. If the determination result is yes, the communication device will not be deleted. Only when the determination result is no will the communication device be deleted. This avoids the communication device being accidentally deleted when it is bound to other display screens, which would result in a poor user experience for the users of the display screen bound to the communication device. The function of deleting the communication device is more intelligent.

[0048] In one possible implementation, the method further includes: disconnecting the short-range communication chip from the first communication device; and binding the first display screen to the first communication device when establishing a connection between the short-range communication chip and the first communication device.

[0049] In the above method, after the connection between the first communication device and the electronic device is broken, when the connection is re-established, the first communication device can directly bind to the most recently bound display screen without manual operation by the user. The binding function of short-range communication is more intelligent, improving the user experience.

[0050] In one possible implementation, the method further includes: disconnecting the short-range communication chip from the first communication device; and when establishing a connection between the short-range communication chip and the first communication device, binding the electronic device to a preset display screen, wherein the preset display screen is either the first display screen or the second display screen.

[0051] In the above method, after the connection between the first communication device and the electronic device is broken, when the connection is re-established, the first communication device can be directly bound to the preset display screen without the need for manual operation by the user, thus improving the user experience.

[0052] In one possible implementation, the method further includes: disconnecting the short-range communication chip from the first communication device; detecting the area where the first communication device is located when establishing a connection between the short-range communication chip and the first communication device; binding the first communication device to the first display screen when the first communication device is located in the area of ​​the first display screen; and binding the first communication device to the second display screen when the first communication device is located in the area of ​​the second display screen.

[0053] In the above method, after the connection between the first communication device and the electronic device is broken, when the connection is re-established, the electronic device can detect the area where the first communication device is located and determine that the first communication device is bound to the display screen in the area. No manual operation by the user is required, making the binding function of short-range communication more intelligent and improving the user experience.

[0054] In one possible implementation, the electronic device includes a first user space and a second user space, the first user space corresponding to the first display screen and the second user space corresponding to the second display screen.

[0055] In the above method, electronic devices can manage different displays through different user spaces, so that when multiple displays share a single short-range communication chip, each display can independently perform its own short-range communication service, ensuring the user experience of each display user.

[0056] In one possible implementation, the electronic device is a vehicle or in-vehicle equipment, the first display screen is a passenger-side screen, and the second display screen is a rear-seat screen.

[0057] In the above method, the passenger screen and the rear screen in the vehicle or in-vehicle device can share a short-range communication chip. This avoids the situation where some or all of the short-range communication chips are idle when the passenger screen and the rear screen are configured with independent short-range communication chips, since the scenario of two or more people using them at the same time is extremely rare. This effectively improves the utilization rate of the short-range communication chip in the vehicle or in-vehicle device and also ensures the user experience in the vehicle.

[0058] In a second aspect, this application provides an electronic device, including a transceiver, a processor, and a memory; the memory is used to store a computer program, and the processor calls the computer program to enable the electronic device to execute the short-range communication method provided in the first aspect and any embodiment of the first aspect.

[0059] Thirdly, this application provides a computer storage medium storing a computer program that, when executed by a processor, performs the short-range communication method provided in the first aspect and any embodiment of the first aspect.

[0060] Fourthly, this application provides a computer program product that, when run on a device, causes the device to execute the short-range communication method provided in the first aspect and any embodiment of the first aspect.

[0061] Fifthly, this application provides an electronic device that includes the methods or apparatus described in any aspect or embodiment of this application. The aforementioned electronic device is, for example, a chip.

[0062] It should be understood that the descriptions of technical features, technical solutions, beneficial effects, or similar language in this application do not imply that all features and advantages can be achieved in any single implementation. Rather, it is understood that the description of a feature or beneficial effect means that a specific technical feature, technical solution, or beneficial effect is included in at least one implementation. Therefore, the descriptions of technical features, technical solutions, or beneficial effects in this application do not necessarily refer to the same implementation. Furthermore, the technical features, technical solutions, and beneficial effects described in this application can be combined in any suitable manner. Those skilled in the art will understand that this application can be implemented without one or more specific technical features, technical solutions, or beneficial effects of a particular implementation. In other implementations, additional technical features and beneficial effects may be identified in specific implementations that do not embody all implementations. Attached Figure Description

[0063] The following describes the accompanying drawings used in this application.

[0064] Figure 1 This is a schematic diagram of the hardware structure of an electronic device provided in this application;

[0065] Figure 2 This is a schematic diagram of the hardware structure of another electronic device provided in this application;

[0066] Figure 3 This is a schematic diagram of the software architecture of an electronic device provided in this application;

[0067] Figures 4-10 These are schematic diagrams of some user interfaces provided in this application;

[0068] Figure 11 This is a flowchart illustrating a Bluetooth connection process provided in this application;

[0069] Figure 12 This is a flowchart illustrating a process for updating a binding relationship provided in this application;

[0070] Figure 13 This is a flowchart illustrating yet another Bluetooth connection process provided in this application;

[0071] Figure 14 This is a flowchart illustrating a Bluetooth communication process provided in this application;

[0072] Figure 15 This is a flowchart illustrating the process of deleting a Bluetooth device as provided in this application. Detailed Implementation

[0073] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0074] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0075] This application proposes a short-range communication method for an electronic device. The electronic device may include M displays (M being an integer greater than 1). These M displays can share a single short-range communication chip. Any one of the M displays can connect and communicate with at least one communication device through this short-range communication chip, avoiding the following situation: when each of the M displays is independently configured with its corresponding short-range communication chip, some displays connect and communicate with the communication device through their configured short-range communication chip (while the configured Bluetooth chip is being used), and the short-range communication chips configured for other displays are not being used. This application can effectively improve the utilization rate of the short-range communication chip and reduce costs.

[0076] Furthermore, for scenarios where M displays share a single short-range communication chip to connect to a communication device, the electronic device can be configured with corresponding processing rules, such as display rules, rules for connecting to the communication device (referred to as connection rules), rules for transmitting data via the connected communication device (referred to as communication rules), and rules for deleting the communication device (referred to as deletion rules). This ensures that different displays can independently perform their functions (such as outputting audio data) without interfering with each other, thus guaranteeing the effectiveness of the services displayed on the screens and ensuring a positive user experience. Examples of display rules and connection rules can be found below. Figures 11-13 Examples of communication rules can be found below. Figure 14 For an example of a deletion rule, please see below. Figure 15 .

[0077] The short-range communication chip in this application embodiment can employ short-range wireless communication technology to implement its functions. Short-range wireless communication technology can include technologies supporting short-range wireless communication. Short-range wireless communication includes communication between two parties via radio waves over a short distance (e.g., within 100 meters). This includes, but is not limited to, Bluetooth, Wireless Fidelity (Wi-Fi), Near Field Communication (NFC), Wi-Fi Aware, general short-range communication technologies, and short-range wireless communication technologies specified by the Sparklink Alliance (e.g., Sparklink Low Energy (SLE) and Sparklink Basic (SLB)). The short-range communication chip can also be named according to the short-range wireless communication technology it supports. For example, a short-range communication chip supporting Bluetooth can be called a Bluetooth chip, and a short-range communication chip supporting short-range wireless communication technologies specified by the Sparklink Alliance can be called a Sparklink chip. Short-range wireless communication has numerous applications in various fields, including file transfer, remote control, screen projection, and sensing of surrounding devices (such as smart vehicles, smart terminal devices, smart home devices, and smart manufacturing equipment).

[0078] For ease of explanation, the following embodiments use a short-range communication chip that supports Bluetooth technology as an example. In this case, the connection / communication achieved through the short-range communication chip can also be called Bluetooth connection / Bluetooth communication, and the corresponding communication device can also be called a Bluetooth device.

[0079] For example, the electronic device is a vehicle / in-vehicle device, which may include a display screen in the driver's seat, a display screen in the passenger seat (hereinafter referred to as the passenger screen), and a display screen in the rear seats (hereinafter referred to as the rear screen). The display screen in the driver's seat may include, for example, a central control screen, an instrument panel screen, and an augmented reality (AR) head-up display (HUD). There may be one or more rear screens. Typical Bluetooth chips support a maximum of two audio data communications. However, in vehicle usage scenarios, the passenger screen and the rear screen are mostly used by one or two people simultaneously (e.g., outputting audio data through a connected Bluetooth device). It is rare for three or more people to use them simultaneously. If each screen is configured with an independent Bluetooth chip, some Bluetooth chips may become idle. In this embodiment, the passenger screen and the rear screen of the electronic device can share a single Bluetooth chip and use corresponding processing rules, which can improve the utilization rate of the Bluetooth chip while ensuring the user experience within the vehicle.

[0080] In this application embodiment, the electronic device may be a mobile phone, tablet computer, handheld computer, desktop computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), smart TV, smart screen and other smart home devices, augmented reality (AR), virtual reality (VR), mixed reality (MR) and other extended reality (XR) devices, vehicle or in-vehicle equipment, and smart city equipment, etc. This application embodiment does not impose any special restrictions on the specific type of electronic device.

[0081] In this embodiment, the electronic device can connect to other electronic devices via a Bluetooth chip. These other electronic devices can be referred to as Bluetooth devices. Bluetooth devices can be headphones, microphones, smart glasses, game controllers, etc., but are not limited to these. They can also be the electronic devices exemplified above. This embodiment does not impose any special restrictions on the specific type of Bluetooth device.

[0082] Figure 1 An exemplary schematic diagram of the hardware structure of an electronic device 100 is shown.

[0083] like Figure 1As shown, the electronic device 100 may include a Bluetooth chip 101, a system-on-a-chip (SoC) 102, a display screen 103, and a display screen 104, wherein the SoC 102 can be connected to the Bluetooth chip 101, the display screen 103, and the display screen 104 respectively.

[0084] Bluetooth chip 101 can be used for short-range wireless communication. Electronic device 100 can connect and communicate with at least one Bluetooth device through Bluetooth chip 101. Understandably, the bandwidth capability of Bluetooth chip is limited. For ease of explanation, Bluetooth chip 101 in this embodiment supports a maximum of N connections (i.e., it can connect to a maximum of N Bluetooth devices, also referred to as the maximum number of supported connections being N) and a maximum of P communication / transmissions (i.e., it can simultaneously communicate with a maximum of P connected Bluetooth devices, also referred to as the maximum number of supported communication channels being P), where N and P are positive integers, and P is less than or equal to N. Understandably, in real-world scenarios, different types of services have different requirements for Bluetooth bandwidth capability. Therefore, when connecting Bluetooth devices for different types of services, the above-mentioned N can be different. For example, for Bluetooth devices for audio playback services (such as Bluetooth headsets, Bluetooth speakers, etc.), Bluetooth chip 101 can support a maximum of 2 connections. Optionally, when Bluetooth chip 101 has already connected to 2 Bluetooth devices for audio playback services, it can also support connecting to at least 1 Bluetooth device for gaming services (such as a game controller). Similarly, when transmitting data for different types of services, the above P can be different. For example, Bluetooth chip 101 supports the transmission of up to 2 audio data channels. Optionally, if Bluetooth chip 101 already supports the transmission of 2 audio data channels, it can also add the transmission of at least 1 game command data channel. For another example, Bluetooth chip 101 supports the transmission of up to 1 call data channel, which can be cellular call data or network call data.

[0085] SoC 102 can be used to manage the binding relationship between the display screen and Bluetooth devices of electronic device 100. A binding relationship (also referred to as binding) between any display screen and any Bluetooth device can include: electronic device 100 (including the display screen) establishing a Bluetooth connection with the Bluetooth device through Bluetooth chip 101 (also referred to as having a connection relationship), and the display screen communicating with the bound Bluetooth device through Bluetooth chip 101 to realize the services of the display screen. Binding between the display screen and the Bluetooth device can also be referred to as connecting the display screen and the Bluetooth device. Among the at least one Bluetooth device connected to electronic device 100, there may be a Bluetooth device bound to display screen 103, or there may be no Bluetooth device bound to display screen 103; there may be a Bluetooth device bound to display screen 104, or there may be no Bluetooth device bound to display screen 104. Display screens 103 and 104 can communicate with paired Bluetooth devices via Bluetooth chip 101 to enable relevant business scenarios. For example, display screens 103 and 104 can send audio data for audio / call services to paired Bluetooth devices such as headphones and speakers, enabling audio playback via these devices. In this case, display screens 103 and 104 can be understood as a data source, and the paired Bluetooth devices receive data from this data source. As another example, display screens 103 and 104 can receive game command data from paired Bluetooth devices such as game controllers, enabling gameplay via these devices.

[0086] In some examples, electronic device 100 is connected to two Bluetooth devices via Bluetooth chip 101. SoC 102 can manage the binding relationships between the display screen and the Bluetooth devices: display screen 103 and display screen 104 are each bound to one Bluetooth device. However, this is not the only example. In other examples, the binding relationship is: display screen 103 is bound to two Bluetooth devices, and there is no Bluetooth device bound to display screen 104. In still other examples, the binding relationship is: display screen 104 is bound to two Bluetooth devices, and there is no Bluetooth device bound to display screen 103.

[0087] SoC102 can also be used to manage the services of electronic device 100. The services of electronic device 100 can include services related to display screen 103 (which can also be understood as services running / displayed on display screen 103) and services related to display screen 104 (which can also be understood as services running / displayed on display screen 104), such as, but not limited to, audio services, call services, game services, etc.

[0088] Display screens 103 and 104 can be used to provide users with corresponding device functions. In one embodiment, display screens 103 and 104 can provide users with corresponding device functions via a connected Bluetooth device. In another embodiment, display screens 103 and 104 can provide corresponding device functions to different users located in different areas. In some examples, electronic device 100 is a vehicle / in-vehicle device, display screen 103 is a passenger-side screen, which can be used by the user sitting in the passenger seat, and display screen 104 is a rear-seat screen, which can be used by the user sitting in the rear seat. For ease of explanation, the user of display screen 103 is referred to as user A, and the user of display screen 104 is referred to as user B.

[0089] In this embodiment, when any display screen of the electronic device 100 (using display screen 103 as an example) is paired with any Bluetooth device (using Bluetooth device Z as an example), the electronic device 100 can display the paired Bluetooth device Z on display screen 103 and highlight Bluetooth device Z to indicate that display screen 103 and Bluetooth device Z are paired. In one embodiment, the electronic device 100 is also connected to other Bluetooth devices (using Bluetooth device Y as an example), but display screen 103 and Bluetooth device Y are not paired. Therefore, display screen 103 may not display the paired Bluetooth device Y, or it may display the paired Bluetooth device Y but not highlight it. It can be understood that highlighting the Bluetooth device on the display screen indicates that the display screen and the Bluetooth device are paired.

[0090] In one implementation, the SoC 102 may include a system space (also referred to as a kernel space) and at least one user space, and different displays of the electronic device 100 may correspond to different user spaces, for example... Figure 1 As shown, SoC 102 may include two user spaces: user space A and user space B. Display screen 103 corresponds to user space A, and display screen 104 corresponds to user space B. In one embodiment, when any user uses any display screen of electronic device 100, the display screen can log in / record the user's corresponding account. Different users may have different accounts, and different accounts may correspond to different user spaces. For example, user A can log in to display screen 103 using a registered account A, and user B can log in to display screen 104 using a registered account B. Account A corresponds to user space A, and account B corresponds to user space B. As another example, when user C logs in to display screen 103 for the first time, they can use guest mode account C, and when user D logs in to display screen 103 for the first time, they can use guest mode account D. Account C and account D correspond to user space C and user space D (not shown), respectively.

[0091] In one implementation, SoC 102 may include kernel memory and user memory, with system space belonging to kernel memory and user space belonging to user memory. In some examples, SoC 102 may include a 4 gigabyte (GB) virtual address space, with the highest 1GB (e.g., from virtual address 0xC 0000000 to 0xFFFFFFFF) usable by the kernel (this 1GB can be kernel memory) and the lowest 3GB (e.g., from virtual address 0x00000000 to 0xBFFFFFFF) usable by various processes (this 3GB can be user memory). In some examples, the user memory in SoC 102 may be divided into multiple storage regions, each corresponding to a different user space. For example, SoC 102 may include user space A and user space B, and the user memory in the SoC may be divided into two storage regions, corresponding to user space A and user space B respectively.

[0092] Understandably, Figure 1 The structure shown does not constitute a limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown (e.g., more displays), or combine certain components (e.g., the Bluetooth chip 101 may be integrated into the SoC 102), or split certain components, or arrange different components. In other embodiments, the connection relationships of the components in the electronic device 100 may be different. For example, the displays 103 and 104 are not connected to the Bluetooth chip 101 through the SoC 102, but are directly connected to the Bluetooth chip 101. This application embodiment does not limit this. Figure 1 The components shown can be implemented in hardware, software, or a combination of both. For example, Bluetooth chip 101 is a software function module for Bluetooth, SoC 102 is a software processing module for audio services, game services, and other services, display screen 103 is a software setting module for display screen 103, and display screen 104 is a software setting module for display screen 104.

[0093] Figure 2 An exemplary schematic diagram of the hardware structure of an electronic device 100 is shown.

[0094] like Figure 2As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0095] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0096] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0097] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0098] The processor 110 may also include a memory for storing instructions and data. In one embodiment, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0099] In one embodiment, the processor 110 may include one or more interfaces. These interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0100] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging implementations, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging implementations, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device 100 via the power management module 141.

[0101] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In another embodiment, the power management module 141 can also be located within the processor 110. In yet another embodiment, the power management module 141 and the charging management module 140 can be housed in the same device.

[0102] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0103] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In another embodiment, the antenna can be used in conjunction with a tuning switch.

[0104] The mobile communication module 150 can provide wireless communication solutions for applications on the electronic device 100, including second-generation (2G), third-generation (3G), fourth-generation (4G), fifth-generation (5G), and sixth-generation (6G) mobile communication technologies. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In one embodiment, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In another embodiment, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0105] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In one embodiment, the modem processor may be a separate device. In another embodiment, the modem processor may be independent of the processor 110 and housed within the same device as the mobile communication module 150 or other functional modules.

[0106] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0107] In one embodiment, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0108] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0109] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In one embodiment, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0110] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0111] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, etc. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In one embodiment, the ISP can be set in the camera 193.

[0112] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In one embodiment, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0113] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0114] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0115] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0116] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0117] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.

[0118] Electronic device 100 can implement audio functions through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor. Electronic device 100 can also implement audio functions through connected Bluetooth devices, such as music playback and recording.

[0119] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In one embodiment, the audio module 170 can be located in the processor 110, or some functional modules of the audio module 170 can be located in the processor 110.

[0120] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0121] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0122] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 can be equipped with at least one microphone 170C. In another embodiment, electronic device 100 can be equipped with two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In yet another embodiment, electronic device 100 can also be equipped with three, four, or more microphones 170C, enabling sound signal collection, noise reduction, sound source identification, and directional recording, among other functions.

[0123] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In one embodiment, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In one embodiment, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0124] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. The barometric pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall effect sensor. The accelerometer sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The distance sensor 180F is used to measure distance. The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a photodetector, such as a photodiode. The LED may be an infrared LED. The ambient light sensor 180L is used to sense ambient light intensity. The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the collected fingerprint characteristics to achieve fingerprint unlocking, accessing application locks, fingerprint photography, fingerprint answering of calls, etc. The temperature sensor 180J is used to detect temperature. The bone conduction sensor 180M can acquire vibration signals.

[0125] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In another embodiment, touch sensor 180K can also be located on the surface of electronic device 100, in a different position than display screen 194.

[0126] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100. Motor 191 can generate vibration prompts. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, and also to indicate messages, missed calls, notifications, etc.

[0127] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. For example, a layered architecture software system can be the Android system, the Harmony operating system (OS), or other software systems. This application embodiment uses the layered architecture Android system as an example to illustrate the software structure of electronic device 100.

[0128] Figure 3 An exemplary schematic diagram of the software architecture of an electronic device 100 is shown.

[0129] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In one implementation, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0130] The application layer can include a series of application packages.

[0131] like Figure 3 As shown, the application package may include applications such as camera, gallery, music, video, games, SMS, calls, maps, navigation, Bluetooth, and browser. The applications in this embodiment can also be replaced with other software such as mini-programs or atomic services. In one embodiment, the electronic device 100 may include multiple displays. After installing application package A on any one display, all multiple displays can run application package A. This can be understood as the installed application package being "shared" by multiple displays. However, this is not a limitation. In another embodiment, after installing application package A on any one display, only that display can run application package A, and other displays cannot. This can be understood as the application packages on different displays being independent and not "shared." This embodiment does not limit this aspect.

[0132] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0133] like Figure 3 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0134] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0135] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0136] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0137] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0138] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0139] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, and flashing indicator lights.

[0140] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0141] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0142] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0143] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0144] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0145] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0146] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0147] A 2D graphics engine is a graphics engine for 2D drawing.

[0148] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0149] The following example, using a Bluetooth playback scenario, illustrates the workflow of the software and hardware of electronic device 100.

[0150] Assume electronic device 100 includes display screen A and display screen B. Electronic device 100 is connected to a Bluetooth headset via Bluetooth, and the Bluetooth headset is bound to display screen A. User A can wear the Bluetooth headset. When the touch sensor 180K on display screen A receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, touch operation timestamp, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the input event. Taking a single touch operation as an example, where the corresponding control is a playback control of an audio application, the audio application calls the interface of the application framework layer, and then calls the kernel layer to send audio data to the Bluetooth headset via the wireless communication module 160, causing the Bluetooth headset to output the audio data.

[0151] The following describes the application scenarios involved in the embodiments of this application and examples of user interfaces in those scenarios. The examples below use electronic device 100 as an example. Figure 1 The structure shown is illustrated using the example of the Bluetooth chip 101 of the electronic device 100 supporting a maximum of 2 connections (i.e., N is 2) and a maximum of 2 communications (i.e., P is 2).

[0152] Figure 4 An example diagram of a user interface is shown. Figure 4 The following explanation uses the example of display screens 103 and 104 having Bluetooth enabled but not connected to any Bluetooth devices.

[0153] like Figure 4As shown, the display screen 103 of the electronic device 100 can display a user interface 410, and the display screen 104 of the electronic device 100 can display a user interface 420. The user interface 410 may include a title "Bluetooth," indicating that the user interface 410 is a settings interface for the Bluetooth function. The user interface 410 may include a function name 411 (i.e., "Bluetooth"), a function description 412 (i.e., "Currently discoverable by nearby Bluetooth devices"), a function switch 413 (used to trigger the Bluetooth function on or off on the display screen 103), a device name 414 (i.e., the Bluetooth name "AAA" of the display screen 103), and a file control 415 (used to trigger the viewing of files received via Bluetooth on the display screen 103). When function switch 413 is in the ON state, it indicates that the Bluetooth function on display screen 103 is enabled. In this case, display screen 103 can display a list of available devices 416. The list of available devices 416 can include information on at least one Bluetooth device scanned by Bluetooth chip 101. For example, the Bluetooth devices shown in the list of available devices 416 include: a Bluetooth device named "CCC Bluetooth headset" (hereafter referred to as "CCC Bluetooth headset"), "DDD Bluetooth headset", "EEE Bluetooth headset", and "FFF gamepad". Electronic device 100 can connect to (including pair with) any Bluetooth device in the list of available devices 416 in response to a user operation. User interface 420 is similar to user interface 410, and also includes: function name 421 (i.e., "Bluetooth"), function description 422 (i.e., "Currently discoverable by nearby Bluetooth devices"), function switch 423 (used to trigger the Bluetooth function on or off on display 104, currently in the on state), device name 424 (i.e., the Bluetooth name of display 104 "BBB"), file control 425 (used to trigger viewing of files received via Bluetooth on display 104), and available device list 426. The description of available device list 426 is similar to that of available device list 416, and will not be repeated. The Bluetooth devices shown in available device list 416 in user interface 410 and available device list 426 in user interface 420 are the same, which can be understood as meaning that when display 103 and display 104 share Bluetooth chip 101, display 103 and display 104 have the same Bluetooth function.

[0154] The status of the Bluetooth function on the display screen of electronic device 100 (including on and off states; for example, the status of the Bluetooth function on display screen 103 is determined by the state of function switch 413) only indicates whether the Bluetooth function can be used on this display screen, and does not indicate the status of the Bluetooth function of electronic device 100 (i.e., the status of the Bluetooth function provided by Bluetooth chip 101, which can also be understood as the status of Bluetooth chip 101). For example, when the Bluetooth function on display screen 103 is off, the user cannot use the Bluetooth function on display screen 103 (e.g., cannot connect to Bluetooth devices through Bluetooth chip 101), but the Bluetooth function provided by Bluetooth chip 101 can be either on or off.

[0155] In one embodiment, whether the Bluetooth chip 101 is in a working state is determined by whether the Bluetooth function on the display screen is enabled. When at least one display screen on the electronic device 100 has its Bluetooth function enabled, the Bluetooth function provided by the Bluetooth chip 101 is enabled. Optionally, when all displays on the electronic device 100 have their Bluetooth functions disabled, the Bluetooth function provided by the Bluetooth chip 101 is disabled. Not limited to this, in another embodiment, the Bluetooth function provided by the Bluetooth chip 101 is always enabled.

[0156] This application embodiment illustrates the Bluetooth function setting interface with a function switch (used to trigger or turn off the Bluetooth function on the current display screen) as an example, but it should not be construed as limiting. In specific implementations, the Bluetooth function setting interface may not include the function switch. That is, any display screen of the electronic device 100 may provide the user with a way to turn the Bluetooth function on or off, or it may not provide such a way. In some examples, the Bluetooth function provided by the Bluetooth chip 101 is always on, and the display screen of the electronic device 100 may not provide the user with a way to turn the Bluetooth function on or off. For example, in the current case, the user interface 410 displayed on the display screen 103 does not include the function name 411, function description 412, and function switch 413.

[0157] In this embodiment of the application, the Bluetooth chip 101 of the electronic device 100 supports a maximum of 2 connections, which may include, but is not limited to, the following three situations:

[0158] Case 1: The Bluetooth chip 101 supports connecting a maximum of 2 Bluetooth devices that provide audio playback services (such as Bluetooth headphones and Bluetooth speakers used for outputting audio data).

[0159] Scenario 2: Bluetooth chip 101 can support connecting two or fewer Bluetooth devices for audio playback services, as well as connecting Bluetooth devices for other services. In other words, Bluetooth chip 101 can support more than two connections (i.e., the number of connected Bluetooth devices). For example, Bluetooth chip 101 can connect two Bluetooth headsets and one game controller. Assuming display screen 103 is paired with the game controller, display screen 103 can communicate game command data with the game controller to realize the application scenario of gaming services (users can play games on display screen 103 by operating the game controller).

[0160] Scenario 3: For any Bluetooth device in any service, Bluetooth chip 101 supports a maximum of 2 connections.

[0161] It should be noted that the Bluetooth chip 101 mentioned above supports connecting to Bluetooth devices, meaning that it can connect to a Bluetooth device and that the Bluetooth device is usable. The situation where it can connect to a Bluetooth device but the Bluetooth device is unusable does not fall within the scope of supported connection.

[0162] In this embodiment of the application, before the electronic device 100 connects to the Bluetooth device A, it can determine whether the Bluetooth chip 101 supports connecting to the Bluetooth device A based on the capabilities of the Bluetooth chip 101 (e.g., the three cases mentioned above), the service type of the Bluetooth device A to be connected, and the number and service type of the Bluetooth devices currently connected to the Bluetooth chip 101. If the determination result is yes, a connection between the Bluetooth chip 101 and the Bluetooth device A can be established, such as in the following scenarios 1, 2, 3, 4 and 5. Examples of scenarios where the determination result is no can be found in the following scenarios 6, 7, 8 and 9.

[0163] Scenario 1: After the Bluetooth function on display 103 is turned on (e.g.) Figure 4 Following the implementation shown, the electronic device 100 can receive user operations (e.g., operations performed on the Bluetooth device 1 shown on the display screen 103) that are applied to the Bluetooth device 1. Figure 4 The touch operation of Bluetooth device 1 in the available device list 416 of the user interface 410 (shown below) indicates that since Bluetooth chip 101 is not currently connected to any Bluetooth device (but Bluetooth chip 101 is capable of connecting to new Bluetooth devices), electronic device 100 can respond to the user operation by establishing a connection between Bluetooth chip 101 and Bluetooth device 1, and determining that Bluetooth device 1 and display screen 103 have a binding relationship. At this time, display screens 103 and 104 can display information about Bluetooth device 1. See the following example for a specific example. Figure 5 .

[0164] Figure 5 An example diagram of yet another user interface is shown. Figure 5The following example illustrates the situation where display screen 103 is bound to Bluetooth device 1, display screen 104 is not bound to a Bluetooth device, and Bluetooth device 1 is "CCC's Bluetooth headset".

[0165] like Figure 5 As shown, the display screen 103 of the electronic device 100 can display the user interface 510, and the display screen 104 of the electronic device 100 can display the user interface 520. User interface 510 and Figure 4 The user interface 510 shown is similar, except that it also includes a list of paired devices. This list can include information about Bluetooth devices (hereinafter referred to as paired devices of electronic device 100) that have a Bluetooth pairing relationship with electronic device 100, such as information 511 for Bluetooth device 1 (i.e., "CCC's Bluetooth headset"). The list of available devices 416 in user interface 510 does not include information about Bluetooth device 1. The device name 511A "CCC's Bluetooth headset" shown in information 511 is highlighted (e.g., in bold), and information 511 also includes a prompt message 511B ("Connected to AAA"), indicating that display screen 103 and "CCC's Bluetooth headset" are bound together. When display screen 103 and "CCC's Bluetooth headset" are bound, display screen 103 can communicate with "CCC's Bluetooth headset" via Bluetooth chip 101. For example, display screen 103 can act as a data source, sending audio data to "CCC's Bluetooth headset" to achieve audio data output from display screen 103 via "CCC's Bluetooth headset". User interface 520 and... Figure 4 The user interface 420 shown is similar, except that user interface 520 also includes a list of paired devices. This list includes, for example, information 521 for Bluetooth device 1 (i.e., "CCC's Bluetooth headset"). The available device list 426 in user interface 520 does not include information for Bluetooth device 1. The device name "CCC's Bluetooth headset" in information 521 is not highlighted (e.g., the font is not bold), indicating that display screen 104 and "CCC's Bluetooth headset" are not bound together. Information for any Bluetooth device in the paired device list displayed on display screens 103 and 104 can include settings options for that Bluetooth device. For example, information 511 for Bluetooth device 1 in user interface 510 includes settings option 511C, which can be used to trigger the display of the settings interface for "CCC's Bluetooth headset". Figure 5 It can be seen that a Bluetooth connection (including a Bluetooth pairing relationship) is established between electronic device 100 and Bluetooth device 1. Display screen 103 is currently bound to Bluetooth device 1, while display screen 104 is not currently bound to a Bluetooth device.

[0166] In this embodiment, the paired devices of the electronic device 100 may include devices currently connected to the electronic device 100 via Bluetooth, or devices that have previously established a Bluetooth connection with the electronic device 100. The electronic device 100 may or may not detect paired devices. The electronic device 100 may or may not connect to paired devices. For example, if the paired device is one that previously established a Bluetooth connection with the electronic device 100, the electronic device 100 may not detect or connect to that paired device. The electronic device 100 may store information about the paired devices, such as Bluetooth addresses and Bluetooth names.

[0167] Figure 5 The example of highlighting bold text is provided for illustration, but it is not intended to be limiting. "Highlighting" in this application embodiment may include, but is not limited to, at least one of the following: highlighting, bolding, italicizing, underlining, providing a background texture, displaying borders such as circles or rectangles around characters, using a different font color than other text, using a different font type than other text (e.g., KaiTi and SongTi are different font types), and using a different font size than other text.

[0168] Not limited to Figure 5 In another embodiment of the display method shown, the prompt information 511B displayed on the display screen 103 may also be "Bound to AAA". This application embodiment does not limit the specific content of the prompt information used to characterize the binding of the display screen and the Bluetooth device. In another embodiment, the prompt information 511B displayed on the display screen 103 may also not include the device name "AAA" of the display screen 103. That is, the prompt information 511B does not reflect the binding relationship between the display screen and the Bluetooth device, but only characterizes the connection between "CCC's Bluetooth headset" and the electronic device 100, for example, "Connected". This application embodiment does not limit the specific content of the prompt information used to characterize the connection between the electronic device and the Bluetooth device. In another embodiment, the information 521 displayed on the display screen 104 may also include prompt information, the description of which is similar to that of prompt information 511B, for example, the prompt information is "Connected" or "Connected to AAA". This prompt information may be the same as or different from prompt information 511B; for example, the prompt information is "Connected" while prompt information 511B is "Connected to AAA". In another implementation, the paired device list of display screen 104 may not include "CCC's Bluetooth headset", that is, the display screen that does not have a binding relationship with the Bluetooth device may not display the Bluetooth device in the paired device list.

[0169] Scenario 2: After the display screen 103 of electronic device 100 is paired with Bluetooth device 1 (e.g.) Figure 5 Following the implementation shown, the electronic device 100 can receive user operations (e.g., operations performed on the Bluetooth device 1 shown on the display screen 104) performed on the Bluetooth device 1. Figure 5 In response to the touch operation of information 521 in the user interface 520, the binding relationship between display screen 103 and Bluetooth device 1 is canceled, and the binding relationship between display screen 104 and Bluetooth device 1 is confirmed. At this time, the way display screen 103 and display screen 104 display Bluetooth device 1 will change. See the following for a specific example. Figure 6 .

[0170] Figure 6 An example diagram of yet another user interface is shown. Figure 6 The following example illustrates the situation where display screen 104 is bound to Bluetooth device 1, display screen 103 is not bound to a Bluetooth device, and Bluetooth device 1 is "CCC's Bluetooth headset".

[0171] like Figure 6 As shown, the display screen 103 of the electronic device 100 can display the user interface 610, and the display screen 104 of the electronic device 100 can display the user interface 620. User interface 610 and... Figure 5 The user interface 510 shown is similar, except that the display method of the information 511 of Bluetooth device 1 in the paired device list is different. In the paired device list of user interface 610, the device name "CCC's Bluetooth headset" in the information 511 of Bluetooth device 1 is not highlighted, and the information 511 does not include any prompts, indicating that the display screen 103 and "CCC's Bluetooth headset" are not paired. User interface 620 and Figure 5 The user interface 520 shown is similar, except that the display method of the information 521 of Bluetooth device 1 in the paired device list is different. In the paired device list of user interface 620, the device name 521A "CCC's Bluetooth headset" in the information 521 of Bluetooth device 1 is highlighted, and the information 521 includes the prompt information 521B "Connected to BBB", indicating that the display screen 104 and "CCC's Bluetooth headset" are paired. When the display screen 104 and "CCC's Bluetooth headset" are paired, the display screen 104 can communicate with "CCC's Bluetooth headset" through the Bluetooth chip 101. Figure 6 It can be seen that a Bluetooth connection (including a Bluetooth pairing relationship) is established between electronic device 100 and Bluetooth device 1. Among them, display screen 103 is not currently bound to Bluetooth device, while display screen 104 is currently bound to Bluetooth device 1.

[0172] Not limited to Figure 6In another embodiment of the illustrated implementation, the electronic device 100 can, in response to the user operation performed on the Bluetooth device 1 shown on the display screen 104, determine whether the display screen 103 is using the Bluetooth device 1 (i.e., the display screen 103 is communicating with the Bluetooth device 1 through the Bluetooth chip 101). When the determination result is yes, the electronic device 100 can maintain the binding relationship between the display screen 103 and the Bluetooth device 1. Optionally, the display screen 104 can display a prompt message (such as "Bluetooth device 1 is being used by another display screen and cannot connect"). When the determination result is no, the electronic device 100 can cancel the binding relationship between the display screen 103 and the Bluetooth device 1 and determine that the display screen 104 and the Bluetooth device 1 are bound together.

[0173] Scenario 3: After the display screen 103 of electronic device 100 is paired with Bluetooth device 1 (e.g.) Figure 5 Following the implementation shown, the electronic device 100 can receive user operations (e.g., operations performed on the Bluetooth device 2 (corresponding to the audio service) shown on the display screen 104. Figure 5 The touch operation of Bluetooth device 2 in the available device list 426 of the user interface 520 shown. Since Bluetooth chip 101 is currently only connected to one Bluetooth device 1, electronic device 100 can respond to the user operation by establishing a connection between Bluetooth chip 101 and Bluetooth device 2, and determining that Bluetooth device 2 and display screen 104 have a binding relationship. At this time, both display screen 103 and display screen 104 can display information about Bluetooth device 2. See the following for a specific example. Figure 7 .

[0174] Figure 7 An example diagram of yet another user interface is shown. Figure 7 The following example illustrates the situation: display screen 103 is bound to Bluetooth device 1, display screen 104 is bound to Bluetooth device 2, Bluetooth device 1 is "CCC's Bluetooth headset", and Bluetooth device 2 is "DDD's Bluetooth headset".

[0175] like Figure 7 As shown, the display screen 103 of the electronic device 100 can display the user interface 710, and the display screen 104 of the electronic device 100 can display the user interface 720. The user interface 710 and... Figure 5The user interface 510 shown is similar, both indicating that the display screen 103 and "CCC's Bluetooth headset" are paired. The difference is that the paired device list in user interface 710 also includes information 711 for Bluetooth device 2 (i.e., "DDD's Bluetooth headset"), while the available device list 416 in user interface 710 does not include information for Bluetooth device 2. The device name "DDD's Bluetooth headset" in information 711 is not highlighted, and information 711 does not include any prompts, indicating that the display screen 103 and "DDD's Bluetooth headset" are not paired. User interface 720 and Figure 5 The user interface 520 shown is similar, both indicating that the display screen 104 and the "CCC Bluetooth headset" are not paired. The difference is that the paired device list in the user interface 720 also includes information 721 for Bluetooth device 2 (i.e., "DDD's Bluetooth headset"), while the available device list 426 in the user interface 720 does not include information for Bluetooth device 2. The device name 721A "DDD's Bluetooth headset" is highlighted (e.g., in bold) in information 721, and information 721 also includes a prompt message 721B ("Connected to BBB"), indicating that the display screen 104 and the "DDD's Bluetooth headset" are paired. When the display screen 104 and the "DDD's Bluetooth headset" are paired, the display screen 104 can communicate with the "DDD's Bluetooth headset" via the Bluetooth chip 101. Figure 7 It can be seen that electronic device 100 has established a Bluetooth connection with Bluetooth device 1 and Bluetooth device 2 (including having a Bluetooth pairing relationship). Among them, display screen 103 is currently bound to Bluetooth device 1, and display screen 104 is currently bound to Bluetooth device 2. The current scenario can be understood as a "1 screen 1 connection + 1 screen 1 connection" scenario.

[0176] exist Figure 7 In the scenario shown, display screen 103 can communicate with paired Bluetooth device 1 via Bluetooth chip 101, and display screen 104 can communicate with paired Bluetooth device 2 via Bluetooth chip 101. For example, display screen 103 can output audio data via paired Bluetooth device 1, and display screen 104 can also output audio data via paired Bluetooth device 2. These two audio data streams belong to different data sources (i.e., display screen 103 and display screen 104). In this case, Bluetooth chip 101 maintains two communication channels, and the current scenario can be understood as a "1 screen 1 communication channel + 1 screen 1 communication channel" scenario. The data in these two communications can use different encoding methods or the same encoding method.

[0177] Scenario 4: After the display screen 103 of electronic device 100 is paired with Bluetooth device 1 (e.g.) Figure 5 Following the implementation shown, the electronic device 100 can receive user operations (e.g., operations performed on the Bluetooth device 2 shown on the display screen 103) that are applied to the Bluetooth device 2. Figure 5 Touch operation on Bluetooth device 2 in the available device list 416 of the user interface 510 (as shown in the image) responds to the user operation, canceling the binding relationship between display screen 103 and Bluetooth device 1 (optionally, electronic device 100 cancels the Bluetooth connection with Bluetooth device 1), and electronic device 100 can establish a connection with Bluetooth device 2 through Bluetooth chip 101, and determine that Bluetooth device 2 and display screen 103 have a binding relationship. At this time, both display screen 103 and display screen 104 can display information about Bluetooth device 2. See the following for a specific example. Figure 8 .

[0178] Figure 8 An example diagram of yet another user interface is shown. Figure 8 The following example illustrates the pairing of electronic device 100, which includes Bluetooth device 1 and Bluetooth device 2; display screen 103 is bound to Bluetooth device 2 but not to Bluetooth device 1; display screen 104 is not bound to any Bluetooth device; and Bluetooth device 1 is "CCC's Bluetooth headset" and Bluetooth device 2 is "DDD's Bluetooth headset".

[0179] like Figure 8 As shown, the display screen 103 of the electronic device 100 can display the user interface 810, and the display screen 104 of the electronic device 100 can display the user interface 820. User interface 810 and Figure 5 The user interface 810 shown is similar, except that the display method of the information 511 of Bluetooth device 1 in the paired device list is different, and the paired device list of user interface 810 also includes the information 811 of Bluetooth device 2. For a description of the information 511 in user interface 810, please refer to... Figure 6 The description of information 511 in the user interface 610 indicates that display screen 103 and "CCC's Bluetooth headset" are not paired. The device name "DDD's Bluetooth headset" is highlighted in information 811 of Bluetooth device 2, and information 811 includes the prompt "Connected to AAA," indicating that display screen 103 and "DDD's Bluetooth headset" are paired. When display screen 103 and "DDD's Bluetooth headset" are paired, display screen 103 can communicate with "DDD's Bluetooth headset" via Bluetooth chip 101. User interface 820 and... Figure 5 The user interface 520 shown is similar, both indicating that the display screen 104 and "CCC's Bluetooth headset" are not paired. The difference is that the paired device list of user interface 820 also includes information 821 for Bluetooth device 2. The device name "DDD's Bluetooth headset" in information 821 is not highlighted, and information 821 does not include any prompts, indicating that the display screen 104 and "DDD's Bluetooth headset" are not paired. From Figure 8It can be seen that electronic device 100 is paired with Bluetooth device 1 but not connected, and electronic device 100 is paired with Bluetooth device 2 and connected. Among them, display screen 103 is currently bound to Bluetooth device 2, and display screen 104 is not currently bound to Bluetooth device. The current scenario can be understood as a "1 screen 1-way connection + 1 screen 0-way connection" scenario.

[0180] from Figure 8 As can be seen from the description, the display screen 103 can only bind one Bluetooth device with audio service at a time. Therefore, when the display screen 103 is already connected to Bluetooth device 1 (i.e., Figure 5 In the scenario shown, if the electronic device 100 receives a user operation to connect the display screen 103 and the Bluetooth device 2, the electronic device 100 can cancel the original binding relationship between the display screen 103 and the Bluetooth device 1, and establish a new binding relationship between the display screen 103 and the Bluetooth device 2.

[0181] Not limited to Figure 8 In another embodiment of the illustrated implementation, after the display screen 103 and the Bluetooth device 1 are bound together, the electronic device 100 can respond to the user operation performed on the Bluetooth device 2 shown on the display screen 103 and display a prompt message indicating that the display screen 103 cannot bind a new Bluetooth device 2.

[0182] Not limited to Figure 8 In another embodiment of the illustrated implementation, it is assumed that the capability of Bluetooth chip 101 falls under case 3 described above. After display screen 103 and Bluetooth device 1 are bound together, electronic device 100 can respond to the user operation performed on Bluetooth device 2 shown on display screen 103 to determine whether the number of Bluetooth devices currently connected to Bluetooth chip 101 is less than N (i.e., 2). Since the current determination result is yes, electronic device 100 can establish a connection with Bluetooth device 2 through Bluetooth chip 101 and determine that Bluetooth device 2 and display screen 103 have a binding relationship. Furthermore, electronic device 100 will not cancel the binding relationship between display screen 103 and Bluetooth device 1. That is, at this time, display screen 103 is bound to two Bluetooth devices. For a specific example, see below. Figure 9 .

[0183] Figure 9 An example diagram of yet another user interface is shown. Figure 9 The following example illustrates the pairing of electronic device 100 with Bluetooth device 1 and Bluetooth device 2, display screen 103 with Bluetooth device 1 and Bluetooth device 2, and display screen 104 without Bluetooth device pairing, where Bluetooth device 1 is "CCC's Bluetooth headset" and Bluetooth device 2 is "DDD's Bluetooth headset".

[0184] like Figure 9As shown, the display screen 103 of the electronic device 100 can display the user interface 910, and the display screen 104 of the electronic device 100 can display the user interface 920. User interface 910 and... Figure 5 The user interface 510 shown is similar, both indicating that the display screen 103 and the "CCC Bluetooth headset" are paired. The difference is that the paired device list in the user interface 910 also includes information 911 about Bluetooth device 2. A description of information 911 can be found here. Figure 8 The description of information 811 in the user interface 810 shows that the display screen 103 and the "DDD Bluetooth headset" are paired. User interface 920 and Figure 5 The user interface 520 shown is similar, both indicating that the display screen 104 and the "CCC Bluetooth headset" are not paired. The difference is that the paired device list of user interface 820 also includes information 921 about Bluetooth device 2. A description of information 921 can be found here. Figure 8 The description of information 821 in the user interface 820 shows that the display screen 104 and the "DDD Bluetooth headset" are not paired. Figure 9 It can be seen that electronic device 100 is connected and paired with Bluetooth device 1 and Bluetooth device 2. Among them, display screen 103 is currently bound to Bluetooth device 1 and Bluetooth device 2, while display screen 104 is not currently bound to Bluetooth device. The current scenario can be understood as a "1 screen 2-way connection + 1 screen 0-way connection" scenario.

[0185] In one implementation, Figure 9 In the scenario shown, display screen 103 is bound to two Bluetooth devices. Display screen 103 can select the Bluetooth device to communicate with from these two devices in response to user operation. In some examples, display screen 103 can display information about Bluetooth device 1 and Bluetooth device 2. When the user selects Bluetooth device 1 on display screen 103, display screen 103 can communicate with Bluetooth device 1 through Bluetooth chip 101. When the user selects Bluetooth device 2 on display screen 103, display screen 103 can communicate with Bluetooth device 2 through Bluetooth chip 101. When the user selects both Bluetooth device 1 and Bluetooth device 2 on display screen 103, display screen 103 can display a prompt message (such as "Allow simultaneous communication with two Bluetooth devices?"). Display screen 103 can respond to the user operation applied to this prompt message and communicate with Bluetooth device 1 and Bluetooth device 2 through Bluetooth chip 101. In this case, Bluetooth chip 101 maintains two communication channels. The current scenario can be understood as a "1 screen 2-channel communication + 1 screen 0-channel communication" scenario.

[0186] Figure 9Taking the example of display screen 103 being able to bind 2 Bluetooth devices at the same time, in some other examples, display screen 103 can also bind 3 or more Bluetooth devices at the same time. However, it should be noted that the number of Bluetooth devices bound to display screen 103 and display screen 104 must be less than or equal to the maximum number of connections N supported by Bluetooth chip 101.

[0187] In one implementation, the electronic device 100 can, in response to a user operation on the settings interface of the display screen 103, enable the function of simultaneously binding multiple Bluetooth devices to the display screen 103. An example of a scenario after this function is enabled can be found here. Figure 9 An example of the settings interface described above can be found below. Figure 10 .

[0188] Figure 10 An example diagram of yet another user interface is shown.

[0189] like Figure 10 As shown, the display screen 103 of the electronic device 100 can display a user interface 1010. In some examples, the user interface 1010 can be a response of the electronic device 100 to an action. Figure 5 The settings option 511C is displayed in the user interface 510 shown. The user interface 1010 may include a title “CCC’s Bluetooth Headset,” indicating that the user interface 1010 is a settings interface for “CCC’s Bluetooth Headset.” The user interface 1010 may include settings information 1011 for the “Volume Sync” function, settings information 1012 for the “Multi-Device Connection” function, and an option 1013 for “Unpair.” Settings information 1011 may include a description of the “Volume Sync” function (“Bluetooth device volume synchronizes with cockpit”) and a switch control (for turning the “Volume Sync” function on or off). Settings information 1012 may include a description of the “Multi-Device Connection” function (“Can connect to AAA simultaneously with other Bluetooth devices”) and a switch control (for turning the “Multi-Device Connection” function on or off). In some examples, after the “Multi-Device Connection” function is enabled, “CCC’s Bluetooth Headset” can be simultaneously paired with a display screen with other Bluetooth devices. See the example above. Figure 9 Option 1013 is used to trigger the cancellation of the Bluetooth pairing relationship between electronic device 100 and "CCC's Bluetooth headset".

[0190] In other examples, when the "multi-device connection" function of the "CCC Bluetooth headset" is not enabled, the "CCC Bluetooth headset" cannot simultaneously pair with display screen 103 with other Bluetooth devices. See above for scenario examples. Figure 8 The explanation of the above-mentioned display prompt message (which indicates that the display screen 103 cannot bind the new Bluetooth device 2).

[0191] Not limited to the above embodiments, in another embodiment, regardless of whether the "multi-device connection" function of the "CCC Bluetooth headset" is enabled, the "CCC Bluetooth headset" can be simultaneously bound to the display screen 103 with other Bluetooth devices. Accordingly, the display screen 103 can be bound to multiple Bluetooth devices. However, when the "multi-device connection" function of the "CCC Bluetooth headset" is not enabled, the display screen 103 requires user confirmation before it can simultaneously bind the "CCC Bluetooth headset" to other Bluetooth devices. When the "multi-device connection" function of the "CCC Bluetooth headset" is enabled, the display screen 103 can be bound to multiple Bluetooth devices (including the "CCC Bluetooth headset") simultaneously without user confirmation. In some examples, it is assumed that the "multi-device connection" function of Bluetooth device 1 is not enabled. After the display screen 103 and Bluetooth device 1 are paired, the electronic device 100 can respond to the user operation performed on the Bluetooth device 2 shown on the display screen 103 and display a prompt message (such as "Allow simultaneous pairing of multiple Bluetooth devices?") on the display screen 103. The electronic device 100 will only execute subsequent processes (such as determining whether the number of Bluetooth devices currently connected to the Bluetooth chip 101 is less than N) when it receives a confirmation operation based on this prompt message (such as an operation on the "Allow" option in the prompt message). Otherwise, the display screen 103 cannot simultaneously pair Bluetooth device 1 and Bluetooth device 2. When the "multi-device connection" function of Bluetooth device 1 is enabled, the above prompt message will not be displayed. For details, please refer to [link to relevant documentation]. Figure 9 .

[0192] The above implementation is illustrated using the case where the judgment result is yes (i.e., the number of Bluetooth devices currently connected to Bluetooth chip 101 is less than 2). In another implementation, when the judgment result is no, display screen 103 cannot be simultaneously bound to Bluetooth device 1 and Bluetooth device 2. In some examples, Bluetooth chip 101 is connected to two Bluetooth devices, display screen 103 is bound to Bluetooth device 1, and display screen 104 is bound to Bluetooth device 2. Electronic device 100 can receive user operations (e.g., multi-device pairing operations) on Bluetooth device 3 shown on display screen 103 and determine whether the number of Bluetooth devices currently connected to Bluetooth chip 101 is less than N (i.e., 2). Since the current judgment result is no, Bluetooth chip 101 will not connect to Bluetooth device 3. Optionally, at this time, display screen 103 can display a prompt message, such as "The current number of connected devices has reached the maximum, and no new Bluetooth devices can be connected."

[0193] Scenario 5: Assume that the capability of Bluetooth chip 101 falls under scenario 2 above. The Bluetooth chip 101 of electronic device 100 is already connected to two Bluetooth devices providing audio services (e.g., Figure 7 The scene shown, or Figure 9 (The scene shown) Figure 9The following scenario will be used as an example for illustration. Electronic device 100 can receive user operations applied to Bluetooth device 3 displayed on screen 104. Assume Bluetooth device 3 is an "FFF gamepad". Although Bluetooth chip 101 is already connected to two Bluetooth devices, since these two devices correspond to audio services and the Bluetooth device 3 to be connected corresponds to gaming services, the capability of Bluetooth chip 101 is sufficient to support connecting the new Bluetooth device 3. Therefore, in response to the aforementioned user operation, electronic device 100 can connect to Bluetooth device 3 through Bluetooth chip 101 and confirm that Bluetooth device 3 is bound to screen 104. At this time, the paired device list in the Bluetooth settings interface displayed on screens 103 and 104 also includes information about Bluetooth device 3. Furthermore, Bluetooth device 3 is not highlighted on screen 103, but is highlighted on screen 104.

[0194] Scenario 6: Assume that the capability of Bluetooth chip 101 falls under scenario 2 above. The Bluetooth chip 101 of electronic device 100 is already connected to two Bluetooth devices providing audio services (e.g., Figure 7 The scene shown, or Figure 9 (The scene shown) Figure 9 The following scenario will be used as an example. Electronic device 100 can receive user operations applied to Bluetooth device 3 shown on display screen 104. Assume Bluetooth device 3 is "EEE's Bluetooth headset". Since Bluetooth chip 101 is already connected to two Bluetooth devices with audio services, and Bluetooth device 3, which is to be connected, also corresponds to an audio service, the capability of Bluetooth chip 101 cannot support connecting a new Bluetooth device with an audio service. Therefore, in response to the aforementioned user operation, electronic device 100 can determine that it cannot connect to Bluetooth device 3. At this time, display screen 104 can display a prompt message indicating that it cannot connect to Bluetooth device 3. For example, the prompt message could be: "AAA and BBB have reached the maximum of 2 connected audio devices. No new audio device can be connected. Please disconnect at least one audio device before connecting a new audio device."

[0195] Scenario 7: Assume that the capability of Bluetooth chip 101 falls under scenario 3 above. When Bluetooth chip 101 of electronic device 100 is already connected to two Bluetooth devices (i.e., the maximum number of connections for Bluetooth chip 101 is 2) (e.g.) Figure 7 The scene shown, or Figure 9 (The scene shown) Figure 9The following scenario will be used as an example. Electronic device 100 can receive user operations applied to Bluetooth device 3 shown on display screen 104. Assume Bluetooth device 3 is an "FFF gamepad". Since Bluetooth chip 101 is already connected to two Bluetooth devices, reaching its maximum supported connection, electronic device 100 determines that it cannot establish a connection with Bluetooth device 3 through Bluetooth chip 101. At this time, display screen 104 can display a prompt message indicating that Bluetooth device 3 cannot be connected. For example, the prompt message could be: "AAA and BBB have reached the maximum of 2 connected Bluetooth devices. No new device can be connected. Please disconnect at least one Bluetooth device before connecting a new device."

[0196] Scenario 8: The description of Scenario 8 is similar to that of Scenario 6 / Scenario 7 (Scenario 7 is used as an example here). The difference is that when the current judgment result is negative, the electronic device 100 can unconnect to a Bluetooth device, and the electronic device 100 can establish a connection with Bluetooth device 3 through Bluetooth chip 101, and determine that Bluetooth device 3 and display screen 104 have a binding relationship. The Bluetooth device to be unconnected can be any Bluetooth device connected to display screen 103 (i.e., the display screen that has not received user operation). Optionally, when display screen 103 is bound to multiple Bluetooth devices, the Bluetooth device to be unconnected can be the earliest connected device, the latest connected device, the device with the earliest last use time, or the device with the latest last use time among these multiple Bluetooth devices. It is not limited to these; the Bluetooth device to be unconnected can also be any Bluetooth device bound to display screen 104. This application embodiment does not limit the Bluetooth device to be unconnected. The Bluetooth device to be unconnected is the earliest connected device to display screen 103 (i.e., Bluetooth device 1, that is...). Figure 9 Taking the "CCC Bluetooth headset" shown as an example, after the electronic device 100 completes the above process, the Bluetooth chip 101 and the Bluetooth device 2 (i.e., Figure 9 The "DDD Bluetooth headset" shown), Bluetooth device 3 (i.e. Figure 9 The "EEE Bluetooth headset" shown has a connection relationship, and Bluetooth device 2 and display screen 103 are paired, while Bluetooth device 3 and display screen 104 are paired. At this time, in the Bluetooth settings interface displayed on display screens 103 and 104, the list of paired devices also includes information about Bluetooth device 3. Bluetooth device 3 is not highlighted on display screen 103, while Bluetooth device 2 is highlighted on display screen 104, and Bluetooth device 3 is highlighted on display screen 104, while Bluetooth device 2 is not highlighted on display screen 104.

[0197] Scenario 9: The description of Scenario 9 is similar to that of Scenario 6 / Scenario 7 (Scenario 7 is used as an example here). The difference is that when the current judgment result is negative, electronic device 100 can establish a connection with Bluetooth device 3 through Bluetooth chip 101 and determine that Bluetooth device 3 and display screen 104 have a binding relationship. However, Bluetooth device 3 is in an unavailable state, that is, display screen 104 cannot communicate with Bluetooth device 3 through Bluetooth chip 101. For example, the paired list displayed on display screen 104 includes information about Bluetooth device 3, and the information about Bluetooth device 3 and... Figure 7 Similar to the information 721 in the user interface 720 shown, optionally, the prompt information in the information of Bluetooth device 3 may also indicate that Bluetooth device 3 is unavailable, for example, including "Connected Bluetooth devices have reached 2 (maximum) and cannot be used". For example, when display screen 104 receives a user operation to trigger communication with Bluetooth device 3 (also referred to as triggering the use of Bluetooth device 3), the prompt information is displayed indicating that Bluetooth device 3 is unavailable.

[0198] In the above embodiments, among the Bluetooth devices connected to the Bluetooth chip 101 of the electronic device 100, except for unavailable Bluetooth devices (such as Bluetooth device 3 in scenario 9 above), all can communicate with the electronic device 100 (including display screen 103 and display screen 104) through the Bluetooth chip 101. For example, when the Bluetooth chip 101 supports N connections, it can support N communications. For example, as described in scenarios 1-4 above.

[0199] Not limited to this, in another embodiment, before the electronic device 100 transmits data A with the Bluetooth device through the Bluetooth chip 101, it can determine whether the Bluetooth chip 101 supports transmitting data A based on the capabilities of the Bluetooth chip 101, the type of data A to be transmitted by the Bluetooth chip 101, the type of data currently transmitted by the Bluetooth chip 101, and the number of Bluetooth devices that have currently transmitted data to the Bluetooth chip 101. The capability of the Bluetooth chip 101 means that it supports a maximum of two communication channels. The example is similar to the example of the electronic device 100 where the Bluetooth chip 101 supports a maximum of two connections. If the determination result is yes, the display screen can transmit data A with the bound Bluetooth device through the Bluetooth chip 101. If the determination result is no, data A cannot be transmitted through the Bluetooth chip 101, for example, a prompt message is displayed (such as "The current Bluetooth communication channels have reached the maximum (2), please close at least one channel before adding a new communication channel"). A specific example can be found in scenario 10 below.

[0200] Scenario 10: Assume that Bluetooth chip 101 has the capability to support communication of two or fewer audio data channels, and at least one other data channel. In some examples, Bluetooth chip 101 of electronic device 100 is not currently maintaining audio data communication or is maintaining communication of one audio data channel. When the user triggers the addition of a new audio data communication channel, since the capability of Bluetooth chip 101 is sufficient to support the addition of the new communication channel, Bluetooth chip 101 can add one new audio data communication channel. In other examples, Bluetooth chip 101 of electronic device 100 is currently maintaining communication of two audio data channels. When the user triggers the addition of a new audio data communication channel, since the capability of Bluetooth chip 101 cannot support more than two audio data communication channels, it is determined that no new audio data communication channel can be added. In still other examples, Bluetooth chip 101 of electronic device 100 is currently maintaining communication of two audio data channels. When the user triggers the addition of a new game command data communication channel, since the capability of Bluetooth chip 101 is sufficient to support the addition of a new non-audio data communication channel, Bluetooth chip 101 can add one new game command data communication channel.

[0201] Scenario 11: When Bluetooth chip 101 implements communication of different types of data, electronic device 100 can adjust the state of the communication path of Bluetooth chip 101 according to the current state (such as data type and communication status), and optionally adjust the state of the connection path of Bluetooth chip 101. In some examples, Bluetooth chip 101 has connected to two Bluetooth headsets and one game controller. For example: display screen 103 (e.g., passenger side screen) is bound to one Bluetooth headset, display screen 104 (e.g., rear screen) is bound to one Bluetooth headset and one game controller, and display screen 103 outputs audio data through the bound Bluetooth headset, and display screen 104 outputs audio data through the bound Bluetooth headset and transmits game command data with the bound game controller. Optionally, electronic device 100 can reduce the bit rate of the audio data output by at least one of the two Bluetooth headsets to improve the real-time performance of the game controller. Optionally, if electronic device 100 detects high latency in the game controller, electronic device 100 can cancel the output of at least one of the two Bluetooth headsets. Optionally, if the electronic device 100 detects high latency in the game controller, it can unconnect at least one of the two Bluetooth headsets. Optionally, if the electronic device 100 detects high latency in the game controller, the display screen 103 and / or the display screen 104 can display a prompt message.

[0202] The above embodiments exemplify some Bluetooth device connection scenarios. Next, some Bluetooth device deletion scenarios are exemplified, with specific examples shown in scenarios 12, 13, and 14 below. In this embodiment, deleting a Bluetooth device refers to unpairing the Bluetooth device.

[0203] Scenario 12: When display screen 103 is bound to Bluetooth device 1, but display screen 104 is not bound to Bluetooth device 1, for example, in the case of... Figure 5 In the scenario shown, electronic device 100 can receive user operations performed on display screen 104. This user operation is used to delete Bluetooth device 1. For example, this user operation is an operation (such as a touch operation) performed on the unpairing option in the settings interface of "CCC's Bluetooth Headset" displayed on display screen 104, where the description of the "CCC's Bluetooth Headset" settings interface and... Figure 10 The user interface 1010 shown is similar and will not be described again. In response to the user operation, the electronic device 100 can determine whether the Bluetooth device 1 is being used (e.g., whether the display 103 is outputting audio data through the Bluetooth device 1). In one embodiment, when the determination result is yes, the electronic device 100 can determine that the Bluetooth device 1 cannot be deleted. In this case, the display 104 can display a prompt message (e.g., "This device is being used by another display and cannot be deleted"). In another embodiment, when the determination result is no, the electronic device 100 can display a prompt message on the display 103 (e.g., "Another display requests the deletion of CCC's Bluetooth headset, do you agree?"). Optionally, the determination of whether to delete the Bluetooth device 1 is based on the user operation performed on the display 103. For example, the prompt message may also include a confirmation control and a cancellation control, whereby the confirmation control is used to trigger the deletion of the Bluetooth device 1, and the cancellation control is used to cancel the deletion of the Bluetooth device 1. Not limited to this, in other examples, the electronic device 100 may also determine whether a user operation on the prompt message has been received within a preset time after the prompt message is displayed, and determine whether to delete the Bluetooth device 1 based on the determination result. In other examples, when the above determination result is negative, the electronic device 100 may also directly delete the Bluetooth device 1. The embodiments of this application do not limit the processing method of the electronic device 100 when the above determination result is negative.

[0204] Not limited to the above embodiments, in another embodiment, the electronic device 100 may also delete the Bluetooth device 1 directly in response to the user operation on the display screen 104 without determining whether the Bluetooth device 1 is being used.

[0205] Scenario 13: When display screen 103 is bound to Bluetooth device 1, but display screen 104 is not bound to Bluetooth device 1, for example, in the case of... Figure 5In the scenario shown, electronic device 100 can receive a user operation applied to display screen 104, which is used to delete Bluetooth device 1. In response to the user operation, electronic device 100 can determine whether Bluetooth device 1 is bound to another display screen other than display screen 104. Since the determination result is yes, electronic device 100 can determine that Bluetooth device 1 cannot be deleted. At this time, display screen 104 can display a prompt message (such as "This device is already connected to another display screen and cannot be deleted").

[0206] Scenario 14: The paired and / or connected devices of electronic device 100 include Bluetooth device 1, but neither display screen 103 nor display screen 104 has a binding relationship with Bluetooth device 1. Electronic device 100 can receive user operations performed on display screen 103 / display screen 104 to delete Bluetooth device 1. In response to the user operation, electronic device 100 can determine whether Bluetooth device 1 is bound to the display screen. Since the determination result is no, electronic device 100 can delete Bluetooth device 1.

[0207] Not limited to the above embodiments, in another embodiment, the electronic device 100 may also directly delete the Bluetooth device 1 in response to the user operation without determining whether the Bluetooth device 1 is bound to a display screen other than the display screen receiving the user operation.

[0208] The following examples illustrate some scenarios where electronic device 100 and Bluetooth device reconnect after being disconnected, specifically in scenarios 15, 16, and 17 below.

[0209] Scenario 15: Electronic device 100 is initially in state 1: display screen 103 is bound to Bluetooth device 1, while display screen 104 is not bound to Bluetooth device 1 (e.g.) Figure 5 (As shown in the scenario), then in state 2: display 104 is bound to Bluetooth device 1 and display 103 is not bound to Bluetooth device 1 (e.g.) Figure 6 (The scenario shown is illustrated. For a detailed process example, please refer to...) Figure 5 and Figure 6 The explanation is as follows. Then, the Bluetooth connection between electronic device 100 and Bluetooth device 1 is disconnected (the reason for the disconnection is, for example, that Bluetooth device 1 or the Bluetooth function of electronic device 100 is turned off). When electronic device 100 and Bluetooth device 1 turn on their Bluetooth function later, electronic device 100 and Bluetooth device 1 can directly establish a Bluetooth connection, and electronic device 100 can determine that Bluetooth device 1 and display screen 104 have a binding relationship, without the user performing a connection operation / binding operation (such as selecting Bluetooth device 1 in the Bluetooth settings interface displayed on display screen 104). It can be understood that Bluetooth device 1 can connect to the display screen that was most recently bound.

[0210] Scenario 16: Display screen 103 is paired with a Bluetooth device, while display screen 104 is not paired with Bluetooth device 1, for example... Figure 5 The scenario is shown. Then, the Bluetooth connection between electronic device 100 and Bluetooth device 1 is disconnected. Subsequently, when electronic device 100 and Bluetooth device 1 enable Bluetooth, they can directly establish a Bluetooth connection. Furthermore, electronic device 100 can determine that Bluetooth device 1 and the preset display screen 104 have a binding relationship, without requiring the user to perform a connection / binding operation (such as selecting Bluetooth device 1 in the Bluetooth settings interface displayed on display screen 104). It can be understood that Bluetooth device 1 can be bound to the preset display screen of electronic device 100.

[0211] Scenario 17: Electronic device 100 is a vehicle / in-vehicle device, display screen 103 is the passenger-side screen, and display screen 104 is the rear-seat screen. Then, the Bluetooth connection between electronic device 100 and Bluetooth device 1 is disconnected. Subsequently, when electronic device 100 and Bluetooth device 1 enable Bluetooth, electronic device 100 can detect the location of Bluetooth device 1. When Bluetooth device 1 is in the area corresponding to the passenger-side screen (such as the passenger-side cabin), electronic device 100 can connect to Bluetooth device 1 and confirm that Bluetooth device 1 is bound to display screen 103. When Bluetooth device 1 is in the area corresponding to the rear-seat screen (such as the rear-seat cabin), electronic device 100 can connect to Bluetooth device 1 and confirm that Bluetooth device 1 is bound to display screen 104. This can be understood as Bluetooth device 1 being able to bind to the display screen in its designated area.

[0212] In one implementation, any one of the displays of the electronic device 100 (taking display 103 as an example) can communicate with multiple Bluetooth devices. However, only one of these Bluetooth devices can be connected to the electronic device 100 and bound to the display 103, while the other Bluetooth devices can be in a listening state (such as listening to the Bluetooth device bound to the display 103). In this case, the display 103 is still in the "1 screen, 1 communication" scenario.

[0213] Based on the above embodiments, a short-range communication method according to the embodiments of this application is described. This method can be applied to... Figure 1 The illustrated electronic device 100. This method can be applied to... Figure 2 The illustrated electronic device 100. This method can be applied to... Figure 3 The electronic device 100 shown is described below. The following process uses electronic device 100 as an example. Figure 1 The structure shown is used as an example for explanation.

[0214] Please see Figure 11 , Figure 11 This is a flowchart illustrating a Bluetooth connection process provided in an embodiment of this application. Figure 11The process of establishing a Bluetooth connection between electronic device 100 and Bluetooth device 1 will be illustrated as an example. This process may include, but is not limited to, the following steps:

[0215] S101: Bluetooth device 1 broadcasts via Bluetooth (e.g., broadcasts information about Bluetooth device 1).

[0216] S102: Display screen 103 scans for devices via Bluetooth and displays the Bluetooth settings interface (available devices include Bluetooth device 1).

[0217] S103: Display screen 104 scans for devices via Bluetooth and displays the Bluetooth settings interface (available devices include Bluetooth device 1).

[0218] S103 is an optional step.

[0219] In one implementation, display screen 103 and / or display screen 104 can scan for surrounding Bluetooth devices via Bluetooth chip 101 and display the scanned Bluetooth devices (i.e., available devices) in the Bluetooth settings interface. Optionally, after the Bluetooth function of display screen 103 and / or display screen 104 is enabled, it will scan for surrounding Bluetooth devices via Bluetooth chip 101. For specific examples, please refer to the above. Figure 4 , Figure 4 The available device list is used to display the scanned Bluetooth devices. In some examples, since Bluetooth device 1 is currently broadcasting via Bluetooth, displays 103 and 104 can scan for Bluetooth device 1 through Bluetooth chip 101, and displays 103 and 104 show the Bluetooth settings interface, where available devices may include Bluetooth device 1.

[0220] S104: When electronic device 100 receives a user operation on Bluetooth device 1 in the Bluetooth settings interface displayed on display screen 103, electronic device 100 connects and pairs with Bluetooth device 1 through Bluetooth chip 101.

[0221] In one implementation, Figure 11 Taking the example that Bluetooth chip 101 was not connected to any Bluetooth device before S104, Bluetooth chip 101 is sufficient to support the connection of a new Bluetooth device 1. Electronic device 100 can respond to user operation and establish a Bluetooth connection with Bluetooth device 1 through Bluetooth chip 101 (including pairing process and connection process).

[0222] After S104, a Bluetooth connection is established between Bluetooth chip 101 and Bluetooth device 1, which can also be described as Bluetooth chip 101 and Bluetooth device 1 having a connection relationship.

[0223] S105: Bluetooth chip 101 notifies display screen 103 that Bluetooth device 1 has connected.

[0224] In one implementation, Bluetooth chip 101 can notify SoC 102 that Bluetooth chip 1 has been connected, and SoC 102 then notifies display screen 103 that Bluetooth device 1 has been connected.

[0225] S106: Display 103 requests SoC 102 to bind Bluetooth device 1.

[0226] In one implementation, SoC 102 can be used to maintain the binding relationship between the display screen of electronic device 100 and Bluetooth devices (specifically, Bluetooth devices connected to Bluetooth chip 101). In one implementation, before S106, Bluetooth device 1 has a connection with Bluetooth chip 101 but no binding relationship with display screen 103 / display screen 104. Therefore, at this time, SoC 102 does not maintain the binding relationship between the display screen of electronic device 100 and Bluetooth device 1. Optionally, an example of the interface displayed on the display screen at this time can be found in [reference needed]. Figure 4 .

[0227] In one implementation, the display screen 103 can send a request message to the SoC 102, which requests a binding relationship between the display screen 103 and the Bluetooth device 1. Optionally, the request message includes information about the Bluetooth device 1.

[0228] S107: SoC102 updates the pairing relationship between the display and Bluetooth devices.

[0229] In one implementation, after receiving a request from the display screen 103, the SoC 102 can update the maintained binding relationship between the display screen and the Bluetooth device, that is, add a binding relationship between the display screen 103 and the Bluetooth device 1. In another implementation, after updating the binding relationship between the display screen and the Bluetooth device, the SoC 102 can notify the display screen 103 and the display screen 104 of the update result, for example, in S108 and S109, so that the display screen 103 and the display screen 104 can adjust the display interface according to the update result, for example, in S110 and S111.

[0230] After S107, Bluetooth device 1 and Bluetooth chip 101 are connected, and Bluetooth device 1 and display screen 103 are bound together.

[0231] Not limited to the description of S105-S107, in another implementation, after SoC102 obtains the access of Bluetooth chip 1, it can directly execute S107 without executing S105-S106.

[0232] S108: SoC102 notifies display 103 that display 103 and Bluetooth device 1 are paired.

[0233] S109: SoC102 notifies display 104 that display 103 and Bluetooth device 1 are paired.

[0234] S110: Display screen 103 displays the Bluetooth settings interface (including the highlighted Bluetooth device 1).

[0235] S110 is an optional step.

[0236] In one implementation, after S108, the display screen 103 can display a Bluetooth settings interface, in which Bluetooth device 1 is highlighted and is in a paired state. Here, "paired state" means that the display indicates that Bluetooth device 1 has been paired with Bluetooth chip 101. For example, when Bluetooth device 1 is displayed in the paired list, it can be considered that Bluetooth device 1 is in a paired state. The "highlighting" in this embodiment may include, but is not limited to, at least one of the following: highlighting, bolding, italicizing, underlining, providing a background texture, displaying borders such as circles or rectangles around characters, using a different font color than other text, using a different font type than other text (e.g., KaiTi and SongTi are different font types), and using a different font size than other text.

[0237] S111: Display screen 104 displays the Bluetooth settings interface (including Bluetooth device 1, which is not highlighted).

[0238] S111 is an optional step.

[0239] In one implementation, after S109, the display screen 104 may display a Bluetooth settings interface, in which Bluetooth device 1 is not highlighted. In some examples, Bluetooth device 1 in the Bluetooth settings interface may be in a paired state, while in other examples, it may not be in a paired state.

[0240] In some examples, Figure 11 The process shown is based on scenario 1 above, where Bluetooth device 1 is "CCC's Bluetooth headset". Interface examples for S102 and S103 can be found here. Figure 4 The user operation described in S104 is, for example, acting on... Figure 4 The operation of "CCC's Bluetooth headset" in the available device list 416 of the user interface 410 shown in S110, and the interface examples of S110 and S111 can be found here. Figure 5 .

[0241] The order of S108 and S109 is not limited, nor is the order of S110 and S111.

[0242] S112: Display screen 103 communicates with Bluetooth device 1 via Bluetooth chip 101.

[0243] S112 is an optional step.

[0244] In one implementation, after S107, when SoC 102 maintains the binding relationship between display screen 103 and Bluetooth device 1, display screen 103 can communicate with Bluetooth device 1 through Bluetooth chip 101 to realize the services of display screen 103. In some examples, Bluetooth device 1 is a headset, and display screen 103 can send audio data to Bluetooth device 1 to realize audio playback service of outputting audio data of display screen 103 through Bluetooth device 1. In other examples, Bluetooth device 1 is a game controller, and display screen 103 can receive game command data sent by Bluetooth device 1 to realize game service of operating game state of display screen 103 through Bluetooth device 1. In other examples, Bluetooth device 1 is a microphone, and display screen 103 can receive voice data sent by Bluetooth device 1 to realize voice assistant service of operating display screen 103 through Bluetooth device 1. The embodiments of this application do not limit the communication method and the implemented services.

[0245] exist Figure 11 In the method shown, display screens 103 and 104 can share a single Bluetooth chip 101. Both display screens 103 and 104 can display Bluetooth devices (such as Bluetooth device 1) scanned by the Bluetooth chip 101. User A using display screen 103 and user B using display screen 104 can both select Bluetooth device 1 to connect, ensuring that the Bluetooth functions provided to user A and user B are consistent. After display screen 103 and Bluetooth device 1 are paired, Bluetooth device 1 in a paired state can be displayed on both display screen 103 and display screen 104, instead of only displaying Bluetooth device 1 in a paired state on display screen 103 (in which case user B cannot obtain Bluetooth devices paired with displays other than display screen 103). Furthermore, display screen 103 highlights Bluetooth device 1, while display screen 104 does not highlight Bluetooth device 1. This allows user A, who uses display screen 103, to know that electronic device 100 has been paired with Bluetooth device 1, and that display screen 103 has been paired with Bluetooth device 1. It also allows user B, who uses display screen 104, to know that electronic device 100 has been paired with Bluetooth device 1, and that display screen 104 and Bluetooth device 1 are not paired, effectively improving the user experience.

[0246] Please see Figure 12 , Figure 12 This is a flowchart illustrating a process for updating a binding relationship provided in an embodiment of this application. Figure 12 The process will be illustrated using an example of updating the binding relationship of Bluetooth device 1.

[0247] Figure 12 The following example illustrates the connection between Bluetooth chip 101 and Bluetooth device 1, and the binding relationship between display screen 103 and Bluetooth device 1. For example, Figure 12 Previous execution Figure 11 The process is shown below.

[0248] This process may include, but is not limited to, the following steps:

[0249] S201: When electronic device 100 receives a user operation on Bluetooth device 1 in the Bluetooth settings interface displayed on display screen 104, display screen 104 requests SoC 102 to bind Bluetooth device 1.

[0250] S202: SoC102 updates the pairing relationship between the display and Bluetooth devices.

[0251] In one implementation, after receiving a request from the display screen 104, the SoC 102 can update the maintained binding relationship between the display screen and the Bluetooth device, that is, update the display screen bound to the Bluetooth device 1 from the display screen 103 to the display screen 104. In another implementation, after updating the binding relationship between the display screen and the Bluetooth device, the SoC 102 can notify the display screens 103 and 104 of the update result, for example, S203 and S204, so that the display screens 103 and 104 can adjust the display interface according to the update result, for example, S205 and S206.

[0252] After S202, Bluetooth device 1 is no longer bound to display screen 103, but to display screen 104. This can also be described as the binding relationship between Bluetooth device 1 and display screen 103 being deleted / cancelled, and a new binding relationship between Bluetooth device 1 and display screen 104 being established. At the same time, the connection relationship between Bluetooth device 1 and Bluetooth chip 101 remains unchanged.

[0253] S203: SoC102 notifies display 103 that display 104 and Bluetooth device 1 are paired.

[0254] S204: SoC102 notifies display 104 that display 104 and Bluetooth device 1 are paired.

[0255] S205: Display screen 103 displays the Bluetooth settings interface (including Bluetooth device 1, which is not highlighted).

[0256] S205 is an optional step, S205 and Figure 11 Similar to S111, see details. Figure 11 The explanation of S111 will not be repeated here.

[0257] S206: Display screen 104 displays the Bluetooth settings interface (including the highlighted Bluetooth device 1).

[0258] S206 is an optional step, S206 and Figure 11 Similar to the S110, see details. Figure 11The description of S110 will not be repeated here.

[0259] In some examples, Figure 11 The process shown is based on scenario 2 above, where Bluetooth device 1 is "CCC's Bluetooth headset". For an example of the interface prior to S201, please refer to [link / reference needed]. Figure 5 The user operation described in S201 is, for example, acting on... Figure 5 The operation of the "CCC Bluetooth headset" information 521 in the user interface 520 shown, and the interface examples of S205 and S206 can be found in [reference needed]. Figure 6 .

[0260] The order of S203 and S204 is not limited, nor is the order of S205 and S206.

[0261] S207: Display screen 104 communicates with Bluetooth device 1 via Bluetooth chip 101.

[0262] S207 is an optional step, S207 and Figure 11 Similar to S112, see details. Figure 11 The explanation of S112 will not be repeated here.

[0263] exist Figure 12 In the method shown, after Bluetooth chip 101 and Bluetooth device 1 establish a Bluetooth connection, when display screen 103 is paired with Bluetooth device 1, electronic device 100 can respond to user operation (to trigger connection to Bluetooth device 1) by user B using display screen 104, switching the display screen paired with Bluetooth device 1 to display screen 104. This can be understood as follows: when display screens 103 and 104 share a single Bluetooth chip 101, for Bluetooth device 1 connected to Bluetooth chip 101, either display screen 103 or display screen 104 can connect to and use Bluetooth device 1. Alternatively, the connection relationship between Bluetooth chip 101 and Bluetooth device 1 is fixed, while the pairing relationship between the display screen of electronic device 100 and Bluetooth device 1 is variable. Therefore, in response to user operation by user B, electronic device 100 can directly update the pairing relationship between the display screen and Bluetooth device 1 without needing to reconnect and pair with Bluetooth device 1, reducing device power consumption and improving user efficiency.

[0264] Please see Figure 13 , Figure 13 This is a flowchart illustrating another Bluetooth connection process provided in an embodiment of this application. Figure 13 The process is illustrated by taking the establishment of a Bluetooth connection between electronic device 100 and Bluetooth device 2 as an example.

[0265] Figure 13The following example illustrates the connection between Bluetooth chip 101 and Bluetooth device 1, and the binding relationship between display screen 103 and Bluetooth device 1. For example, Figure 13 Previous execution Figure 11 The process is shown below.

[0266] This process may include, but is not limited to, the following steps:

[0267] S301: Bluetooth device 2 broadcasts via Bluetooth (e.g., broadcasts information about Bluetooth device 2).

[0268] S302: Display screen 103 scans for devices via Bluetooth and displays the Bluetooth settings interface (available devices include Bluetooth device 2).

[0269] S303: Display screen 104 scans for devices via Bluetooth and displays the Bluetooth settings interface (available devices include Bluetooth device 2).

[0270] S302 is an optional step.

[0271] S302, S303 and Figure 11 Similar to S102 and S103, please refer to [link / reference needed]. Figure 11 Explanation of S102 and S103.

[0272] S304: When electronic device 100 receives a user operation on Bluetooth device 2 in the Bluetooth settings interface displayed on display screen 104, SoC 102 determines whether the number of existing connections is less than N.

[0273] In one implementation, when the electronic device 100 receives the aforementioned user operation, the SoC 102 can determine whether the number of existing connections (i.e., the number of connected Bluetooth devices) of the Bluetooth chip 101 is less than the maximum number of connections (i.e., N) supported by the Bluetooth chip 101. When the determination result is yes, the SoC 102 can determine that the Bluetooth chip 101 and the Bluetooth device 2 can establish a Bluetooth connection, for example, by executing S305. Figure 13 Let's take the above judgment result as an example for explanation. Figure 13 The following explanation will be based on the Bluetooth chip 101's capability as described in case 3 above (i.e., for any Bluetooth device in any service, the Bluetooth chip 101 can support a maximum of N connections).

[0274] S305: When the number of existing connections is less than N, electronic device 100 connects and pairs with Bluetooth device 2 through Bluetooth chip 101.

[0275] After S305, Bluetooth chip 101 and Bluetooth device 2 have a connection relationship.

[0276] S306: Bluetooth chip 101 notifies display screen 104 that Bluetooth device 2 has connected.

[0277] S306 and Figure 11 The description for S105 is similar; please refer to [link / reference needed]. Figure 11 Explanation of S105.

[0278] S307: Display 104 requests SoC 102 to bind Bluetooth device 2.

[0279] S307 and Figure 11 The description for S106 is similar; please refer to [link / reference needed]. Figure 11 Explanation of S106.

[0280] S308: SoC102 updates the pairing relationship between the display and Bluetooth devices.

[0281] In one implementation, after receiving a request from the display screen 104, the SoC 102 can add a binding relationship between the display screen 104 and the Bluetooth device 2 to the maintained binding relationships. In another implementation, after updating the binding relationship between the display screen and the Bluetooth device, the SoC 102 can notify the display screen 103 and the display screen 104 of the update result, implementing the process and... Figure 11 Similar to S108 and S109, the difference is that the notification content at this time is the pairing of display screen 104 and Bluetooth device 2. Display screens 103 and 104 can adjust the display interface according to the received update results, and the process is the same as... Figure 11 Similar to S110 and S111.

[0282] In some examples, the above Figure 13 The process shown is based on scenario 3 above, where Bluetooth device 1 is "CCC's Bluetooth headset" and Bluetooth device 2 is "DDD's Bluetooth headset". Interface examples for S302 and S303 can be found here. Figure 5 The user operation described in S304 is, for example, acting on... Figure 5 The operation of "DDD's Bluetooth headset" in the available device list 426 of the user interface 520 shown, and the interface examples of displays 103 and 104 after S308 can be found here. Figure 7 .

[0283] Not limited to the description of S306-S308, in another embodiment, after the electronic device 100 is connected and paired with the Bluetooth device 2 through the Bluetooth chip 101, it can directly execute S308 without executing S306-S307.

[0284] S309: Display 104 communicates with Bluetooth device 2 via Bluetooth chip 101.

[0285] S309 is an optional step, S309 and Figure 11 Similar to S112, see details. Figure 11The explanation of S112 will not be repeated here.

[0286] Not limited to Figure 13 In another implementation, as shown in S304, the electronic device 100 further determines whether to connect to the Bluetooth device to be connected based on the capabilities of the Bluetooth chip 101 (specifically, its ability to connect to Bluetooth devices), the service type of the Bluetooth device to be connected, the number of Bluetooth devices currently connected to the Bluetooth chip 101 (i.e., existing connections), and the service types of the Bluetooth devices currently connected to the Bluetooth chip 101. Examples of the capabilities of the Bluetooth chip 101 can be found in Situations 1, 2, and 3 above. Scenario examples can be found in Situations 1-9 above.

[0287] Not limited to the above Figure 13 In another implementation of the process shown, when the determination result of S304 is negative, SoC 102 can determine that Bluetooth chip 101 and Bluetooth device 2 cannot establish a Bluetooth connection. Therefore, S304 will not be executed. Optionally, the display screen 104 can display corresponding prompt information. See scenario 7 above for an example scenario. In another implementation, when the determination result of S304 is negative, SoC 102 can instruct Bluetooth chip 101 to disconnect from one Bluetooth device and instruct Bluetooth chip 101 to establish a connection with Bluetooth device 2. For example, in the above... Figure 13 Based on the illustrated process, Bluetooth chip 101 and Bluetooth device 1 disconnect, and correspondingly, Bluetooth device 1 and display screen 103 are also unbound. See scenario 8 above for an example of this scenario. In another implementation, when the determination result of S304 is negative, SoC 102 can determine that Bluetooth chip 101 and Bluetooth device 2 can establish a Bluetooth connection, but Bluetooth device 2 cannot be used. See scenario 9 above for an example of this scenario.

[0288] Not limited to the above Figure 13 In another implementation of the process shown, before the electronic device 100 receives a user operation to trigger the connection of a new Bluetooth device, there may be more Bluetooth devices connected to the Bluetooth chip 101. Specific scenario examples can be found in [link to relevant documentation]. Figure 7 , Figure 9 However, the embodiments in this application do not limit this.

[0289] exist Figure 13In the method shown, display screens 103 and 104 share a single Bluetooth chip 101. When electronic device 100 receives a user operation to trigger display screen 104 to bind Bluetooth device 2, it first needs to determine whether the number of existing connections of Bluetooth chip 101 (including the current connections of display screen 103 and display screen 104) is less than N. That is, it needs to determine whether Bluetooth chip 101 can support the addition of a new connection. If the result is yes, Bluetooth chip 101 will add a new connection (e.g., Bluetooth device 1), thereby ensuring that Bluetooth chip 101 can normally support the connection paths of display screens 103 and 104. In other words, both display screens 103 and 104 can normally connect and communicate with the bound Bluetooth device, avoiding the situation where the connection paths of other displays are abnormal and the Bluetooth function cannot be used normally when a new connection path is added, thus effectively improving the user experience.

[0290] Figures 11-13 The illustrated process takes the pairing relationship between the display screen and the Bluetooth device as an example, where communication between the display screen and the Bluetooth device can be achieved through the Bluetooth chip 101. In other embodiments, before the display screen and the paired Bluetooth device communicate, the electronic device 100 can first determine whether the existing communication path of the Bluetooth chip 101 is less than P, and determine whether the display screen can communicate with the paired Bluetooth device through the Bluetooth chip 101 based on the determination result. Specific examples can be found below. Figure 14 .

[0291] Please see Figure 14 , Figure 14 This is a flowchart illustrating a Bluetooth communication process provided in an embodiment of this application.

[0292] Figure 14 The following scenario serves as an example: Bluetooth chip 101 is connected to Bluetooth devices 1, 2, and 3; display screen 103 is paired with Bluetooth devices 1 and 2; and display screen 104 is paired with Bluetooth device 3. An example of the process by which electronic device 100 establishes connections and pairings with any of the Bluetooth devices can be found in [link to example]. Figure 11 .

[0293] This process may include, but is not limited to, the following steps:

[0294] S401: When electronic device 100 receives a user operation (used to trigger communication with Bluetooth device 3) on display screen 104, SoC 102 determines whether the existing communication path is less than P.

[0295] In one implementation, the SoC 102 can, in response to the user operation applied to the display screen 104, determine whether the number of existing communication paths (i.e., the number of connected and data-transmitting Bluetooth devices) of the Bluetooth chip 101 is less than the maximum number of communication paths (i.e., P) supported by the Bluetooth chip 101. In one case (i.e.) Figure 14 In scenario A), when the determination result is yes, SoC102 determines that a new communication path can be added, for example, by executing S402. In another scenario (i.e. Figure 14 In case B), when the judgment result is negative, SoC102 determines that no new communication path can be added, for example, by executing S403-S404.

[0296] S402: When the existing communication path is less than P, the display screen 104 communicates with the Bluetooth device 3 through the Bluetooth chip 101.

[0297] In one implementation, when the existing communication path is less than P, the display screen 103 can communicate with the Bluetooth device 3 through the Bluetooth chip 101 to realize the services of the display screen 103.

[0298] In some examples, assuming P is 2, the existing communication path before S401 can be 0, meaning the display 103 is not communicating with the paired Bluetooth device 1 or Bluetooth device 2 through the Bluetooth chip 101. However, this is not the only example. In other examples, the existing communication path before S401 can be 1, meaning the display 103 is communicating with the paired Bluetooth device 1 or Bluetooth device 2 through the Bluetooth chip 101. See above for specific examples. Figure 7 The scene shown.

[0299] S403: When the existing communication path is greater than or equal to P, SoC102 sends the corresponding notification to display screen 104.

[0300] In one implementation, the display screen 104 can obtain information from a notification sent by the SoC 102 that it is unable to communicate with the Bluetooth device 3 via the Bluetooth chip 101. Optionally, a prompt message can be displayed at this time, such as executing S404.

[0301] S404: Display screen 104 displays a prompt message (such as indicating that the current communication path has reached its maximum and communication with Bluetooth device 3 is not possible).

[0302] S404 is an optional step.

[0303] Not limited to Figure 14In another implementation, as shown in S401, the electronic device 100 further determines whether to add a new communication path based on the capabilities of the Bluetooth chip 101 (specifically, its ability to support simultaneous data transmission), the type of data to be transmitted (i.e., the type of service data of the display screen 104, which can also be understood as the service type of the Bluetooth device 3 to be communicated with), the number of Bluetooth devices currently transmitting data through the Bluetooth chip 101 (i.e., the existing communication paths of the Bluetooth chip 101), and the type of data currently transmitted through the Bluetooth chip 101 (which can also be understood as the service type of the Bluetooth devices currently communicating data through the Bluetooth chip 101). Examples of the capabilities of the Bluetooth chip 101 are similar to those in Situations 1, 2, and 3 described above. Scenario examples can be found in Situation 10 described above, but are not limited to it; for example, there are scenarios similar to Situations 1-9.

[0304] exist Figure 14 In the method shown, displays 103 and 104 share a single Bluetooth chip 101. When electronic device 100 receives a user operation to trigger the addition of a new communication path, it first needs to determine whether the existing communication paths of Bluetooth chip 101 (including the current communication paths of displays 103 and 104) are less than P, i.e., whether Bluetooth chip 101 can support the addition of a new communication path. If the result is yes, Bluetooth chip 101 will add a new communication path (e.g., Bluetooth device 3), thereby ensuring that Bluetooth chip 101 can normally support the communication paths of displays 103 and 104, allowing displays 103 and 104 to transmit data normally with the bound Bluetooth device. This avoids the situation where the communication paths of other displays are abnormal when a new communication path is added, preventing the Bluetooth function from being used normally, and effectively improving the user experience.

[0305] Please see Figure 15 , Figure 15 This is a flowchart illustrating the process of deleting a Bluetooth device according to an embodiment of this application.

[0306] Figure 15 The following example illustrates the connection between Bluetooth chip 101 and Bluetooth device 1, and the binding relationship between display screen 103 and Bluetooth device 1. For example, Figure 15 Previous execution Figure 11 The process is shown below.

[0307] This process may include, but is not limited to, the following steps:

[0308] S501: When electronic device 100 receives a user operation (for triggering the deletion of Bluetooth device) on display screen 104, SoC 102 determines whether Bluetooth device 1 is currently in use.

[0309] In one implementation, SoC 102 can respond to the user operation performed on display screen 104 to determine whether Bluetooth device 1 is currently being used by the paired display screen 103 (e.g., whether display screen 103 is transmitting service data with Bluetooth device 1). In some examples, assuming Bluetooth device 1 is a "CCC Bluetooth headset", the user operation performed on display screen 104 may include: operating the unpairing control in the settings interface of Bluetooth device 1 displayed on display screen 104, and the settings interface of Bluetooth device 1 and Figure 10 The user interface 1010 shown (where option 1013 is the unpairing control) is similar. In one case (i.e.) Figure 15 In scenario C), when the determination result is yes, SoC 102 determines that Bluetooth device 1 cannot be deleted, for example, by executing S502-S503. In another scenario (i.e. Figure 15 In case D), when the judgment result is negative, SoC102 determines to delete Bluetooth device 1, for example, by executing S504-S510.

[0310] S502: When display 103 is using Bluetooth device 1, SoC 102 sends a notification to display 104 that Bluetooth device 1 cannot be deleted.

[0311] In one implementation, the display screen 104 can obtain information from a notification sent by the SoC 102 that the Bluetooth device 1 cannot be deleted at present. Optionally, a prompt message can be displayed at this time, such as executing S503.

[0312] S503: Display screen 104 displays a prompt message (such as indicating that Bluetooth device 1 is being used and cannot be deleted).

[0313] S503 is an optional step.

[0314] S504: When Bluetooth device 1 is not in use, Bluetooth chip 101 and Bluetooth device 1 are unpaired.

[0315] S505: When Bluetooth chip 101 and Bluetooth device are successfully unpaired, Bluetooth chip 101 notifies SoC 102 that it has been unpaired with Bluetooth device 1, so that SoC 102 notifies display 103 and display 104 that it has been unpaired with Bluetooth device 1 (e.g., S507 and S508).

[0316] S506: SoC102 updates the pairing relationship between the display and Bluetooth devices.

[0317] In one implementation, after receiving a notification from the Bluetooth chip 101, the SoC 102 can delete the binding relationship related to the Bluetooth device 1, that is, delete the binding relationship between the display screen 103 and the Bluetooth device 1.

[0318] S507: SoC102 notifies display 103 that it has unpaired with Bluetooth device 1.

[0319] S508: SoC102 notifies display 104 that it has unpaired with Bluetooth device 1.

[0320] The order of S506, S507, and S508 is not specified.

[0321] S509: Display screen 103 displays the Bluetooth settings interface (excluding Bluetooth device 1, which is already paired).

[0322] S509 is an optional step.

[0323] In one implementation, after receiving a notification from the SoC 102, the display screen 103 can obtain that it has been unpaired with Bluetooth device 1. Therefore, when displaying the Bluetooth settings interface, Bluetooth device 1 may not be displayed, or Bluetooth device 1 may be displayed but not in a paired state.

[0324] S510: Display screen 104 displays the Bluetooth settings interface (excluding Bluetooth device 1, which is already paired).

[0325] S510 is an optional step.

[0326] The descriptions of S510 and S509 are similar and will not be repeated here.

[0327] In some examples, Figure 15 The process shown is based on scenario 12 mentioned above.

[0328] exist Figure 15 In the method shown, displays 103 and 104 share a single Bluetooth chip 101. Users can trigger the deletion of Bluetooth device 1 bound to display 103 from display 104. This means each screen of the electronic device 100 provides the function of deleting paired Bluetooth devices (including Bluetooth devices bound to other screens), making user operation more flexible. Furthermore, in response to user operation, the electronic device 100 first needs to determine whether Bluetooth device 1 is currently in use. If the result is yes, Bluetooth device 1 will not be deleted; only if the result is no will Bluetooth device 1 be deleted. This avoids accidental deletion of Bluetooth device 1 while in use, which could negatively impact the experience for user A using display 103. The function of deleting Bluetooth devices is more intelligent, improving the user experience.

[0329] Not limited to Figure 15In some embodiments, the process shown can be modified by determining whether Bluetooth device 1 is currently bound to a screen other than display screen 104. If the determination is yes, SoC 102 determines that Bluetooth device 1 cannot be deleted, and the execution process is similar to S502-S503. If the determination is no, SoC 102 determines that Bluetooth device 1 can be deleted, and the execution process is similar to S504-S510. Scenario examples can be found in scenarios 13 and 14 above.

[0330] The above implementation method is illustrated by taking the deletion of a Bluetooth device as an example of unpairing the Bluetooth device. In another implementation method, deleting a Bluetooth device can also mean disconnecting the Bluetooth device, but not unpairing it. The specific description is similar to that of the above implementation method and will not be repeated.

[0331] The above embodiments use Bluetooth communication technology as an example for illustration. The embodiments of this application can also be applied to other short-range communication technologies, such as Wi-Fi, NFC, IR, GNSS, SLE, SLB, etc. The embodiments of this application do not limit this.

[0332] The methods provided in the embodiments of this application can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, they can be implemented, in whole or in part, in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DWD), or a semiconductor medium (e.g., solid-state drive). (disk, SSD, etc.). The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it; although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A method of short range communication, characterized by, The method is applied to an electronic device, the electronic device comprising a short-distance communication chip, a first display screen and a second display screen, the first display screen and the second display screen both corresponding to the short-distance communication chip, the method comprising: receiving a first operation acting on the first display screen; in response to the first operation, establishing a connection through the short-distance communication chip and a first communication device, and binding through the first display screen and the first communication device; displaying a first interface on the first display screen and a second interface on the second display screen, the first interface comprising the first communication device in a paired state, the first communication device in the first interface being highlighted, the second interface comprising the first communication device in the paired state, the first communication device in the second interface not being highlighted.

2. The method of claim 1, wherein, The first interface and the second interface are setting interfaces of a short-distance communication function.

3. The method of claim 1 or 2, wherein, Before the receiving a first operation acting on the first display screen, the method further comprises: scanning the first communication device through the short-distance communication chip, displaying a third interface on the first display screen and a fourth interface on the second display screen; wherein the third interface comprises the first communication device in an unpaired state, the fourth interface comprises the first communication device in the unpaired state, and the first operation is an operation acting on the first communication device in the third interface.

4. The method of claim 1 or 2, wherein, The highlighting manner comprises at least one of the following: highlighting display, bold font display, italic font display, setting an underline, setting a background with a bottom line, displaying a frame around the character, the font color being different from that of other texts, the font type being different from that of other texts, and the font size being different from that of other texts.

5. The method of claim 1 or 2, wherein, The first interface comprises first prompt information, and / or the second interface comprises second prompt information, wherein: the first prompt information indicates that the first communication device is connected to the electronic device, and / or the first prompt information indicates that the first communication device is bound to the first display screen; the second prompt information indicates that the first communication device is connected to the electronic device, and / or the second prompt information indicates that the first communication device is bound to the first display screen.

6. The method of claim 1 or 2, wherein, The method further comprises: receiving a second operation acting on the first communication device in the second interface; in response to the second operation, canceling the binding through the first display screen and the first communication device, and binding through the second display screen and the first communication device; displaying a fifth interface on the first display screen and a sixth interface on the second display screen, the fifth interface comprising the first communication device in the paired state, the first communication device in the fifth interface not being highlighted, the sixth interface comprising the first communication device in the paired state, the first communication device in the sixth interface being highlighted.

7. The method of claim 1 or 2, wherein, The short-distance communication chip supports a number N of connected communication devices, N being an integer greater than 1; the method further comprises: When the short-distance communication chip and the S communication devices establish a connection, a third operation acting on the first display screen is received, the third operation being used to trigger connection of a second communication device, the second communication device being different from the S communication devices, S being a positive integer less than N; In response to the third operation, it is determined whether (S+1) is less than or equal to N; When (S+1) is less than or equal to N, a connection is established between the short-distance communication chip and the second communication device, and the first display screen and the second communication device are bound.

8. The method of claim 7, wherein, The method further includes: When (S+1) is greater than N, third prompt information is displayed on the first display screen, the third prompt information indicating that the second communication device cannot be connected; or, When (S+1) is greater than N, a connection is established between the short-distance communication chip and the second communication device, and the first display screen and the second communication device are bound; or, When (S+1) is greater than N, a connection is established between the short-distance communication chip and the second communication device, and the first display screen and the second communication device are bound, the second communication device bound by the first display screen being in an unusable state.

9. The method of claim 7, wherein, The short-distance communication chip supports a number of N of communication devices connected for audio services.

10. The method of claim 8, wherein, The short-distance communication chip supports a number of N of communication devices connected for audio services. The determination of whether (S+1) is less than or equal to N includes: When the S communication devices and the third communication device both correspond to audio services, it is determined whether (S+1) is less than or equal to N. The method further includes:

11. The method of claim 1 or 2, wherein, When the S communication devices correspond to audio services and the third communication device corresponds to other services other than audio services, in response to the third operation, a connection is established between the short-distance communication chip and the third communication device, and the first display screen and the third communication device are bound. The method further includes: A fourth operation acting on a fourth communication device in the second interface is received; In response to the fourth operation, a connection is established between the short-distance communication chip and the fourth communication device, and the second display screen and the fourth communication device are bound; A seventh interface is displayed on the first display screen, and an eighth interface is displayed on the second display screen, the seventh interface including the first communication device and the fourth communication device in a paired state, the first communication device in the seventh interface being highlighted, and the fourth communication device in the seventh interface not being highlighted, the eighth interface including the first communication device and the fourth communication device in a paired state, the first communication device in the eighth interface not being highlighted, and the fourth communication device in the eighth interface being highlighted.

12. The method of claim 1 or 2, wherein, The first interface includes first prompt information, the first prompt information indicates that the first communication device and the electronic device are connected, and indicates that the first communication device and the first display screen are bound; The method further includes: receiving a fifth operation on a fifth communication device in the first interface; in response to the fifth operation, the short-range communication chip and the first communication device cancel the connection, establish a connection through the short-range communication chip and the fifth communication device, and bind through the first display screen and the fifth communication device; display a ninth interface on the first display screen, the ninth interface includes the first communication device and the fifth communication device in the paired state, the first communication device in the ninth interface is not highlighted, the ninth interface does not include the first prompt information, the fifth communication device in the ninth interface is highlighted, the ninth interface includes fourth prompt information, the fourth prompt information indicates that the fifth communication device and the electronic device are connected, and indicates that the fifth communication device and the first display screen are bound.

13. The method of claim 1 or 2, wherein, The first interface includes first prompt information, the first prompt information indicates that the first communication device and the electronic device are connected, and indicates that the first communication device and the first display screen are bound; The method further includes: receiving a sixth operation on a sixth communication device in the first interface; in response to the sixth operation, establishing a connection through the short-range communication chip and the sixth communication device, and binding through the first display screen and the sixth communication device; display a tenth interface on the first display screen, the tenth interface includes the first communication device and the sixth communication device in the paired state, the first communication device and the sixth communication device in the tenth interface are highlighted, the tenth interface includes the first prompt information and fifth prompt information, the fifth prompt information indicates that the sixth communication device and the electronic device are connected, and indicates that the sixth communication device and the first display screen are bound.

14. The method of claim 13, wherein, The method further includes: when the multi-device connection function of the first communication device is turned on, establishing a connection through the short-range communication chip and the sixth communication device, and binding through the first display screen and the sixth communication device; The method further includes: when the multi-device connection function of the first communication device is turned off, the short-range communication chip and the first communication device cancel the connection, establish a connection through the short-range communication chip and the sixth communication device, and bind through the first display screen and the sixth communication device; or, when the multi-device connection function of the first communication device is turned off, display a sixth prompt information on the first display screen, the sixth prompt information indicates that the sixth communication device cannot be connected.

15. The method of claim 1 or 2, wherein, The method further includes: The first display screen communicates with the first communication device through the short-range communication chip.

16. The method of claim 1 or 2, wherein, The number of communication devices supported by the short-range communication chip for communication is P, P is a positive integer; the method further comprises: When the electronic device communicates with the T communication devices through the short-range communication chip, a seventh operation acting on the first display screen is received, the seventh operation is used to trigger the use of the first communication device, the first communication device is different from the T communication devices, T is a positive integer less than P; In response to the seventh operation, it is judged whether (T+1) is less than or equal to P; When (T+1) is less than or equal to P, the first display screen communicates with the first communication device through the short-range communication chip; When (T+1) is greater than P, seventh prompt information is displayed on the first display screen, the seventh prompt information indicates that the first communication device cannot be used.

17. The method of claim 16, wherein, The number of communication devices supported by the short-range communication chip for transmitting audio data is P; the judgment of whether (T+1) is less than or equal to P comprises: When the T communication devices and the first communication device all correspond to audio services, it is judged whether (T+1) is less than or equal to P; The method further comprises: When the T communication devices correspond to audio services and the first communication device corresponds to other services except audio services, in response to the seventh operation, the first display screen communicates with the first communication device through the short-range communication chip.

18. The method of claim 1 or 2, wherein, The method further comprises: An eighth operation acting on the second display screen is received, the eighth operation is used to trigger the deletion of the first communication device; In response to the eighth operation, it is judged whether the first display screen communicates with the first communication device through the short-range communication chip; When the first display screen communicates with the first communication device through the short-range communication chip, eighth prompt information is displayed on the second display screen, the eighth prompt information indicates that the first communication device cannot be deleted; When the first display screen does not communicate with the first communication device through the short-range communication chip, the short-range communication chip and the first communication device cancel pairing.

19. The method of claim 1 or 2, wherein, The method further comprises: A ninth operation acting on the second display screen is received, the ninth operation is used to trigger the deletion of the first communication device; In response to the ninth operation, it is judged whether the first display screen and the first communication device are bound; When the first display screen and the first communication device are bound, ninth prompt information is displayed on the second display screen, the ninth prompt information indicates that the first communication device cannot be deleted; When the first display screen and the first communication device are not bound, the short-range communication chip and the first communication device cancel pairing.

20. The method of claim 1 or 2, wherein, The method further comprises: The short-range communication chip and the first communication device cancel connection; When the short-range communication chip and the first communication device establish connection, the first display screen and the first communication device are bound.

21. The method of claim 1 or 2, wherein, The method further comprises: The short-range communication chip and the first communication device cancel connection; When the short-distance communication chip and the first communication device are connected, the first display screen or the second display screen is bound with the first communication device through the preset display screen of the electronic device.

22. The method of claim 1 or 2, wherein, The method further comprises: The short-distance communication chip and the first communication device are disconnected; When the short-distance communication chip and the first communication device are connected, the area where the first communication device is located is detected; When the first communication device is located in the area of the first display screen, the first display screen is bound with the first communication device; When the first communication device is located in the area of the second display screen, the second display screen is bound with the first communication device.

23. The method of claim 1 or 2, wherein, The electronic device comprises a first user space and a second user space, the first user space corresponds to the first display screen, and the second user space corresponds to the second display screen.

24. The method of claim 1 or 2, wherein, The electronic device is a vehicle or a vehicle-mounted device, the first display screen is a co-driver screen, and the second display screen is a rear-row screen.

25. An electronic device, comprising: The electronic device comprises a transceiver, a processor and a memory, the memory is used to store a computer program, and the processor invokes the computer program to execute the method in any one of claims 1-24.

26. A computer storage medium, comprising, The computer storage medium stores a computer program, and the computer program is executed by the processor to implement the method in any one of claims 1-24.

Citation Information

Patent Citations

  • Communication connection establishment method, bluetooth earphone, and readable storage medium

    WO2022048488A1

  • Display device and system

    WO2022139028A1

Cited By

  • Short-range communication method, electronic device and computer storage medium

    WO2025026085A1