Short-distance communication method, electronic equipment and computer storage medium

By introducing a shared short-range communication chip in multi-screen devices, the problem of low utilization of Bluetooth chips is solved, higher utilization and lower costs are achieved, and the normal progress of multi-screen services is supported.

CN119450420AActive Publication Date: 2025-02-14HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Among existing multi-screen devices, the utilization rate of Bluetooth chips is low, resulting in high equipment costs and the inability to effectively utilize multi-screen services.

Method used

By introducing a short-range communication method into the electronic device, multiple display screens allow a share of a short-range communication chip, and bind and communicate with the communication device through the chip to avoid the chip idle situation.

Benefits of technology

It improves the utilization rate of short-range communication chips, reduces equipment costs, and ensures that multi-screen devices can carry out multi-screen services normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119450420A_ABST
    Figure CN119450420A_ABST
Patent Text Reader

Abstract

The invention discloses a short-distance communication method, electronic equipment and a computer storage medium, the electronic equipment comprises a short-distance communication chip, a corresponding first display screen and a corresponding second display screen, and the method comprises the following steps: receiving a first operation acting on the first display screen; establishing connection with the first communication equipment through the short-distance communication chip, and binding with the first communication equipment through the first display screen; a first interface is displayed on the first display screen, a second interface is displayed on the second display screen, each of the first interface and the second interface comprises the first communication equipment in the paired state, the first communication equipment in the first interface is highlighted, and the first communication equipment in the second interface is not highlighted. According to the technical scheme, the first display screen and the second display screen can share the short-distance communication chip, the utilization rate of the short-distance communication chip is improved, meanwhile, a user can obtain the binding relation between the communication equipment and the display screens according to the display interface, and therefore it is guaranteed that the user can normally use the multi-screen equipment to conduct multi-screen services.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on July 31, 2023, with application number 202310963610.0, and the priority of the Chinese patent application with the invention name "Bluetooth usage method, electronic device and computer storage medium", all contents of which are incorporated by reference in this application. Technical Field

[0002] The present application relates to the field of computer technology, and in particular to a short-range communication method, an electronic device, and a computer storage medium. Background Art

[0003] At present, a multi-screen device can be equipped with multiple Bluetooth chips and assigned to different display screens. It can also be understood that each screen in the multi-screen device is independently configured with a corresponding Bluetooth chip. Each screen can be connected to a Bluetooth device such as a headset through the configured Bluetooth chip to achieve collaboration between each screen and the connected Bluetooth device. For example, the vehicle has a central control screen, a co-pilot screen and a rear screen. Each screen is configured with a Bluetooth chip. The Bluetooth chip configured for the central control screen can be used to connect to the driver's mobile phone, and the Bluetooth chip configured for the co-pilot screen can be used to connect to the headset, so that the user sitting in the co-pilot seat can listen to the audio related to the co-pilot screen through the headset. The rear screen is similar to the co-pilot screen. However, the utilization rate of the Bluetooth chip is low. For example, the following situation may occur: when the co-pilot screen outputs data through the connected Bluetooth device, the rear screen does not output data through the connected Bluetooth device, that is, when the Bluetooth chip configured for the co-pilot screen is used, the Bluetooth chip configured for the rear screen is not used, and the equipment cost is high. Summary of the invention

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

[0005] In a first aspect, the present application provides a short-range communication method, which is applied to an electronic device, wherein the electronic device includes a short-range communication chip, a first display screen and a second display screen, wherein the first display screen and the second display screen both correspond to the short-range communication chip, and the method includes: receiving a first operation acting on the first display screen; in response to the first operation, establishing a connection with a first communication device through the short-range communication chip, and binding the first communication device through the first display screen; displaying a first interface on the first display screen, and displaying a second interface on the second display screen, wherein the first interface includes the first communication device in a paired state, and the first communication device in the first interface is highlighted, and the second interface includes the first communication device in a paired state, and the first communication device in the second interface is not highlighted.

[0006] In some examples, the first communication device and the first display screen are bound, 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 implement the service 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; 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.

[0008] In the above method, the first display screen and the second display screen can share a short-range communication chip, and the display screen in need can be bound and communicated with the communication device through the short-range communication chip, so as to avoid the situation where part of the short-range communication chips are idle when one display screen is configured with a short-range communication chip, thereby improving the utilization rate of the short-range communication chip and reducing the cost. In addition, after the first communication device is bound to the first display screen, the first communication device in a paired state can be displayed on both the first display screen and the second display screen, rather than only displayed on the first display screen, which causes the user of the second display screen to be unable to obtain the paired communication device that is not bound to the second display screen. The first display screen bound to the first communication device will highlight the first communication device, and the second display screen that is not bound to the first communication device will not highlight the first communication device, so that the user can intuitively obtain whether the display screen and the first communication device have a binding relationship, thereby ensuring that the user can use the current display screen and the communication device bound to the current display screen to perform the corresponding business, that is, ensuring that the multi-screen device can perform multi-screen business normally, and improving the user experience.

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

[0010] In the above method, the user can check whether the first communication device in the paired state is highlighted through the setting 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 a possible implementation, before receiving the first operation acting on the first display screen, the method also 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 acting on the first communication device in the third interface.

[0012] In some examples, the third interface and the fourth interface are setting interfaces for a short-range communication function.

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

[0014] In a possible implementation, the highlighting method includes at least one of the following: highlighting, bold font display, italic font display, underline, background texture, borders around characters, font color different from the font color of other texts, font type different from the font type of other texts, and font size different from the font size of other texts.

[0015] In the above method, the electronic device has various ways of highlighting the first communication device, and the application scenarios are more extensive.

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

[0017] In some examples, when the first prompt information is "connected", it can indicate that the first communication device and the electronic device are connected; when the first prompt information 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 are 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, so that the user can more intuitively obtain whether the first communication device is connected to the electronic device and the display screen bound to the first communication device, thereby further improving the user experience.

