A device interconnection method and electronic device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2026-08-11
AI Technical Summary
[0004]现有的多设备协同技术中容易出现由于设备之间通信质量差导致的互联互通业务发起失败的问题,导致用户体验较差
[0049]本申请中,由于不同通信连接的制式下灵敏度、功率等均不同,不同通信连接下,具有高通信质量的目标业务对于通信质量的要求也不同,不同通信连接下目标通信参数对应的预设参数阈值也不同。通过实验测试或用户设备的大数据所确定的每一种目标业务在每一种地点、每一种通信连接下对应的预设参数阈值比较准确,使得第二设备的通信质量的判断也比较准确。
Smart Images

Figure CN122554983A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a device interconnection method and an electronic device. Background Technology
[0002] A single user may own multiple electronic devices such as mobile phones, tablets, desktop computers, televisions, and monitors. During the use of these electronic devices, users have a need to transmit data between them and interconnect them. This has led to the development of a multi-device collaboration technology in a trusted environment, which enables multiple devices to interconnect and communicate with each other.
[0003] During the process of establishing interconnection between multiple devices, the master device discovers and connects to slave devices via low-power communication methods such as Bluetooth. After establishing a Bluetooth connection, the master device displays the device information of the connected slave devices on the device connection interface, allowing users to initiate interconnection services for a specific slave device.
[0004] Existing multi-device collaboration technologies are prone to problems such as poor communication quality between devices, which can lead to failures in initiating interconnection services and result in a poor user experience. Summary of the Invention
[0005] This application provides a device interconnection method and an electronic device. The target second device displayed on the device connection interface is a device whose target communication parameters meet the communication quality requirements of a target service with high communication quality needs in a multi-device interconnection scenario. The communication quality of the target second device can satisfy the normal execution of target services with high communication quality requirements, and even more so, the normal execution of services with low communication quality requirements. Therefore, regardless of which service the user initiates in a multi-device interconnection scenario, the communication quality between the second device and the first device can meet the communication quality requirements of that service, ensuring that services in the multi-device interconnection scenario can be executed normally. This avoids the problem of target services with high communication quality requirements failing to respond due to poor communication quality between the second device and the first device, optimizing the user experience in multi-device interconnection scenarios, especially for target tasks with high communication quality requirements.
[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions.
[0007] Firstly, a device interconnection method is provided, applied to a first device in a multi-device interconnection scenario, the method comprising:
[0008] The first device performs a device search and finds the first number of second devices;
[0009] When the first device establishes a communication connection with the second device, the first device performs a communication quality test on the second device;
[0010] The first device displays the interconnection information of a second number of target second devices on the device connection interface; the second number is less than or equal to the first number.
[0011] Among them, the target communication parameters of the second target device meet the communication quality requirements of the target service with high-quality communication needs in the multi-device interconnection scenario.
[0012] In this application, the first device searches for and connects to the second device. The first device can detect the communication quality of the second device, and the first device targets the second device in the device connection interface. The target second device displayed in the device connection interface is a device whose target communication parameters meet the communication quality requirements of a target service with high communication quality needs in a multi-device interconnection scenario. The communication quality of the target second device can meet the normal execution of target services with high communication quality requirements, and even more so, the normal execution of services with low communication quality requirements. Therefore, regardless of which service the user initiates in a multi-device interconnection scenario, the communication quality between the second device and the first device can meet the communication quality requirements of that service, ensuring that services in a multi-device interconnection scenario can be executed normally. This avoids the problem of target services with high communication quality requirements failing to respond due to poor communication quality between the second device and the first device, thus optimizing the user experience in multi-device interconnection scenarios, especially for target tasks with high communication quality requirements.
[0013] In one possible implementation of the first aspect, the interconnection information includes a device identifier.
[0014] The method also includes:
[0015] The first device displays the interconnection information of other second devices on the device connection interface.
[0016] Among them, the other second devices are those devices whose target communication parameters do not meet the communication quality requirements of the target service.
[0017] Accordingly, the method also includes:
[0018] The first device displays communication quality reminders for the other second devices on the device connection interface.
[0019] The communication quality alert information is used to remind other second devices that their communication quality is poor and that the other second devices are unable to support the response to the target service.
[0020] In this application, after the first device discovers the second device, it performs a communication quality test based on communication parameters. If the communication quality of the second device does not meet the communication quality requirements of any target service, the first device can still display the discovered second device in the device connection interface. In order to distinguish it from the second devices in the device connection interface that meet the communication quality requirements, for other second devices that do not meet the communication quality requirements, the first device can display a prompt message (or prompt icon) in the device connection interface to indicate that the second device has poor communication quality or weak signal. This can avoid misleading users into thinking that the device search is abnormal or that the second device has not been found, and further optimize the user's experience of using device interconnection.
[0021] In another possible implementation of the first aspect, different target services may have the same or different communication quality requirements. The target second device includes a device whose communication quality meets the communication quality requirements of at least one target service.
[0022] In this scenario, the interconnected information includes the service name of the target service satisfied by the target second device.
[0023] In this application, the first device can determine the target second device based on the communication quality requirements corresponding to each target service. The first device displays the target second device and service information in the device connection interface, which meet the communication quality requirements of at least one target service. This allows users to perceive the target services that the target second device can support, thereby ensuring that the target service that the user can initiate on the second device is a service that can be executed normally with the communication quality of the target second device. This further avoids the problem of target service execution failure, optimizes the user experience of using multi-device interconnection services, and makes the effect of multi-device interconnection better.
[0024] In another possible implementation of the first aspect, the communication connection includes a low-speed communication connection, which includes a Bluetooth communication connection.
[0025] The target second device includes devices whose target communication parameters meet the Bluetooth quality requirements, which correspond to the communication quality requirements of the target services supported by the high-speed communication connection.
[0026] In this application, when the target service is a high-speed communication connection-supported service with high communication quality, and a low-speed communication connection (such as Bluetooth) is established between the first and second devices instead of a high-speed communication connection (e.g., WiFi P2P or WLAN), the first device can determine whether the second device meets the high communication quality requirements of the target service through the communication quality requirements of the Bluetooth connection. Here, the communication quality requirements of the target service for the Bluetooth connection match the communication quality requirements of the target service under a high-speed communication connection. That is, when the first and second devices do not establish a high-speed communication connection, by judging the communication quality requirements of the target service for a low-speed communication connection, it can be determined that the second device meets the communication quality requirements of the target service under a low-speed connection, and also ensures that the second device meets the communication quality requirements of the target service under a high-speed connection. By indirectly reflecting the communication quality of the high-speed connection with the communication quality of the low-speed connection, the judgment of communication quality in multi-device interconnection scenarios becomes more comprehensive and accurate.
[0027] In another possible implementation of the first aspect, the communication connection includes a high-speed communication connection.
[0028] When the high-speed communication connection is a Wireless Local Area Network (WLAN) communication connection, the target second device includes devices whose target communication parameters meet the WLAN communication quality requirements of the target service; or...
[0029] When a high-speed communication connection is a point-to-point WiFi P2P communication connection in a wireless communication network, the target second device includes a device whose target communication parameters meet the target service's requirements for WiFi P2P communication quality.
[0030] In this application, the fact that the communication quality of the target second device meets the communication quality requirements of the target service means that the communication quality between the target second device and the first device is high, enabling smooth response to target services with high-quality communication needs and improving the user experience of interconnected services. The communication quality of the target second device can meet the normal execution of target services with high communication quality requirements, and even better, it can meet the normal execution of services with low communication quality requirements. Therefore, regardless of the type of service initiated by the user in a multi-device interconnection scenario, the communication quality between the second device and the first device can meet the communication quality requirements of that service, ensuring that services in multi-device interconnection scenarios can be executed normally. This avoids the problem of target services with high communication quality requirements failing to respond due to poor communication quality between the second device and the first device, optimizing the user experience of services in multi-device interconnection scenarios, especially for target tasks with high communication quality requirements.
[0031] In another possible implementation of the first aspect, when the communication connection includes a low-speed communication connection and a high-speed communication connection, the detection priority of the high-speed communication connection is higher than that of the low-speed communication connection.
[0032] The second target device includes equipment whose target communication parameters meet the target service's requirements for high-speed communication connection and communication quality.
[0033] In this application, to ensure normal response to target services requiring high communication quality (such as high communication rate and latency), and considering that these target services often transmit data via high-speed communication connections, this embodiment prioritizes determining whether the target service's communication quality requirements are met based on the target communication parameters under a high-speed communication connection. That is, if both a high-speed communication connection (such as WiFi P2P or WLAN) and a low-speed communication connection (such as Bluetooth) are established simultaneously, the determination of whether the target service's communication quality requirements are met can be directly based on the target communication parameters of WiFi P2P or WLAN, providing a more direct and effective result on whether the second device's communication quality supports the target service.
[0034] In another possible implementation of the first aspect, when the high-speed communication connection includes a wireless local area network (WLAN) communication connection and a wireless communication network point-to-point WiFi (P2P) communication connection, the detection priority of the WiFi P2P communication connection is greater than that of the WLAN communication connection.
[0035] The target second device includes devices whose target communication parameters meet the target service's requirements for WiFi P2P communication quality.
[0036] In this application, to ensure normal response to target services requiring high communication quality (such as high communication rate and latency), and considering that these target services often transmit data via high-speed communication connections, this embodiment prioritizes determining whether the target service's communication quality requirements are met based on the target communication parameters under a high-speed communication connection. That is, if both a high-speed communication connection (such as WiFi P2P or WLAN) and a low-speed communication connection (such as Bluetooth) are established simultaneously, the determination of whether the target service's communication quality requirements are met can be directly based on the target communication parameters of WiFi P2P or WLAN, providing a more direct and effective result on whether the second device's communication quality supports the target service.
[0037] In another possible implementation of the first aspect, the target task is the task with the highest communication quality requirements among the interconnection services supported by high-speed communication connections. Alternatively, the target service is a task whose communication requirement parameters meet the following preset conditions; wherein the preset conditions include any one of the following: transmission rate greater than a first preset threshold, latency less than a second preset threshold, packet loss rate less than a third preset threshold, and signal-to-noise ratio greater than a fourth preset threshold.
[0038] In this application, the target task is the task with the highest communication quality requirements among interconnected services supported by high-speed communication connections, or the target service is a task whose communication requirement parameters meet the following preset conditions. The communication quality of the target second device, which meets the communication quality requirements of the target task, can ensure the normal execution of target services with high communication quality requirements, and even more so, services with low communication quality requirements. Therefore, regardless of the type of service initiated by the user in a multi-device interconnection scenario, the communication quality between the second device and the first device can meet the communication quality requirements of that service, ensuring that services in multi-device interconnection scenarios can be executed normally. This avoids the problem of target services with high communication quality requirements failing to respond due to poor communication quality between the second device and the first device, thus optimizing the user experience in multi-device interconnection scenarios, especially for target tasks with high communication quality requirements.
[0039] In another possible implementation of the first aspect, the target communication parameters of the target second device meet the communication quality requirements of the target service with high-quality communication needs in a multi-device interconnection scenario, including:
[0040] The target communication parameters of the second target device are greater than the preset parameter threshold, and the preset parameter threshold matches the communication quality requirements of the target task.
[0041] For example, the target communication parameters include the received signal strength.
[0042] In this application, the detection communication parameters used for communication quality detection may include one or more of the following corresponding to the communication connection: RSSI, signal-to-noise ratio, latency, packet loss rate, etc.; the target communication parameters used for judging communication quality requirements may also include one or more of the following corresponding to the communication connection: RSSI, signal-to-noise ratio, latency, packet loss rate, etc. The target communication parameters and the detection communication parameters may be the same or different. The target second device is determined by using one or more target communication parameters and preset parameter thresholds. The target communication parameters can characterize the actual communication quality of the second device to a certain extent, and the target second device determined based on the target communication parameters is relatively accurate.
[0043] In another possible implementation of the first aspect, the method for determining the preset parameter threshold includes:
[0044] For each target service, under each communication connection, a weak signal scenario is constructed between the first test device and the second test device. Under the weak signal scenario, the parameter test values corresponding to the failure of the second test device to respond to the target service are obtained. Based on the preset failure rate threshold and parameter test values under the weak signal scenario, the preset parameter threshold corresponding to the target service under each communication connection is determined.
[0045] or,
[0046] For each target service, obtain the actual parameter values of a large number of user devices when the response to the target task fails due to weak signals under each communication connection. Based on the preset failure rate threshold and the actual parameter values, determine the preset parameter threshold corresponding to the target service under each communication connection.
[0047] or,
[0048] For each target service, a preset initial threshold for preset parameters is set for each type of communication connection. The actual values of the parameters are obtained when the user equipment is in different locations and the response to the target service fails due to weak signals. Based on the preset failure rate threshold and the actual values of the parameters, the preset initial threshold for preset parameters is adjusted to determine the preset parameter threshold for the target service in each location and for each type of communication connection.
[0049] In this application, since the sensitivity, power, etc., differ under different communication connection standards, the communication quality requirements of target services with high communication quality also differ under different communication connections, and the preset parameter thresholds corresponding to the target communication parameters also differ under different communication connections. The preset parameter thresholds corresponding to each target service under each location and each communication connection, determined through experimental testing or big data from user equipment, are relatively accurate, thus making the judgment of the communication quality of the second device relatively accurate.
[0050] In another possible implementation of the first aspect, when the target communication parameter is the received signal strength, the received signal strength is the received signal strength after power control compensation.
[0051] The preset parameter thresholds include the received signal strength threshold, which is determined based on the received signal strength test value after power control compensation or the actual received signal strength value after power control compensation.
[0052] In this application, the received signal strength after power control compensation is more accurate, the communication quality detection based on the received signal strength after power control compensation is more accurate, and the received signal strength threshold determined based on the received signal strength after power control compensation is more accurate.
[0053] In another possible implementation of the first aspect, the method further includes:
[0054] The first device performs location detection to determine the target location where the first device and at least one second device are located.
[0055] Therefore, when the first device establishes a communication connection with the second device, the first device performs communication quality checks on the second device, including:
[0056] The first device acquires preset parameter thresholds corresponding to the target location and communication connection, and performs communication quality detection based on the preset parameter thresholds and the target communication parameters of at least one corresponding second device.
[0057] In this application, the preset parameter thresholds for each communication connection can be dynamically adjusted based on the user's actual usage data and / or the location of the user's device, so that the preset parameter thresholds can better match the actual usage of the user's device, making the detection of communication quality more accurate.
[0058] In another possible implementation of the first aspect, the target services corresponding to different types of second devices have different requirements for communication quality.
[0059] Alternatively, the first device and the second device form a pair of devices, and the target services corresponding to the pair of devices of different types have different requirements for communication quality.
[0060] Alternatively, the first device and the second device form a pair of devices, and the target services corresponding to the pair of devices with different device models have different requirements for communication quality.
[0061] In this application, the communication quality requirements corresponding to the target service are set according to the type of the device or the type or model of the paired device. This takes into account the performance differences of the target service on individual devices, making the detection of the communication quality of individual devices and the judgment of whether the communication quality requirements corresponding to the target service are met more in line with the actual usage scenario of the device where the target service is located. The communication quality detection is more accurate, and the identified target second device is more accurate.
[0062] In another possible implementation of the first aspect, the target services include one or more of the following: screen mirroring, keyboard and mouse sharing, message sharing, network sharing, remote control, file transfer and sharing, cross-device file management, application continuity, call sharing, cross-device quick drawing, audio and video relay, cross-device gesture control, or camera sharing.
[0063] In this application, the target service refers to services that can be initiated between devices in a multi-device interconnection (multi-device collaboration) scenario. For example, the target service may include screen mirroring, keyboard and mouse sharing, message sharing, network sharing, remote control, file transfer and sharing, cross-device file management, application continuation, call sharing, cross-device quick drawing, audio and video relay, cross-device gesture control, or camera sharing—services requiring high communication quality (e.g., high communication transmission rate, low packet loss rate, etc.). Based on the device interconnection method of this solution, device communication quality is detected to ensure that the communication quality of the target second device is sufficiently high, thus ensuring the normal execution of the target service.
[0064] In a second aspect, an electronic device is provided, comprising a communication interface, a display, a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in any of the first aspects above.
[0065] Thirdly, a computer-readable storage medium is provided that stores instructions which, when executed by a processor, implement the steps of the method described in any of the first aspects above.
[0066] Fourthly, a computer program product including instructions is provided, comprising a computer program / instructions that, when executed by a processor, implement the steps of the method described in any of the first aspects above.
[0067] Fifthly, embodiments of this application provide a chip, the chip including a processor, the processor being configured to invoke a computer program in memory to perform the method as described in any one of the first aspects.
[0068] It is understood that the beneficial effects of the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, the computer program product described in the fourth aspect, and the chip described in the fifth aspect can be referred to the beneficial effects of the first aspect and any of its possible design embodiments, which will not be repeated here. Attached Figure Description
[0069] Figure 1 This is a schematic diagram of a common process for interconnecting multiple devices.
[0070] Figure 2 This is a schematic diagram of a common scenario for multi-device interconnection;
[0071] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0072] Figure 4A software structure block diagram of an electronic device provided in an embodiment of this application;
[0073] Figure 5 A schematic flowchart illustrating a device interconnection method provided in an embodiment of this application;
[0074] Figure 6 A schematic diagram illustrating a process for dynamically adjusting the RSSI threshold, provided as an embodiment of this application;
[0075] Figure 7 A schematic diagram illustrating a device interconnection method provided in an embodiment of this application;
[0076] Figure 8 A flowchart illustrating a specific device interconnection method provided in an embodiment of this application;
[0077] Figure 9 This is a schematic diagram of an interface in a device interconnection scenario provided by an embodiment of this application;
[0078] Figure 10 A flowchart illustrating yet another specific device interconnection method provided in this application embodiment;
[0079] Figure 11 A schematic diagram of a device connection interface provided in an embodiment of this application;
[0080] Figure 12 A schematic diagram of another device connection interface provided in an embodiment of this application;
[0081] Figure 13 A schematic diagram illustrating another device interconnection method provided in an embodiment of this application;
[0082] Figure 14 A schematic diagram illustrating another device interconnection method provided in an embodiment of this application;
[0083] Figure 15 This is a schematic diagram of the structure of another electronic device provided in an embodiment of this application;
[0084] Figure 16 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation
[0085] In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0086] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.
[0087] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0088] A single user may own multiple electronic devices such as mobile phones, tablets, computers, televisions, and monitors. During the use of these devices, users need to transfer data and interconnect them, leading to the development of multi-device collaboration technologies within a trusted environment. These technologies enable interconnection between multiple devices, and the services offered for this interconnection are becoming increasingly diverse. For example, these services include keyboard and mouse sharing, screen mirroring, and file transfer.
[0089] For example, Figure 1 A schematic diagram of a common multi-device interconnection process is given, combined with... Figure 2 A schematic diagram of a common multi-device interconnection scenario is provided, and common multi-device interconnection methods are introduced.
[0090] During the process of establishing device interconnection among multiple devices, the main device (such as...) Figure 2 The mobile phone shown in (a) will broadcast a signal scan for slave devices via Bluetooth or other low-power, low-speed communication modes, attempting to establish a Bluetooth communication connection with the slave device. After the master device receives a connection response from the slave device, it determines that a communication connection can be established. After establishing a Bluetooth communication connection with the slave device, the master device will display the device information of the slave device on the device connection interface. This device information may include a device icon identifying the slave device, device name, device model, etc. Figure 2 As shown in (b), the mobile phone scans for signals from other devices via Bluetooth broadcast, searching for signals such as... Figure 2 The master device displays the tablet computer, monitor, and other slave devices, and establishes Bluetooth communication connections with each slave device. The master device displays the device information of the tablet computer and monitor on the device connection interface.
[0091] For example, the master device can, in response to receiving a user's action on the device icon of the slave device, display information related to the interconnection services provided by the slave device. For instance... Figure 2 As shown in (b) and (c), in response to the user's action on the device icon on the display, the mobile phone displays a pop-up window on the device connection interface showing the interconnection services provided by the display. Among them, such as Figure 2 As shown in (c), the pop-up window includes information such as the service name and icon of the interconnection services provided by the display. For example, the interconnection services provided by the display may include services such as network sharing, screen mirroring, and remote control.
[0092] When the master device receives a user's request for an interconnection service from a slave device (here, interconnection service specifically refers to services requiring high-speed, low-latency connections, such as screen mirroring), the master device determines the high-speed communication mode corresponding to the interconnection service and establishes a communication connection with the slave device through that mode. After establishing a high-speed communication connection with the slave device, the electronic device can respond and execute the corresponding interconnection service. Furthermore, the master device can periodically check the high-speed communication connection status. If it detects that the slave device maintains a continuous high-speed communication connection with the master device, the master device can continuously display the slave device on the device connection interface. This high-speed communication connection includes one or more types, such as wireless local area network (WLAN) connection and wireless fidelity peer-to-peer (WiFi P2P) connection.
[0093] If the high-speed communication connection with the slave device is detected to be disconnected, the master device can send a Bluetooth heartbeat signal to the disconnected slave device to check if the slave device is still within the signal coverage area. Upon receiving a response from the slave device to the Bluetooth heartbeat signal, the master device determines whether to maintain the Bluetooth communication connection with that slave device. If the master device detects that the slave device maintains a Bluetooth communication connection with the slave device, it can continuously display the slave device in the device connection interface. If the master device detects that the Bluetooth communication connection with the slave device has been disconnected, it will not display the slave device in the device connection interface and will continue to scan for other slave devices via Bluetooth broadcast.
[0094] like Figure 2 As shown in (c), when the mobile phone receives a user's request to cast the screen to the display, it determines the corresponding communication method, such as WiFi P2P. The mobile phone establishes a high-speed communication connection with the display via WiFi P2P. After establishing the WiFi P2P connection, the mobile phone communicates with the display to respond to the casting request. Furthermore, the mobile phone can continuously monitor whether the communication connection with the display is maintained. If the WiFi P2P communication connection between the mobile phone and the display is lost, the mobile phone can send a Bluetooth heartbeat signal to the display. Upon receiving a response from the display to the Bluetooth heartbeat signal, and confirming that the Bluetooth communication connection with the display is maintained, the mobile phone will still display the device information corresponding to the display in the device connection interface. If the mobile phone detects that the Bluetooth communication connection with the display is lost, it will not display the device information in the device connection interface. The display will then disappear from the list of devices that the mobile phone can connect to.
[0095] In real-world device interconnection scenarios, high-speed communication modes such as WiFi P2PN can operate on multiple frequency bands, including 2.4GHz, 5GHz, and 6GHz. These high-speed modes support a wider range of bandwidths and modulation methods. However, under most communication parameter configurations, the communication quality of high-speed communication (e.g., WiFi P2P) on the same device is generally worse than that of low-speed communication (e.g., Bluetooth). In some configurations or scenarios, the communication quality of high-speed communication is significantly inferior to that of low-speed communication. For example, significant spatial loss between two devices performing interconnection services (e.g., large distance between the devices or obstructions) can severely impact the communication quality of high-speed communication. In such scenarios, two devices can establish a low-speed communication connection and respond to services corresponding to that connection, but the high-speed communication connection between them will encounter problems. For example, two devices may be unable to establish a high-speed communication connection; or, although a high-speed communication connection can be established between two devices, the establishment process is time-consuming, and even if a high-speed communication connection is established, the two devices may be unable to respond or smoothly respond to the corresponding services under the high-speed communication connection; or, some specific configurations under the high-speed communication connection between two devices may be unusable, and so on.
[0096] In other words, Figure 1 as well as Figure 2 In a typical multi-device interconnection scenario, the master device displays all slave devices that have established low-speed communication connections (such as Bluetooth) on the device connection interface. This interface also displays all interconnection services provided by the slave devices (including services under low-speed and high-speed communication connections). The communication quality of the high-speed communication connection between the slave and master devices is unknown; it may be good or very poor. Furthermore, even if the master and slave devices do not establish a high-speed communication connection or the high-speed connection is disconnected, the slave devices will continue to appear in the device connection list. This can mislead users, as they cannot perceive the actual communication quality of the high-speed communication connections of the slave devices in the device connection interface. Users may then assume that all slave devices displayed in the interface can initiate interconnection services under high-speed communication connections. When a user attempts to initiate an interconnection service with a slave device whose high-speed communication connection is poor or disconnected, the data transmission rate between the master and slave devices in high-speed or low-speed communication modes may be low, potentially leading to data transmission delays or packet loss. This can prevent the master and slave devices from conducting interconnection services, or cause stuttering during interconnection, failing to meet the communication quality requirements of interconnection services and resulting in a very poor user experience when using interconnection services between multiple devices.
[0097] This application provides a device interconnection method. After a first device (i.e., the master device) searches for and connects to a second device (i.e., the slave device), the first device can detect the communication quality of the second device. The first device targets the second device in the device connection interface. The target second device displayed in the device connection interface is a device whose target communication parameters meet the communication quality requirements of a target service with high communication quality needs in a multi-device interconnection scenario. The communication quality of the target second device can meet the normal execution of target services with high communication quality requirements, and even more so, the normal execution of services with low communication quality requirements. Therefore, regardless of which service the user initiates in a multi-device interconnection scenario, the communication quality between the second device and the first device can meet the communication quality requirements of that service, ensuring that services in a multi-device interconnection scenario can be executed normally. This avoids the problem of target services with high communication quality requirements failing to respond due to poor communication quality between the second device and the first device, thus optimizing the user experience in multi-device interconnection scenarios, especially for target tasks with high communication quality requirements.
[0098] Furthermore, the device connection interface of the first device can also display the service names of services that the communication quality of the target second device supports. That is, the device connection interface of the first device will not display the service names of services that the communication quality of the target second device does not support. This allows users to perceive the services that the target second device can initiate, and further avoids the problem of service initiation failure due to users initiating services that the target second device does not support. This solution ensures that the services corresponding to the target second device that the user sees are definitely services that can be executed normally, optimizing the user experience of using multi-device interconnection services and improving the interoperability of multiple devices.
[0099] The first and second devices involved in the device interconnection method provided in this application can both be electronic devices with communication functions and interconnection capabilities. For example, the electronic device can be a portable computer (such as a mobile phone), tablet computer, laptop computer, personal computer (PC), wearable electronic device (such as a smartwatch), augmented reality (AR) / virtual reality (VR) device, etc. The following embodiments do not impose any special limitations on the specific form of the electronic device.
[0100] Figure 3 A schematic diagram of the structure of the electronic device 100 is shown.
[0101] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, display screen 190, etc.
[0102] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0103] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0104] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0105] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0106] In this embodiment, the processor 110 can serve as the execution subject of the device interconnection method.
[0107] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0108] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0109] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0110] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 190, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0111] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0112] 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 one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0113] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, 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 via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0114] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to a speaker, receiver, etc.) or displays images or videos through the display screen 190. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0115] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN, such as WiFi), WiFi P2P, Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near-field communication (NFC), and infrared (IR). The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0116] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0117] In some embodiments, the first device can broadcast via Bluetooth to search for the signal of the second device, and upon receiving a response from the second device to the scan signal, establish a Bluetooth communication connection with the second device. When the first device receives a service initiation operation, or when the first device detects the existence of a WLAN network or a WiFi P2P network, the first device can establish a high-speed communication connection with the second device via WLAN or WiFi P2P to execute a response operation for the interconnection service.
[0118] Electronic device 100 implements display functions through a GPU, a display screen 190, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 190 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0119] The display screen 190 is used to display images, videos, etc. The display screen 190 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 190, where N is a positive integer greater than 1.
[0120] In this embodiment, the first device can display a device connection interface on the screen. This interface displays device information about the target second device, whose communication parameters meet the high-quality communication requirements of the target service in a multi-device interconnection scenario. Furthermore, the first device can also display information about the available services of the target second device on the device connection interface. In this embodiment, the available services of the target second device are not necessarily the same as the interconnection services provided by the second device. The available services of the target second device refer to the services supported by the actual communication quality of the target second device.
[0121] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0122] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0123] Electronic device 100 can implement audio functions such as music playback and recording through audio module 170, speaker, receiver, microphone, headphone jack, and application processor.
[0124] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0125] The hardware structure of the electronic device has been described in the above embodiments. The software system structure of the electronic device will be described below.
[0126] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses a layered architecture. Taking the system as an example, the software structure of electronic device 100 is illustrated.
[0127] Figure 4 This is a software structure block diagram of an electronic device according to an embodiment of the present invention.
[0128] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, [the following is omitted as the text is incomplete and likely refers to a specific implementation or feature]. The system is divided into four layers, from top to bottom: application layer, application framework layer, etc. runtime ( runtime and system libraries, as well as the kernel layer.
[0129] The application layer can include a series of application packages.
[0130] like Figure 4 As shown, the application package enables smart connectivity applications. These applications provide an interface for interconnectivity between electronic devices and other electronic devices. Launching a smart connectivity application displays the device connectivity interface of the electronic device.
[0131] In addition, the application package may also include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0132] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0133] like Figure 4 As shown, the application framework layer may include a window manager, content provider, view system, resource manager, notification manager, etc.
[0134] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0135] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0136] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a device connectivity interface might include a view displaying the device icon, a view displaying the device name (text), and so on.
[0137] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0138] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of establishing a connection with a second device or initiating interconnection services with that device. The notification manager can also appear as an icon or scrolling text in the system's top status bar.
[0139] The runtime includes the core libraries and the virtual machine. runtime is responsible for System scheduling and management.
[0140] The core library consists of two parts: one part contains the functionalities that the Java language needs to call, and the other part is... The core library.
[0141] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0142] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0143] The Surface Manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The Media Library supports playback and recording of various common audio and video formats, as well as still image files. The Media Library supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. The 3D Graphics Processing Library implements 3D graphics drawing, image rendering, compositing, and layer processing. The 2D Graphics Engine is the drawing engine for 2D graphics.
[0144] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers, sensor drivers, and so on.
[0145] The above embodiments have described the hardware and software structures of the electronic device. The following specific embodiments illustrate the device interconnection method provided by this application.
[0146] For example, Figure 5A flowchart illustrating a device interconnection method is provided, using an electronic device as the first device (i.e., the master device in a multi-device interconnection scenario) as the execution entity. To avoid high-speed communication connection anomalies or failures of interconnection services with high communication quality requirements due to poor communication quality of the second device (i.e., the slave device in a multi-device interconnection scenario), the device interconnection method provided in this application embodiment can detect the communication quality of the second device found by the first device. The first device's device connection interface displays the target second device whose communication parameters meet the communication quality requirements of the target service with high communication quality needs. This ensures the normal execution of the target service between the first device and the target second device, optimizing the user experience of the target service in a multi-device interconnection scenario.
[0147] In one feasible implementation, the device interconnection method provided in this embodiment includes:
[0148] S101, the first device performs device discovery and device connection with the second device.
[0149] In this embodiment, the first device can perform a device search operation in response to a user's multi-device interconnection operation. Alternatively, the first device can periodically perform device searches using a low-power search method.
[0150] The first device can use a low-speed communication mode to discover and establish a connection with the second device. For example, low-speed communication modes can include Bluetooth and Zigbee, which have broadcast and signal scanning capabilities.
[0151] For example, let's take Bluetooth as the low-speed communication mode and Bluetooth communication connection as the low-speed communication connection as an example. During the device search and connection establishment process based on Bluetooth communication mode, the second device can send broadcast packets through the broadcast channel. These broadcast packets may include the device address and device name, etc. The first device searches for broadcast packets through the scanning channel to discover nearby second devices. After the first device finds the broadcast packet, it can send a scan request to the second device based on the device address in the broadcast packet. The first device can obtain more information about the second device based on the scan response packet returned by the second device in response to the scan request. Furthermore, the first device can send a connection request to the second device based on the device address in the broadcast packet. After receiving the connection response from the second device, the first device can establish a Bluetooth communication connection with the second device.
[0152] In other feasible methods, the first device can also employ a high-speed communication mode for device discovery and connection establishment with the second device. For example, the high-speed communication mode could be a communication mode with broadcast and signal scanning capabilities, such as WiFi P2P. Exemplarily, during device search and connection establishment based on WiFi P2P mode, the first device can send broadcast packets on a broadcast channel according to an agreed protocol. The second device can scan the channel to search for broadcast packets to discover the first device. Then, the second device can send a connection request to the first device. Upon receiving the connection request, the first device returns a connection response, thereby establishing a WiFi P2P communication connection with the second device.
[0153] In this embodiment, whether the first device uses a low-speed communication mode such as Bluetooth or a high-speed communication mode such as WiFi P2P to discover and establish a connection with the second device, the conventional implementation methods for device discovery and connection can be referenced, and this embodiment will not elaborate on them.
[0154] In this embodiment, the first device performs device discovery, and the number of discovered second devices can be a first quantity. The first quantity can be one or more.
[0155] S102, the first device checks whether a communication connection has been established with at least one second device. If yes, proceed to S103; otherwise, return to S101, and the first device continues to perform device discovery and device connection establishment with the second device.
[0156] If at least one second device establishes a communication connection with the first device (e.g., a Bluetooth communication connection or a P2P communication connection), the first device performs communication quality detection on the second device with which the communication connection has been established.
[0157] If the first device fails to establish a communication connection with any of the second devices, the first device returns to execute S101 to continuously perform device discovery and device connection establishment.
[0158] S103, the first device performs communication quality detection based on the communication parameters of each second device.
[0159] In this embodiment, the first device searches for the second device and establishes a communication connection with it. One or more communication connections may be established between the first device and the second device. These multiple communication connections may include low-speed and high-speed communication connections.
[0160] In some embodiments, regardless of whether it is a high-speed or low-speed communication connection, the first device performs communication quality detection on the second device by detecting communication parameters. For example, the detected communication parameters may include one or more of the following parameters under the communication connection: received signal strength indication (RSSI), signal-to-noise ratio, packet loss rate, and latency. The first device can perform communication quality detection based on the detected communication parameters of the second device under the communication connection.
[0161] For different communication connections established between the first device and the second device, the first device needs to perform communication quality detection based on the communication parameters detected under different communication connections. For example, if the communication parameter is RSSI, and the first device establishes a Bluetooth communication connection with the second device, then the first device can perform communication quality detection based on the Bluetooth RSSI of the second device; if the first device establishes a WiFi P2P communication connection with the second device, then the first device can perform communication quality detection based on the WiFi P2P RSSI of the second device; if the first device and the second device are in the same WLAN network environment, then the first device can perform communication quality detection based on the WLAN RSSI of the first device and the second device.
[0162] In this embodiment, the communication quality detection of the second device by the first device is to determine whether the communication quality of the second device meets the communication quality requirements of the target service with high communication quality needs, so as to make a decision on whether to display the second device and what information of the second device to display. Allowing the user to perceive the communication quality of the second device directly or indirectly can improve the success rate of the user initiating a high communication quality service.
[0163] The target service refers to the services that can be initiated between devices in a multi-device interconnection (multi-device collaboration) scenario. For example, the target service may include screen mirroring, keyboard and mouse sharing, message sharing, network sharing, remote control, file transfer and sharing, cross-device file management, application continuation, call sharing, cross-device quick drawing, audio and video relay, cross-device gesture control, or camera sharing, etc., which have high communication quality requirements (e.g., high communication transmission rate, low packet loss rate, etc.).
[0164] S104, the first device displays the interconnection information of the target second device on the device connection interface.
[0165] Specifically, the target communication parameters of the second target device meet the communication quality requirements of the target service requiring high communication quality in a multi-device interconnection scenario. In other words, the second target device displayed on the device connection interface is a device whose target communication parameters meet the communication quality requirements of the target service requiring high communication quality in a multi-device interconnection scenario, and the communication quality of the second target device can meet the normal execution requirements of the target service requiring high communication quality.
[0166] In this embodiment, the target service's requirements for communication quality can be defined by defining preset parameter thresholds corresponding to the target communication parameters. Meeting the target service's communication quality requirements for the target communication parameters can include the target communication parameters being greater than the preset parameter thresholds.
[0167] In some embodiments, the detection communication parameters used for communication quality detection may include one or more of the following corresponding to the communication connection: RSSI, signal-to-noise ratio, latency, packet loss rate, etc.; the target communication parameters used for judging communication quality requirements may also include one or more of the following corresponding to the communication connection: RSSI, signal-to-noise ratio, latency, packet loss rate, etc. The target communication parameters and the detection communication parameters may be the same or different.
[0168] In some cases, such as when the detected communication parameters are inconsistent with the target communication parameters, there is a certain mapping relationship between the detected and target communication parameters. For example, the first device performs communication quality detection based on the RSSI of the second device under the communication connection. In RSSI-based communication quality detection, a higher RSSI indicates higher communication quality. The latency of the second device under the communication connection can be obtained based on the RSSI. Based on the latency and a preset latency threshold, it can be determined whether the second device meets the communication quality requirements of the target service requiring high communication quality. Alternatively, the first device performs communication quality detection based on the packet loss rate of the second device under the communication connection. In packet loss rate-based communication quality detection, a lower packet loss rate indicates higher communication quality. The RSSI of the second device under the communication connection can be obtained based on the packet loss rate. Based on the RSSI and a preset RSSI threshold, it can be determined whether the second device meets the communication quality requirements of the target service requiring high communication quality.
[0169] In another scenario, the detected communication parameters match the target communication parameters. For example, the first device performs communication quality detection based on the RSSI of the second device under the communication connection. It also determines whether the second device meets the communication quality requirements of the target service requiring high communication quality based on the RSSI and a preset RSSI threshold. Alternatively, the first device performs communication quality detection based on the signal-to-noise ratio (SNR) of the second device under the communication connection. It also determines whether the second device meets the communication quality requirements of the target service requiring high communication quality based on the SNR and a preset SNR threshold.
[0170] In some feasible embodiments, the first device determines whether the second device meets the communication quality requirements of the target service based on whether one or more target communication parameters are greater than a preset parameter threshold.
[0171] In this embodiment, the target service with high communication quality has corresponding communication quality requirements for different communication connections established between the first device and the second device.
[0172] The first device needs to determine whether the second device is the target second device based on preset parameter thresholds indicated by the communication quality requirements of the target service under different communication connections. Since the sensitivity, power, etc., are different under different communication connection standards, the communication quality requirements of the target service with high communication quality are also different under different communication connections, and the preset parameter thresholds corresponding to the target communication parameters are also different under different communication connections.
[0173] In this embodiment, the preset parameter thresholds corresponding to the target communication parameters under different communication connections can be determined by one or more of the following methods.
[0174] The following explanation uses RSSI as the target communication parameter and the corresponding preset parameter threshold as the RSSI threshold. For example, when the communication connection between the first device and the second device is a Bluetooth communication connection, the preset parameter threshold is the Bluetooth RSSI threshold; when the communication connection between the first device and the second device is a WiFi P2P communication connection, the preset parameter threshold is the WiFi P2P RSSI threshold; and when the communication connection between the first device and the second device is a WLAN communication connection, the preset parameter threshold is the WLAN RSSI threshold.
[0175] A lower sensitivity value indicates higher sensitivity, meaning the device can detect weaker signals. Under different communication standards, the higher the data transmission rate, the lower the sensitivity and the lower the tolerance for spatial loss and interference. For example, the data transmission rate of Bluetooth Basic Rate (BR) or Bluetooth Low Energy (BLT) is lower than that of WiFi P2P. Low-speed Bluetooth BR or Bluetooth Low Energy BLT has higher sensitivity than high-speed WiFi P2P. The communication quality requirements of a target service with high communication quality needs under high-speed communication connections (e.g., WiFi P2P, WLAN) are necessarily different from those under low-speed communication connections (Bluetooth). To ensure that the communication quality of the Bluetooth communication connection between the first and second devices meets the communication quality requirements of the target service with high communication quality needs under high-speed communication connections, the target service needs to be executed under different communication connections to determine the lower limit of the target communication parameters that can normally execute the target task under different communication connections, and then the preset parameter thresholds are determined accordingly.
[0176] In the following specific embodiments, the preset parameter threshold is used as the RSSI threshold for illustration.
[0177] In one feasible approach, extensive scenario-based experiments or user usage data can be used to obtain RSSI test values for each target service, under each communication connection (such as Bluetooth, WiFi P2P, or WLAN), when the target service response fails due to weak signals between the first and second devices (failure to start, high latency, lag, etc.). The RSSI threshold is then determined based on these RSSI test values. Since this embodiment is used to determine target service execution failures caused by poor communication quality, fault data caused by non-poor communication quality (weak signals) needs to be removed when performing fault statistics for the target service.
[0178] Specifically, for example, when a Bluetooth communication connection is established between the first and second devices, the RSSI test value corresponding to the execution failure of the target service caused by poor communication quality (weak signal) is statistically analyzed. The goal is to reduce the failure rate to a certain level, such as a failure rate threshold (e.g., 90%), to determine the RSSI threshold for the target service under the Bluetooth communication connection. For instance, the RSSI value corresponding to reducing the failure rate to less than 90% under weak signal conditions is the RSSI test value for normal execution of the target service under the Bluetooth communication connection, and this RSSI test value is used as the Bluetooth RSSI threshold for the target service under the Bluetooth communication connection. When the first device detects that the Bluetooth RSSI of the second device is greater than the Bluetooth RSSI threshold, it means that the Bluetooth communication quality of the second device is good, and the service failure rate is less than 90%. Here, a failure rate of less than 90% is just an example; in the actual process of determining the Bluetooth RSSI threshold, this failure rate can be determined according to the actual situation.
[0179] When a high-speed communication connection is established between the first and second devices, such as a WiFi P2P communication connection, the lower limit of the WiFi P2P RSSI value is determined when the execution of the target service fails due to poor communication quality (weak signal) under the WiFi P2P communication connection. The WiFi P2P RSSI threshold for the target service under the WLAN communication connection is determined with the goal of reducing a certain failure rate. Similarly, when a WLAN communication connection is established between the first and second devices, the lower limit of the WLAN RSSI value is determined when the execution of the target service fails due to poor communication quality (weak signal) under the WLAN communication connection. The WLAN RSSI threshold for the target service under the WLAN communication connection is determined with the goal of reducing a certain failure rate. The methods for determining the WiFi P2P RSSI threshold and the WLAN RSSI threshold are similar to those for determining the Bluetooth RSSI threshold and will not be elaborated here.
[0180] Through the extensive scenario-based experiments and user data described above, the RSSI threshold for each target service under each communication connection can be determined. When the preset parameter threshold is the same as the parameter threshold for other target communication parameters, the method for determining the parameter threshold is similar to that for determining the RSSI threshold, and will not be elaborated here.
[0181] In another feasible approach, typical user scenarios with weak signals under different communication connections can be constructed to obtain the RSSI test values corresponding to the failure of the target service between the first and second devices under weak signal scenarios (failure to start, high latency, lag, etc.). With the goal of reducing a certain failure rate, the corresponding RSSI thresholds under different communication connections can be determined.
[0182] In typical scenarios where users experience weak signals, a weak signal effect can be achieved by creating a communication link loss between the first and second devices. This communication link loss can be achieved by setting a greater distance between the first and second devices or by placing obstructions.
[0183] In one implementation of this embodiment, the RSSI threshold corresponding to the target service under different communication connections in the constructed weak signal scenario can be calculated based on the typical loss values of communication links of various obstructions in one or more typical weak signal scenarios in the corresponding frequency bands.
[0184] Table 1 below shows typical values of communication link loss (hereinafter referred to as loss) for different obstructions under different communication frequency bands (hereinafter referred to as frequency bands in Table 1). The obstructions include human bodies, 5m of free space, free space for every additional 5m, solid wood doors, metal doors, brick partition walls, 45cm concrete walls, and rear glass.
[0185] Table 1
[0186]
[0187] For example, in a typical scenario, the first device is at position 1, and the second device is at position 2, which is 5m away from the first device. The first device and the second device are separated by a brick partition wall (45 degrees penetrating) and a human body.
[0188] The loss when penetrating a brick partition wall vertically in the 2.4GHz band is 10. The loss when penetrating a brick partition wall at a 45-degree angle is... The loss when penetrating a brick partition wall vertically at 5.8 GHz is 20. The loss when penetrating a brick partition wall at a 45-degree angle is... Understandably, the loss caused by penetrating a brick partition wall at different penetration angles can be calculated based on the penetration angle and the loss caused by vertical penetration of the brick partition wall. The loss calculation method for other penetrating media is similar and will not be elaborated here.
[0189] The loss at different frequency bands is the sum of the losses caused by all penetrating media (obstacles) at the corresponding frequency band.
[0190] Therefore, the communication link loss between the first and second devices in the 2.4GHz band includes the sum of losses caused by penetration through a human body, a distance of 5m, and a brick partition wall (45-degree penetration) at the 2.4GHz band. This is expressed as: 10 + 45 + 1.4 × 10 = 69 dB. The communication link loss between the first and second devices in the 5.8GHz band includes the sum of losses caused by penetration through a human body, a distance of 5m, and a brick partition wall (45-degree penetration) at the 5.8GHz band. This is expressed as: 20 + 62 + 1.4 × 20 = 110 dB.
[0191] In different typical weak signal scenarios, based on the typical loss values corresponding to each obstruction in each typical weak signal scenario, the loss sum of multiple devices in the corresponding frequency band is calculated. Based on the loss sum, the RSSI calculation value between devices in each typical weak signal scenario can be determined.
[0192] In another implementation of this embodiment, a simulation experiment can be conducted on the constructed weak signal scenario to obtain the RSSI simulation values corresponding to the target service under different communication connections between devices.
[0193] Alternatively, in another implementation of this embodiment, device testing can be performed in the constructed weak signal scenario to obtain the RSSI test values corresponding to the target service under different communication connections between devices.
[0194] By using one or more of the above methods, one or more RSSI calculated values, RSSI simulated values, or RSSI test values can be obtained to reduce the failure rate to a certain level (e.g., a failure rate of 90%) and determine the corresponding RSSI threshold for each target service under Bluetooth communication connection, WiFi P2P communication connection, and WLAN communication connection.
[0195] In another feasible approach, an initial RSSI threshold can be set for each target service under different communication connections. Then, the actual RSSI values are obtained when the user equipment encounters a failure (failure to start, high latency, lag, etc.) while executing each target service under different communication connections. Based on the actual RSSI values and failure rate thresholds for each communication connection, the initial RSSI threshold is adjusted to obtain an RSSI threshold that conforms to user habits for each communication connection. The initial RSSI threshold can be determined based on the two methods mentioned above, or it can be a value set based on expert experience. Optionally, adjusting the initial RSSI threshold based on the actual RSSI values can be done within a certain adjustment range.
[0196] Furthermore, the initial RSSI threshold can be adjusted based on the different scenarios / locations of the user device. For example, different scenarios / locations can include indoors or outdoors. Outdoors, there are fewer obstructions compared to indoors, but the distance may be greater. The RSSI threshold for each communication connection can be adjusted based on the communication link loss caused by distance, making the RSSI threshold for each communication connection more closely match the actual device usage scenario and making the detection of communication quality for each communication connection more accurate.
[0197] For example, the RSSI threshold can be dynamically adjusted by the first device itself or by a server that has established a communication connection with the first device. When the server dynamically adjusts the RSSI threshold, it can periodically obtain the actual RSSI values (lower limits) of the first device under different scenarios / locations and different communication connections with other devices when service failures occur. Based on the actual RSSI values and the failure rate threshold, the initial RSSI thresholds for each target service in the first device under the corresponding communication connection and scenario / location are adjusted to obtain RSSI thresholds that conform to user habits under each communication connection. The periodic adjustment of the RSSI threshold can be once a week. As the usage data of the first device becomes more stable, the adjustment cycle can be gradually lengthened, for example, once every six months, once a year, etc.
[0198] The RSSI threshold can also be dynamically adjusted by the first device itself.
[0199] Figure 6 A flowchart illustrating the dynamic adjustment of the RSSI threshold is provided, including:
[0200] S01, the first device obtains the initial RSSI threshold of each target service under different communication connections.
[0201] The initial RSSI threshold can be determined based on the two methods mentioned above, or it can be a value set based on expert experience.
[0202] When the first device detects that a target service has initiated an operation, the initial threshold of the RSSI corresponding to that target service can be dynamically adjusted.
[0203] S02, when the first device detects that the target service has initiated an operation, it obtains one or more initial RSSI thresholds for the target service under the current communication connection.
[0204] The initial RSSI threshold of the target service is different under different communication connections. When the first device detects that the target service has initiated an operation, it can obtain one or more initial RSSI thresholds of the target service under the current communication connection.
[0205] Here, when the target service is not differentiated by scenario (within the same location), the target service can correspond to one initial RSSI threshold under one communication connection. If the target service is differentiated by scenario, the target service can have multiple initial RSSI thresholds corresponding to different scenarios / locations under one communication connection.
[0206] If the first device obtains multiple initial RSSI thresholds for the target service under the current communication connection:
[0207] S03, the first device performs scene recognition.
[0208] S04, the first device obtains the initial threshold of the target RSSI corresponding to the current scenario for the target service under the current communication connection.
[0209] S05, the first device uses the target RSSI initial threshold to judge the communication quality between devices and obtains the actual RSSI value when the target service fails in the current communication connection and current scenario.
[0210] S06, the first device adjusts the initial RSSI threshold of the target service in the current communication connection and current scenario based on the actual RSSI value and the failure rate threshold.
[0211] The adjusted initial RSSI threshold is returned to S02 for periodic target service initiation detection and adjustment of the initial RSSI threshold.
[0212] The RSSI threshold adjustment period for the first device can be once a week. As the usage habits of the target service on the first device become stable, the RSSI threshold adjustment period for the first device can be gradually extended, for example, once every six months or once a year.
[0213] By periodically and dynamically adjusting the RSSI thresholds of each target service under different communication connections and scenarios, the RSSI thresholds of each target service in the first device can be made more in line with the actual usage habits of user devices, making communication quality detection more personalized and communication quality detection between devices more accurate.
[0214] Because obstructions vary in different scenarios—for example, there may be more obstructions indoors than outdoors—and indoor environments can include typical scenarios with different obstructions, such as homes (more devices), offices (more obstructions), cafes (more communication connection methods), and airports (high passenger flow), scenario elements are introduced when determining the RSSI threshold. Based on the communication link loss in different typical scenarios and the actual usage data (actual RSSI value) of user devices, the initial RSSI threshold is adjusted to obtain an RSSI threshold that fits the actual usage location and usage habits of user devices. This makes the RSSI threshold for each location, each communication connection, and each target service more accurate, and makes the detection of communication quality under each communication connection more accurate.
[0215] Furthermore, during the process of searching for and establishing connections with the second device, the first device can use artificial intelligence algorithms based on geofencing and communication maps to identify the locations (within the same scenario) of both the first and second devices. Upon identifying the locations of the first and second devices, the RSSI threshold corresponding to the target service and communication connection at that location is obtained to detect the communication quality between the first and second devices. Applying the RSSI threshold based on the actual location of the devices can improve the accuracy of communication quality detection.
[0216] Since Bluetooth operates at 2.4GHz, while WiFi P2P can operate at 2.4GHz, 5.2 / 5.8GHz, and even 6GHz, in complex environments such as those with obstructions, it's impossible to directly determine the WiFi P2P RSSI strength at 5.2 / 5.8GHz or 6GHz using Bluetooth RSSI. In this embodiment, the RSSI thresholds corresponding to different communication connections can be determined through the aforementioned methods. When the first device and the second device establish a WiFi P2P communication connection, communication quality can be detected based on the corresponding WiFi P2P RSSI threshold, improving the accuracy of communication quality detection and enhancing the experience for some users in certain scenarios.
[0217] It is understandable that when the target service is a high-speed communication connection supporting high communication quality, and a high-speed communication connection (such as WiFi P2P or WLAN) is not established between the first and second devices, a low-speed communication connection (such as Bluetooth) is established between them. The first device can determine whether the second device meets the high communication quality requirements of the target service by considering the communication quality requirements of the Bluetooth connection. Here, the communication quality requirements of the target service for the Bluetooth connection match the communication quality requirements of the target service under high-speed communication connections. That is, when a high-speed communication connection is not established between the first and second devices, by judging the communication quality requirements of the target service for low-speed communication connections, it can be determined that the second device meets the communication quality requirements of the target service under low-speed communication connections, and also ensures that the second device meets the communication quality requirements of the target service under high-speed communication connections. By indirectly reflecting the communication quality of high-speed communication connections with the communication quality of low-speed communication connections, the judgment of communication quality in multi-device interconnection scenarios becomes more comprehensive and accurate.
[0218] It should be noted that the RSSI values or RSSI thresholds under each communication connection involved in this embodiment refer to the RSSI values after power control compensation.
[0219] In Bluetooth, WiFi P2P, and WLAN communication connections, the first device may dynamically adjust its transmit power based on communication quality. To correct the RSSI value, compensation can be made based on the current transmit power.
[0220] For example, one compensation method could be to use the sum of the measured RSSI value (RSSImeasured) and the current transmit power (Ptx) as the corrected RSSI value (RSSIcorrected). Here, the current transmit power (Ptx) is in dBm.
[0221] That is: RSSIcorrected = RSSImeasured + Ptx.
[0222] In some possible implementations, the preset parameter thresholds (i.e., the communication quality requirements of the target service) for different device types and models under various communication connections can be different or the same. For example, the first device is a mobile phone, the second device 1 is a tablet computer, and the second device 2 is a laptop computer. The WiFi P2P RSSI threshold involved in the communication quality detection of the WiFi P2P communication connection based on WiFi P2P RSSI when the mobile phone and tablet computer establish a WiFi P2P communication connection can be the same as the WiFi P2P RSSI threshold involved in the communication quality detection of the WiFi P2P communication connection based on WiFi P2PRSSI when the mobile phone and laptop computer establish a WiFi P2P communication connection.
[0223] In other possible implementations, the first device and the second device form a pairing device. Under each communication connection, the preset parameter thresholds (i.e., the communication quality requirements of the target service) for the same type of pairing device can be the same, while the communication quality requirements of the target service for pairing devices of different device types can be different. For example, a pairing type could be a mobile phone and a tablet computer. When a mobile phone establishes a WiFi P2P communication connection with any model of tablet computer, the WiFi P2P RSSI threshold (referred to as threshold 1) involved in the communication quality detection of the WiFi P2P communication connection based on WiFi P2P RSSI can be the same. Another example is a mobile phone and a laptop computer. Under this pairing type, when a mobile phone establishes a WiFi P2P communication connection with any model of laptop computer, the WiFi P2P RSSI threshold (referred to as threshold 2) involved in the communication quality detection of the WiFi P2P communication connection based on WiFi P2P RSSI can be the same. Correspondingly, different pairing types involve different preset parameter thresholds. The threshold 1 corresponding to the pairing type of mobile phone and tablet computer can be different from the threshold 2 corresponding to the pairing type of mobile phone and laptop computer.
[0224] In some other possible implementations, the first device and the second device form a pair of devices. For each type of communication connection, the preset parameter thresholds (i.e., the communication quality requirements of the target service) for the same type of paired device can be the same. However, the communication quality requirements for the target service differ for paired devices of different models. For example, the first device is a mobile phone, and the second devices are tablet 1 (device model 1) and tablet 2 (device model 2). The mobile phone establishes WiFi P2P communication connections with tablet 1 (device model 1) and tablet 2 (device model 2) respectively. During the communication quality detection of the WiFi P2P communication connection based on WiFi P2P RSSI, the WiFi P2P RSSI thresholds for tablet 1 (device model 1) and tablet 2 (device model 2) are different.
[0225] In some other embodiments, in scenarios with the same device model, the same device type, or the same paired devices, data correction can be made based on the user equipment to adjust the communication quality requirements corresponding to the target service between user equipment, so that the communication quality requirements corresponding to the target service are basically consistent among devices of the same model, the same type, or the same paired devices.
[0226] The communication quality requirements for the target service are set according to the type of device or the type or model of the paired device. This takes into account the performance differences of the target service on individual devices, making the detection of the communication quality of individual devices and the judgment of whether the communication quality requirements of the target service are met more in line with the actual usage scenario of the device where the target service is located. The communication quality detection is more accurate, and the identified target second device is more accurate.
[0227] In some other possible implementations, the preset parameter thresholds for each communication connection are determined by the user's actual usage data. In this case, the preset parameter thresholds for each communication connection can be dynamically adjusted based on the user's actual usage data and / or the location of the user's device, so that the preset parameter thresholds can better match the actual usage of the user's device, making the detection of communication quality more accurate.
[0228] In this embodiment, if a communication connection is established between the first device and the second device, the first device determines whether the communication quality requirements of the target service are met based on the target communication parameters of the communication connection (such as RSSI, signal-to-noise ratio, or packet loss rate as described above).
[0229] If multiple communication connections are established between the first and second devices, in order to ensure normal response to target services with high communication quality requirements (such as high communication rate and high communication latency), and considering that these target services often transmit data through high-speed communication connections, this embodiment can prioritize determining whether the communication quality requirements of the target service are met based on the target communication parameters under the high-speed communication connection. That is, if both high-speed communication connections (such as WiFi P2P, WLAN) and low-speed communication connections (such as Bluetooth) are established simultaneously, the determination of whether the communication quality requirements of the target service are met can be made directly based on the target communication parameters of WiFi P2P and WLAN, which can more directly and effectively obtain the result of whether the communication quality of the second device supports the target service.
[0230] If multiple high-speed communication connections are established between the first device and the second device, these connections can be prioritized. In one example, WLAN can have a higher priority than WiFi P2P, and WiFi P2P can have a higher priority than Bluetooth. Alternatively, WiFi P2P can have a higher priority than WLAN, and WLAN can have a higher priority than Bluetooth. The specific priority settings can be determined based on the actual situation, and this embodiment does not limit this.
[0231] In some embodiments, when multiple communication connections are established between the first device and the second device, the first device can also determine whether the target communication parameters of each communication connection meet the communication quality requirements of the target service.
[0232] After the first device determines whether the communication quality requirements of the target service are met by using communication parameters under one or more communication connections, the target second device can be identified as having communication quality that meets the communication quality requirements of the target service.
[0233] For example, the first device establishes a WiFi P2P communication connection with the second device. The target communication parameters of the second device obtained by the first device include WiFi P2P RSSI. The target second device is a second device whose WiFi P2P RSSI is greater than the WiFi P2PRSSI threshold.
[0234] For example, when a first device establishes a Bluetooth communication connection with a second device, the target communication parameters obtained by the first device for the second device include the Bluetooth RSSI. The target second device is one whose Bluetooth RSSI is greater than the Bluetooth RSSI threshold. A Bluetooth RSSI greater than the Bluetooth RSSI threshold indicates better communication quality. Even if the first and second devices are connected at a low speed, they can still support the communication quality required by the target service under a high-speed communication connection.
[0235] For example, when the first device and the second device are in the same WLAN network environment, the communication parameters of the second device obtained by the first device include the WLAN RSSI of the second device. If the WLAN RSSI of the first device is greater than the WLAN RSSI threshold, the target second device is the second device whose WLAN RSSI is greater than the WLAN RSSI threshold.
[0236] The fact that the communication quality of the second target device meets the communication quality requirements of the target service means that the communication quality between the second target device and the first target device is high, enabling smooth response to target services with high-quality communication needs and improving the user experience of interconnected services. The communication quality of the second target device can meet the normal execution of target services with high communication quality requirements, and even better, it can meet the normal execution of services with low communication quality requirements. Therefore, regardless of the type of service initiated by the user in a multi-device interconnection scenario, the communication quality between the second and first devices can meet the communication quality requirements of that service, ensuring that services in multi-device interconnection scenarios can be executed normally. This avoids the problem of target services with high communication quality requirements failing to respond due to poor communication quality between the second and first devices, thus optimizing the user experience in multi-device interconnection scenarios, especially for target tasks with high communication quality requirements.
[0237] The first device can search for a first number of second devices through low-speed communication mode or high-speed communication mode. Among these second devices, there are other second devices that can establish low-speed communication connections but whose communication quality does not meet the communication quality requirements of the target service that requires high-quality communication. Therefore, the second number of target second devices determined by communication quality judgment is less than or equal to the first number.
[0238] After identifying the target second device, the first device can display the interconnection information of the target second device on the device connection interface. This interconnection information may include the device identifier of the target second device. For example, the device identifier may include a device icon, device name, device model, etc.
[0239] For example, Figure 7 A schematic diagram illustrating a device interconnection method is provided. The example uses a mobile phone as the first device.
[0240] When a mobile phone uses the method provided by S101 to discover and connect to devices via Bluetooth, it can find two (first quantity) secondary devices: a tablet and a monitor. Figure 7 As shown in (a), the mobile phone can establish a Bluetooth communication connection with the tablet computer, and it can also establish a Bluetooth communication connection with the display. The mobile phone obtains the Bluetooth RSSI of the tablet computer and performs communication quality detection based on the Bluetooth RSSI threshold (or the Bluetooth RSSI threshold corresponding to the scenario at home). For example, if the Bluetooth RSSI of the tablet computer is less than the Bluetooth RSSI threshold, the mobile phone determines that the communication quality of the tablet computer does not meet the communication quality requirements of the target service that requires high-quality communication. Although the mobile phone searches for the tablet computer through device search and can establish a Bluetooth connection with it, the communication quality of the tablet computer is insufficient to respond to the target service that requires high-quality communication. In this case, the mobile phone does not display the tablet computer in the device display list.
[0241] The mobile phone detects that it is in the same WLAN network environment as the monitor, and the mobile phone's WLAN RSSI is greater than the WLAN RSSI threshold (or the WLAN RSSI threshold corresponding to the home scenario). The mobile phone obtains the monitor's WLAN RSSI and confirms that the monitor's WLAN RSSI is also greater than the WLAN RSSI threshold (or the WLAN RSSI threshold corresponding to the home scenario). The communication quality between the monitor and the mobile phone meets the communication quality requirements of the target service that requires high-quality communication. The mobile phone displays the interconnection information of the monitor (target second device) on the device connection interface, such as... Figure 7 As shown in (b). The interconnection information of the display includes the device icon and device name corresponding to the display.
[0242] In some embodiments, the mobile phone (first device) may also display service information of the display (target second device) on the device connection interface. The service information of the display includes information about the target service corresponding to the display's communication quality meeting communication quality requirements, such as service name, service identifier, etc. In one example, such as... Figure 7 As shown in (c), the mobile phone can respond to the user's operation on the display and display the display's service information on the device connection interface. This service information includes network sharing, screen mirroring, and remote control.
[0243] If the mobile phone (first device) receives an operation from the user regarding the service identifier / service name of the target second device, the mobile phone can respond to the operation by sending a service initiation request to the target second device and performing the corresponding service execution operation. For example, if the mobile phone (first device) receives a click operation from the user regarding screen mirroring on the monitor, the mobile phone can respond to the click operation by initiating a screen mirroring request to the monitor and performing the corresponding screen mirroring operation.
[0244] S105, the first device periodically checks the communication connection with the target second device. When it is detected that the communication quality of the target second device does not meet the communication quality requirements of the target service, the target second device is removed from the device connection interface.
[0245] In this embodiment, for example, the first device establishes a WiFi P2P communication connection with the target second device. The first device can continuously detect the WiFi P2P communication connection with the second device. If the first device detects that the WiFi P2P communication connection with the target second device has been disconnected, or if the WiFi P2P RSSI value of the target second device is less than the WiFi P2P RSSI threshold, the first device will remove the target second device from the device connection interface.
[0246] For example, the first device establishes a Bluetooth communication connection with the target second device. The first device can continuously detect the Bluetooth communication connection with the second device. If the first device detects that the Bluetooth communication connection with the target second device has been lost, or if the Bluetooth RSSI value of the target second device is less than the Bluetooth RSSI threshold, the first device will remove the target second device from the device connection interface.
[0247] For example, the first device and the target second device are in the same WLAN network environment. The first device can continuously detect the WLAN communication connection with the second device. If the first device detects that the target second device is not in the WLAN network environment, or if the WLAN RSSI value of the target second device is less than the WLAN RSSI threshold, the first device will remove the target second device from the device connection interface.
[0248] During periodic testing, if the first device establishes multiple communication connections with the target second device, the first device can still perform communication connection detection based on the priority of different communication connections. For example, the first device may have established both Bluetooth and WiFi P2P communication connections with the target second device. If, during periodic testing, the first device detects a disconnection of the WiFi P2P communication connection with the target second device, or if the first device detects that the WiFi P2P RSSI value of the target second device is less than the WiFi P2P RSSI threshold, the first device can also perform Bluetooth communication connection detection to ensure the accuracy of the communication status detection between the first and second devices. If the first device maintains a Bluetooth communication connection with the target second device, and the Bluetooth RSSI value of the target second device is greater than the Bluetooth RSSI threshold, then the first device will continue to display the target second device in the device connection interface. If the first device disconnects the Bluetooth communication connection with the target second device, or if the Bluetooth RSSI value of the target second device is less than the Bluetooth RSSI threshold, then the first device will remove the target second device from the device connection interface.
[0249] For example, such as Figure 7 As shown in (d), if during periodic detection, the mobile phone detects that the WLAN RSSI of the display is less than the WLAN RSSI threshold, the communication quality between the display and the mobile phone does not meet the communication quality requirements of the target service that requires high-quality communication. In this case, the mobile phone can remove the display from the device display list. Alternatively, if the mobile phone detects that the Bluetooth communication connection with the display has been lost, the mobile phone can remove the display from the device display list.
[0250] The device interconnection method provided in this embodiment involves a first device searching for and connecting to a second device. The first device can detect the communication quality of the second device and target the second device in the device connection interface. The target second device displayed in the device connection interface is a device whose target communication parameters meet the communication quality requirements of a target service with high communication quality needs in a multi-device interconnection scenario. The communication quality of the target second device can meet the normal execution of target services with high communication quality requirements, and also meet the normal execution of services with low communication quality requirements. Therefore, regardless of which service the user initiates in a multi-device interconnection scenario, the communication quality between the second device and the first device can meet the communication quality requirements of that service, ensuring that services in a multi-device interconnection scenario can be executed normally. This avoids the problem of target services with high communication quality requirements failing to respond due to poor communication quality between the second device and the first device, thus optimizing the user experience in multi-device interconnection scenarios, especially for target tasks with high communication quality requirements.
[0251] In one specific implementation, the first device can perform communication quality detection based on a first communication parameter of the second device in low-speed communication mode, or based on a second communication parameter of the second device in high-speed communication mode, according to the communication connection status with the second device. Figure 8 A flowchart illustrating a specific device interconnection method is provided, including:
[0252] S201, the first device uses Bluetooth to discover and establish a connection with the second device.
[0253] In this embodiment, device discovery and device connection establishment refer to the process of the first device searching for the second device and attempting to establish a communication connection with the second device. The method provided in embodiment S101 above can be referred to, and will not be repeated in this embodiment.
[0254] S202, the first device checks whether it has established a Bluetooth communication connection with at least one second device. If yes, proceed to S203; otherwise, return to S201, and the first device continues to perform device discovery and device connection establishment with the second device.
[0255] If at least one second device establishes a Bluetooth communication connection with the first device, the first device performs a communication quality test on the second device that has established the Bluetooth communication connection.
[0256] If the first device fails to establish a Bluetooth communication connection with any of the second devices, the first device returns to execute S201 to continuously perform device discovery and device connection.
[0257] For a second device that establishes a Bluetooth communication connection but not a high-speed communication connection such as WiFi P2P:
[0258] S203, the first device performs communication quality detection based on the first communication parameters of each of the second devices.
[0259] In this embodiment, the first communication parameters of the second device obtained by the first device may include one or more communication parameters among Bluetooth RSSI, Bluetooth signal-to-noise ratio, or Bluetooth packet loss rate. The first device can perform communication quality detection of the Bluetooth communication connection of the second device based on one or more communication parameters among Bluetooth RSSI, Bluetooth signal-to-noise ratio, or Bluetooth packet loss rate. The method for performing communication quality detection based on the first communication parameters can refer to the method provided in embodiment S103 above, and will not be described in detail in this embodiment.
[0260] S204, the first device displays the target second device that meets the first communication quality requirements on the device connection interface.
[0261] The first communication quality requirement refers to the communication quality requirements of the target task within the interconnection services supported by the high-speed communication connection. In this embodiment, the target task can be the task with the highest communication quality requirements among the interconnection services supported by the high-speed communication connection; or, the target service can be a task whose communication requirement parameters meet the following preset conditions. These preset conditions include any one of the following: transmission rate greater than a first preset threshold, latency less than a second preset threshold, packet loss rate less than a third preset threshold, and signal-to-noise ratio greater than a fourth preset threshold. A task whose communication requirement parameters meet the following preset conditions means that the task has very high communication quality requirements. If these requirements are met, it means that the target second device has good communication quality, can support services with high communication requirements, can support most services, and provides a good user experience.
[0262] In other words, in this embodiment, the first communication quality requirement represents the highest communication quality requirement for the interconnection services supported by the high-speed communication connection.
[0263] In the Bluetooth communication connection between the first device and the second device, the first communication quality requirement under the Bluetooth communication connection refers to the highest Bluetooth quality requirement of the target task corresponding to the highest communication quality requirement of the target task supported by the high-speed communication connection.
[0264] For example, if the communication parameter obtained by the first device from the second device is Bluetooth RSSI, the corresponding communication quality requirement may include a Bluetooth RSSI greater than the Bluetooth RSSI threshold (S_ble). The Bluetooth RSSI threshold (S_ble) corresponds to the lower limit of the communication parameter indicated by the highest communication quality requirement of the target task supported by the high-speed communication connection. When the communication parameter is Bluetooth signal-to-noise ratio (SNR), the corresponding communication quality requirement may include a Bluetooth SNR greater than the Bluetooth SNR threshold. The Bluetooth SNR threshold corresponds to the lower limit of the communication parameter indicated by the highest communication quality requirement of the target task supported by the high-speed communication connection. When the communication parameter is Bluetooth packet loss rate (BRR), the corresponding communication quality requirement may include a Bluetooth packet loss rate less than the Bluetooth packet loss rate threshold. The Bluetooth packet loss rate threshold corresponds to the lower limit of the communication parameter indicated by the highest communication quality requirement of the target task supported by the high-speed communication connection.
[0265] The first device displays a target second device that meets the first communication quality requirements on the device connection interface. The Bluetooth communication connection between the target second device and the first device can meet the communication quality requirements corresponding to the target task supported by the high-speed communication connection.
[0266] The device connection interface displays that the second device that meets the target can refer to the method provided in the above embodiment S104, which will not be repeated in this embodiment.
[0267] S205, the first device checks whether a high-speed communication connection has been established with the target second device. If yes, the first device executes S206. If no, the first device executes S208.
[0268] In this embodiment, since the first device searches for and establishes a connection with the second device through low-speed communication modes such as Bluetooth, after the first device establishes a Bluetooth communication connection with the second device and performs communication quality detection, the first device can periodically detect whether a high-speed communication connection has been established with the target second device, thereby directly detecting the communication quality using the second communication parameters of the high-speed communication connection with higher priority.
[0269] S206, the first device performs communication quality detection based on the second communication parameters of the target second device.
[0270] In this embodiment, if the first device detects that a high-speed communication connection has been established with the target second device, for example, the first device detects that a WiFi P2P communication connection has been established with the target second device, or the first device detects that the target second device is in the same WLAN network environment, the first device performs communication quality detection based on the second communication parameters of the target second device.
[0271] When the first device establishes a WiFi P2P communication connection with the target second device, the second communication parameter includes one or more of the following: WiFi P2PRSSI, WiFi P2P signal-to-noise ratio, or WiFi P2P packet loss rate. When the first device and the target second device are in the same WLAN network environment, the second communication parameter includes one or more of the following: WLAN RSSI, WLAN signal-to-noise ratio, or WLAN packet loss rate.
[0272] The method for communication quality detection based on the second communication parameter can refer to the method provided in embodiment S103 above, and will not be repeated in this embodiment.
[0273] S207, the first device displays the target second device that meets the second communication quality requirements on the device connection interface.
[0274] The second communication quality requirement refers to the communication quality requirements corresponding to the target task supported by the high-speed communication connection. For example, if the communication parameter of the second target device obtained by the first device is WiFi P2P RSSI, the corresponding communication quality requirement may include WiFi P2P RSSI being greater than the WiFi P2P RSSI threshold (S_WiFi P2P). The WiFi P2P RSSI threshold (S_WiFi P2P) is the lower limit of the communication parameter indicated by the highest communication quality requirement of the target task under the WiFi P2P communication connection. If the communication parameter of the target second device obtained by the first device is WLAN RSSI, the corresponding communication quality requirement may include the WLAN RSSI of the first device being greater than the WLAN RSSI threshold (S_WLAN), and the WLAN RSSI of the target second device being greater than the WLAN RSSI threshold (S_WLAN). The WLAN RSSI threshold (S_WLAN) is the lower limit of the communication parameter indicated by the highest communication quality requirement of the target task under the WLAN communication connection.
[0275] The first device updates and displays the target second device that meets the second communication quality requirements on the device connection interface.
[0276] The method provided in the above embodiment S104 can be used to refer to the second target device that meets the communication quality requirements displayed on the device connection interface. This embodiment will not elaborate further.
[0277] After executing S207, the first device can continue to monitor the high-speed communication connection status of the target second device displayed on the device connection interface, that is, return to execute S205.
[0278] S208, the first device sends a Bluetooth heartbeat signal to the target second device.
[0279] In this embodiment, if the first device fails to establish a high-speed communication connection with the target second device, the first device sends a Bluetooth heartbeat signal to the target second device to test whether the Bluetooth communication connection with the target second device is normal.
[0280] S209, if the first device receives a response to the Bluetooth heartbeat signal returned by the target second device, the first device returns to execute S203.
[0281] If the first device receives a response to the Bluetooth heartbeat signal from the target second device, meaning that the first device maintains a Bluetooth communication connection with the target second device, then the first device continuously performs communication quality detection on the target second device based on the first communication parameters to obtain the real-time communication quality status of the target second device. When the first communication parameters of the target second device meet the first communication quality requirements, step S204 is executed.
[0282] If the first device does not receive a response to the test signal from the target second device, or if the first communication parameters of the target second device do not meet the first communication quality requirements, the first device performs the following:
[0283] S210, the first device removes the target second device from the device connection interface.
[0284] Meanwhile, the first device returns to S201 to continue searching for and establishing connections with other devices.
[0285] In this embodiment, if the first device detects that the second communication parameter of the target second device does not meet the communication quality requirements, and the first communication parameter also does not meet the communication quality requirements, the first device can delete the target second device from the device connection interface. Alternatively, if the first device does not receive a response to the Bluetooth heartbeat signal from the target second device during the periodic detection of the Bluetooth heartbeat signal, and the Bluetooth communication connection between the first device and the target second device has been disconnected, the first device can delete the target second device from the device connection interface.
[0286] In some embodiments, if the first device receives a response to a Bluetooth heartbeat signal from the target second device, but the first device detects that the second communication parameters of the target second device do not meet the communication quality requirements, and the first communication parameters also do not meet the communication quality requirements, this indicates that the target second device is within the device search range of the first device, but the communication quality between the target second device and the first device is poor. In this case, the first device can remove the target second device from the device connection interface while displaying a reminder message on the device connection interface to suggest improving the communication quality.
[0287] for example, Figure 9 A schematic diagram of an interface in a device interconnection scenario is provided. For example... Figure 9 As shown in (a), the display shows the target second device on the mobile phone's device connection interface. During periodic detection, the mobile phone detects that the display's WLAN RSSI is less than the WLAN RSSI threshold, indicating that the display's second communication parameter does not meet the communication quality requirements. Furthermore, the display's Bluetooth RSSI is less than the Bluetooth RSSI threshold, indicating that the display's first communication parameter does not meet the communication quality requirements. The mobile phone can receive the display's response to the Bluetooth heartbeat signal, and the mobile phone and display still establish a Bluetooth communication connection, such as... Figure 9 As shown in (b), the phone can remove the display from the device list. Simultaneously, the phone displays a notification message suggesting improvements to communication quality between the phone and other connected devices. Figure 9As shown in (b), the mobile phone displays "Weak signal to the display. Please remove obstructions between devices or move the device closer to meet the signal quality requirements." Alternatively, as... Figure 9 As shown in (c), the phone can also display the notification on the current display screen (e.g., the desktop or the display screen of other applications).
[0288] In this embodiment, if the first device fails to establish a high-speed communication connection with the second device after establishing a Bluetooth communication connection, the first device can detect the communication quality using the first communication parameters of the Bluetooth communication connection. This allows the first device to indirectly determine whether the second device can meet the communication quality requirements of high-speed communication connection-supported high-quality services based on the communication quality under the Bluetooth connection. When the first device detects the establishment of a high-speed communication connection with the second device, it can prioritize direct detection of the communication quality based on the second communication parameters corresponding to the high-speed communication connection. This allows for a more direct and effective determination of whether the second device can meet the communication quality requirements of high-speed communication connection-supported high-quality services, making the judgment on whether the second device can support high-speed communication connection-supported high-quality services more direct, effective, and accurate.
[0289] In the above embodiments, the target second device is determined based on the communication quality requirements of the task with the highest communication quality among the interconnection services supported by the high-speed communication connection; or, based on the communication quality requirements of the task whose communication demand parameters meet the following preset conditions. In some embodiments, the communication quality detection of the second device by the first device can be refined to the communication quality requirements of each high-communication-quality service supported by the second device. For example, the communication quality requirements corresponding to each target service can be set adaptively for the high-communication-quality services supported by the second device. The communication quality detection of the second device by the first device can be refined to the communication quality detection of the target services with high communication quality supported by the communication quality of the second device. At the same time, the first device can also display the target services supported by the communication quality of the second device on the device connection interface, so that the user can more intuitively understand the target services that the second device can provide in the device connection interface.
[0290] For example, Figure 10 A flowchart illustrating yet another specific device interconnection method is provided, including:
[0291] S301, the first device uses Bluetooth to discover and establish a connection with the second device.
[0292] The method provided in the above embodiment S101 can be referred to, and will not be repeated in this embodiment.
[0293] S302, the first device checks whether it has established a Bluetooth communication connection with at least one second device. If yes, proceed to S303; otherwise, return to S301, and the first device continues to discover and establish connections with the second devices.
[0294] If at least one second device establishes a Bluetooth communication connection with the first device, the first device performs a communication quality test on the second device that has established the Bluetooth communication connection.
[0295] If the first device fails to establish a Bluetooth communication connection with any of the second devices, the first device returns to execute S301 to continuously perform device discovery and device connection.
[0296] For a second device that establishes a Bluetooth communication connection but not a high-speed communication connection such as WiFi P2P:
[0297] S303, the first device performs communication quality detection based on the first communication parameters of the second device to determine whether the communication quality requirements corresponding to at least one target service are met.
[0298] The target service refers to the high-quality communication service provided between the first and second devices. For example, the target service may include screen mirroring, keyboard and mouse sharing, message sharing, remote control, network sharing, file transfer and sharing, cross-device file management, application continuity, call sharing, cross-device quick drawing, audio and video relay, cross-device gesture control, or camera sharing, which require high communication quality (e.g., high communication transmission rate, low packet loss rate, etc.).
[0299] Each target service corresponds to a communication quality requirement. In one implementation, the communication quality requirement may include threshold requirements for the target communication parameters of each target service under different communication connections.
[0300] In this embodiment, the communication quality requirements can also be referred to as secondary communication quality requirements; the communication quality requirements involved in S103 and S104, S206 and S207 can be referred to as primary communication quality requirements. Compared with primary communication quality requirements, secondary communication quality requirements are more detailed to specific target services, and the detection of communication quality for each target service is more accurate.
[0301] For example, if the target service is screen mirroring, the available protocols for screen mirroring include WiFi P2P. When the first device establishes a WiFi P2P communication connection with the second device, the first device can directly perform communication quality testing based on the target communication parameters of WiFi P2P. For example, if the WiFi P2P RSSI is greater than the first WiFi P2P RSSI threshold (S1_WiFi P2P), the communication quality requirements for screen mirroring are met. If the first device and the second device do not establish a WiFi P2P communication connection, but establish a Bluetooth communication connection, the first device can indirectly perform communication quality testing through the target communication parameters of the Bluetooth communication connection. For example, if the Bluetooth RSSI is greater than the first Bluetooth RSSI threshold (S1_ble), the communication quality requirements for screen mirroring are met. If the first device and the second device do not establish a WiFi P2P communication connection, but are in the same WLAN network environment, the first device can indirectly perform communication quality testing through the WLAN RSSI. For example, if the WLAN RSSI of the first device is greater than or equal to the first WLAN RSSI threshold (S1_WLAN), and the WLAN RSSI of the second device is also greater than or equal to the first WLAN RSSI threshold (S1_WLAN), the communication quality requirements for screen mirroring are met.
[0302] For example, if the target service is keyboard and mouse sharing, the available protocols for keyboard and mouse sharing include WiFi P2P. When the first device establishes a WiFi P2P communication connection with the second device, the first device can directly perform communication quality testing based on the WiFi P2P communication parameters. For instance, if the WiFi P2P RSSI is greater than the second WiFi P2P RSSI threshold (S2_WiFi P2P), the communication quality requirements for keyboard and mouse sharing are met. If the first device and the second device do not establish a WiFi P2P communication connection, but establish a Bluetooth communication connection, the first device can indirectly perform communication quality testing through the communication parameters of the Bluetooth connection. For instance, if the Bluetooth RSSI is greater than the second Bluetooth RSSI threshold (S2_ble), the communication quality requirements for keyboard and mouse sharing are met. If the first device and the second device do not establish a WiFi P2P communication connection, but are in the same WLAN network environment, the first device can indirectly perform communication quality testing through the WLAN RSSI. For example, when the WLAN RSSI of the first device is greater than or equal to the second WLAN RSSI threshold (S2_WLAN), and the WLAN RSSI of the second device is greater than or equal to the second WLAN RSSI threshold (S2_WLAN), the communication quality requirements corresponding to keyboard and mouse sharing are met.
[0303] For example, if the target service is message sharing, and the available protocols for message sharing include Bluetooth and WLAN protocols, when the first device and the second device establish a Bluetooth communication connection, the first device can directly perform communication quality testing through the communication parameters of the Bluetooth communication connection. For example, if the Bluetooth RSSI is greater than the third Bluetooth RSSI threshold (S3_ble), the communication quality requirements corresponding to message sharing are met. When the first device and the second device are in the same WLAN network environment, the first device can directly perform communication quality testing through the WLAN RSSI. For example, if the WLAN RSSI of the first device is greater than or equal to the third WLAN RSSI threshold (S3_WLAN), and the WLAN RSSI of the second device is also greater than or equal to the third WLAN RSSI threshold (S3_WLAN), the communication quality requirements corresponding to message sharing are met. If the first device and the second device establish a WiFi P2P communication connection, the first device can indirectly perform communication quality testing based on the WiFi P2P communication parameters. For example, if the WiFi P2P RSSI is greater than the third WiFi P2P RSSI threshold (S3_WiFi P2P), the communication quality requirements corresponding to message sharing are met.
[0304] In this embodiment, the first device uses Bluetooth for device discovery and connection establishment. The first device can first perform communication quality detection of the second device based on the communication quality requirements of each target service under the Bluetooth communication connection.
[0305] In this embodiment, the communication parameter thresholds under different communication connections involved in the communication quality requirements corresponding to each target service can be determined by referring to the threshold acquisition method provided in S103 above. This embodiment will not elaborate on this.
[0306] S304, The first device displays a target second device on the device connection interface that meets the communication quality requirements corresponding to at least one target service.
[0307] The first device performs communication quality testing on the second device based on the communication quality requirements of each target service under the Bluetooth communication connection. When the communication quality of the second device meets the communication quality requirements of any target service, the first device can display that target second device on the connection interface. For example, if the first device establishes a Bluetooth communication connection with second device 1, and the Bluetooth RSSI of second device 1 is greater than the third Bluetooth RSSI threshold, meeting the communication quality requirements for message sharing, then the first device will display second device 1 as the target second device on the device connection interface.
[0308] Simultaneously, the first device can also display service information of the target service corresponding to the communication quality requirements met by the target second device on the device connection interface. For example, refer to... Figure 11A schematic diagram of a device connection interface is provided. For example, Figure 11 As shown in (a), the device connection interface of the first device (mobile phone) includes the second device 1 and the second device 2.
[0309] The second device 1 possesses the following capabilities: message sharing and keyboard / mouse sharing. The second device 1 meets the communication quality requirements for message sharing. However, the second device 1 does not meet the communication quality requirements for keyboard / mouse sharing. Therefore, when the first device receives a click operation from the user on the second device 1, if... Figure 11 As shown in (b), the target service of the second device 1 is displayed. This service information includes message sharing.
[0310] The second device 1 possesses the following capabilities: message sharing, keyboard and mouse sharing, and screen projection. The second device 2 meets the communication quality requirements for message sharing and keyboard and mouse sharing. However, the second device 2 does not meet the communication quality requirements for screen projection. Therefore, when the first device receives a click operation from the user on the second device 2, if... Figure 11 As shown in (c), the target services of the second device 2 are displayed. This service information includes message sharing and keyboard / mouse sharing.
[0311] Even though the second device 1 (the target second device) has the capability for keyboard and mouse sharing, its communication quality fails to meet the requirements for keyboard and mouse sharing. Therefore, the first device does not display any information about the second device 1's failure to meet the keyboard and mouse sharing requirements on the device connection interface. Similarly, even though the second device 2 (the target second device) has the capability for screen mirroring, its communication quality fails to meet the requirements for screen mirroring. Therefore, the first device does not display any information about the target second device 2's screen mirroring capabilities on the device connection interface.
[0312] In another embodiment, to provide users with a clearer understanding of the service capabilities of the second device itself and a better multi-device interconnection experience, the first device can not only display service information of the target services that the second device 1 and the second device 2 meet, but also display service information of the services that the second device 1 and the second device 2 do not meet in terms of communication quality, as well as reminder information for improving communication quality.
[0313] Figure 12 A schematic diagram of another device connection interface is provided. For example, Figure 12 As shown in (a), the device connection interface of the first device (mobile phone) includes the target second device, namely the second device 1 and the second device 2.
[0314] The second device 1 possesses the capability for message sharing and keyboard / mouse sharing. The second device 1 meets the communication quality requirements for message sharing, but does not meet the communication quality requirements for keyboard / mouse sharing. Therefore, when the first device receives a click operation from the user on the second device 1, if... Figure 12 As shown in (b), the target service of the second device 1 is displayed. This service information includes message sharing. Simultaneously, a prompt message is displayed indicating that the communication quality of the second device 1 fails to support the service. This prompt message may also include suggestions for improving the communication quality between the first device and the second device 1. For example, Figure 12 As shown in (b), it displays "The communication quality of the second device 1 does not support keyboard and mouse sharing. Please remove obstructions between devices or move the device closer to meet the service signal quality requirements." Or, as... Figure 12 As shown in (c), the first device can distinguish between the target services supported by the second device 1 and the services it does not support. For example, it can highlight the supported "message sharing" and display the unsupported "keyboard and mouse sharing" in black (or grayscale). The first device can... Figure 12 (c) shows the distinction between the target services supported by the second device 1 and the services it does not support, along with a prompt message. Alternatively, the first device may only distinguish between the target services supported by the second device 1 and the services it does not support. This embodiment does not limit this.
[0315] The second device 1 possesses the following capabilities: message sharing, keyboard and mouse sharing, and screen projection. The second device 2 meets the communication quality requirements for message sharing and keyboard and mouse sharing. However, the second device 2 does not meet the communication quality requirements for screen projection. Therefore, when the first device receives a click operation from the user on the second device 2, if... Figure 12 As shown in (d), the target service of the second device 2 is displayed. This service information includes message sharing and keyboard / mouse sharing. Simultaneously, a prompt message is displayed indicating that the communication quality of the second device 2 fails to support the service. This prompt message may also include suggestions for improving the communication quality between the first device and the second device 2. For example, Figure 12 As shown in (d), it displays "The communication quality of the second device 2 does not support screen mirroring. Please remove obstructions between devices or move the device closer to meet the service signal quality requirements." Alternatively, as... Figure 12 As shown in (e), the first device can distinguish between the target services supported by the second device 2 and the services it does not support. For example, it can highlight the supported "message sharing" and "keyboard and mouse sharing," and display the unsupported "screen casting" in black (or grayscale). The first device can, as shown in (e), distinguish between the supported services supported by the second device 2 and the unsupported services supported by the second device 2. Figure 12(e) shows the distinction between the target services supported by the second device 2 and the services it does not support, along with a prompt message. Alternatively, the first device may also only distinguish between the target services supported by the second device 2 and the services it does not support. This embodiment does not limit this.
[0316] In this embodiment, the target services supported by the communication quality of the second target device are displayed, as well as the services not supported by the communication quality of the second target device and reminder information. This can provide users with a clearer understanding of the service capabilities of the second device itself and suggestions for improving communication quality, enabling users to better utilize the multi-device interconnection function and improve the user experience in multi-device interconnection scenarios.
[0317] The target second device that meets the communication quality requirements can be displayed on the device connection interface. The method provided in the above embodiment S204 can be referred to, and will not be repeated in this embodiment.
[0318] S305, the first device checks whether a high-speed communication connection has been established with the target second device. If yes, the first device executes S306. If no, the first device executes S308.
[0319] In this embodiment, since the first device searches for and establishes a connection with the second device through low-speed communication modes such as Bluetooth, after the first device establishes a Bluetooth communication connection with the second device and performs communication quality detection, the first device can periodically detect whether a high-speed communication connection has been established with the target second device, thereby directly detecting the communication quality using the second communication parameters of the high-speed communication connection with higher priority.
[0320] S306, the first device performs communication quality detection based on the second communication parameters of the target second device to determine whether the communication quality requirements corresponding to at least one target service are met.
[0321] In this embodiment, the method for communication quality detection based on the second communication parameter can refer to the method provided in the above embodiments S103, S206 or S303, and will not be described in detail in this embodiment.
[0322] S307, the first device displays a target second device on the device connection interface that meets the communication quality requirements corresponding to at least one target service.
[0323] The first device performs communication quality testing on the second device based on the communication quality requirements of each target service under a high-speed communication connection (such as WiFi P2P or WLAN). When the communication quality of the second device meets the communication quality requirements of any target service, the first device can display the target second device on the connection interface. For example, if the first device establishes a WiFi P2P communication connection with the target second device 1, and the WiFi P2P RSSI of the second device 1 is greater than the second WiFi P2P RSSI threshold, meeting the communication quality requirements for keyboard and mouse sharing, then the first device will display the second device 1 as the target second device on the device connection interface.
[0324] The method provided in the above embodiment S304 can be used to display the target second device that meets the communication quality requirements corresponding to at least one target service on the device connection interface. This embodiment will not elaborate further.
[0325] After executing S307, the first device can continue to monitor the high-speed communication connection status of the target second device, that is, return to execute S305.
[0326] S308, the first device sends a Bluetooth heartbeat signal to the target second device.
[0327] In this embodiment, if the first device has never established a high-speed communication connection with the target second device, the first device sends a Bluetooth heartbeat signal to the target second device to test whether the Bluetooth communication connection with the target second device is normal.
[0328] S309, if the first device receives a response to the Bluetooth heartbeat signal returned by the target second device, the first device returns to execute S303.
[0329] If the first device receives a response to the Bluetooth heartbeat signal from the target second device, that is, the first device maintains a Bluetooth communication connection with the target second device, then the first device continuously performs communication quality detection on the target second device based on the first communication parameters to obtain the real-time communication quality status of the target second device.
[0330] If the first device does not receive a response to the test signal from the target second device, or if the first communication parameters of the target second device do not meet the communication quality requirements corresponding to all target services, the first device shall execute:
[0331] S310, the first device removes the target second device from the device connection interface.
[0332] Meanwhile, the first device returns to S301 to continue searching for and establishing connections with other devices.
[0333] In this embodiment, if the communication quality of the target second device does not meet the communication quality requirements of any service, or if the low-speed communication connection (Bluetooth communication connection) between the target second device and the first device is disconnected, and the first device does not receive a response to the Bluetooth jump signal returned by the second device, then the first device will remove the target second device from the device connection interface.
[0334] In this embodiment, if the first device fails to establish a high-speed communication connection with the second device after establishing a Bluetooth communication connection, the first device can detect the communication quality using the first communication parameters of the Bluetooth communication connection. This allows the first device to indirectly determine whether the second device can meet the high-speed communication connection requirements corresponding to the high-speed, low-latency demands of interconnectivity services based on the communication quality under the Bluetooth connection. When the first device detects the establishment of a high-speed communication connection with the second device, it can prioritize direct detection of the communication quality based on the second communication parameters corresponding to the high-speed communication connection. This allows for a more direct and effective determination of whether the second device supports interconnectivity services, making the detection result of the communication quality for determining whether the second device can support the high-speed communication connection requirements corresponding to the high-speed, low-latency demands of interconnectivity services more direct, effective, and accurate.
[0335] In this embodiment, the first device can determine the target second device based on the communication quality requirements corresponding to each target service. The first device displays the target second device and service information in the device connection interface, which meet the communication quality requirements of at least one target service. This allows the user to perceive the target services that the target second device can support, thereby ensuring that the target service that the user can initiate on the second device is a service that can be executed normally with the communication quality of the target second device. This further avoids the problem of target service execution failure, optimizes the user's experience of using multi-device interconnection services, and makes the effect of multi-device interconnection better.
[0336] In other feasible scenarios, in the embodiments of communication quality detection based on communication parameters provided in S103, S203, S206, S303 and S307 above, it is provided that if the first device determines that the communication parameters of the second device do not meet the communication quality requirements corresponding to any service, even if the first device discovers the second device or the first device has established a low-speed communication connection such as Bluetooth with the second device, the first device will not display the device information of the second device on the device connection interface.
[0337] However, in some practical situations, if the first device can discover the second device, but the communication quality of all the second devices fails to meet the requirements, then the first device's connection interface will not display any device information for the second devices. In this case, the user cannot discern whether the lack of displayed device information is due to the second devices' communication quality failing to meet the requirements or because the first device failed to discover the second devices.
[0338] To avoid misleading users into believing that the device search is abnormal or that the second device was not found, in some feasible implementations, the first device performs a communication quality test based on communication parameters after finding the second device. If the communication quality of the second device does not meet the requirements, the first device can still display the found second device in the device connection interface. In order to distinguish it from the second device in the device connection interface that meets the communication quality requirements, the first device can display a reminder message (or reminder icon) in the device connection interface to indicate that the second device has poor communication quality or weak signal for the second device that does not meet the communication quality requirements.
[0339] For example, Figure 13 A scenario diagram illustrating yet another method of device interconnection is presented.
[0340] like Figure 13 As shown in (a), when the first device (mobile phone) discovers and connects with other devices via Bluetooth, it can find three second devices: a tablet, a laptop, and a monitor. The mobile phone can then establish Bluetooth communication connections with the tablet, laptop, and monitor, respectively.
[0341] Among them, such as Figure 13 As shown in (b), the mobile phone detects that it is in the same WLAN network environment as the display, and the mobile phone's WLAN RSSI is greater than the WLAN RSSI threshold (or the WLAN RSSI threshold corresponding to the home scenario). The mobile phone obtains the display's WLAN RSSI and determines that the display's WLAN RSSI is also greater than the WLAN RSSI threshold (or the WLAN RSSI threshold corresponding to the home scenario). The communication quality between the display and the mobile phone meets the communication quality requirements of all target services provided by the display. The mobile phone displays the display's interconnection information (such as device name and device icon) on the device connection interface.
[0342] like Figure 13As shown in (b), the mobile phone detects that a WiFi P2P communication connection has been established with the laptop, and determines that the WiFi P2P RSSI corresponding to the laptop is greater than the WiFi P2P RSSI threshold corresponding to keyboard and mouse sharing. The communication quality between the laptop and the mobile phone meets the communication quality requirements corresponding to keyboard and mouse sharing. The mobile phone displays the laptop's interconnection information (such as device name and device icon) on the device connection interface.
[0343] like Figure 13 As shown in (b), if the mobile phone detects that a WiFi P2P communication connection has been established with the tablet computer, and determines that the WiFi P2P RSSI corresponding to the tablet computer is less than the corresponding WiFi P2P RSSI threshold, the communication quality between the tablet computer and the mobile phone does not meet the communication quality requirements of any target service. In this case, the mobile phone displays the tablet computer's interconnection information (such as device name and device icon) on the device connection interface.
[0344] Furthermore, the first device can respond to user actions on the second devices in the device connection interface, displaying the corresponding information about the second devices. For example... Figure 13 As shown in (c), the first device, in response to an operation performed on the laptop, displays service information of the target service whose communication quality meets the requirements of the laptop, such as the service name. Figure 13 As shown in (d), the first device displays a warning message indicating poor communication quality corresponding to the tablet computer in response to an operation performed on the tablet computer. Figure 13 As shown in (e), the first device displays service information of the target service satisfied by the display in response to an operation performed on the display. The communication quality of the display meets the communication quality requirements of all target services supported by the display, including network sharing, screen projection, and remote control.
[0345] Furthermore, such as Figure 14 This is a schematic diagram illustrating another scenario of device interconnection methods. (For example...) Figure 14 As shown in (a), the mobile phone (first device) displays in the device display list a monitor whose communication quality meets the communication quality requirements of all target services provided by the monitor, a laptop whose communication quality meets the communication quality requirements corresponding to keyboard and mouse sharing, and a tablet computer whose communication quality does not meet the communication quality requirements of any target service.
[0346] During communication connections between a mobile phone and a monitor, laptop, or tablet, if the mobile phone detects that the communication quality between the mobile phone and the laptop does not meet the communication quality requirements of any target service, the mobile phone can then... Figure 14As shown in (b), the operation of the laptop displays the service information of the target service whose communication quality meets the requirements of the laptop, and updates it as follows: Figure 14 As shown in (c), a warning message is displayed indicating that the communication quality of the laptop is very poor.
[0347] In this embodiment, after the first device discovers the second device, it performs a communication quality detection based on communication parameters. If the communication quality of the second device does not meet the communication quality requirements, the first device can still display the discovered second device in the device connection interface. In order to distinguish it from the second devices in the device connection interface that meet the communication quality requirements, the first device can display a prompt message (or prompt icon) in the device connection interface to indicate that the second device has poor communication quality or weak signal for the second device that does not meet the communication quality requirements. This can avoid misleading users into thinking that the device search is abnormal or that the second device has not been found, and further optimize the user's experience of using device interconnection.
[0348] Figure 15 A schematic diagram of a possible structure of the electronic device involved in the above embodiments is shown. Figure 15 The electronic device 1500 shown includes a processing module 1501, a communication module 1502, a display module 1503, and a storage module 1504.
[0349] The processing module 1101 may be a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may include an application processor and a baseband processor. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0350] For example, the processing module 1501 can be as follows: Figure 3 The processor 110 shown; the communication module 1502 can be as follows: Figure 3 The mobile communication module 150 or wireless communication module 160 shown; the display module 1503 can be as follows: Figure 3The display screen 190 shown; the storage module 1504 can be as follows Figure 3 The internal memory 121 shown. The electronic device provided in this application embodiment can be Figure 3 The electronic device 100 shown.
[0351] This application also provides a chip system (e.g., a system-on-a-chip (SoC)). Figure 16 As shown, the chip system includes at least one processor 1601 and at least one interface circuit 1602. The processor 1601 and the interface circuit 1602 are interconnected via lines. For example, the interface circuit 1602 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 1602 can be used to send signals to other devices (e.g., the processor 1601 or the camera of the electronic device). Exemplarily, the interface circuit 1602 can read instructions stored in the memory and send those instructions to the processor 1601. When the instructions are executed by the processor 1601, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete components, which are not specifically limited in this application embodiment.
[0352] This application also provides a computer-readable storage medium including computer instructions that, when executed on the electronic device, cause the electronic device to perform various functions or steps performed by the electronic device 100 in the above method embodiment.
[0353] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the electronic device 100 in the above method embodiments. For example, the computer may be the aforementioned electronic device 100.
[0354] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0355] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0356] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0357] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0358] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0359] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method of device interconnection, characterized by, A first device applied in a multi-device interconnection scenario, the method includes: The first device performs a device search and discovers a first number of second devices; When the first device establishes a communication connection with the second device, the first device performs a communication quality test on the second device; The first device displays interconnection information of a second number of target second devices on the device connection interface; the second number is less than or equal to the first number; The target communication parameters of the second target device meet the communication quality requirements of the target service with high-quality communication needs in the multi-device interconnection scenario.
2. The method of claim 1, wherein, The interconnection information includes device identifiers. The method further includes: The first device displays interconnection information of other second devices on the device connection interface; the other second devices are those among the first number of second devices whose target communication parameters do not meet the communication quality requirements of the target service. The method further includes: The first device displays communication quality reminder information of the other second device on the device connection interface. The communication quality reminder information is used to remind the other second device that the communication quality is poor and that the other second device cannot support responding to the target service.
3. The method according to claim 1 or 2, characterized in that, Different target services may have the same or different communication quality requirements; the target second device includes a device whose communication quality meets the communication quality requirements of at least one of the target services; the interconnection information includes the service name of the target service that the target second device meets.
4. The method according to any one of claims 1 to 3, characterized in that, The communication connection includes a low-speed communication connection, which includes a Bluetooth communication connection. The target second device includes devices whose target communication parameters meet the Bluetooth quality requirements, and the Bluetooth quality requirements correspond to the communication quality requirements of the target service supported by the high-speed communication connection.
5. The method according to any one of claims 1-3, characterized in that, The communication connection includes a high-speed communication connection. When the high-speed communication connection is a Wireless Local Area Network (WLAN) communication connection, the target second device includes a device whose target communication parameters meet the WLAN communication quality requirements of the target service; or... When the high-speed communication connection is a point-to-point WiFi P2P communication connection in a wireless communication network, the target second device includes a device whose target communication parameters meet the WiFi P2P communication quality requirements of the target service.
6. The method according to any one of claims 1-3, characterized in that, When the communication connection includes both low-speed and high-speed communication connections, the detection priority of the high-speed communication connection is higher than that of the low-speed communication connection. The target second device includes devices whose target communication parameters meet the target service's requirements for high-speed communication connection quality.
7. The method according to claim 6, characterized in that, When the high-speed communication connection includes a wireless local area network (WLAN) communication connection and a wireless communication network point-to-point (WiFi P2P) communication connection, the detection priority of the WiFi P2P communication connection is higher than that of the WLAN communication connection. The target second device includes devices whose target communication parameters meet the WiFi P2P communication quality requirements of the target service.
8. The method according to any one of claims 1 to 7, characterized in that, The target task is the task with the highest communication quality requirements among the interconnection services supported by high-speed communication connections; or, the target service is a task whose communication requirement parameters meet the following preset conditions; wherein, the preset conditions include any one of the following: transmission rate greater than a first preset threshold, latency less than a second preset threshold, packet loss rate less than a third preset threshold, and signal-to-noise ratio greater than a fourth preset threshold.
9. The method according to any one of claims 1-8, characterized in that, The target communication parameters of the second target device meet the communication quality requirements of the target service with high-quality communication needs in the multi-device interconnection scenario, including: The target communication parameters of the second target device are greater than a preset parameter threshold, which matches the communication quality requirements of the target task. The target communication parameters include the received signal strength.
10. The method of claim 9, wherein, The methods for determining the preset parameter threshold include: For each target service, under each communication connection, a weak signal scenario is constructed between the first test device and the second test device. Under the weak signal scenario, the parameter test value corresponding to the failure of the second test device in responding to the target service is obtained. Based on the preset failure rate threshold under the weak signal scenario and the parameter test value, the preset parameter threshold corresponding to the target service under each communication connection is determined. or, For each target service, obtain the actual values of parameters of a large number of user devices when the response to the target task fails due to weak signals under each communication connection. Based on the preset failure rate threshold and the actual values of the parameters, determine the preset parameter threshold corresponding to the target service under each communication connection. or, For each target service, a preset initial threshold for preset parameters is set for each communication connection. The actual values of the parameters when the user equipment is in different locations and the response to the target service fails due to weak signals are obtained. Based on the preset failure rate threshold and the actual values of the parameters, the preset initial threshold for preset parameters is adjusted to determine the preset parameter threshold for the target service in each location and for each communication connection.
11. The method according to claim 9 or 10, characterized in that, When the target communication parameter is the received signal strength, the received signal strength is the received signal strength after power control compensation; The preset parameter threshold includes a received signal strength threshold, which is determined based on the received signal strength test value after power control compensation or the actual received signal strength value after power control compensation.
12. The method of claim 10, wherein, The method further includes: The first device performs location detection to determine the target location where the first device and the at least one second device are located; When the first device establishes a communication connection with the second device, the first device performs a communication quality check on the second device, including: The first device acquires a preset parameter threshold corresponding to the target location and the communication connection, and performs communication quality detection based on the preset parameter threshold and the target communication parameters of the corresponding at least one second device.
13. The method according to any one of claims 1-12, characterized in that, The target service corresponding to different types of second devices has different requirements for communication quality; Alternatively, the first device and the second device may form a pair of devices, and the target services corresponding to the pair of devices of different device types have different requirements for communication quality. Alternatively, the first device and the second device may form a pair of devices, and the target services corresponding to the pair of devices with different device models may have different requirements for communication quality.
14. The method of any one of claims 1-13, wherein, The target services include one or more of the following: screen mirroring, keyboard and mouse sharing, message sharing, network sharing, remote control, file transfer and sharing, cross-device file management, application continuity, call sharing, cross-device quick drawing, audio and video relay, cross-device gesture control, or camera sharing.
15. An electronic device comprising a communication interface, a display, a memory, a processor, and a computer program stored on the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1-14.
16. A computer readable storage medium having stored thereon a computer program, characterized in that, When executed by a processor, the computer program performs the steps of the method described in any one of claims 1-14.
17. A computer program product comprising a computer program, characterized in that, When executed by a processor, the computer program performs the steps of the method described in any one of claims 1-14.