[0019] In one possible implementation, the method also includes: receiving a second operation acting on the first communication device in the second interface; in response to the second operation, canceling the binding between the first communication device and the first communication device through the first display screen, and canceling the binding between the first communication device and the first communication device through the second display screen; displaying a fifth interface on the first display screen, and displaying a sixth interface on the second display screen, the fifth interface including the first communication device in a paired state, the first communication device in the fifth interface is not highlighted, and the sixth interface includes the first communication device in a paired state, and 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 (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, without the user having 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 to bind with the first communication device (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, and the user can modify the binding relationship between the display screen and the communication device through one operation, thereby reducing user operations and device power consumption, thereby further improving user experience.

[0021] In a possible implementation, the number of communication devices supported by the short-range communication chip for connection is N, where N is an integer greater than 1; the method also includes: when the short-range communication chip has established a connection with S communication devices, receiving a third operation acting on the first display screen, the third operation being used to trigger connection with a second communication device, the second communication device being different from the S communication devices, and S being 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 with the second communication device through the short-range communication chip, and binding the second communication device through the first display screen.

[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 (such as the third operation) acting on any one of the display screens (such as the first display screen) for triggering the connection of a new communication device, it will first determine whether the short-range communication chip can currently support the addition of a new connection path, that is, determine whether (S+1) is less than or equal to N. When the judgment result is yes, the electronic device will connect the new communication device through the short-range communication chip, thereby ensuring that the short-range communication chip can normally support the connection path between 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, resulting in the first display screen and the second display screen being unable to use the bound communication device normally, thereby reducing the occurrence of abnormal situations from the root and improving functional availability.

[0023] In a possible implementation, the method further includes: when (S+1) is greater than N, displaying a third prompt message on the first display screen, wherein the third prompt message indicates that the second communication device cannot be connected; or, when (S+1) is greater than N, the short-range communication chip and the third communication device among the S communication devices are disconnected, a connection is established between the short-range communication chip and the second communication device, and the second communication device is bound to the first display screen; or, when (S+1) is greater than N, a connection is established between the short-range communication chip and the second communication device, and the second communication device is bound to the first display screen, and the second communication device bound to the first display screen is 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 have multiple processing methods, thereby broadening the application scenarios while ensuring that the short-range communication chip can normally support the connection path between the first display and the second display.

[0025] In a possible implementation manner, the number of communication devices for which the short-range communication chip supports connected audio services is N, 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 up to N audio connections. When there are 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, determine whether (S+1) is less than or equal to N. When the judgment result is yes, the electronic device will connect to the communication device for the new audio service through the short-range communication chip, thereby ensuring that the short-range communication chip can normally support the audio connection paths of the first display screen and the second display screen, and ensuring that the multi-screen device can normally perform multi-screen audio services.

[0027] In one possible implementation, the number of communication devices whose connected audio services are supported by the short-range communication chip is N; 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, determining whether (S+1) is less than or equal to N; the method also includes: when the S communication devices correspond to audio services and the third communication device corresponds to services other than 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 and the third communication device.

[0028] In the above method, the short-distance communication chip supports a maximum of N audio connections. When there are S audio connections, if the user intends to add a new connection path, the electronic device can obtain the service of the new connection path and determine whether the short-distance communication chip can currently support the addition of the new connection path based on the acquisition result. It can be understood that, considering that the maximum number of connection paths supported by the short-distance communication chip for different services is different, it can be determined whether to add a new connection path based on the actual business situation, thereby ensuring that the short-distance communication chip can normally support the connection paths of the first display screen and the second display screen, while more effectively utilizing the short-distance communication chip, further improving the utilization rate of the short-distance communication chip.

[0029] In a possible implementation, the method also includes: receiving a fourth operation acting on a fourth communication device in the second interface; in response to the fourth operation, establishing a connection with the fourth communication device through the short-range communication chip, and binding with the fourth communication device through the second display screen; displaying a seventh interface on the first display screen, and displaying 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 in the seventh interface is highlighted, and the fourth communication device in the seventh interface is not 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 is not highlighted, and the fourth communication device in the eighth interface is highlighted.

[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, the second display screen and the fourth communication device can be bound in response to user operations, that is, the binding relationship between the first display screen and the second display screen does not affect each other. The first display screen and the second display screen can both implement corresponding services through the bound communication device, that is, they can independently implement their respective services without affecting each other, thereby ensuring that the multi-screen device can perform multi-screen services normally.

[0031] In a possible implementation, the first interface includes first prompt information, the first prompt information indicates that the first communication device is connected to the electronic device, and indicates that the first communication device is bound to the first display screen; the method also includes: receiving a fifth operation acting 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 with the fifth communication device through the short-range communication chip, and the fifth communication device is bound to the fifth communication device through the first display screen; a ninth interface is displayed on the first display screen, the ninth interface includes 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 information, the fifth communication device in the ninth interface is highlighted, and the ninth interface includes fourth prompt information, the fourth prompt information indicates that the fifth communication device is connected to the electronic device, and indicates that the fifth communication device is bound to the first display screen.

[0032] In the above method, after the first display screen and the first communication device are bound, 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, without the need for the user to manually 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 binding of the first display screen and the fifth communication device, thereby reducing user operations and further improving user experience.

[0033] In a possible implementation, the first interface includes first prompt information, the first prompt information indicates that the first communication device is connected to the electronic device, and indicates that the first communication device is bound to the first display screen; the method also includes: receiving a sixth operation acting 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 with the sixth communication device through the first display screen; displaying a tenth interface on the first display screen, the tenth interface includes 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 are highlighted, the tenth interface includes the first prompt information and the fifth prompt information, the fifth prompt information indicates that the sixth communication device is connected to the electronic device, and indicates that the sixth communication device is bound to the first display screen.

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

[0035] In a possible implementation, establishing a connection with the sixth communication device through the short-range communication chip, and binding with the sixth communication device through the first display screen, includes: when the multi-device connection function of the first communication device is turned on, establishing a connection with the sixth communication device through the short-range communication chip, and binding with the sixth communication device through the first display screen; the method also 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 are disconnected, a connection is established with the sixth communication device through the short-range communication chip, and binding with the sixth communication device through the first display screen; or, when the multi-device connection function of the first communication device is turned off, a sixth prompt message is displayed on the first display screen, and the sixth prompt message indicates that the sixth communication device cannot be connected.

[0036] In the above method, when the multi-device connection function of the first communication device is turned on, the first communication device can bind the display screen with other communication devices at the same time. The user can customize whether to turn on the function of binding multiple communication devices to the display screen to meet the user's personalized needs.

[0037] In a possible implementation manner, the method further includes: the first display screen communicates 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, the first display screen can communicate with the first communication device through the short-range communication chip to implement related services on the first display screen without the need for additional operations and processing logic, making the implementation simpler, reducing user operations, 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 also 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, and T being 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 (for example, the seventh operation, which is used to trigger the addition of a new communication path between the first display screen and the first communication device) acting on any one of the display screens (for example, the first display screen), it will first determine whether the short-range communication chip can currently support the addition of a new communication path, that is, determine whether (T+1) is less than or equal to P. When the judgment result is yes, the short-range communication chip will add a new communication path, thereby ensuring that the short-range communication chip can normally support the communication paths of the first display screen and the second display screen, avoiding abnormalities in the existing communication path or the new communication path when adding a new communication path, resulting in the first display screen and the second display screen being unable to use the bound communication device normally, thereby reducing the occurrence of abnormal situations from the root and improving functional availability.

[0041] In one possible implementation, the number of communication devices that the short-range communication chip supports for transmitting audio data is P; the determination of whether (T+1) is less than or equal to P includes: when the T communication devices and the first communication device both correspond to audio services, determining whether (T+1) is less than or equal to P; the method also includes: when the T communication devices correspond to audio services and the first communication device corresponds to services other than 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 at most P-channel audio communication. When there are T-channel audio communication, if the user intends to add a new communication channel, the electronic device can obtain the service of the new communication channel and judge whether the short-range communication chip can currently support the addition of the new communication channel based on the acquisition result. It can be understood that, considering that the maximum number of communication channels supported by the short-range communication chip for different services is different, it can be judged whether to add a new communication channel according to the actual business situation, thereby ensuring that the short-range communication chip can normally support the communication channels of the first display screen and the second display screen, while more effectively utilizing the short-range communication chip, further improving the utilization rate of the short-range communication chip.

[0043] In one possible implementation, the method also includes: receiving an eighth operation acting on the second display screen, the eighth operation being used to trigger 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, unpairing the short-range communication chip and the first communication device.

[0044] In some examples, after the second display screen is bound to the communication device, the electronic device may also receive a user operation acting on the first display screen for triggering the deletion of the communication device, and in response to the user operation, determine whether the second display screen communicates with the communication device through the short-range communication chip. When the judgment result is yes, the first display screen displays a prompt message that the communication device cannot be deleted, and when the judgment result is no, the electronic device deletes the communication device. It can be understood that the first display screen and the second display screen share a short-range communication chip, and the user can operate any display screen (such as the second display screen) to trigger the deletion of the communication device bound to the other display screen (such as the first communication device bound to the first display screen), that is, each display screen of the electronic device provides the function of deleting the communication device, while meeting the needs of the user of each screen.

[0045] In the above method, when the electronic device receives a user operation for triggering the deletion of a communication device, it will first determine whether the communication device is used by the bound display screen (that is, whether the two are communicating). If the judgment result is yes, the communication device will not be deleted. When the judgment result is no, the communication device will be deleted to avoid the communication device being accidentally deleted during use, resulting in a bad experience for the user using the communication device. The function of deleting the communication device is more intelligent.

[0046] In one possible implementation, the method also includes: receiving a ninth operation acting on the second display screen, the ninth operation being used to trigger 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 and the first communication device.

[0047] In the above method, when the electronic device receives a user operation for triggering the deletion of a communication device, it will first determine whether the communication device is bound to a display screen other than the current display screen. If the judgment result is yes, the communication device will not be deleted. When the judgment result is no, the communication device will be deleted to avoid the communication device being accidentally deleted when bound to other display screens, resulting in a bad experience for users of the display screen bound to the communication device. The function of deleting the communication device is more intelligent.

[0048] In a possible implementation, the method further includes: canceling the connection between the short-range communication chip and the first communication device; and binding the first display screen and 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 disconnected, the next time the connection is established again, the first communication device can be directly bound to the display screen that was bound the last time without the need for manual operation by the user. The binding function of short-range communication is more intelligent and improves the user experience.

[0050] In a possible implementation, the method further includes: canceling the connection between the short-range communication chip and the first communication device; when establishing a connection between the short-range communication chip and the first communication device, binding the first communication device through a display screen preset by the electronic device, and the preset display screen is 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 disconnected, the first communication device can be directly bound to the preset display screen when the connection is established again next time, without the need for manual operation by the user, thereby improving the user experience.

[0052] In a possible implementation, the method also includes: canceling the connection between the short-range communication chip and 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; when the first communication device is located in the area of ​​the first display screen, binding the first communication device through the first display screen; when the first communication device is located in the area of ​​the second display screen, binding the first communication device through the second display screen.

[0053] In the above method, after the connection between the first communication device and the electronic device is disconnected, the next time the connection is established again, the electronic device can detect the area where the first communication device is located, and determine the binding between the first communication device and the display screen in the area, without the need for manual operation by the user. The binding function of short-range communication is more intelligent, improving the user experience.

[0054] In a possible implementation manner, the electronic device includes 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.

[0055] In the above method, the electronic device can manage different display screens through different user spaces, so that when multiple display screens share a short-range communication chip, the multiple display screens can independently perform their own short-range communication services, thereby ensuring the user experience of users of each display screen.

[0056] In a possible implementation, the electronic device is a vehicle or a vehicle-mounted device, the first display screen is a co-pilot screen, and the second display screen is a rear screen.

[0057] In the above method, the co-pilot screen and the rear screen in the vehicle or the vehicle-mounted device can share a short-range communication chip, avoiding the situation where the co-pilot screen and the rear screen are independently configured with short-range communication chips, and part or all of the short-range communication chips are idle due to the rare scenario of more than two people using them at the same time. This effectively improves the utilization rate of the short-range communication chip of the vehicle or the vehicle-mounted device, and also ensures the user experience in the vehicle.

[0058] In a second aspect, the present 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, so that the electronic device executes the short-range communication method provided in the first aspect and any one of the embodiments of the first aspect.

[0059] In a third aspect, the present application provides a computer storage medium storing a computer program, which, when executed by a processor, is used to execute the short-range communication method provided in the first aspect and any one of the embodiments of the first aspect.

[0060] In a fourth aspect, the present application provides a computer program product. When the computer program product runs on a device, the device executes the short-range communication method provided in the first aspect and any one of the embodiments of the first aspect.

[0061] In a fifth aspect, the present application provides an electronic device, the electronic device comprising a method or device for executing any aspect or implementation of the present application. The electronic device is, for example, a chip.

[0062] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single implementation. On the contrary, it is understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one implementation. Therefore, the description of technical features, technical solutions or beneficial effects in this application does not necessarily refer to the same implementation. Furthermore, the technical features, technical solutions and beneficial effects described in this application can also be combined in any appropriate 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 specific implementation. In other implementations, additional technical features and beneficial effects can also be identified in specific implementations that do not embody all implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The following is an introduction to the drawings used in this application.

[0064] Figure 1 It is a hardware structure diagram of an electronic device provided by the present application;

[0065] Figure 2 It is a schematic diagram of the hardware structure of another electronic device provided by the present application;

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

[0067] Figure 4-Figure 10 is a schematic diagram of some user interfaces provided by this application;

[0068] Fig.11 It is a flowchart of a Bluetooth connection process provided by this application;

[0069] Fig.12 This is a flowchart of a binding relationship update process provided by the present application;

[0070] Fig.13 This is another flowchart of a Bluetooth connection process provided by the present application;

[0071] Fig.14 It is a flowchart of a Bluetooth communication process provided by this application;

[0072] Fig.15 This is a flowchart of a process for deleting a Bluetooth device provided by this application. DETAILED DESCRIPTION

[0073] The technical solution in the embodiment of the present application will be described below in conjunction with the accompanying drawings. In the description of the embodiment of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiment of the present application, "multiple" means two or more than two.

[0074] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0075] The embodiment of the present application proposes a short-range communication method, which is applied to an electronic device. The electronic device may include M display screens (M is an integer greater than 1), and the M display screens may share a short-range communication chip. Any one of the M display screens may be connected and communicated with at least one communication device through the short-range communication chip, thereby avoiding the following situation: when the M display screens are independently configured with corresponding short-range communication chips, some of the screens are connected and communicated with the communication device through the configured short-range communication chips (the configured Bluetooth chips are being used at this time), and the short-range communication chips configured for other screens are not used. The present application can effectively improve the utilization rate of short-range communication chips and reduce costs.

[0076] Furthermore, for the scenario where these M display screens share a short-range communication chip to connect to a communication device, the electronic device can be provided with corresponding processing rules, such as display rules, rules for connecting to communication devices (which may be referred to as connection rules), rules for connecting communication devices to transmit data (which may be referred to as communication rules), and rules for deleting communication devices (which may be referred to as deletion rules), to ensure that different display screens in this scenario can independently implement services (such as outputting audio data) without affecting each other, and also ensure the use effect of the services on the display screen, thereby ensuring the user experience. Examples of display rules and connection rules can be found below. Figure 11-13 , an example of communication rules can be found below Fig.14 For an example of deleting a rule, see Fig.15 .

[0077] The short-distance communication chip in the embodiment of the present application can use short-distance wireless communication technology to realize related functions. Short-distance wireless communication technology may include technology that supports wireless short-distance communication. Wireless short-distance communication includes that the communicating parties transmit information through radio waves and the transmission distance is within a relatively short range (for example, within 100 meters). It can be called short-distance wireless communication, including but not limited to Bluetooth technology, Wireless Fidelity (Wireless Fidelity, Wi-Fi) technology, Near Field Communication (Near Field Communication, NFC) technology, Wi-Fi Aware (Wi-Fi Aware) technology, general short-distance communication technology, Sparklink Alliance-standard short-distance wireless communication technology (for example, Sparklink low energy (SLE), Sparklink basic (SLB)), etc. The short-distance communication chip can also be named according to the short-distance wireless communication technology it supports. For example, a short-distance communication chip that supports Bluetooth technology can be called a Bluetooth chip. For another example, a short-distance communication chip that supports the short-distance wireless communication technology specified by the Sparklink Alliance can be called a Sparklink chip. Short-range wireless communication can be widely used in file transfer, remote control, screen projection, perception of surrounding devices (such as smart vehicles, smart terminal devices, smart home devices and smart manufacturing equipment, etc.), etc.

[0078] For the sake of convenience, the following embodiments are described using 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] Exemplarily, the electronic device is a vehicle / vehicle-mounted device, which may include a display screen for the driver's seat, a display screen for the co-pilot seat (which may be referred to as the co-pilot screen), and a display screen for the rear seats (which may be referred to as the rear screen). The display screen for the driver's seat includes, for example, a central control screen, an instrument screen, and an augmented reality (AR)-head-up display (HUD). There may be one or more rear screens. Conventional Bluetooth chips support up to 2-way audio data communication, and in the vehicle usage scenario, the co-pilot screen and the rear screen are mostly used by one or two people at the same time (for example, outputting audio data through a connected Bluetooth device), and it is rare for three or more people to use them at the same time. If each screen is independently configured with a Bluetooth chip, it is easy for some Bluetooth chips to be idle. In the embodiment of the present application, the co-pilot screen and the rear screen of the electronic device can share a Bluetooth chip, and use corresponding processing rules, which can improve the utilization rate of the Bluetooth chip while ensuring the experience of users in the vehicle.

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

[0081] In the embodiment of the present application, the electronic device can be connected to other electronic devices through a Bluetooth chip. For the electronic device, the other electronic device can be called a Bluetooth device. The Bluetooth device can be a headset, a microphone, smart glasses, a game controller, etc., but is not limited thereto. It can also be the electronic device in the above examples. The embodiment of the present application does not impose any special restrictions on the specific type of the Bluetooth device.

[0082] Figure 1 A schematic diagram of the hardware structure of an electronic device 100 is exemplarily 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 may be connected to the Bluetooth chip 101, the display screen 103 and the display screen 104 respectively.

[0084] The Bluetooth chip 101 can be used for short-range wireless communication. The electronic device 100 can be connected and communicated with at least one Bluetooth device through the Bluetooth chip 101. It can be understood that the bandwidth capacity of the Bluetooth chip is limited. For the convenience of explanation, the Bluetooth chip 101 in the embodiment of the present application supports up to N-way connection (i.e., it can connect up to N Bluetooth devices, which can also be referred to as the maximum connection path that can be supported is N), and supports up to P-way communication / transmission (i.e., it supports up to P connected Bluetooth devices at the same time, which can also be referred to as the maximum communication path that can be supported is P), N and P are positive integers, and P is less than or equal to N. It can be understood that in actual scenarios, different types of services have different requirements for Bluetooth bandwidth capabilities. Therefore, when connecting Bluetooth devices of different types of services, the above N can be different. For example, for Bluetooth devices of audio playback services (such as Bluetooth headsets, Bluetooth speakers, etc.), the Bluetooth chip 101 supports up to 2 connections. Optionally, when the Bluetooth chip 101 has been connected to 2 Bluetooth devices of audio playback services, it can also support the connection of at least 1 Bluetooth device of game services (such as game controllers). Similarly, when transmitting data of different types of services, the above P may be different. For example, the Bluetooth chip 101 supports the transmission of up to 2 channels of audio data. Optionally, when the Bluetooth chip 101 already has the transmission of 2 channels of audio data, at least 1 channel of game command data transmission may be added. For another example, the Bluetooth chip 101 supports the transmission of up to 1 channel of call data, which may be the call data of a cellular call or the call data of a network call.

[0085] SoC102 can be used to manage the binding relationship between the display screen of the electronic device 100 and the Bluetooth device. Any display screen and any Bluetooth device have a binding relationship (also referred to as binding), which may include: the electronic device 100 (including the display screen) establishes a Bluetooth connection with the Bluetooth device through the Bluetooth chip 101 (also referred to as having a connection relationship), and the display screen can communicate with the bound Bluetooth device through the Bluetooth chip 101 to implement the service of the display screen. The binding of the display screen and the Bluetooth device can also be referred to as the connection between the display screen and the Bluetooth device. Among the at least one Bluetooth device connected to the electronic device 100, there may be a Bluetooth device bound to the display screen 103, or there may not be a Bluetooth device bound to the display screen 103, there may be a Bluetooth device bound to the display screen 104, or there may not be a Bluetooth device bound to the display screen 104. Display screen 103 / display screen 104 can communicate with the bound Bluetooth device through Bluetooth chip 101 to realize related business scenarios. For example, display screen 103 / display screen 104 can send audio data of audio business / call business to bound Bluetooth devices such as headphones and speakers to realize the business scenario of playing audio data through the Bluetooth device. In this case, display screen 103 / display screen 104 can be understood as a data source, and the bound Bluetooth device is used to receive data from the data source. For another example, display screen 103 / display screen 104 can receive game command data sent by a bound game controller or other Bluetooth device to realize the business scenario of playing games through the Bluetooth device.

[0086] In some examples, the electronic device 100 is connected to two Bluetooth devices through the Bluetooth chip 101, and the SoC 102 can manage the binding relationship between the display screen and the Bluetooth device: the display screen 103 and the display screen 104 are respectively bound to one Bluetooth device. Not limited to this, in other examples, the binding relationship is: the display screen 103 is bound to two Bluetooth devices, and there is no Bluetooth device bound to the display screen 104 at this time. In other examples, the binding relationship is: the display screen 104 is bound to two Bluetooth devices, and there is no Bluetooth device bound to the display screen 103 at this time.

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

[0088] Display screen 103 / display screen 104 can be used to provide corresponding device functions for users. In one embodiment, display screen 103 / display screen 104 can provide corresponding device functions for users through a connected Bluetooth device. In one embodiment, display screen 103 and display screen 104 can respectively provide corresponding device functions for different users located in different areas. In some examples, electronic device 100 is a vehicle / vehicle-mounted device, display screen 103 is a co-pilot screen, and users sitting in the co-pilot seat can use display screen 103, and display screen 104 is a rear screen, and users sitting in the rear seats can use display screen 104. For the convenience of explanation, the user using display screen 103 is referred to as user A, and the user using display screen 104 is referred to as user B.

[0089] In the embodiment of the present application, when any display screen of the electronic device 100 (using the display screen 103 as an example for explanation) is bound to any Bluetooth device (using the Bluetooth device Z as an example for explanation), the electronic device 100 may display the Bluetooth device Z in a paired state on the display screen 103, and highlight the Bluetooth device Z to indicate that the display screen 103 is bound to the Bluetooth device Z. In one embodiment, the electronic device 100 is also connected to other Bluetooth devices (using the Bluetooth device Y as an example for explanation), but the display screen 103 and the Bluetooth device Y do not have a binding relationship, so the display screen 103 may not display the Bluetooth device Y in a paired state, or display the Bluetooth device Y in a paired state but do not highlight the Bluetooth device Y. It can be understood that the display screen and the Bluetooth device may be highlighted on the display screen to indicate that they have a binding relationship.

[0090] In one implementation, SoC 102 may include a system space (also referred to as a kernel space) and at least one user space. Different display screens of the electronic device 100 may correspond to different user spaces. For example, Figure 1 As shown, SoC102 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 account corresponding to the user may be logged in / recorded on the display screen. The accounts of different users may be different, and different accounts may correspond to different user spaces. For example, user A may use registered account A to log in to display screen 103, and user B may use registered account B to log in to display screen 104. Account A corresponds to user space A, and account B corresponds to user space B. For another example, when user C logs in to display screen 103 for the first time, he may use account C in guest mode, and when user D logs in to display screen 103 for the first time, he may use account D in guest mode. Account C and account D correspond to user space C and user space D, respectively (not shown).

[0091] In one embodiment, SoC102 may include kernel memory and user memory, the system space may belong to kernel memory, and the user space may belong to user memory. In some examples, SoC102 may include 4 gigabytes (GB) of virtual address space, the highest 1GB in the virtual address space (e.g., from virtual address 0xC 0000000 to 0xFFFFFFFF) may be used by the kernel, and this 1GB may be kernel memory, and the lower 3GB in the virtual address space (e.g., from virtual address 0x00000000 to 0xBFFFFFFF) may be used by each process, and this 3GB may be user memory. In some examples, the user memory in SoC102 may be divided into multiple storage areas, and these multiple storage areas correspond to different user spaces, for example, SoC102 includes user space A and user space B, and the user memory in SoC may be divided into 2 storage areas, and these two storage areas correspond 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 in the figure (for example, more display screens), or combine certain components (for example, the Bluetooth chip 101 may be integrated in the SoC 102), or split certain components, or arrange the components differently. In other embodiments, the connection relationship between the components in the electronic device 100 may have other situations. For example, the display screen 103 and the display screen 104 are not connected to the Bluetooth chip 101 through the SoC 102, but are directly connected to the Bluetooth chip 101. The embodiments of the present application do not limit this. Figure 1 The components shown can be implemented in hardware, software, or a combination of software and hardware. For example, Bluetooth chip 101 is a software function module of Bluetooth, SoC 102 is a software processing module for audio services, game services, etc., display screen 103 is a software setting module of display screen 103, and display screen 104 is a software setting module of display screen 104.

[0093] Figure 2 A schematic diagram of the hardware structure of an electronic device 100 is exemplarily 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, an earphone interface 170D, a sensor module 180, a button 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, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light 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 to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0096] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0097] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0098] The processor 110 may also be provided with a memory for storing instructions and data. In one embodiment, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, 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. The interface 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 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging implementations, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging implementations, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device 100 through the power management module 141.

[0101] The power management module 141 is used to connect 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, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In another embodiment, the power management module 141 can also be set in the processor 110. In another embodiment, the power management module 141 and the charging management module 140 can also be set in the same device.

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

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

[0104] The mobile communication module 150 can provide wireless communication solutions including second generation (2G) / third generation (3G) / fourth generation (4G) / fifth generation (5G) / sixth generation (6G) applied to the electronic device 100. 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 from the antenna 1, and filter, amplify and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In one embodiment, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In one embodiment, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0105] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In one embodiment, the modem processor may be an independent device. In another embodiment, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0106] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. 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 the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0107] In one embodiment, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through 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 technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0108] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In one embodiment, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0110] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0111] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, etc. of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In one embodiment, the ISP can be set in the camera 193.

[0112] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In one embodiment, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0113] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

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

[0115] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0116] The external memory 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 memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

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

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

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

[0120] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0121] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0122] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In another embodiment, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In another embodiment, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0123] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In one embodiment, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In one embodiment, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0124] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The acceleration 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 the distance. The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The ambient light sensor 180L is used to sense the brightness of ambient light. The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc. The temperature sensor 180J is used to detect temperature. The bone conduction sensor 180M can obtain vibration signals.

[0125] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass 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 the display screen 194. In another embodiment, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0126] The key 190 includes a power button, a volume button, etc. The key 190 may be a mechanical key. It may also be a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100. The motor 191 may generate a vibration prompt. The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, message, missed call, notification, etc.

[0127] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. For example, the software system of the layered architecture may be an Android system, or a Harmony operating system (OS), or other software systems. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device 100.

[0128] Figure 3 A schematic diagram of a software architecture of an electronic device 100 is exemplarily shown.

[0129] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In one embodiment, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, 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, game, short message, call, map, navigation, Bluetooth, browser, etc. The application in the embodiment of the present application may also be replaced by other software such as applets and atomic services. In one embodiment, the electronic device 100 may include multiple display screens. After installing application package A through any one of the display screens, these multiple display screens can all run application package A. It can be understood that the installed application package is "shared" by multiple display screens. It is not limited to this. In another embodiment, after installing application package A through any one of the display screens, only the display screen can run application package A, and other display screens cannot run application package A. It can be understood that the application packages of different display screens are independent of each other and will not be "shared". The embodiment of the present application does not limit this.

[0132] The application framework layer provides an application programming interface (API) and a programming framework for the 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, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0134] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0135] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

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

[0137] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0138] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0139] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, the electronic device 100 vibrates, an indicator light flashes, etc.

[0140] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

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

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

[0143] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0144] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0145] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[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 drawing engine for 2D drawings.

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

[0149] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with a Bluetooth playback scenario.

[0150] Assume that the electronic device 100 includes a display screen A and a display screen B, and the electronic device 100 is connected to a Bluetooth headset via Bluetooth, and the Bluetooth headset is bound to the display screen A, and the user A can wear the Bluetooth headset. When the touch sensor 180K arranged on the display screen A receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, timestamp of the touch operation and other information). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch single-click operation, and the control corresponding to the single-click operation is the playback control of the audio application as an example, the audio application calls the interface of the application framework layer, and then by calling the kernel layer, sends audio data to the Bluetooth headset through the wireless communication module 160, so that the Bluetooth headset outputs the audio data.

[0151] The following describes the application scenarios involved in the embodiments of the present application and examples of user interfaces in the scenarios. Figure 1 In the structure shown, the Bluetooth chip 101 of the electronic device 100 supports at most 2 connections (ie, N is 2) and at most 2 communications (ie, P is 2) for explanation.

[0152] Figure 4 A schematic diagram exemplarily shows a user interface. Figure 4 The following description is made by taking the display screen 103 and the display screen 104 as an example in which the Bluetooth function is turned on but no Bluetooth device is connected.

[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 setting 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 turning on or off the Bluetooth function 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 viewing of files received via Bluetooth on the display screen 103). When the function switch 413 is in the on state, it indicates that the Bluetooth function on the display screen 103 has been turned on. In this case, the display screen 103 can display an available device list 416, which can include information of at least one Bluetooth device scanned by the Bluetooth chip 101. For example, the Bluetooth devices shown in the available device list 416 include: a Bluetooth device named "CCC's Bluetooth headset" (the subsequent description will refer to the Bluetooth device by its name, here referred to as "CCC's Bluetooth headset"), "DDD's Bluetooth headset", "EEE's Bluetooth headset", and "FFF's handle". The electronic device 100 can connect to any Bluetooth device in the available device list 416 (including pairing with the Bluetooth device) in response to a user operation acting on the Bluetooth device. 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 turning on or off the Bluetooth function on display screen 104, currently in the on state), device name 424 (i.e., the Bluetooth name "BBB" of display screen 104), file control 425 (used to trigger viewing of files received via Bluetooth on display screen 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 here. Available device list 416 in user interface 410 and available device list 426 in user interface 420 show the same Bluetooth devices, which can be understood as that when display screen 103 and display screen 104 share the Bluetooth chip 101, display screen 103 and display screen 104 have the same Bluetooth function.

[0154] Among them, the state of the Bluetooth function on the display screen of the electronic device 100 (including the on state and the off state, for example, the state of the Bluetooth function on the display screen 103 is determined by the state of the function switch 413) only indicates whether the Bluetooth function can be used on the display screen, and cannot indicate the state of the Bluetooth function of the electronic device 100 (that is, the state of the Bluetooth function provided by the Bluetooth chip 101, which can also be understood as the state of the Bluetooth chip 101). For example, when the Bluetooth function on the display screen 103 is off, the user cannot use the Bluetooth function on the display screen 103 (such as being unable to connect to a Bluetooth device through the Bluetooth chip 101), but the Bluetooth function provided by the Bluetooth chip 101 can be 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 in an on state. When the Bluetooth function on at least one display screen on the electronic device 100 is in an on state, the Bluetooth function provided by the Bluetooth chip 101 is in an on state. Optionally, when the Bluetooth functions of all display screens on the electronic device 100 are in an off state, the Bluetooth function provided by the Bluetooth chip 101 is in an off state. Without limitation thereto, in another embodiment, the Bluetooth function provided by the Bluetooth chip 101 is always in an on state.

[0156] In the embodiment of the present application, an example is given in which the setting interface of the Bluetooth function includes a function switch (used to trigger or turn off the Bluetooth function on the current display screen), but this should not constitute a limitation. In a specific implementation, the setting interface of the Bluetooth function may not include a function switch, that is, any display screen of the electronic device 100 may provide the user with a method for turning on or off the Bluetooth function on the display screen, or may not provide the user with this method. 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 method for turning on or off the Bluetooth function on the display screen. For example, in the current case, the user interface 410 displayed on the display screen 103 does not include a function name 411, a function description 412, and a function switch 413.

[0157] In the embodiment of the present application, the Bluetooth chip 101 of the electronic device 100 supports at most 2-way connections, which may include but are not limited to the following three situations:

[0158] Case 1: The Bluetooth chip 101 supports connecting to a maximum of two Bluetooth devices with audio playback services (such Bluetooth devices are used to output audio data, such as Bluetooth headsets and Bluetooth speakers).

[0159] Case 2: The Bluetooth chip 101 can support: connecting to 2 or fewer Bluetooth devices for audio playback services, and connecting to Bluetooth devices for other services, that is, the number of connection paths (that is, the number of connected Bluetooth devices) supported by the Bluetooth chip 101 can exceed 2. For example, the Bluetooth chip 101 can connect to 2 Bluetooth headsets and 1 game controller. Assuming that the display screen 103 is bound to the game controller, the display screen 103 can communicate game command data with the game controller to realize the application scenario of the game service (the user can play the game on the display screen 103 by operating the game controller).

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

[0161] It should be noted that the above-mentioned Bluetooth chip 101 supports connecting to a Bluetooth device, which means that the Bluetooth device can be connected and the Bluetooth device is available. The situation where the Bluetooth device can be connected but the Bluetooth device is unavailable does not fall into the category of supporting connection.

[0162] In an embodiment of the present 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 (such as the above three situations), the service type of the Bluetooth device A to be connected, and the number and service type of Bluetooth devices currently connected to the Bluetooth chip 101. If the judgment result is yes, a connection with the Bluetooth device A can be established through the Bluetooth chip 101, such as the following scenarios 1, 2, 3, 4 and 5. Examples of scenarios where the judgment result is no can be found in the following scenarios 6, 7, 8 and 9.

[0163] Scenario 1: After the Bluetooth function on the display screen 103 is turned on (for example Figure 4 After the embodiment shown in the figure), the electronic device 100 can receive the user operation acting on the Bluetooth device 1 shown on the display screen 103 (for example, acting on Figure 4 In the example shown in FIG. 4 , the user touches the Bluetooth device 1 in the available device list 416 of the user interface 410. Since the Bluetooth chip 101 is not currently connected to any Bluetooth device (the Bluetooth chip 101 is capable of connecting to a new Bluetooth device at this time), the electronic device 100 can respond to the user operation by establishing a connection with the Bluetooth device 1 through the Bluetooth chip 101, and determines that the Bluetooth device 1 and the display screen 103 have a binding relationship. At this time, the display screen 103 and the display screen 104 can display the information of the Bluetooth device 1. For specific examples, see the following Figure 5 .

[0164] Figure 5 A schematic diagram exemplarily shows yet another user interface. Figure 5It is described by taking the example that the display screen 103 is bound to the Bluetooth device 1, the display screen 104 is not bound to the Bluetooth device, and the 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. The user interface 510 and Figure 4 The user interface 410 shown is similar to that shown in the figure, except that the user interface 510 also includes a paired device list, which may include information about Bluetooth devices that have a Bluetooth pairing relationship with the electronic device 100 (hereinafter referred to as paired devices of the electronic device 100), such as information 511 of Bluetooth device 1 (i.e., "CCC's Bluetooth headset"). The list of available devices 416 in the user interface 510 does not include information about Bluetooth device 1. Among them, the device name 511A "CCC's Bluetooth headset" shown in the information 511 is highlighted (for example, the font is bold), and the information 511 also includes prompt information 511B ("Connected to AAA"), indicating that the display screen 103 and the "CCC's Bluetooth headset" have a binding relationship. When the display screen 103 and the "CCC's Bluetooth headset" are bound, the display screen 103 can communicate with the "CCC's Bluetooth headset" through the Bluetooth chip 101. For example, the display screen 103 can be used as a data source to send audio data to the "CCC's Bluetooth headset" to output the audio data of the display screen 103 through the "CCC's Bluetooth headset". User interface 520 and Figure 4 The user interface 420 shown in the figure is similar, with the difference that the user interface 520 also includes a list of paired devices, and the list of paired devices includes, for example, information 521 of Bluetooth device 1 (i.e., "CCC's Bluetooth headset"), and the list of available devices 426 in the user interface 520 does not include information of Bluetooth device 1. Among them, the device name "CCC's Bluetooth headset" shown in the information 521 is not highlighted (for example, the font is not bold), indicating that the display screen 104 and the "CCC's Bluetooth headset" are not bound to each other. The information of any Bluetooth device in the list of paired devices displayed on the display screens 103 and 104 may include setting options for the Bluetooth device. For example, the information 511 of Bluetooth device 1 in the user interface 510 includes setting option 511C, and setting option 511C can be used to trigger the display of the setting interface of "CCC's Bluetooth headset". From Figure 5 It can be seen that a Bluetooth connection (including a Bluetooth pairing relationship) is established between the electronic device 100 and the Bluetooth device 1 , wherein the display screen 103 is currently bound to the Bluetooth device 1 , and the display screen 104 is currently not bound to a Bluetooth device.

[0166] In the embodiment of the present application, the paired devices of the electronic device 100 may include devices that currently have a Bluetooth connection established with the electronic device 100, and may also include devices that have previously established a Bluetooth connection with the electronic device 100. The electronic device 100 may scan for paired devices, or may not scan for paired devices. The electronic device 100 may be connected to a paired device, or may not be connected to a paired device. For example, when a paired device is a device that has previously established a Bluetooth connection with the electronic device 100, the electronic device 100 may not scan for the paired device, nor may it be connected to the paired device. The electronic device 100 may store information about paired devices, such as a Bluetooth address, a Bluetooth name, and the like.

[0167] Figure 5 The highlighting method is to display the font in bold as an example for illustration, but it is not intended to be limiting. The "highlighting" in the embodiments of the present application may include, but is not limited to, at least one of the following: highlighting, bolding, italicizing, underlining, background texture, borders such as circles or rectangles around characters, font color different from the font color of other texts, font type different from the font type of other texts (for example, Kaiti and Songti belong to different font types), font size different from the font size of other texts, etc.

[0168] Not limited to Figure 5 In the display mode shown, in another embodiment, the prompt information 511B displayed on the display screen 103 may also be "bound to AAA", and the embodiment of the present application 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 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 represents the connection between "CCC's Bluetooth headset" and the electronic device 100, for example, "connected", and the embodiment of the present application 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, and the description of the prompt information is similar to the description of the prompt information 511B, for example, the prompt information is "connected" or "connected to AAA". The prompt information may be the same as or different from the prompt information 511B, for example, the prompt information is "connected" and the prompt information 511B is "connected to AAA". In another embodiment, the paired device list of the display screen 104 may not include “CCC's Bluetooth headset”, that is, the display screen that has no 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 the electronic device 100 is bound to the Bluetooth device 1 (for example Figure 5 After the embodiment shown in the figure), the electronic device 100 can receive the user operation acting on the Bluetooth device 1 shown on the display screen 104 (for example, acting on Figure 5 In response to the user operation, the binding relationship between the display screen 103 and the Bluetooth device 1 is cancelled, and it is determined that the display screen 104 and the Bluetooth device 1 have a binding relationship. At this time, the display screen 103 and the display screen 104 display the Bluetooth device 1 in a different manner. For a specific example, see the following Figure 6 .

[0170] Figure 6 A schematic diagram exemplarily shows yet another user interface. Figure 6 It is described by taking the example that the display screen 104 is bound to the Bluetooth device 1, the display screen 103 is not bound to the Bluetooth device, and the 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. The user interface 610 and Figure 5 The user interface 510 shown is similar, except that the information 511 of the Bluetooth device 1 in the paired device list is displayed differently. In the paired device list of the user interface 610, the device name "CCC's Bluetooth headset" in the information 511 of the Bluetooth device 1 is not highlighted, and the information 511 does not include prompt information, indicating that the display screen 103 and "CCC's Bluetooth headset" do not have a binding relationship. Figure 5 The user interface 520 shown is similar, except that the information 521 of Bluetooth device 1 in the paired device list is displayed differently. 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 a prompt 521B "Connected to BBB", indicating that the display screen 104 and "CCC's Bluetooth headset" are bound. When the display screen 104 and "CCC's Bluetooth headset" are bound, 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 the electronic device 100 and the Bluetooth device 1 , wherein the display screen 103 is currently not bound to a Bluetooth device, and the display screen 104 is currently bound to the Bluetooth device 1 .

[0172] Not limited to Figure 6In another embodiment, the electronic device 100 can respond to the user operation on the Bluetooth device 1 shown on the display screen 104, and determine whether the display screen 103 is using the Bluetooth device 1 (that is, the display screen 103 is communicating with the Bluetooth device 1 through the Bluetooth chip 101). When the judgment 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 other displays and cannot be connected"). When the judgment 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 have a binding relationship.

[0173] Scenario 3: After the display screen 103 of the electronic device 100 is bound to the Bluetooth device 1 (for example Figure 5 After the implementation shown in the embodiment shown in the figure), the electronic device 100 can receive the user operation (for example, the user operation on the Bluetooth device 2 (corresponding to the audio service) shown on the display screen 104 Figure 5 Since the Bluetooth chip 101 is currently connected to only one Bluetooth device 1, the electronic device 100 can respond to the user operation by establishing a connection with the Bluetooth device 2 through the Bluetooth chip 101, and determine that the Bluetooth device 2 and the display screen 104 have a binding relationship. At this time, the display screen 103 and the display screen 104 can both display the information of the Bluetooth device 2. For specific examples, see the following Figure 7 .

[0174] Figure 7 A schematic diagram exemplarily shows yet another user interface. Figure 7 For example, the display screen 103 is bound to the Bluetooth device 1, the display screen 104 is bound to the Bluetooth device 2, the Bluetooth device 1 is "CCC's Bluetooth headset", and the 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" have a binding relationship, the difference is that the paired device list of the user interface 710 also includes information 711 of Bluetooth device 2 (i.e., "DDD's Bluetooth headset"), and the available device list 416 in the user interface 710 does not include the information of Bluetooth device 2. The device name "DDD's Bluetooth headset" in the information 711 is not highlighted, and the information 711 does not include prompt information, indicating that the display screen 103 and "DDD's Bluetooth headset" do not have a binding relationship. The user interface 720 and Figure 5 The user interfaces 520 shown are similar, both indicating that the display screen 104 and “CCC’s Bluetooth headset” do not have a binding relationship. The difference is that the paired device list of the user interface 720 also includes information 721 of Bluetooth device 2 (i.e., “DDD’s Bluetooth headset”), and the available device list 426 in the user interface 720 does not include information of Bluetooth device 2. The device name 721A “DDD’s Bluetooth headset” in the information 721 is highlighted (e.g., displayed in bold font), and the information 721 also includes prompt information 721B (“Connected to BBB”), indicating that the display screen 104 and “DDD’s Bluetooth headset” are in a binding relationship. When the display screen 104 and “DDD’s Bluetooth headset” are bound, the display screen 104 can communicate with the “DDD’s Bluetooth headset” through the Bluetooth chip 101. From Figure 7 It can be seen that the electronic device 100 has established a Bluetooth connection with the Bluetooth device 1 and the Bluetooth device 2 (including a Bluetooth pairing relationship), wherein the display screen 103 is currently bound to the Bluetooth device 1, and the display screen 104 is currently bound to the Bluetooth device 2. The current scenario can be understood as a "1 screen 1-way connection + 1 screen 1-way connection" scenario.

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

[0177] Scenario 4: After the display screen 103 of the electronic device 100 is bound to the Bluetooth device 1 (for example Figure 5 After the embodiment shown in the figure), the electronic device 100 can receive the user operation acting on the Bluetooth device 2 shown on the display screen 103 (for example, acting on Figure 5 In response to the user operation, the binding relationship between the display screen 103 and the Bluetooth device 1 is canceled (optionally, the electronic device 100 cancels the Bluetooth connection between the display screen 103 and the Bluetooth device 1), and the electronic device 100 can establish a connection with the Bluetooth device 2 through the Bluetooth chip 101, and determine that the Bluetooth device 2 and the display screen 103 have a binding relationship. At this time, the display screen 103 and the display screen 104 can both display the information of the Bluetooth device 2. For specific examples, see the following Figure 8 .

[0178] Figure 8 A schematic diagram exemplarily shows yet another user interface. Figure 8 Take the example that the paired devices of electronic device 100 include Bluetooth device 1 and Bluetooth device 2, display screen 103 is bound to Bluetooth device 2 and not bound to Bluetooth device 1, display screen 104 is not bound to a Bluetooth device, Bluetooth device 1 is "CCC's Bluetooth headset", and Bluetooth device 2 is "DDD's Bluetooth headset" for explanation.

[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. The user interface 810 and Figure 5 The user interface 510 shown is similar to the one shown in FIG. 8 , except that the information 511 of the Bluetooth device 1 in the paired device list is displayed differently, and the paired device list of the user interface 810 also includes the information 811 of the Bluetooth device 2. The information 511 in the user interface 810 can be found in Figure 6 The description of information 511 in the user interface 610 shown indicates that the display screen 103 and "CCC's Bluetooth headset" are not bound. The device name "DDD's Bluetooth headset" in the information 811 of Bluetooth device 2 is highlighted, and information 811 includes the prompt message "Connected to AAA", indicating that the display screen 103 and "DDD's Bluetooth headset" are bound. When the display screen 103 and "DDD's Bluetooth headset" are bound, the display screen 103 can communicate with "DDD's Bluetooth headset" through the 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" do not have a binding relationship. The difference is that the paired device list of the user interface 820 also includes information 821 of Bluetooth device 2, the device name "DDD's Bluetooth headset" in the information 821 is not highlighted, and the information 821 does not include prompt information, indicating that the display screen 104 and "DDD's Bluetooth headset" do not have a binding relationship. 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, wherein display screen 103 is currently bound to Bluetooth device 2, and display screen 104 is currently not bound to a 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 an audio service at a time. Therefore, when the display screen 103 is connected to the Bluetooth device 1 (i.e. Figure 5 In the scenario shown in the figure), if the electronic device 100 receives a user operation for connecting 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 for the display screen 103, that is, a binding relationship between the display screen 103 and the Bluetooth device 2.

[0181] Not limited to Figure 8 In another embodiment, after the display screen 103 and the Bluetooth device 1 are bound, the electronic device 100 can display a prompt message in response to the user operation on the Bluetooth device 2 shown on the display screen 103, and the prompt message indicates that the display screen 103 cannot be bound to the new Bluetooth device 2.

[0182] Not limited to Figure 8 In another embodiment, it is assumed that the capability of the Bluetooth chip 101 belongs to the above-mentioned situation 3. After the display screen 103 is bound to the Bluetooth device 1, the electronic device 100 can respond to the user operation on the Bluetooth device 2 shown on the display screen 103, and determine whether the number of Bluetooth devices currently connected to the Bluetooth chip 101 is less than N (i.e., 2). Since the current judgment result is yes, the electronic device 100 can establish a connection with the Bluetooth device 2 through the Bluetooth chip 101, and determine that the Bluetooth device 2 and the display screen 103 have a binding relationship, and the electronic device 100 will not cancel the binding relationship between the display screen 103 and the Bluetooth device 1, that is, at this time the display screen 103 is bound to two Bluetooth devices. For specific examples, please refer to the following Fig. 9 .

[0183] Fig. 9 A schematic diagram exemplarily shows yet another user interface. Fig. 9 For example, the paired devices of the electronic device 100 include Bluetooth device 1 and Bluetooth device 2, the display screen 103 is bound to Bluetooth device 1 and Bluetooth device 2, the display screen 104 is not bound to a Bluetooth device, the Bluetooth device 1 is "CCC's Bluetooth headset", and the Bluetooth device 2 is "DDD's Bluetooth headset".

[0184] like Fig. 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. The user interface 910 and Figure 5 The user interface 510 shown is similar, both indicating that the display screen 103 and the "CCC's Bluetooth headset" have a binding relationship, the difference is that the paired device list of the user interface 910 also includes the information 911 of the Bluetooth device 2. The description of the information 911 can be found in Figure 8 The information 811 in the user interface 810 shown in FIG. 8 indicates that the display screen 103 and the "DDD Bluetooth headset" have a binding relationship. Figure 5 The user interface 520 shown is similar, both indicating that the display screen 104 and the "CCC's Bluetooth headset" do not have a binding relationship. The difference is that the paired device list of the user interface 820 also includes the information 921 of the Bluetooth device 2. The description of the information 921 can be found in Figure 8 The information 821 in the user interface 820 shown in FIG. 8 indicates that the display screen 104 and “DDD's Bluetooth headset” do not have a binding relationship. Fig. 9 It can be seen that electronic device 100 is connected and paired with Bluetooth device 1 and Bluetooth device 2, wherein display screen 103 is currently bound to Bluetooth device 1 and Bluetooth device 2, and display screen 104 is currently not bound to a Bluetooth device. The current scenario can be understood as a "1 screen 2-way connection + 1 screen 0-way connection" scenario.

[0185] In one embodiment, Fig. 9 In the scenario shown, the display screen 103 is bound to two Bluetooth devices, and the display screen 103 can select a communicating Bluetooth device from the two Bluetooth devices in response to a user operation. In some examples, the display screen 103 can display information of Bluetooth device 1 and Bluetooth device 2. When the user selects Bluetooth device 1 on the display screen 103, the display screen 103 can communicate with Bluetooth device 1 through the Bluetooth chip 101. When the user selects Bluetooth device 2 on the display screen 103, the display screen 103 can communicate with Bluetooth device 2 through the Bluetooth chip 101. When the user selects Bluetooth device 1 and Bluetooth device 2 on the display screen 103, the display screen 103 can display a prompt message (such as "Whether to allow communication with two Bluetooth devices at the same time"), and the display screen 103 can respond to the user operation acting on the prompt message, and communicate with Bluetooth device 1 and Bluetooth device 2 through the Bluetooth chip 101. In this case, the Bluetooth chip 101 maintains 2-way communication, and the current scenario can be understood as a "1 screen 2-way communication + 1 screen 0-way communication" scenario.

[0186] Fig. 9Taking the example that display screen 103 can be bound to 2 Bluetooth devices at the same time, in other examples, display screen 103 can also be bound to 3 or more Bluetooth devices at the same time, but 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 connection path N supported by Bluetooth chip 101.

[0187] In one embodiment, the electronic device 100 can respond to the user operation on the setting interface of the display screen 103 to enable the function of binding multiple Bluetooth devices to the display screen 103 at the same time. For example, see Fig. 9 For an example of the above setting interface, see Fig.10 .

[0188] Fig.10 A schematic diagram exemplarily shows yet another user interface.

[0189] like Fig.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 user interface of the electronic device 100 in response to an action on the Figure 5 The setting option 511C in the user interface 510 shown is displayed. The user interface 1010 may include a title "CCC's Bluetooth Headset", indicating that the user interface 1010 is a setting interface for "CCC's Bluetooth Headset". The user interface 1010 may include setting information 1011 for the "volume synchronization" function, setting information 1012 for the "multi-device connection" function, and an "unpairing" option 1013. Among them, the setting information 1011 may include a description of the "volume synchronization" function ("the volume of the Bluetooth device is synchronized with the cockpit") and a switch control (used to turn the "volume synchronization" function on or off). The setting information 1012 may include a description of the "multi-device connection" function ("can be connected to AAA with other Bluetooth devices at the same time") and a switch control (used to turn the "multi-device connection" function on or off). In some examples, after the "multi-device connection" function is turned on, the "CCC's Bluetooth Headset" can be bound to a display screen at the same time as other Bluetooth devices. For scenario examples, please refer to the above Fig. 9 Option 1013 is used to trigger the cancellation of the Bluetooth pairing relationship between the electronic device 100 and “CCC's Bluetooth headset”.

[0190] In other examples, when the "multi-device connection" function of "CCC's Bluetooth headset" is not turned on, "CCC's Bluetooth headset" cannot be bound to the display screen 103 at the same time as other Bluetooth devices. For example, see the above Figure 8 Description of the above-mentioned display prompt information (the prompt information indicates that the display screen 103 cannot bind a new Bluetooth device 2).

[0191] Not limited to the above implementation, in another implementation, regardless of whether the "multi-device connection" function of "CCC's Bluetooth headset" is turned on, "CCC's Bluetooth headset" can bind display screen 103 with other Bluetooth devices at the same time. Accordingly, display screen 103 can bind multiple Bluetooth devices, but when the "multi-device connection" function of "CCC's Bluetooth headset" is not turned on, display screen 103 requires user confirmation before it can bind "CCC's Bluetooth headset" and other Bluetooth devices at the same time. When the "multi-device connection" function of "CCC's Bluetooth headset" is turned on, display screen 103 can bind multiple Bluetooth devices (including "CCC's Bluetooth headset") at the same time without user confirmation. In some examples, it is assumed that the "multi-device connection" function of Bluetooth device 1 is not turned on. After the display screen 103 and Bluetooth device 1 are bound, the electronic device 100 can respond to the user operation on the Bluetooth device 2 shown on the display screen 103 by displaying a prompt message (such as "Is it allowed to bind multiple Bluetooth devices at the same time") on the display screen 103. The electronic device 100 will only execute the subsequent process (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 the prompt message (such as an operation on the "Allow" option in the prompt message). Otherwise, the display screen 103 cannot bind Bluetooth device 1 and Bluetooth device 2 at the same time. When the "multi-device connection" function of Bluetooth device 1 is turned on, the above prompt message will not be displayed. For details, please refer to Fig. 9 .

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

[0193] Scenario 5: Assume that the capability of the Bluetooth chip 101 belongs to the above scenario 2. The Bluetooth chip 101 of the electronic device 100 is connected to two Bluetooth devices with audio services (e.g. Figure 7 The scenario shown, or Fig. 9 The scene shown here is Fig. 9The scenario shown is used as an example for explanation. The electronic device 100 can receive user operations acting on the Bluetooth device 3 shown on the display screen 104, assuming that the Bluetooth device 3 is an "FFF handle". Although the Bluetooth chip 101 is already connected to two Bluetooth devices, since these two Bluetooth devices correspond to audio services and the Bluetooth device 3 to be connected corresponds to the game service, the capacity of the Bluetooth chip 101 is sufficient to support the connection of the new Bluetooth device 3. Therefore, in response to the above user operations, the electronic device 100 can connect to the Bluetooth device 3 through the Bluetooth chip 101, and determine that the Bluetooth device 3 and the display screen 104 are bound. At this time, in the Bluetooth setting interface displayed on the display screen 103 and the display screen 104, the list of paired devices also includes the information of the Bluetooth device 3, and the Bluetooth device 3 displayed on the display screen 103 is not highlighted, and the Bluetooth device 3 displayed on the display screen 104 is highlighted.

[0194] Scenario 6: Assume that the capability of the Bluetooth chip 101 belongs to the above scenario 2. The Bluetooth chip 101 of the electronic device 100 is connected to two Bluetooth devices with audio services (e.g. Figure 7 The scenario shown, or Fig. 9 The scene shown here is Fig. 9 The scenario shown is used as an example for explanation. The electronic device 100 can receive a user operation acting on the Bluetooth device 3 shown on the display screen 104, assuming that the Bluetooth device 3 is "EEE's Bluetooth headset". Since the Bluetooth chip 101 is already connected to two Bluetooth devices for audio services, and the Bluetooth device 3 to be connected also corresponds to an audio service, the capability of the Bluetooth chip 101 cannot support the connection of a new Bluetooth device for audio services. Therefore, in response to the above user operation, the electronic device 100 can determine that the Bluetooth device 3 cannot be connected. At this time, the display screen 104 can display a prompt message indicating that the Bluetooth device 3 cannot be connected. For example, the prompt message is "AAA and BBB have reached 2 (maximum) connected audio devices, and a new audio device cannot be connected. Please disconnect at least one audio device and then connect a new audio device."

[0195] Scenario 7: Assume that the capability of the Bluetooth chip 101 belongs to the above-mentioned scenario 3. When the Bluetooth chip 101 of the electronic device 100 has been connected to two Bluetooth devices (i.e., the number of connections of the Bluetooth chip 101 has reached the maximum of 2) (e.g. Figure 7 The scenario shown, or Fig. 9 The scene shown here is Fig. 9The scenario shown is used as an example for explanation. The electronic device 100 can receive user operations acting on the Bluetooth device 3 shown on the display screen 104, assuming that the Bluetooth device 3 is an "FFF handle". Since the Bluetooth chip 101 is already connected to two Bluetooth devices, the maximum number of connection paths that can be supported has been reached, and therefore, the electronic device 100 determines that a connection cannot be established between the Bluetooth chip 101 and the Bluetooth device 3. At this time, the display screen 104 can display a prompt message indicating that the Bluetooth device 3 cannot be connected. For example, the prompt message is "AAA and BBB have connected Bluetooth devices that have reached 2 (maximum), and new devices cannot 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), with the difference that when the current judgment result is no, the electronic device 100 can cancel the connection with a Bluetooth device, and the electronic device 100 can establish a connection with the Bluetooth device 3 through the Bluetooth chip 101, and determine that the Bluetooth device 3 and the display screen 104 have a binding relationship. Among them, the Bluetooth device that cancels the connection can be any Bluetooth device connected to the display screen 103 (i.e., the display screen that does not receive user operations). Optionally, when the display screen 103 is bound to multiple Bluetooth devices, the Bluetooth device that cancels the connection can be the earliest connected device among the multiple Bluetooth devices, or the latest connected device, or the device with the earliest last use time, or the device with the latest last use time. Not limited to this, the Bluetooth device that cancels the connection can also be any Bluetooth device bound to the display screen 104. The embodiment of the present application does not limit the Bluetooth device that cancels the connection. The Bluetooth device that cancels the connection is the device that was earliest connected to the display screen 103 (i.e., Bluetooth device 1, i.e. Fig. 9 The "CCC Bluetooth headset" shown in the figure is used as an example to illustrate that after the electronic device 100 performs the above process, the Bluetooth chip 101 and the Bluetooth device 2 (i.e. Fig. 9 "DDD Bluetooth headset" shown), Bluetooth device 3 (i.e. Fig. 9 In the figure, the paired devices list of the Bluetooth setting interface displayed on the display screen 103 and the display screen 104 also includes the information of the Bluetooth device 3, and the Bluetooth device 3 displayed on the display screen 103 is not highlighted, and the Bluetooth device 2 displayed is highlighted, and the Bluetooth device 3 displayed on the display screen 104 is highlighted, and the Bluetooth device 2 displayed on the display screen 104 is not highlighted.

[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), except that when the current judgment result is no, the electronic device 100 can establish a connection with the Bluetooth device 3 through the Bluetooth chip 101, and determine that the Bluetooth device 3 and the display screen 104 have a binding relationship, but the Bluetooth device 3 is in an unavailable state, that is, the display screen 104 cannot communicate with the Bluetooth device 3 through the Bluetooth chip 101. For example, the paired list displayed on the display screen 104 includes the information of the Bluetooth device 3, the information of the 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 the Bluetooth device 3 also indicates that the Bluetooth device 3 is not available, for example, it also includes "the number of connected Bluetooth devices has reached 2 (maximum) and cannot be used". For example, when the display screen 104 receives a user operation for triggering communication with the Bluetooth device 3 (also referred to as for triggering the use of the Bluetooth device 3), a prompt information is displayed, and the prompt information indicates that the Bluetooth device 3 is not available.

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

[0199] Without limitation, in another embodiment, before the electronic device 100 transmits data A through the Bluetooth chip 101 and the Bluetooth device, it can determine whether the Bluetooth chip 101 supports the transmission of data A according to the capability 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 to which the Bluetooth chip 101 has currently transmitted data, wherein the capability of the Bluetooth chip 101 means that the Bluetooth chip 101 supports at most 2-way communication, and the situation example is similar to the situation example in which the Bluetooth chip 101 of the above-mentioned electronic device 100 supports at most 2-way connection. If the judgment result is yes, the display screen can transmit data A through the Bluetooth chip 101 and the bound Bluetooth device, and if the judgment 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 path has reached the maximum (2), please close at least one path and then add a new communication path"). For specific examples, please refer to the following scenario 10.

[0200] Scenario 10: Assume that the capability of the Bluetooth chip 101 is: it can support the communication of 2 or less channels of audio data, and at least 1 channel of other data. In some examples, the Bluetooth chip 101 of the electronic device 100 currently does not maintain the communication of audio data or has maintained the communication of 1 channel of audio data. When the user triggers the addition of a new communication channel for audio data, since the capability of the Bluetooth chip 101 is sufficient to support the addition of a new communication channel, the Bluetooth chip 101 can add a new channel of audio data communication. In other examples, the Bluetooth chip 101 of the electronic device 100 currently maintains the communication of 2 channels of audio data. When the user triggers the addition of a new communication channel for audio data, since the capability of the Bluetooth chip 101 cannot support the communication of more than 2 channels of audio data, it is determined that the communication channel for audio data cannot be added. In other examples, the Bluetooth chip 101 of the electronic device 100 currently maintains the communication of 2 channels of audio data. When the user triggers the addition of a new communication channel for game instruction data, since the capability of the Bluetooth chip 101 is sufficient to support the addition of a new communication channel for non-audio data, the Bluetooth chip 101 can add a new channel of game instruction data communication.

[0201] Scenario 11: When the Bluetooth chip 101 implements communication of different types of data, the electronic device 100 can adjust the state of the communication path of the Bluetooth chip 101 according to the current state (such as data type and communication status, etc.), and optionally adjust the state of the connection path of the Bluetooth chip 101. In some examples, the Bluetooth chip 101 has been connected to 2 Bluetooth headsets and 1 game controller. It is assumed that: the display screen 103 (such as the co-pilot screen) is bound to 1 Bluetooth headset, and the display screen 104 (such as the rear screen) is bound to 1 Bluetooth headset and 1 game controller, and the display screen 103 outputs audio data through the bound Bluetooth headset, and the display screen 104 outputs audio data through the bound Bluetooth headset and transmits game instruction data with the bound game controller. Optionally, the electronic device 100 can reduce the bit rate of the audio data output by at least one of the above two Bluetooth headsets to improve the real-time performance of the game controller. Optionally, when the electronic device 100 obtains a high latency of the game controller, the electronic device 100 can cancel the output of at least one of the above two Bluetooth headsets. Optionally, when the electronic device 100 obtains a high latency of the game controller, at least one of the two Bluetooth headsets may be disconnected. Optionally, when the electronic device 100 obtains a high latency of the game controller, the display screen 103 and / or the display screen 104 may display a prompt message.

[0202] The above embodiments exemplify some Bluetooth device connection scenarios, and the following exemplifies some Bluetooth device deletion scenarios, for specific examples, see the following scenarios 12, 13, and 14. Deleting a Bluetooth device in the present embodiment means canceling pairing with a Bluetooth device.

[0203] Scenario 12: When display screen 103 is bound to Bluetooth device 1 and display screen 104 is not bound to Bluetooth device 1, for example, Figure 5 In the scenario shown, the electronic device 100 may receive a user operation on the display screen 104. The user operation is used to delete the Bluetooth device 1. For example, the user operation is a user operation (such as a touch operation) on the cancel pairing option in the setting interface of the "CCC Bluetooth headset" displayed on the display screen 104. The description and Fig.10 The user interface 1010 shown is similar and will not be described in detail. In response to the user operation, the electronic device 100 can determine whether the Bluetooth device 1 is being used (for example, whether the display screen 103 is outputting audio data through the Bluetooth device 1). In one embodiment, when the above judgment result is yes, the electronic device 100 can determine that the Bluetooth device 1 cannot be deleted. At this time, the display screen 104 can display a prompt message (such as "The device is being used by other display screens and cannot be deleted"). In another embodiment, when the above judgment result is no, the electronic device 100 can display a prompt message on the display screen 103 (such as "Other display screens request to delete CCC's Bluetooth headset, do you agree?"), and optionally determine whether to delete the Bluetooth device 1 based on the user operation acting on the display screen 103. For example, the prompt message also includes a confirmation control and a cancel control. The confirmation control is used to trigger the deletion of the Bluetooth device 1, and the cancel control is used to cancel the deletion of the Bluetooth device 1. Without limitation to this, in other examples, the electronic device 100 may also determine whether a user operation acting on the prompt information is received within a preset time period after the prompt information is displayed, and determine whether to delete the Bluetooth device 1 based on the judgment result. In other examples, when the above judgment result is no, the electronic device 100 may also directly delete the Bluetooth device 1. The embodiment of the present application does not limit the processing method of the electronic device 100 when the above judgment result is no.

[0204] Not limited to the above implementation, in another implementation, the electronic device 100 may not determine whether the Bluetooth device 1 is being used, but directly delete the Bluetooth device 1 in response to the above user operation on the display screen 104 .

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

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

[0207] Not limited to the above implementation, in another implementation, the electronic device 100 may not determine whether the Bluetooth device 1 is bound to other display screens other than the display screen receiving the user operation, but directly delete the Bluetooth device 1 in response to the user operation.

[0208] Next, some scenarios in which the electronic device 100 and the Bluetooth device are disconnected and then reconnected are exemplified. For details, please refer to the following scenarios 15, 16, and 17.

[0209] Scenario 15: The electronic device 100 is first in state 1: the display screen 103 is bound to the Bluetooth device 1 and the display screen 104 is not bound to the Bluetooth device 1 (for example Figure 5 The scene shown), then in state 2: display screen 104 is bound to Bluetooth device 1 and display screen 103 is not bound to Bluetooth device 1 (for example Figure 6 For detailed process examples, see Figure 5 and Figure 6 Then, the Bluetooth connection between the electronic device 100 and the Bluetooth device 1 is disconnected (the reason for the disconnection is, for example, that the Bluetooth function of the Bluetooth device 1 or the electronic device 100 is turned off). When the Bluetooth function of the electronic device 100 and the Bluetooth device 1 is subsequently turned on, the electronic device 100 and the Bluetooth device 1 can directly establish a Bluetooth connection, and the electronic device 100 can determine that the Bluetooth device 1 and the display screen 104 have a binding relationship without the user performing a connection operation / binding operation (such as selecting the Bluetooth device 1 in the Bluetooth setting interface displayed on the display screen 104). It can be understood that the Bluetooth device 1 can connect to the display screen that was most recently bound.

[0210] Scenario 16: Display screen 103 is bound to a Bluetooth device, and display screen 104 is not bound to Bluetooth device 1, for example Figure 5 The scene shown. Then, the Bluetooth connection between the electronic device 100 and the Bluetooth device 1 is disconnected. When the Bluetooth function of the electronic device 100 and the Bluetooth device 1 is subsequently turned on, the electronic device 100 and the Bluetooth device 1 can directly establish a Bluetooth connection, and the electronic device 100 can determine that the Bluetooth device 1 and the preset display screen 104 have a binding relationship, without the user performing a connection operation / binding operation (such as selecting the Bluetooth device 1 in the Bluetooth setting interface displayed on the display screen 104). It can be understood that the Bluetooth device 1 can be bound to the preset display screen of the electronic device 100.

[0211] Scenario 17: The electronic device 100 is a vehicle / on-board device, the display screen 103 is the co-pilot screen, and the display screen 104 is the rear screen. Then, the Bluetooth connection between the electronic device 100 and the Bluetooth device 1 is disconnected. When the Bluetooth function of the electronic device 100 and the Bluetooth device 1 is subsequently turned on, the electronic device 100 can detect the location of the Bluetooth device 1. When the Bluetooth device 1 is in the area corresponding to the co-pilot screen (such as the cockpit of the co-pilot seat), the electronic device 100 can connect to the Bluetooth device 1 and determine that the Bluetooth device 1 and the display screen 103 are bound. When the Bluetooth device 1 is in the area corresponding to the rear screen (such as the cockpit of the rear seat), the electronic device 100 can connect to the Bluetooth device 1 and determine that the Bluetooth device 1 and the display screen 104 are bound. It can be understood that the Bluetooth device 1 can be bound to the display screen in the area.

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

[0213] Based on the above embodiments, the short-distance communication method involved in the embodiments of the present application is introduced. The method can be applied to Figure 1 The electronic device 100 shown. The method can be applied to Figure 2 The electronic device 100 shown. The method can be applied to Figure 3 The following process takes the electronic device 100 as an example. Figure 1 The structure shown is used as an example for explanation.

[0214] See also Fig.11 , Fig.11 It is a flowchart of a Bluetooth connection process provided in an embodiment of the present application. Fig.11The process includes the electronic device 100 and the Bluetooth device 1 establishing a Bluetooth connection as an example for description. The process may include but is not limited to the following steps:

[0215] S101: Bluetooth device 1 broadcasts via Bluetooth (eg, broadcasts information of Bluetooth device 1).

[0216] S102: the display screen 103 scans devices via Bluetooth and displays a Bluetooth setting interface (available devices include Bluetooth device 1).

[0217] S103: the display screen 104 scans devices via Bluetooth and displays a Bluetooth setting interface (available devices include Bluetooth device 1).

[0218] S103 is an optional step.

[0219] In one embodiment, the display screen 103 and / or the display screen 104 can scan the surrounding Bluetooth devices through the Bluetooth chip 101, and display the scanned Bluetooth devices (i.e., available devices) in the Bluetooth setting interface. Optionally, after the Bluetooth function of the display screen 103 and / or the display screen 104 is turned on, the surrounding Bluetooth devices will be scanned through the Bluetooth chip 101. For specific examples, see the above Figure 4 , Figure 4 The available device list is used to display the scanned Bluetooth devices. In some examples, since the current Bluetooth device 1 is broadcasting via Bluetooth, the display screens 103 and 104 can scan the Bluetooth device 1 through the Bluetooth chip 101, and the display screens 103 and 104 display the Bluetooth setting interface, and the available devices may include the Bluetooth device 1.

[0220] S104 : when the electronic device 100 receives a user operation on the Bluetooth device 1 in the Bluetooth setting interface displayed on the display screen 103 , the electronic device 100 is connected and paired with the Bluetooth device 1 via the Bluetooth chip 101 .

[0221] In one embodiment, Fig.11 Taking the example that the Bluetooth chip 101 is not connected to any Bluetooth device before S104, therefore, the Bluetooth chip 101 is sufficient to support the connection of the new Bluetooth device 1, and the electronic device 100 can establish a Bluetooth connection (including pairing process and connection process) through the Bluetooth chip 101 and the Bluetooth device 1 in response to user operations.

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

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

[0224] In one implementation, the Bluetooth chip 101 may notify the SoC 102 that the Bluetooth chip 1 is connected, and the SoC 102 may then notify the display screen 103 that the Bluetooth device 1 is connected.

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

[0226] In one embodiment, SoC102 can be used to maintain the binding relationship between the display screen of the electronic device 100 and the Bluetooth device (specifically, the Bluetooth device that has a connection relationship with the Bluetooth chip 101). In one embodiment, before S106, the Bluetooth device 1 has a connection relationship with the Bluetooth chip 101, but does not have a binding relationship with the display screen 103 / display screen 104. Therefore, at this time, SoC102 does not maintain the binding relationship between the display screen of the electronic device 100 and the Bluetooth device 1. Optionally, an example of the interface displayed on the display screen at this time can be seen in Figure 4 .

[0227] In one implementation, the display screen 103 may send a request message to the SoC 102 , where the request message is used to request a binding relationship between the display screen 103 and the Bluetooth device 1 . Optionally, the request message includes information of the Bluetooth device 1 .

[0228] S107: SoC102 updates the binding relationship between the display screen and the Bluetooth device.

[0229] In one embodiment, after receiving the request from the display screen 103, the SoC 102 may update the maintained binding relationship between the display screen and the Bluetooth device, that is, add the binding relationship between the display screen 103 and the Bluetooth device 1. In one embodiment, after the SoC 102 updates the binding relationship between the display screen and the Bluetooth device, the display screen 103 and the display screen 104 may be notified of the update result, such as S108 and S109, so that the display screen 103 and the display screen 104 adjust the display interface according to the update result, such as S110 and S111.

[0230] After S107 , the Bluetooth device 1 and the Bluetooth chip 101 have a connection relationship, and the Bluetooth device 1 and the display screen 103 have a binding relationship.

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

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

[0233] S109 : SoC 102 notifies display screen 104 that display screen 103 and Bluetooth device 1 are bound.

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

[0235] S110 is an optional step.

[0236] In one embodiment, after S108, the display screen 103 may display a Bluetooth setting interface, in which the Bluetooth device 1 is highlighted and is in a paired state, where the paired state refers to a display mode indicating that the Bluetooth device 1 has been paired with the Bluetooth chip 101. For example, when the Bluetooth device 1 is displayed in the paired list, it can be considered that the Bluetooth device 1 is in a paired state. The "highlighted display" in the embodiment of the present application may include but is not limited to at least one of the following: highlighted display, bold font display, italic font display, underline, shading background, circle or rectangle borders around characters, font color different from other text font color, font type different from other text font type (for example, Kaiti and Songti belong to different font types), font size different from other text font size, etc.

[0237] S111: the display screen 104 displays the Bluetooth setting interface (including the non-highlighted Bluetooth device 1).

[0238] S111 is an optional step.

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

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

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

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

[0243] S112 is an optional step.

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

[0245] exist Fig.11 In the method shown, display screen 103 and display screen 104 can share a Bluetooth chip 101, and both display screen 103 and display screen 104 can display the Bluetooth devices (such as Bluetooth device 1) scanned by Bluetooth chip 101. User A using display screen 103 and user B using display screen 104 can both choose Bluetooth device 1 for connection, ensuring that the Bluetooth functions provided to user A and user B are consistent. After display screen 103 and Bluetooth device 1 are bound, the Bluetooth device 1 in the paired state can be displayed on display screen 103 and display screen 104, instead of only displaying the Bluetooth device 1 in the paired state on display screen 103 (in this case, user B cannot obtain the Bluetooth device bound to the display screen other than display screen 103), and display screen 103 highlights Bluetooth device 1, while display screen 104 does not highlight Bluetooth device 1. This allows user A using display screen 103 to obtain that electronic device 100 has been paired with Bluetooth device 1 and that display screen 103 has been bound to Bluetooth device 1, and also allows user B using display screen 104 to obtain that electronic device 100 has been paired with Bluetooth device 1 and that display screen 104 and Bluetooth device 1 are not bound, thereby effectively improving user experience.

[0246] See also Fig.12 , Fig.12 It is a flowchart of a binding relationship updating process provided in an embodiment of the present application. Fig.12 The process includes updating the binding relationship related to Bluetooth device 1 as an example for explanation.

[0247] Fig.12 The following example is used to illustrate that the Bluetooth chip 101 and the Bluetooth device 1 have a connection relationship, and the display screen 103 and the Bluetooth device 1 have a binding relationship. Fig.12 Previously executed Fig.11 The process shown.

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

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

[0250] S202: SoC102 updates the binding relationship between the display screen and the Bluetooth device.

[0251] In one embodiment, after receiving the request from the display screen 104, the SoC 102 may 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 one embodiment, after the SoC 102 updates the binding relationship between the display screen and the Bluetooth device, the display screen 103 and the display screen 104 may be notified of the update result, such as S203 and S204, so that the display screen 103 and the display screen 104 adjust the display interface according to the update result, such as S205 and S206.

[0252] After S202, the Bluetooth device 1 is no longer bound to the display screen 103, but is bound to the display screen 104. It can also be said that the binding relationship between the Bluetooth device 1 and the display screen 103 is deleted / canceled, and a new binding relationship between the Bluetooth device 1 and the display screen 104 is added. At the same time, the connection relationship between the Bluetooth device 1 and the Bluetooth chip 101 remains unchanged.

[0253] S203: SoC 102 notifies display screen 103 that display screen 104 and Bluetooth device 1 are bound.

[0254] S204: SoC 102 notifies display screen 104 that display screen 104 and Bluetooth device 1 are bound.

[0255] S205: the display screen 103 displays the Bluetooth setting interface (including the non-highlighted Bluetooth device 1).

[0256] S205 is an optional step. Fig.11 Similar to S111, please refer to Fig.11 The description of S111 is not repeated here.

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

[0258] S206 is an optional step. Fig.11 Similar to S110, please refer to Fig.11The description of S110 is not repeated here.

[0259] In some examples, Fig.11 The scenario of the process shown is the above scenario 2, the Bluetooth device 1 is "CCC's Bluetooth headset", and the interface examples before S201 can be found in Figure 5 The user operation described in S201 is, for example, to act on Figure 5 The operation of the information 521 of "CCC's Bluetooth headset" in the user interface 520 shown in FIG. 5 and the interface examples of S205 and S206 can be seen in FIG. Figure 6 .

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

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

[0262] S207 is an optional step. Fig.11 Similar to S112, please refer to Fig.11 The description of S112 is omitted here.

[0263] exist Fig.12 In the method shown, after the Bluetooth chip 101 and the Bluetooth device 1 establish a Bluetooth connection, when the display screen 103 and the Bluetooth device 1 are bound, the electronic device 100 can switch the display screen bound to the Bluetooth device 1 to the display screen 104 in response to the user operation of the user B using the display screen 104 (used to trigger the connection of the Bluetooth device 1). It can be understood that when the display screen 103 and the display screen 104 share a Bluetooth chip 101, for the Bluetooth device 1 connected to the Bluetooth chip 101, any one of the display screens 103 and 104 can connect to and use the Bluetooth device 1. It can also be understood that the connection relationship between the Bluetooth chip 101 and the Bluetooth device 1 is fixed, and the binding relationship between the display screen of the electronic device 100 and the Bluetooth device 1 is variable. Therefore, in response to the user operation of the above-mentioned user B, the electronic device 100 can directly update the binding relationship between the display screen and the Bluetooth device 1, without reconnecting and pairing with the Bluetooth device 1, reducing the power consumption of the device and improving user efficiency.

[0264] See also Fig.13 , Fig.13 This is a flowchart of another Bluetooth connection process provided in an embodiment of the present application. Fig.13 The process is described by taking the example of the electronic device 100 and the Bluetooth device 2 establishing a Bluetooth connection.

[0265] Fig.13The following example is used to illustrate that the Bluetooth chip 101 and the Bluetooth device 1 have a connection relationship, and the display screen 103 and the Bluetooth device 1 have a binding relationship. Fig.13 Previously executed Fig.11 The process shown.

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

[0267] S301: Bluetooth device 2 broadcasts via Bluetooth (eg, broadcasts information of Bluetooth device 2).

[0268] S302: the display screen 103 scans devices via Bluetooth and displays a Bluetooth setting interface (available devices include Bluetooth device 2).

[0269] S303: the display screen 104 scans devices via Bluetooth and displays a Bluetooth setting interface (available devices include Bluetooth device 2).

[0270] S302 is an optional step.

[0271] S302, S303 and Fig.11 Similar to S102 and S103, please refer to Fig.11 Description of S102 and S103.

[0272] S304: When the electronic device 100 receives a user operation on the Bluetooth device 2 in the Bluetooth setting interface displayed on the display screen 104, the SoC 102 determines whether the existing connection paths are less than N.

[0273] In one implementation, when the electronic device 100 receives the above user operation, the SoC 102 may determine whether the current connection path of the Bluetooth chip 101 (i.e., the number of connected Bluetooth devices) is less than the maximum connection path (i.e., N) supported by the Bluetooth chip 101. When the determination result is yes, the SoC 102 may determine that the Bluetooth chip 101 and the Bluetooth device 2 can establish a Bluetooth connection, for example, executing S305. Fig.13 The above judgment result of yes is taken as an example for explanation. Fig.13 The capability of the Bluetooth chip 101 is taken as the above case 3 (ie, for any Bluetooth device of any service, the Bluetooth chip 101 supports a maximum of N connections) as an example for description.

[0274] S305 : When the existing connection paths are less than N, the electronic device 100 is connected and paired with the Bluetooth device 2 via the Bluetooth chip 101 .

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

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

[0277] S306 and Fig.11 The instructions for S105 are similar, please refer to Fig.11 Description of S105.

[0278] S307 : the display screen 104 requests the SoC 102 to bind the Bluetooth device 2 .

[0279] S307 and Fig.11 The instructions for S106 are similar, please refer to Fig.11 Description of S106.

[0280] S308: SoC102 updates the binding relationship between the display screen and the Bluetooth device.

[0281] In one embodiment, after receiving the request from the display screen 104, the SoC 102 may add the binding relationship between the display screen 104 and the Bluetooth device 2 to the maintained binding relationship. In one embodiment, after the SoC 102 updates the binding relationship between the display screen and the Bluetooth device, the updated result may be notified to the display screen 103 and the display screen 104, so as to realize the process and Fig.11 The difference is that the notification content at this time is that the display screen 104 is bound to the Bluetooth device 2. The display screen 103 and the display screen 104 can adjust the display interface according to the received update result, and the process and Fig.11 Similar to S110 and S111.

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

[0283] Not limited to the description of S306-S308, in another implementation manner, after the electronic device 100 is connected and paired with the Bluetooth device 2 via the Bluetooth chip 101, S308 may be directly executed without executing S306-S307.

[0284] S309 : the display screen 104 communicates with the Bluetooth device 2 via the Bluetooth chip 101 .

[0285] S309 is an optional step. Fig.11 Similar to S112, please refer to Fig.11The description of S112 is omitted here.

[0286] Not limited to Fig.13 In another embodiment, the electronic device 100 will also determine whether to connect to the Bluetooth device to be connected based on the capability of the Bluetooth chip 101 (specifically, the capability of connecting to the Bluetooth device), the service type of the Bluetooth device to be connected, the number of Bluetooth devices currently connected to the Bluetooth chip 101 (i.e., the existing connection paths), and the service type of the Bluetooth device currently connected to the Bluetooth chip 101. Examples of the capability of the Bluetooth chip 101 can be found in Case 1, Case 2, and Case 3 above. Examples of scenarios can be found in Scenarios 1 to 9 above.

[0287] Not limited to the above Fig.13 In another embodiment, when the judgment result of S304 is no, SoC102 can determine that the Bluetooth chip 101 and the Bluetooth device 2 cannot establish a Bluetooth connection, so S304 will not be executed. Optionally, the display screen 104 can display a corresponding prompt message. For example, see the above scenario 7. In another embodiment, when the judgment result of S304 is no, SoC102 can instruct the Bluetooth chip 101 to disconnect from a Bluetooth device, and instruct the Bluetooth chip 101 to establish a connection with the Bluetooth device 2. For example, in the above scenario 7, Fig.13 Based on the process shown, the Bluetooth chip 101 and the Bluetooth device 1 are disconnected, and accordingly, the Bluetooth device 1 and the display screen 103 are also unbound. For a scenario example, see the above scenario 8. In another embodiment, when the judgment result of S304 is no, the SoC 102 can determine that the Bluetooth chip 101 and the Bluetooth device 2 can establish a Bluetooth connection, but the Bluetooth device 2 cannot be used. For a scenario example, see the above scenario 9.

[0288] Not limited to the above Fig.13 In another embodiment, before the electronic device 100 receives a user operation for triggering connection to a new Bluetooth device, there may be more Bluetooth devices connected to the Bluetooth chip 101. For specific scenario examples, see Figure 7 , Fig. 9 , the embodiments of the present application do not limit this.

[0289] exist Fig.13In the method shown, display screen 103 and display screen 104 share a Bluetooth chip 101. When the electronic device 100 receives a user operation for triggering the display screen 104 to bind to Bluetooth device 2, it is necessary to first determine whether the current connection path of the Bluetooth chip 101 (including the current connection path of the display screen 103 and the current connection path of the display screen 104) is less than N, that is, to determine whether the Bluetooth chip 101 can support the addition of a new connection path. When the judgment result is yes, the Bluetooth chip 101 will add a new connection path (for example, Bluetooth device 1), thereby ensuring that the Bluetooth chip 101 can normally support the connection paths of the display screens 103 and 104, that is, the display screens 103 and 104 can both connect and communicate normally with the bound Bluetooth devices, thereby avoiding the situation where the connection paths of other display screens are abnormal when a new connection path is added, and the Bluetooth function cannot be used normally, thereby effectively improving the user experience.

[0290] Figure 11-13 The process shown is described by taking the example that after the display screen and the Bluetooth device have a binding relationship, the Bluetooth chip 101 can communicate with the Bluetooth device. In other embodiments, before the display screen communicates with the bound Bluetooth device, the electronic device 100 can first determine whether the current communication path of the Bluetooth chip 101 is less than P, and determine whether the display screen can communicate with the bound Bluetooth device through the Bluetooth chip 101 according to the determination result. For specific examples, see the following Fig.14 .

[0291] See also Fig.14 , Fig.14 It is a flowchart of a Bluetooth communication process provided in an embodiment of the present application.

[0292] Fig.14 Take the following situation as an example: Bluetooth chip 101 and Bluetooth device 1, Bluetooth device 2, and Bluetooth device 3 are all connected, and display screen 103 and Bluetooth device 1 and Bluetooth device 2 are all bound, and display screen 104 and Bluetooth device 3 are bound. The process example of the electronic device 100 establishing a connection relationship and a binding relationship with any Bluetooth device can be found in Fig.11 .

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

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

[0295] In one implementation, SoC 102 can respond to the user operation on display screen 104 and determine whether the current communication path of Bluetooth chip 101 (i.e., the number of Bluetooth devices that are connected and transmitting data) is less than the maximum communication path (i.e., P) supported by Bluetooth chip 101. Fig.14 In the case A shown in FIG. 1 , when the judgment result is yes, SoC 102 determines that a new communication path can be added, for example, by executing S402. Fig.14 In the case B) shown in FIG. 1 , when the judgment result is no, SoC 102 determines that a new communication path cannot be added, for example, executing S403 - S404 .

[0296] S402: When the existing communication path is smaller than P, the display screen 104 communicates with the Bluetooth device 3 via 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 via the Bluetooth chip 101 to implement the service of the display screen 103 .

[0298] In some examples, assuming that P is 2, before S401, the existing communication path may be 0, that is, the display screen 103 does not communicate with the bound Bluetooth device 1 and Bluetooth device 2 through the Bluetooth chip 101. Without limitation thereto, in other examples, before S401, the existing communication path may be 1, that is, the display screen 103 is communicating with the bound Bluetooth device 1 or Bluetooth device 2 through the Bluetooth chip 101. For specific examples, see the above Figure 7 The scene shown.

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

[0300] In one implementation, the display screen 104 may obtain, based on the notification sent by the SoC 102 , that it is impossible to communicate with the Bluetooth device 3 via the Bluetooth chip 101 . Optionally, a prompt message may be displayed at this time, for example, executing S404 .

[0301] S404: the display screen 104 displays a prompt message (the prompt message indicates, for example, that the current communication path has reached the maximum and communication with the Bluetooth device 3 is impossible).

[0302] S404 is an optional step.

[0303] Not limited to Fig.14In another embodiment, the electronic device 100 will also determine whether to add a new communication path according to the capability of the Bluetooth chip 101 (specifically, the capability to support simultaneous data transmission), the type of data to be transmitted (i.e., the type of business data of the display screen 104, which can also be understood as the business type of the Bluetooth device 3 to be communicated), 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 business type of the Bluetooth device currently communicating data through the Bluetooth chip 101). Among them, the example of the capability of the Bluetooth chip 101 is similar to the above-mentioned case 1, case 2, and case 3. For scenario examples, please refer to the above-mentioned scenario 10, but it is not limited thereto. For example, there are also scenarios similar to scenarios 1-9.

[0304] exist Fig.14 In the method shown, display screen 103 and display screen 104 share a Bluetooth chip 101. When the electronic device 100 receives a user operation for triggering the addition of a new communication path, it is necessary to first determine whether the current communication path of the Bluetooth chip 101 (including the current communication path of the display screen 103 and the current communication path of the display screen 104) is less than P, that is, to determine whether the Bluetooth chip 101 can support the addition of a new communication path. When the judgment result is yes, the Bluetooth chip 101 will add a new communication path (for example, Bluetooth device 3), thereby ensuring that the Bluetooth chip 101 can normally support the communication paths of the display screens 103 and 104, so that the display screens 103 and 104 can both transmit data normally with the bound Bluetooth devices, avoiding the situation where the communication paths of other display screens are abnormal when adding new communication paths, and the Bluetooth function cannot be used normally, thereby effectively improving the user experience.

[0305] See also Fig.15 , Fig.15 It is a flowchart of a process of deleting a Bluetooth device provided in an embodiment of the present application.

[0306] Fig.15 The following example is used to illustrate that the Bluetooth chip 101 and the Bluetooth device 1 have a connection relationship, and the display screen 103 and the Bluetooth device 1 have a binding relationship. Fig.15 Previously executed Fig.11 The process shown.

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

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

[0309] In one implementation, SoC 102 may respond to the user operation on display screen 104 to determine whether Bluetooth device 1 is currently used by bound display screen 103 (e.g., whether display screen 103 transmits service data with Bluetooth device 1). In some examples, assuming that Bluetooth device 1 is "CCC's Bluetooth headset", the user operation on display screen 104 may include: an operation on the setting interface of Bluetooth device 1 displayed on display screen 104 to cancel pairing controls, an operation on the setting interface of Bluetooth device 1 and Fig.10 The user interface 1010 shown (option 1013 of which is a cancel pairing control) is similar. Fig.15 In the case C shown in FIG. 1 , when the judgment result is yes, SoC 102 determines that the Bluetooth device 1 cannot be deleted, for example, executing S502-S503. Fig.15 In the case D) shown, when the judgment result is no, SoC102 determines to delete the Bluetooth device 1, for example, executing S504-S510.

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

[0311] In one implementation, the display screen 104 may obtain, based on the notification sent by the SoC 102 , that the Bluetooth device 1 cannot be deleted currently. Optionally, a prompt message may be displayed at this time, for example, executing S503 .

[0312] S503: the display screen 104 displays a prompt message (the prompt message indicates, for example, that the Bluetooth device 1 is being used and cannot be deleted).

[0313] S503 is an optional step.

[0314] S504: When the Bluetooth device 1 is not in use, the pairing between the Bluetooth chip 101 and the Bluetooth device 1 is cancelled.

[0315] S505: When the pairing between the Bluetooth chip 101 and the Bluetooth device is canceled successfully, the Bluetooth chip 101 notifies the SoC 102 that the pairing with the Bluetooth device 1 has been canceled, so that the SoC 102 notifies the display screens 103 and 104 that the pairing with the Bluetooth device 1 has been canceled (for example, S507 and S508).

[0316] S506: SoC102 updates the binding relationship between the display screen and the Bluetooth device.

[0317] In one implementation, after receiving the notification sent by the Bluetooth chip 101 , the SoC 102 may 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 the display screen 103 that the pairing with the Bluetooth device 1 has been cancelled.

[0319] S508: SoC 102 notifies display screen 104 that pairing with Bluetooth device 1 has been cancelled.

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

[0321] S509: the display screen 103 displays the Bluetooth setting interface (excluding the Bluetooth device 1 in the paired state).

[0322] S509 is an optional step.

[0323] In one embodiment, after receiving the notification sent by SoC102, the display screen 103 can obtain that the pairing with the Bluetooth device 1 has been canceled. Therefore, when the Bluetooth setting interface is displayed, the Bluetooth device 1 may not be displayed, or although the Bluetooth device 1 is displayed, the Bluetooth device 1 is not in a paired state.

[0324] S510: the display screen 104 displays the Bluetooth setting interface (excluding the Bluetooth device 1 in the paired state).

[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, Fig.15 The scenario of the process shown is the above-mentioned scenario 12.

[0328] exist Fig.15 In the method shown, the display screen 103 and the display screen 104 share a Bluetooth chip 101, and the user can trigger the deletion of the Bluetooth device 1 bound to the display screen 103 on the display screen 104, that is, each screen of the electronic device 100 provides the function of deleting the paired Bluetooth device (including the Bluetooth devices bound to other screens), and the user operation is more flexible. In addition, in response to the user operation, the electronic device 100 needs to first determine whether the Bluetooth device 1 is currently in use. When the judgment result is yes, the Bluetooth device 1 will not be deleted. When the judgment result is no, the Bluetooth device 1 will be deleted to avoid the Bluetooth device 1 being accidentally deleted when in use, resulting in a bad experience for the user A using the display screen 103. The function of deleting the Bluetooth device is more intelligent and improves the user experience.

[0329] Not limited to Fig.15In the process shown, in other embodiments, the judgment of S501 can also be replaced by: judging whether the Bluetooth device 1 is currently bound to other screens other than the display screen 104, when the judgment result is yes, SoC102 determines that the Bluetooth device 1 cannot be deleted, and the execution process is similar to S502-S503, when the judgment result is no, SoC102 determines to delete the Bluetooth device 1, and the execution process is similar to S504-S510. For scenario examples, see the above scenario 13 and scenario 14.

[0330] The above implementation manner is described by taking deleting a Bluetooth device as canceling pairing with the Bluetooth device as an example. In another implementation manner, deleting a Bluetooth device may also be canceling the connection with the Bluetooth device but not canceling the pairing. The specific description is similar to that of the above implementation manner and will not be repeated here.

[0331] The above embodiments are described using Bluetooth communication technology as an example. The embodiments of the present application may also be applicable to other short-range communication technologies, such as Wi-Fi, NFC, IR, GNSS, SLE, SLB, etc., which are not limited in the embodiments of the present application.

[0332] The methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it may 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, the process or function described in the embodiments of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DWD), or a semiconductor medium (e.g., a solid state drive (SSD)). As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application is described in detail with reference to the above embodiments, a person skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A short-range communication method, characterized in that: Applied to an electronic device, the electronic device comprises a short-range communication chip, a first display screen and a second display screen, the first display screen and the second display screen both correspond to the short-range communication chip, the method comprises: receiving a first operation applied to the first display screen; In response to the first operation, establishing a connection with a first communication device through the short-range communication chip, and binding the first display screen with the first communication device; A first interface is displayed on the first display screen, and a second interface is displayed on the second display screen, wherein the first interface includes the first communication device in a paired state, and the first communication device in the first interface is highlighted, and the second interface includes the first communication device in a paired state, and the first communication device in the second interface is not highlighted.

2. The method according to claim 1, characterized in that The first interface and the second interface are settings interfaces for a short-range communication function.

3. The method according to claim 1 or 2, characterized in that Before receiving the first operation acting on the first display screen, the method further includes: The first communication device is scanned through the short-range communication chip, a third interface is displayed on the first display screen, and a fourth interface is displayed 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 acting on the first communication device in the third interface.

4. The method according to any one of claims 1 to 3, characterized in that: The highlighting method includes at least one of the following: highlighting, bold font display, italic font display, underline, background texture, borders around characters, font color different from the font color of other texts, font type different from the font type of other texts, and font size different from the font size of other texts.

5. The method according to any one of claims 1 to 4, characterized in that: The first interface includes first prompt information, and / or the second interface includes 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 according to any one of claims 1 to 5, characterized in that: 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 between the first display screen and the first communication device, and canceling the binding between the second display screen and the first communication device; A fifth interface is displayed on the first display screen, and a sixth interface is displayed on the second display screen, wherein the fifth interface includes the first communication device in a paired state, and the first communication device in the fifth interface is not highlighted, and the sixth interface includes the first communication device in a paired state, and the first communication device in the sixth interface is highlighted.

7. The method according to any one of claims 1 to 6, characterized in that: The number of communication devices supported by the short-range communication chip for connection is N, 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 acting on the first display screen, wherein the third operation is used to trigger connection with a second communication device, the second communication device is different from the S communication devices, and 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, a connection is established between the short-range communication chip and the second communication device, and the first display screen and the second communication device are bound.

8. The method according to claim 7, characterized in that The method further comprises: When (S+1) is greater than N, a third prompt message is displayed on the first display screen, wherein the third prompt message indicates that the second communication device cannot be connected; or, When (S+1) is greater than N, the short-range communication chip and the third communication device among the S communication devices are disconnected, a connection is established with the second communication device through the short-range communication chip, and the first display screen is bound with the second communication device; or, When (S+1) is greater than N, a connection is established between the short-range communication chip and the second communication device, and the first display screen and the second communication device are bound together, and the second communication device bound to the first display screen is in an unusable state.

9. The method according to claim 7 or 8, characterized in that The number of communication devices for audio services connected supported by the short-range communication chip is N, and the S communication devices and the second communication device both correspond to audio services.

10. The method according to claim 7 or 8, characterized in that The number of communication devices of the audio service connected to the short-range communication chip is N; and the determining 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, determining whether (S+1) is less than or equal to N; The method further comprises: When the S communication devices correspond to audio services and the third communication device corresponds to services other than audio services, in response to the third operation, a connection is established between the short-range communication chip and the third communication device, and the first display screen is bound to the third communication device.

11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: receiving a fourth operation acting on a fourth communication device in the second interface; In response to the fourth operation, establishing a connection with the fourth communication device through the short-range communication chip, and binding the fourth communication device through the second display screen; A seventh interface is displayed on the first display screen, and an eighth interface is displayed on the second display screen, the seventh interface includes the first communication device and the fourth communication device in a paired state, the first communication device in the seventh interface is highlighted, and the fourth communication device in the seventh interface is not highlighted, and the eighth interface includes the first communication device and the fourth communication device in a paired state, the first communication device in the eighth interface is not highlighted, and the fourth communication device in the eighth interface is highlighted.

12. The method according to any one of claims 1 to 10, characterized in that: The first interface includes first prompt information, the first prompt information indicating that the first communication device is connected to the electronic device, and indicating that the first communication device is bound to the first display screen; The method further comprises: receiving a fifth operation acting 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 with the fifth communication device via the short-range communication chip, and the first display screen is bound with the fifth communication device; 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 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 is connected to the electronic device, and indicates that the fifth communication device is bound to the first display screen.

13. The method according to any one of claims 1 to 10, characterized in that: The first interface includes first prompt information, the first prompt information indicating that the first communication device is connected to the electronic device, and indicating that the first communication device is bound to the first display screen; The method further comprises: receiving a sixth operation acting 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 first display screen with the sixth communication device; A tenth interface is displayed on the first display screen, the tenth interface includes 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 are highlighted, the tenth interface includes the first prompt information and the fifth prompt information, the fifth prompt information indicates that the sixth communication device is connected to the electronic device, and indicates that the sixth communication device is bound to the first display screen.

14. The method according to claim 13, characterized in that The step of 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 includes: When the multi-device connection function of the first communication device is turned on, a connection is established with the sixth communication device through the short-range communication chip, and the first display screen is bound with the sixth communication device; The method further comprises: When the multi-device connection function of the first communication device is turned off, the short-range communication chip and the first communication device are disconnected, a connection is established with the sixth communication device through the short-range communication chip, and the first display screen is bound with the sixth communication device; or, When the multi-device connection function of the first communication device is turned off, a sixth prompt message is displayed on the first display screen, and the sixth prompt message indicates that the sixth communication device cannot be connected.

15. The method according to any one of claims 1 to 14, characterized in that: The method further comprises: The first display screen communicates with the first communication device via the short-range communication chip.

16. The method according to any one of claims 1 to 15, characterized in that: 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 is used to trigger the use of the first communication device, the first communication device is different from the T communication devices, and 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, seventh prompt information is displayed on the first display screen, and the seventh prompt information indicates that the first communication device cannot be used.

17. The method according to claim 16, characterized in that The number of communication devices supported by the short-distance communication chip for transmitting audio data is P; and the determining whether (T+1) is less than or equal to P includes: When the T communication devices and the first communication device both correspond to audio services, determining 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 services other than 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 according to any one of claims 1 to 17, characterized in that: The method further comprises: receiving an eighth operation acting on the second display screen, wherein the eighth operation is used to trigger 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, an eighth prompt message is displayed on the second display screen, wherein the eighth prompt message 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 are unpaired.

19. The method according to any one of claims 1 to 17, characterized in that: The method further comprises: receiving a ninth operation acting on the second display screen, wherein the ninth operation is used to trigger deletion of the first communication device; In response to the ninth operation, determining whether to bind the first display screen and the first communication device; When the first display screen and the first communication device are bound, a ninth prompt message is displayed on the second display screen, wherein the ninth prompt message 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 are unpaired.

20. The method according to any one of claims 1 to 19, characterized in that The method further comprises: The short-range communication chip and the first communication device are disconnected; When the connection is established with the first communication device through the short-range communication chip, the first display screen is bound with the first communication device.

21. The method according to any one of claims 1 to 19, characterized in that: The method further comprises: The short-range communication chip and the first communication device are disconnected; When the connection is established with the first communication device through the short-range communication chip, the electronic device is bound with the first communication device through a preset display screen, where the preset display screen is the first display screen or the second display screen.

22. The method according to any one of claims 1 to 19, characterized in that: The method further comprises: The short-range communication chip and the first communication device are disconnected; When establishing a connection with the first communication device through the short-range communication chip, detecting the area where the first communication device is located; When the first communication device is located in the area of ​​the first display screen, binding the first communication device with the first display screen; When the first communication device is located in the area of ​​the second display screen, the second display screen is bound to the first communication device.

23. The method according to any one of claims 1 to 22, characterized in that The electronic device includes 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 according to any one of claims 1 to 23, characterized in that The electronic device is a vehicle or a vehicle-mounted device, the first display screen is a co-pilot screen, and the second display screen is a rear screen.

25. An electronic device, characterized in that: The method comprises a transceiver, a processor and a memory, wherein the memory is used to store a computer program, and the processor calls the computer program to execute the method according to any one of claims 1 to 24.

26. A computer storage medium, characterized in that The computer storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 24 is implemented.

Citation Information

Patent Citations

  • Short-distance wireless communication connection method and system, active pen, and touch screen

    CN111083943A

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

    WO2022048488A1

  • Display device and system

    WO2022139028A1