Capability coordination method and electronic device
After the first electronic device enters the focus acquisition state, it uses the previously collected capability status information to make independent decisions, achieving rapid capability collaboration between different electronic devices, solving the problems of low efficiency and poor fluency in the existing technology, and improving the user experience. .
Patent Information
- Application Number
- PCT/CN2024/078192
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-23
- Filing Date
- 2024-02-22
- Publication Date
- 2024-08-29
AI Technical Summary
The existing technology has low efficiency and poor fluency when realizing capability collaboration between different electronic devices, resulting in poor user experience and requiring an additional decision center to execute the collaboration process.
By using the previously collected capability status information of each electronic device after the first electronic device enters the focus acquisition state, the capabilities and target electronic devices that require collaboration can be independently determined, reducing the number of interactions and time delays, and directly realizing capability collaboration.
It improves the efficiency and fluency of capability collaboration, improves user experience, reduces interaction with other devices, and reduces the occurrence of preemption of target capabilities.
Smart Images

Figure CN2024078192_29082024_PF_FP_ABST
Abstract
Description
A capability collaboration method and electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on February 23, 2023, with application number 202310194489.X and application name “A Capability Collaboration Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the technical field of electronic devices, and in particular to a capability collaboration method and electronic device. Background Art
[0004] With the development of electronic technology in recent years, the types of smart electronic devices have increased, enriching and facilitating users' lives. Different types of electronic devices have different capabilities.
[0005] For example, headphones are primarily used for audio capture and playback. Speakers are primarily used for audio playback. Mice and keyboards are primarily used for data input. Virtual reality (VR) devices, augmented reality (AR) devices, and head-mounted displays (HMDs) are primarily used for output and user interface display. Smartphones, tablets, and laptops generally have all of these input and output capabilities.
[0006] Therefore, designing a solution for inter-device capability collaboration can not only amplify the effectiveness of various electronic devices, but also enhance user experience and improve product competitiveness.
[0007] Summary of the Invention
[0008] The present application provides a capability collaboration method and electronic device for achieving capability collaboration among different electronic devices and improving user experience.
[0009] In a first aspect, an embodiment of the present application provides a capability collaboration method. The method includes the following steps:
[0010] The first electronic device receives first capability status information from the second electronic device; after the first electronic device enters the focus state, it can determine the target capability and target electronic device to be coordinated based on the received first capability status information; then send a capability coordination request to the target electronic device to request the coordinated use of the target capability of the target electronic device to achieve capability coordination.
[0011] The first capability status information is used to indicate at least one of the following: a first capability that the second electronic device can provide, a second capability used in conjunction with the second electronic device, and a third electronic device that provides the second capability and a third capability that the fourth electronic device can provide; the fourth electronic device is an electronic device paired with the second electronic device; the target capability is any one of the first capability, the second capability and the third capability, and the target electronic device is an electronic device that provides the target capability.
[0012] In this method, after entering the focus state, the first electronic device can use the capability status information of each electronic device collected before focus acquisition to determine the capabilities and electronic devices that need to be coordinated, thereby achieving capability coordination. Through this method, the first electronic device can quickly use the capability status information of each electronic device collected before focus acquisition to perceive the capabilities provided by each electronic device around the first electronic device, thereby quickly achieving capability coordination, reducing the number and delay of interactions with other electronic devices, improving the efficiency of capability coordination, and ultimately improving the user experience.
[0013] In addition, since in this method, the first electronic device can independently decide the target capabilities and target electronic devices that need to be used collaboratively after acquiring focus, no additional decision center is required to execute the process, which improves the smoothness of the capability collaboration process and enhances the user experience.
[0014] In one possible design, after sending the capability collaboration request, the first electronic device may collaboratively use the target capability of the target electronic device. In one embodiment, the first electronic device may send service data to the target electronic device, and the target electronic device processes the received service data using the target capability. In another embodiment, the target electronic device may process or generate service data using the target capability and then send the service data to the first electronic device; the first electronic device may monitor and receive service data from the target electronic device.
[0015] In one possible design, the first electronic device may determine the target capability to be coordinated and the target electronic device to be coordinated according to the first capability status information through the following steps:
[0016] The first electronic device determines at least one collaborative candidate capability and at least one collaborative candidate electronic device based on the first capability status information; wherein, the at least one collaborative candidate capability includes the target capability, and the at least one collaborative candidate electronic device includes the target electronic device; the first electronic device displays the at least one collaborative candidate capability and the at least one collaborative candidate electronic device in a user interface; and determines the target capability and the target electronic device in response to a user's selection operation.
[0017] Through this design, the first electronic device can present at least one candidate collaboration capability and at least one candidate collaboration electronic device to the user, and the user can select a target capability or a target electronic device.
[0018] In one possible design, the first capability status information is also used to indicate at least one of the following: the usage status of the first capability, the usage status of the second capability, the usage status of the third capability, and the working status of the second electronic device; based on this, when the first capability status information indicates that the target capability is not currently in use, or when the target capability is the second capability and the second electronic device is in a non-focus state, the first electronic device sends the capability collaboration request to the target electronic device. Optionally, in this case, the first electronic device can immediately send the capability collaboration request to the target electronic device.
[0019] With this design, the first electronic device can directly initiate a capability collaboration request to the target electronic device when the target capability is not currently in use (when there is no usage conflict with the target capability).
[0020] In one possible design, the first capability status information is also used to indicate at least one of the following: the usage status of the first capability, the usage status of the second capability, the usage status of the third capability, and the working status of the second electronic device; based on this, when the first capability status information indicates that the target capability is currently in use, or when the target capability is the second capability and the second electronic device is in a focused state, the first electronic device sends the capability collaboration request to the target electronic device after starting the target application; wherein, the business data of the target application needs to be processed or generated through the target capability.
[0021] With this design, if the target capability is currently being used or about to be used (in the event of a capability usage conflict), the first electronic device can temporarily suspend initiating a capability collaboration request to the target electronic device until the target application is started and the target capability is needed, at which point the capability collaboration request can be initiated to the target electronic device. This method can reduce the risk of preempting the target capability and improve the user experience.
[0022] In one possible design, when the first capability status information indicates that the target capability is currently in use, or when the target capability is the second capability and the second electronic device is in a focused state, the first electronic device may also display a first prompt message in the user interface; wherein the first prompt message is used to prompt a conflict in the use of the target capability.
[0023] Through this design, the first electronic device can prompt the user when there is a conflict in the use of target capabilities, so as to improve the user experience.
[0024] In one possible design, the first capability status information is also used to indicate a fifth electronic device that collaboratively uses the first capability, or a sixth electronic device that collaboratively uses the third capability; based on this, after starting the target application, the first electronic device can send the capability collaboration request to the target electronic device according to the capability conflict rule; the capability conflict rule includes any one of the following: forcibly preempting the target capability; or preempting the target capability according to the device priority; wherein, when the capability conflict rule includes preempting the target capability according to the device priority, the priority of the first electronic device is higher than the priority of the conflicting electronic device; the conflicting electronic device is an electronic device that collaboratively uses the target capability; when the target capability is the first capability, the conflicting electronic device is the fifth electronic device; when the target capability is the second capability, the conflicting electronic device is the second electronic device; when the target capability is the third capability, the conflicting electronic device is the sixth electronic device.
[0025] Through this design, the first electronic device can make a conflict decision when a capability usage conflict occurs, and achieve capability coordination according to the set capability conflict rules while minimizing the impact on the user's usage experience.
[0026] In one possible design, the capability conflict rule is set for the target application or the target capability of the first electronic device.
[0027] Through this design, products such as the first electronic device or application can define and design capability conflict rules based on specific capabilities, thereby achieving customized product design in the event of capability usage conflicts.
[0028] In one possible design, the capability collaboration request may also include the device identification of the first electronic device and the device identification of the target electronic device.
[0029] In one possible design, the first electronic device may also send second capability status information; wherein, the second capability status information is used to indicate that the first electronic device collaboratively uses the target capability of the target electronic device. Optionally, the first electronic device may send the second capability status information by broadcasting or multicasting, and may also use sidelink technology, device to device (D2D) technology, relay transmission technology, or short-range wireless communication technology to send the second capability status information to a specific electronic device. The specific electronic device may be an electronic device that can be perceived by the first electronic device, and may include but is not limited to: an electronic device paired with the first electronic device, an electronic device that has established a communication connection with the first electronic device, an electronic device that has established a bottom-layer connection with the first electronic device, or an electronic device that has been authenticated by the first electronic device. For another example, the specific electronic device is a peripheral electronic device determined by the first electronic device to have the ability to collaborate. Optionally, the first electronic device may determine that it is the specific electronic device based on at least one of the following information of the surrounding electronic device: device type, operating system version number, device communication interface or communication protocol.
[0030] Through this design, the first electronic device can publish its latest second capability status information.
[0031] In one possible design, the second capability status information is also used to indicate at least one of the following: a fourth capability that the first electronic device can provide, a seventh electronic device that uses the fourth capability in collaboration, a fifth capability that the eighth electronic device can provide, a ninth electronic device that uses the fifth capability in collaboration, the usage status of the fourth capability, the usage status of the fifth capability, the usage status of the target capability, or the working status of the first electronic device; wherein the eighth electronic device is an electronic device paired with the first electronic device.
[0032] Through this design, the first electronic device can notify other electronic devices of the capabilities it can provide, the capabilities that the perceived near-field electronic devices can provide, the usage of these capabilities, its own working status, etc., so that other electronic devices can make decisions.
[0033] In one possible design, the first electronic device may send the second capability status information in any of the following ways:
[0034] Method 1: The first electronic device periodically sends the second capability status information;
[0035] Method 2: The first electronic device sends the second capability status information when the content indicated by the second capability status information changes.
[0036] In one possible design, the first electronic device establishes a communication connection with the target electronic device, and sends the capability collaboration request to the target electronic device through the communication connection; wherein, the communication connection may be established before sending the capability collaboration request, or may be pre-established by the first electronic device before executing the capability collaboration method, and this application does not limit this. In this method, after the first electronic device receives the third capability status information from the tenth electronic device, or after the first electronic device receives the fourth capability status information from the target electronic device, the first electronic device may also disconnect the communication connection with the target electronic device; wherein, the third capability status information is used to indicate that the tenth electronic device collaboratively uses the target capability of the target electronic device; and the fourth capability status information is used to indicate that the tenth electronic device collaboratively uses the target capability of the target electronic device.
[0037] With this design, after the first electronic device receives the third capability status information or the fourth capability status information and determines that the target capability has been preempted by the tenth electronic device, the first electronic device can disconnect the communication connection with the target electronic device and no longer cooperate to use the target capability of the target electronic device.
[0038] In one possible design, after the first electronic device receives third capability status information from the tenth electronic device, or after the first electronic device receives fourth capability status information from the target electronic device, the first electronic device may also stop collaboratively using the target capability of the target electronic device; wherein the third capability status information is used to instruct the tenth electronic device to collaboratively use the target capability of the target electronic device; and the fourth capability status information is used to instruct the tenth electronic device to collaboratively use the target capability of the target electronic device.
[0039] With this design, after the first electronic device receives the third capability status information or the fourth capability status information and determines that the target capability has been preempted by the tenth electronic device, it no longer collaboratively uses the target capability of the target electronic device.
[0040] In a first possible design, after the first electronic device receives the third capability status information or the fourth capability status information, and determines that the target capability has been preempted by the tenth electronic device, the first electronic device displays a second prompt message in the user interface; wherein, the second prompt message is used to prompt that the target capability has been preempted.
[0041] In a second aspect, embodiments of the present application provide an electronic device comprising a unit for executing each step of the method provided in the first aspect. Optionally, the electronic device comprises a display screen, a communication unit, and a processing unit; wherein the display screen is configured to display a user interface; the communication unit is configured to receive and transmit data; and the processing unit is configured to execute the method provided in the first aspect.
[0042] In a third aspect, an embodiment of the present application provides an electronic device comprising a display screen, at least one processor, and a memory; the at least one processor is coupled to the memory, and the at least one processor is configured to read a computer program stored in the memory to execute the method provided in the first aspect. The computer program code comprises computer instructions.
[0043] In a fourth aspect, an embodiment of the present application provides a chip, which includes a processor and a memory, wherein the processor is coupled to the memory, and the processor is used to call a computer program stored in the memory during runtime to implement the method provided in the first aspect above.
[0044] In a fifth aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program. When the computer program runs on an electronic device, the computer executes the method provided in the first aspect above.
[0045] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program; when the computer program is run on a computer, the computer is caused to execute the method provided in the first aspect.
[0046] The technical effects that can be achieved in any of the second to sixth aspects mentioned above can refer to the description of the technical effects that can be achieved in any possible design in the first aspect mentioned above, and the repetitions will not be discussed. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0048] FIG2 is a structural diagram of an electronic device provided in an embodiment of the present application;
[0049] FIG3 is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application;
[0050] FIG4 is a flow chart of a capability collaboration method provided in an embodiment of the present application;
[0051] FIG5A is an example diagram of a user interface provided in an embodiment of the present application;
[0052] FIG5B is an example diagram of a user interface provided in an embodiment of the present application;
[0053] FIG5C is an example diagram of a user interface provided in an embodiment of the present application;
[0054] FIG5D is an example diagram of a user interface provided in an embodiment of the present application;
[0055] FIG6 is a flow chart of a capability collaboration embodiment provided in an embodiment of the present application;
[0056] FIG7 is a flowchart of another capability collaboration embodiment provided by an embodiment of the present application;
[0057] FIG8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0058] FIG9 is a schematic diagram of synchronization of capability status information between devices provided by an embodiment of the present application;
[0059] FIG10 is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] This application provides a capability collaboration method and electronic device for achieving capability collaboration between different electronic devices and improving the user experience. The method and the electronic device are based on the same technical concept. Since the method and the electronic device solve similar problems, the implementation of the electronic device and the method can refer to each other, and the repetitions will not be repeated.
[0061] Some of the terms used in this application are explained below to facilitate understanding by those skilled in the art.
[0062] 1) Electronic equipment is a device or apparatus that has data connectivity, data computing, and data processing capabilities. These capabilities are also known as electronic equipment capabilities.
[0063] For example, the electronic devices in this application may be personal computers (PCs), laptops, computers, netbooks, tablet computers, in-vehicle computers, smartphones, smart wearable devices (such as smart watches, smart bracelets, smart glasses, etc.), in-vehicle terminal devices, personal digital assistants (PDAs), smart home devices (such as smart TVs, etc.), VR devices, AR devices, HMDs, speakers, headphones, etc. This application does not limit the specific form of the electronic devices.
[0064] Optionally, some electronic devices can implement their functions through the operating system they carry and provide services to users. For example, the electronic device may be, but is not limited to, equipped with Or other operating systems.
[0065] Alternatively, some electronic devices with limited size and single performance (low requirements for software and hardware resources) may not be equipped with an operating system and only have simple data connectivity functions to implement their single business, such as headphones, mice, keyboards, etc.
[0066] Electronic devices equipped with an operating system or capable of complex data computing and processing are also called brain-powered devices. Examples of brain-powered devices include PCs, smartphones, car computers, smart wearable devices, and smart home appliances.
[0067] Electronic devices with limited functionality, no operating system, and only basic data connectivity are also called brainless devices. Examples of brainless devices include mice, keyboards, headphones, head-mounted displays (HMDs), some speakers, and some smart home devices.
[0068] Different types of electronic devices have different capabilities that can be used or provided.
[0069] Optionally, the capabilities used or provided by an electronic device may generally include input and output capabilities (input capabilities and output capabilities). For example, input and output capabilities may include, but are not limited to, keyboard and mouse capabilities (i.e., data input capabilities), audio input capabilities, audio output capabilities, display output capabilities, video / image input capabilities, video / image output capabilities, etc.
[0070] 2) Focus, i.e., the area in the user interface of the electronic device that the user needs to focus on or pay special attention to when the electronic device is being used or about to be used. In this application, focus can refer to whether the user is currently using or about to use the electronic device.
[0071] Based on the above definition of focus, this application can classify the working states of the electronic device into the following two states, and the electronic device can switch between the above two states:
[0072] (1) Focus state: the state in which the electronic device obtains focus.
[0073] For example, the electronic device can determine whether it has entered a focus state through input from a mouse, keyboard, touch screen, or biometric information sampling data collected by built-in sensors (including pulse, temperature, face recognition data, eye recognition data, etc.).
[0074] In addition, when the electronic device is in focus, the user can change the focus position by inputting on the mouse, keyboard or touch display screen.
[0075] (2) Non-focus state: The state in which the electronic device loses focus, also known as out-of-focus state.
[0076] Exemplarily, when the electronic device does not detect input from the mouse, keyboard, or touch screen within a set time period, or the built-in sensor does not collect the user's biometric information sampling data, it is determined that the electronic device has entered a non-focus state.
[0077] In the non-focus state, the electronic device may enter a power saving mode (eg, a dimmed screen or a black screen).
[0078] 3) Capability collaboration: One electronic device can leverage the capabilities of another electronic device to jointly implement a function. For example, a large-screen display device can leverage the audio output capabilities of a speaker while playing a video. Another example is a tablet computer that can leverage the keyboard and mouse capabilities of a nearby PC.
[0079] Based on the concept of capability collaboration, the capabilities involved in this application can be divided into two types:
[0080] The capabilities provided by electronic device a to other electronic devices: that is, the capabilities of electronic device a that can be used collaboratively by other electronic devices;
[0081] Ability of electronic devices to be used in collaboration: Ability possessed by other electronic devices.
[0082] In the scenario where electronic device a uses electronic device b in a collaborative manner, electronic device b can be called an external device (referred to as peripheral device), an external device, a peripheral device, etc. of electronic device a.
[0083] 4) Applications (APPs) are installed in electronic devices and can provide services to users after running. Applications can also be called application software or application programs.
[0084] The application may be developed by the manufacturer of the electronic device, or by the supplier of the operating system of the electronic device, or by a third-party application manufacturer, and this application does not limit this.
[0085] For example, applications may include: call applications, camera applications, text messaging applications, chat applications, video applications, music applications, electronic map applications, social applications, etc.
[0086] 5) Electronic device capability status information, indicating the capabilities that the electronic device itself can provide and the capabilities that the perceived near-field electronic devices can provide. Optionally, the capability status information may also indicate the usage of these capabilities (devices that collaboratively use the capabilities, the current usage status of these capabilities), and may also indicate the operating status of the electronic device.
[0087] Take electronic device a as an example. The capability status information of electronic device a may indicate at least one of the following:
[0088] Electronic device a can provide capability 1, electronic device b can be used in conjunction with capability 1, electronic device a can be used in conjunction with capability 2, electronic device c can provide capability 2, electronic device d paired with electronic device a can provide capability 3, electronic device e can be used in conjunction with capability 3.
[0089] Among the contents indicated by the capability status information of electronic device a, capability 3 that electronic device d can provide or information of electronic device e that can collaboratively use capability 3 can be determined by electronic device a in the following manner:
[0090] After electronic device d is paired with electronic device a, electronic device d notifies electronic device a; or electronic device d notifies electronic device a by publishing its own capability status information, which is not limited in this application.
[0091] In addition to the above, the capability status information of electronic device a may also indicate at least one of the following:
[0092] The usage status of capability 1, the usage status of capability 2, the usage status of capability 3, and the working status of electronic device a (ie, focus state or non-focus state).
[0093] The usage status of any capability includes "currently unused" and "currently in use." The "currently unused" status means that the capability provider is not currently processing the capability user's business data through the capability, or is not currently generating business data for the capability user through the capability; the "currently in use" status means that the capability provider is currently processing the capability user's business data through the capability, or is currently generating business data for the capability user through the capability.
[0094] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
[0095] In the embodiments of the present application, descriptions such as "when...", "in the case of...", "if" and "if" all mean that the electronic device will perform corresponding processing under certain objective circumstances. It does not limit the time, nor does it require the electronic device to perform judgment actions when implemented, nor does it mean that there are other limitations.
[0096] It should be noted that in this application, "used for indication" can include being used for direct indication and being used for indirect indication. When describing that a certain information is used to indicate A, it can include that the information directly indicates A or indirectly indicates A, but it does not mean that the information must carry A. Taking the first information used to indicate the first content as an example, the first information can include the first content, and can also include a part of the first content or an identifier or index of the first content, etc., and can also include an algorithm or calculation parameters for determining the first content. This application does not limit the method of "indication".
[0097] In this application, "including / comprising A" may be equivalent to "including / comprising A information". A information is used to indicate A.
[0098] In addition, it should be understood that, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0099] The solution provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0100] The capability collaboration solution provided in the embodiments of the present application can be applied to application scenarios involving multiple electronic devices. Among them, the capabilities that the above-mentioned multiple electronic devices can use or provide may vary. Taking Figure 1 as an example, the application scenario shown in Figure 1 can include at least two of the electronic devices such as PCs, smartphones, tablets, speakers, and headphones.
[0101] Among them, speakers and headphones can both provide audio output capabilities; PCs have keyboard and mouse capabilities; PCs, tablets and smartphones all have audio output capabilities, display output capabilities, etc.; headphones can also provide audio input capabilities.
[0102] In the application scenario shown in Figure 1, a wireless communication connection can be established between any two electronic devices. In one embodiment, a certain electronic device can act as a master device to actively initiate a connection establishment process through short-range wireless communication technology, thereby establishing a wireless communication connection with another electronic device, completing the transmission of relevant data or information in the capability collaboration method provided in the embodiment of the present application, and realizing the control and management of the other electronic device. Exemplarily, the connection establishment process may include: device search, pairing, connection establishment and other processes. In addition, the electronic device acting as the master device may also be responsible for providing a clock synchronization signal.
[0103] Optionally, short-range wireless communication technology may include, but is not limited to: radio frequency identification (RFID) technology, Bluetooth (BT) technology, Bluetooth low energy (BLE) technology, wireless-fidelity (WI-FI) technology, ZigBee technology, ultra-wideband (UWB) technology, near field communication (NFC) technology, as well as communication technologies evolved based on the above communication technologies, and communication technologies that have the same or similar functions as the above communication technologies and can replace each other.
[0104] For example, in the application scenario shown in FIG1 , a smartphone can establish a Bluetooth connection with a headset through Bluetooth technology, and implement control and management of the headset, as well as business communications, through the Bluetooth connection.
[0105] For another example, in the application scenario shown in Figure 1, the PC can establish a Bluetooth connection or a Wi-Fi connection with the speaker through Bluetooth technology or Wi-Fi technology; the PC can also establish a Bluetooth connection or a Wi-Fi connection with the smartphone through Bluetooth technology or Wi-FI technology.
[0106] In another embodiment, two electronic devices may be connected to the same wireless local area network (WLAN) via short-range wireless communication technology. Thus, the two electronic devices may establish a wireless communication connection via the WLAN and transmit relevant data or information when implementing the capability collaboration method provided in the embodiments of the present application.
[0107] For example, the application scenario shown in Figure 1 may also include a WI-FI access point. The smartphone and PC can first access the WI-FI access point using WI-FI technology, and then the WI-FI access point connects the two electronic devices to the wireless local area network.
[0108] For another example, two electronic devices can be connected to the same Bluetooth beacon via Bluetooth technology, so that the two can establish a wireless communication connection via Bluetooth technology.
[0109] In the current solution, in an application scenario involving multiple electronic devices (such as the application scenario shown in Figure 1), in order to achieve capability collaboration between electronic devices and improve the efficiency of capability utilization, it is generally necessary for the electronic device that provides the capability to maintain communication connections with multiple other electronic devices at the same time. When the electronic device that needs to use the capability changes, the user can control and manage it through the user interface of the decision center and switch the user of the capability. Among them, the decision center can be the provider of the capability, the user of the capability, or a specially set controller, etc., and this application does not limit this.
[0110] Take the headphones in Figure 1 as an example. The hardware of the headphones needs to support multiple connections. The headphones can maintain communication connections with the PC and smartphone at the same time. The PC can collaboratively use the audio output capabilities of the headphones in the focused state. When the PC switches from the focused state to the unfocused state, and the smartphone enters the focused state from the unfocused state, the user can switch the audio output capabilities of the headphones to the smartphone through the user interface of the decision center, and the smartphone continues to use the audio output capabilities of the headphones. In this case, the decision center is the electronic device to which the headphones are connected, such as a PC or smartphone.
[0111] Obviously, in the above method, when the capability usage needs change, the user needs to manually operate in a fixed decision center to switch capabilities. This method requires a lot of interaction between devices, which leads to low capability coordination efficiency and poor fluidity, ultimately resulting in a poor user experience.
[0112] In order to reduce the interaction between electronic devices during the capability collaboration process and improve the efficiency and fluency of capability collaboration, an embodiment of the present application provides a capability collaboration method and an electronic device. In this method, after entering the focus state, the first electronic device can use the capability status information of each electronic device collected before focusing to determine the capabilities and electronic devices that need to be collaborated, thereby achieving capability collaboration. Through this method, the first electronic device can quickly use the capability status information of each electronic device collected before focusing to perceive the capabilities provided by each electronic device around the first electronic device, thereby quickly achieving capability collaboration, reducing the number and delay of interactions with other electronic devices, improving the efficiency of capability collaboration, and ultimately improving the user experience.
[0113] In addition, since in this method, the first electronic device can independently decide the target capabilities and target electronic devices that need to be used collaboratively after acquiring focus, no additional decision center is required to execute the process, which improves the smoothness of the capability collaboration process and enhances the user experience.
[0114] The present invention provides an electronic device that can provide external capabilities or collaboratively utilize the capabilities of other electronic devices to implement the capability collaboration method provided by the present invention.
[0115] As shown in Figure 2, the electronic device 200 may include: a processor 210, an external memory interface 220, an internal memory 221, a USB interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a SIM card interface 295, etc.
[0116] It should be understood that the electronic device 200 shown in FIG2 is merely an example and does not limit the electronic device, and the electronic device may have more or fewer components than shown in FIG2, may combine two or more components, or may have a different component configuration. The various components shown in FIG2 may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.
[0117] The processor 210 may include one or more processing units, for example: the processor 210 may include a central processing unit (CPU), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. Among them, the controller can be the nerve center and command center of the electronic device 200. The controller can generate an operation control signal based on the instruction opcode and the timing signal to complete the control of instruction fetching and execution.
[0118] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or is reusing. If the processor 210 needs to use the instruction or data again, it can directly access it from the memory. By providing this memory, the number of times the processor 210 accesses data from the internal memory 221 can be reduced, reducing the processor 210's waiting time, thereby improving system efficiency.
[0119] The capability collaboration method provided in the embodiment of the present application can be controlled by the processor 210 or called by other components to complete, such as calling the software program of the embodiment of the present application stored in the internal memory 221 to control the wireless communication module 260 to communicate data with other electronic devices, and control the display screen to display the user interface. The processor 210 can include different devices. For example, when a CPU and a GPU are integrated, the CPU and the GPU can cooperate to execute the capability collaboration method provided in the embodiment of the present application. For example, part of the algorithm in the capability collaboration method is executed by the CPU, and another part of the algorithm for displaying the user interface is executed by the GPU to obtain faster processing efficiency.
[0120] Display screen 294 is used to display images, videos, etc. Display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode (AMOLED), flexible light-emitting diode (FLED), MiniLED, MicroLED, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, electronic device 200 may include one or N display screens 294, where N is a positive integer greater than 1. Display screen 294 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, display screen 294 can display windows, photos, videos, web pages, or files. Furthermore, it will be appreciated that in some embodiments, the status bar may also include a Bluetooth icon, a Wi-Fi icon, an external device icon, etc. In some embodiments, when the processor 210 detects a touch operation of a user's finger (or stylus, etc.) on an application icon, in response to the touch operation, the processor 210 opens a user interface corresponding to the application icon and displays the user interface on the display screen 294. In some embodiments, when the processor 210 detects a click operation of an external input device (such as a mouse, keyboard, etc.) of the electronic device 200 on an application icon, in response to the click operation, the processor 210 performs a corresponding control operation on the application.
[0121] In the embodiment of the present application, the display screen 294 can be an integrated flexible display screen, or a spliced display screen consisting of two rigid screens and a flexible screen located between the two rigid screens.
[0122] The camera 293 is used to capture still images or videos. Optionally, the electronic device 200 may include 1 to N cameras 293. For example, the camera 293 may include a front camera or a rear camera, or one camera 293 may serve as both a front camera and a rear camera. Typically, the camera 293 may include a photosensitive element such as a lens group and an image sensor. The lens group includes a plurality of lenses (convex lenses or concave lenses) for collecting light signals reflected by the object to be photographed and transmitting the collected light signals to the image sensor. The image sensor generates an original image of the object to be photographed based on the light signal.
[0123] The internal memory 221 can be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 221. The internal memory 221 may include a program storage area and a data storage area. The program storage area may store an operating system, program codes of at least one application, etc. The operating system may include, but is not limited to, The data storage area can store data created during the use of the electronic device 200 .
[0124] The internal memory 221 may also store one or more computer programs for executing the capability collaboration method provided in the embodiments of the present application. The one or more computer programs are stored in the internal memory 221 and configured to be executed by the one or more processors 210. The one or more computer programs include instructions, which can be used to execute the various steps in the following embodiments.
[0125] In addition, the internal memory 221 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0126] The sensor module 280 may include a fingerprint sensor, a touch sensor, a pressure sensor, a magnetic sensor, an ambient light sensor, an air pressure sensor, a bone conduction sensor, and the like.
[0127] A touch sensor, also known as a "touch panel," can be provided on the display screen 294. A touch sensor coupled to the display screen 294 is referred to as a touch display screen. The touch sensor is configured to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 294. In other embodiments, the touch sensor can also be provided on the surface of the electronic device 200, at a location different from that of the display screen 294.
[0128] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.
[0129] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0130] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the same device as at least some of the modules of the processor 210.
[0131] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 270A, the receiver 270B, etc.) or displays an image or video through the display screen 294. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 250 or other functional modules.
[0132] The wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), BeiDou navigation satellite system (BDS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc., which are applied to the electronic device 200. The wireless communication module 260 can be one or more devices that integrate at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In an embodiment of the present application, the electronic device 200 can establish a wireless communication connection with other electronic devices through the wireless communication module 260 to exchange data, or the electronic device 200 can access an access point through the wireless communication module 260, so that instructions and data can be sent to network devices or other electronic devices through the access point. For example, the electronic device 200 can send its own capability status information or receive capability status information from other electronic devices through the wireless communication module 260. The electronic device 200 can also establish a wireless communication connection with other electronic devices through the wireless communication module 260, so that capability collaboration requests and service data can be transmitted.
[0133] In addition, the electronic device 200 can implement audio functions through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone jack 270D, and the application processor. For example, music playback, recording, etc. The electronic device 200 can receive input from the key 290 and generate key signal input related to the user settings and function control of the electronic device 200. The electronic device 200 can use the motor 291 to generate a vibration prompt. The indicator 292 in the electronic device 200 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 295 in the electronic device 200 is used to connect the SIM card. The SIM card can be connected to and separated from the electronic device 200 by inserting it into the SIM card interface 295 or pulling it out from the SIM card interface 295.
[0134] It should also be noted that the structures of the various electronic devices involved in the capability collaboration method provided in the embodiments of this application can all refer to the electronic device 200 shown in Figure 2. It should be noted that the structures of different electronic devices may vary, and any electronic device involved in the method provided in this application may have more or fewer components than those shown in Figure 2, or have a different component configuration, which will not be described in detail in this application.
[0135] The software system of the electronic device 200 provided in the embodiment of the present application can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example, and exemplifies the software structure of the electronic device as shown in FIG3 .
[0136] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. As shown in Figure 3, this software architecture can be divided into four layers: the application layer, the application framework (FWK), the Android runtime and system libraries, and the kernel layer. Electronic devices may also include a hardware layer.
[0137] The application layer is the top layer of the operating system, including native applications of the operating system and third-party applications such as camera, gallery, calendar, Bluetooth, music, video, information, map, etc.
[0138] The application framework layer provides an application programming interface (API) and a programming framework for the applications of the application layer. The application framework layer may include some predefined functions. The application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. Optionally, in order to implement the capability collaboration method provided in the embodiment of the present application, the application framework layer may also include: a focus management module, a decision (HiDecision, DS) module, and a device profile (device profile, DP) module. In addition, in order to implement the functions of the electronic device, the application framework layer may also include a Bluetooth framework, an audio framework, and a distributed input framework.
[0139] A window manager provides window management services. It can obtain the display size, determine whether a status bar is present, lock the screen, and take screenshots. It also provides multiple management functions to control parameters such as the transparency, position, and size of windows or interfaces on the display.
[0140] Content providers are used to store and retrieve data and make it accessible to applications. The data may include files (such as documents, videos, images, audio), text, and other information.
[0141] The view system includes visual controls, such as those for displaying text, images, and documents. The view system can be used to build applications. The interface within a display window can be composed of one or more controls. For example, a display interface showing a file icon might include controls for displaying text and images.
[0142] The phone manager is used to provide communication functions for terminal devices. The notification manager enables applications to display notification information in the status bar, which can be used to convey informational messages and can disappear automatically after a short stay without user interaction.
[0143] The DP module is used to communicate with other electronic devices, publish the capability status information of the electronic device, and receive the capability status information of other electronic devices.
[0144] The focus management module determines the current operating state of the electronic device (focused or not) and updates the latest operating state of the electronic device to the DP module, which then synchronizes the capability status information to other surrounding electronic devices. The focus management module can also update the latest operating state to the DS module.
[0145] The DS module is used to make decisions based on the capability status information received from other electronic devices by the DP module after the electronic device is in the focus state, determine the capabilities and electronic devices to be coordinated, and based on the decision results, invoke the framework corresponding to the capability to achieve capability coordination. The DS module can also update the above decision results to the DP module, which generates and publishes the latest capability status information.
[0146] The audio framework is used to coordinate the audio input or output capabilities of electronic devices. For example, when the DS module decides to coordinate the use of the audio output capabilities of another electronic device, the audio framework can send audio service data to the other electronic device; when the DS module decides to coordinate the use of the audio input capabilities of another electronic device, the audio framework can also receive audio service data from the other electronic device.
[0147] The distributed input framework is used to enable the coordination of distributed data input capabilities (such as keyboard and mouse capabilities) of electronic devices. For example, when the DS module decides to use the keyboard and mouse capabilities of another electronic device, the distributed input framework can receive business data entered by the user through the other electronic device.
[0148] The Bluetooth framework is used to establish a communication connection with other electronic devices via Bluetooth technology and communicate with other electronic devices. For example, in scenarios where the audio framework, distributed input framework, or DP module supports Bluetooth technology, these modules can call the Bluetooth framework to transmit corresponding information.
[0149] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.
[0150] The Android system's core library consists of two parts: one containing the Java language's callable functions and the other the Android system's core library. The core library provides input / output services and kernel services for the Android system. The application layer and application framework layer run in a virtual machine. For example, the virtual machine executes Java files from the application and framework layers as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0151] The system library can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc. The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.
[0152] The kernel layer provides the operating system's core system services, such as security, memory management, process management, network protocol stacks, and driver models. These services are all implemented within the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and software stacks. This layer contains many drivers related to electronic devices, including the following: display drivers; keyboard drivers for input devices; input / output drivers; Flash drivers for memory-based devices; camera drivers; audio drivers; Bluetooth drivers; Wi-Fi drivers; and sensor drivers.
[0153] Input / output driver is used to obtain and report operation information of the interface or window displayed on the display screen from external input devices (such as mouse, keyboard, touch display, etc.), sensors (such as touch screen, touch sensor, etc.) or other electronic devices; it can also send the information to be output (prompt message, user interface, audio service data, video service data) to external output devices (such as headphones, speakers, display screen, other electronic devices with display screen).
[0154] The hardware layer can include various sensors, display screens, cameras, input devices such as keyboards and keyboards, Bluetooth communication modules, WI-FI communication modules, audio modules, etc.
[0155] In order to reduce the interaction between electronic devices during the capability collaboration process and improve the efficiency and fluency of capability collaboration, an embodiment of the present application provides a capability collaboration method. This method can be applied to an application scenario including multiple electronic devices, such as the application scenario shown in Figure 1.
[0156] It should be noted that in the embodiments of the present application, each electronic device can define the capabilities it can provide externally (i.e., the capabilities it provides to other electronic devices for collaborative use). For example, headphones can provide audio output capabilities, and headphones with a microphone can also provide audio input capabilities; a PC can provide its own keyboard and mouse capabilities; a smart TV can provide audio output capabilities and display output capabilities; a smart TV with a microphone and camera can also provide audio input capabilities and video input capabilities.
[0157] In addition, some electronic devices can also define their own collaborative capabilities. For example, smart TVs can collaborate with keyboard and mouse capabilities, audio output capabilities, etc.
[0158] In an embodiment of the present application, some electronic devices (e.g., brain-powered devices) can publish their own capability status information through their own communication capabilities. In one embodiment, the electronic device can periodically publish capability status information and can also publish the latest capability status information when the content indicated by the capability status information changes.
[0159] Optionally, the electronic device may send its own capability status information via broadcast or multicast, and may also use sidelink technology, device to device (D2D) technology, relay transmission technology, or short-range wireless communication technology to send its own capability status information to a specific electronic device.
[0160] Take the example of electronic device a sending capability status information to specific electronic device b. The specific electronic device b may be an electronic device that can be perceived by electronic device a, and may include but is not limited to: an electronic device paired with electronic device a, an electronic device with which electronic device a has established a communication connection, an electronic device with which electronic device a has established a bottom-level connection, or an electronic device that has been authenticated by electronic device a, etc. For another example, the specific electronic device b is an electronic device with collaborative capabilities around electronic device a (i.e., an electronic device that can collaboratively use capabilities (optionally, it may also include an electronic device that can provide capabilities)). Optionally, electronic device a can determine whether it is a specific electronic device b based on at least one of the following information of the surrounding electronic devices: device type, operating system version number, device communication interface or communication protocol.
[0161] The electronic device may use various communication methods or technologies to transmit the capability status information. For example, electronic device 1 may use Bluetooth technology to send its capability status information to electronic device 2, or may use SideLink technology to send its capability status information to electronic device 3.
[0162] The capability collaboration method provided in the embodiment of the present application will be described below with reference to the flowchart shown in FIG4 , taking the first electronic device as an example.
[0163] S401: A first electronic device receives first capability status information from a second electronic device.
[0164] Among them, the first capability status information can indicate the capabilities that the second electronic device can provide and the capabilities that the second electronic device perceives as provided by other electronic devices in the application scenario. That is, the first capability status information is used to indicate at least one of the following: the first capability that the second electronic device can provide, the second capability used in collaboration with the second electronic device, and the third electronic device that provides the second capability and the third capability that the fourth electronic device can provide. Among them, the fourth electronic device is an electronic device paired with the second electronic device. In this way, the first electronic device can determine (i.e., perceive) the capabilities that each electronic device in the current application scenario can provide, as well as the device identifications of these electronic devices based on the received first capability status information.
[0165] In some implementations, the first capability status information may further indicate electronic devices that collaboratively use the aforementioned capabilities, that is, a fifth electronic device that collaboratively uses the first capability, or a sixth electronic device that collaboratively uses the third capability.
[0166] In some embodiments, the first capability status information may further indicate the usage status of the aforementioned various capabilities, as well as information such as the operating status of the second electronic device. Specifically, the first capability status information may further indicate at least one of the following: the usage status of the first capability, the usage status of the second capability, the usage status of the third capability, and the operating status of the second electronic device (i.e., focus state or non-focus state).
[0167] It should be noted that the second electronic device is an electronic device (device with a brain) that can send capability status information in the application scenario where the first electronic device is located. The number of the second electronic device can be one or more, and this application does not limit this.
[0168] Optionally, any second electronic device can publish the first capability status information in the manner described above for publishing its own capability status information. The specific processes can be referenced with each other and will not be described in detail here. It should be noted that since the second electronic device can continuously send the latest capability status information, in the embodiment of the present application, the first electronic device can also continuously receive the capability status information of the second electronic device.
[0169] Through S401, the first electronic device can perceive the capabilities that can be provided by other electronic devices in the current application scenario, and can also perceive the usage status of these capabilities, so that it can subsequently decide on target capabilities that need to be used in collaboration.
[0170] S402: After the first electronic device enters the focus state, it determines the target capability and the target electronic device to be coordinated based on the first capability status information received in S401.
[0171] The target capability is any one of the first capability, the second capability, and the third capability, and the target electronic device is the electronic device that provides the target capability. When the target capability is the first capability, the target electronic device is the second electronic device; when the target capability is the second capability, the target electronic device is the third electronic device; and when the target capability is the third capability, the target electronic device is the fourth electronic device.
[0172] In an embodiment of the present application, the first electronic device may define its own capability to support collaborative use (hereinafter referred to as the first defined collaborative capability). Therefore, in S402, the first electronic device may determine the target capability and the target electronic device based on the first defined collaborative capability and the first capability status information. The target capability is included in the first defined collaborative capability. The first defined collaborative capability includes at least one capability.
[0173] In one embodiment, during S402, the first electronic device may ultimately determine the target capability and the target electronic device through a user selection operation. The specific process is as follows:
[0174] A1: The first electronic device determines at least one collaborative candidate capability and at least one collaborative candidate electronic device based on the first capability status information, wherein the at least one collaborative candidate capability includes the target capability and the at least one collaborative candidate electronic device includes the target electronic device.
[0175] It should be noted that, when the first electronic device predefines a first defined cooperation capability, the at least one cooperation candidate capability is included in the first defined cooperation capability.
[0176] A2: The first electronic device displays at least one cooperation candidate capability and at least one cooperation candidate electronic device in a user interface.
[0177] A3: In response to the user's selection operation, a target capability and a target electronic device are determined.
[0178] For example, after the smartphone determines at least one candidate collaborative capability (audio input capability and display output capability) and at least one candidate collaborative electronic device (headphones 1, headphones 2, speaker 1, smart screen 1, PC 1) through step A1, it can display a "Select Collaborative Capability" user interface. For example, the user interface is shown in Figure 5A. The user can select the target capability and target electronic device in this user interface.
[0179] S403: The first electronic device sends a capability collaboration request to the target electronic device, wherein the capability collaboration request includes indication information of the target capability, and the capability collaboration request is used to request collaborative use of the target capability.
[0180] In a first implementation manner, after determining the target capability and the target electronic device in S402, the first electronic device may directly send a capability cooperation request to the target electronic device.
[0181] In a second embodiment, when the first capability status information can also indicate the usage of the aforementioned various capabilities, as well as information such as the working status of the second electronic device, the first electronic device can also determine the timing of sending the capability collaboration request based on the usage status of the target capability or the working status of the electronic device currently using the target capability. Therefore, in this embodiment, the execution process of S403 includes the following two implementation methods:
[0182] Implementation method B1: When the first capability status information indicates that the target capability is not currently in use, or when the target capability is the second capability and the second electronic device is in a non-focus state, the first electronic device sends a capability collaboration request to the target electronic device.
[0183] Optionally, when the first electronic device determines that the target capability is not in use, or the target capability is the second capability and the second electronic device is in a non-focus state, it can immediately send a capability collaboration request to the target electronic device so that the target capability can be collaboratively used as soon as possible. Of course, the first electronic device can also send a capability collaboration request to the target electronic device at any subsequent time. For example, the first electronic device can send a capability collaboration request to the target electronic device after starting the target application. Among them, the business data of the target application needs to be processed or generated by the target capability.
[0184] Implementation B2: When the first capability status information indicates that the target capability is currently in use, or when the target capability is the second capability and the second electronic device is in a focused state, the first electronic device may send a capability collaboration request to the target electronic device after launching the target application. The target application's service data needs to be processed or generated using the target capability.
[0185] Through the method of requesting collaboration by the first electronic device provided in this embodiment, the first electronic device can directly initiate a capability collaboration request to the target electronic device when the target capability is not currently in use (when no capability usage conflict occurs); and when the target capability is currently in use or about to be used (when a capability usage conflict occurs), the first electronic device can temporarily postpone initiating a capability collaboration request to the target electronic device until the target application is started and the target capability is needed, and then initiate a capability collaboration request to the target electronic device. This method can reduce the occurrence of preemption of the target capability and improve the user experience.
[0186] Optionally, in implementation B2, when the first capability status information indicates that the target capability is currently in use, or when the target capability is the second capability and the second electronic device is in a focused state, the first electronic device may further display a first prompt message in the user interface. The first prompt message is used to prompt a conflict in the use of the target capability. Exemplarily, at this time, the user interface of the first electronic device (assuming a smartphone) displaying the first prompt message is shown in Figure 5B.
[0187] It should also be noted that in implementation method B2, when the first electronic device determines that there is a conflict in the use of the target capability, the first electronic device may suspend initiating a capability coordination request to the target electronic device, or the first electronic device may determine a new target electronic device (for example, when multiple electronic devices can provide the target capability). In the process after the first electronic device suspends initiating a capability coordination request to the target electronic device, the first electronic device will continue to receive capability status information of the second electronic device. If the capability status information subsequently received indicates that the target capability is no longer in use (meeting the conditions of implementation method B1), then the first electronic device may initiate a capability coordination request to the target electronic device. The specific process can refer to implementation method B1 and will not be repeated here. If the capability status information subsequently received continues to indicate that the target capability is in use, then the first electronic device continues to back off until the target application is started and then decides whether to initiate a capability coordination request to the target electronic device.
[0188] Optionally, during implementation B2, after launching the target application, the first electronic device may send the capability collaboration request to the target electronic device according to a capability conflict rule, wherein the capability conflict rule includes any of the following: forcibly preempting the target capability; or preempting the target capability according to device priority.
[0189] In the case where the capability conflict rule includes preempting the target capability based on device priority, the priority of the first electronic device is higher than the priority of the conflicting electronic device. The conflicting electronic device is an electronic device that collaboratively uses the target capability; when the target capability is the first capability, the conflicting electronic device is the fifth electronic device; when the target capability is the second capability, the conflicting electronic device is the second electronic device; and when the target capability is the third capability, the conflicting electronic device is the sixth electronic device.
[0190] It should also be noted that if the priority of the first electronic device is lower than or equal to the priority of the conflicting electronic device, the first electronic device may continue to postpone initiating a capability coordination request to the target electronic device until the conflicting electronic device does not use the target capability and then initiates the capability coordination request, thereby avoiding affecting the business implementation of the conflicting electronic device due to preempting the target capability.
[0191] In an embodiment of the present application, the first electronic device may store the priority of each electronic device in the current application scenario. The priority of each electronic device may be set by the user, or determined based on the frequency of use of the target capability, or other electronic devices in the application scenario may publish information indicating their own priority when collaboratively using the target capability.
[0192] Optionally, the capability conflict rule may also include priorities of various electronic devices when various electronic devices collaboratively use the target capability. The first electronic device may determine the priority of the conflicting electronic device based on its type, and determine its own priority based on its own type.
[0193] It can be seen from the above description that the first electronic device can make a conflict decision when a capability usage conflict occurs, and achieve capability coordination according to the set capability conflict rules while minimizing the impact on the user's usage experience.
[0194] In the embodiment of the present application, the capability conflict rule can be set for the target application or target capability of the first electronic device. Through this design, the first electronic device or application and other products can define and design capability conflict rules for specific capabilities, thereby achieving customized product design in the case of capability usage conflicts.
[0195] Optionally, the capability collaboration request may further include the device identification of the first electronic device and the device identification of the target electronic device.
[0196] In some implementations, after receiving the capability collaboration request, the target electronic device reserves the software and hardware resources required to use the target capability in preparation for the first electronic device to collaboratively use the target capability. In other implementations, after receiving the capability collaboration request, the target electronic device may display a prompt message in the user interface; if it is detected that the user chooses to agree to the operation of the first electronic device to collaboratively use the target capability, the software and hardware resources required to use the target capability will be reserved. For example, the user interface of the target electronic device (assuming it is a smart phone) displaying the prompt message is shown in Figure 5C.
[0197] Optionally, before step S404 , the target electronic device may also feed back a capability collaboration response to the first electronic device. The capability collaboration response is used to notify the first electronic device that the target electronic device agrees to collaborate with the first electronic device to use the target capability.
[0198] In one embodiment, during step S403, the first electronic device may first establish a communication connection with the target electronic device, and then send the capability collaboration request to the target electronic device via the communication connection. If the first electronic device has already established a communication connection with the target electronic device before executing S403, the first electronic device may directly send the capability collaboration request to the target electronic device via the communication connection.
[0199] S404: The first electronic device collaboratively uses the target capability of the target electronic device.
[0200] In one embodiment, the first electronic device may send service data to the target electronic device, and the target electronic device processes the received service data using the target capability. This embodiment may be applicable when the target capability is an output capability. For example, in a scenario where the first electronic device cooperates with the audio output capability of a headset, the first electronic device may send the audio data to be played to the headset, and the headset processes the audio data into an audio signal and then plays the audio signal.
[0201] In another embodiment, the target electronic device can process or generate business data using the target capability and then send the business data to the first electronic device. The first electronic device can monitor and receive business data from the target electronic device. For example, in a scenario where the first electronic device uses the keyboard and mouse capabilities of a PC in conjunction with the target electronic device, the PC can generate keyboard and mouse data based on the user's input operations and send the keyboard and mouse data to the first electronic device.
[0202] Through the above steps S401 to S404, after entering the focus state, the first electronic device can use the capability status information of each electronic device collected before focusing to determine the capabilities and electronic devices that need to be coordinated, thereby achieving capability coordination. Through this method, the first electronic device can quickly use the capability status information of each electronic device collected before focusing to perceive the capabilities of each electronic device around the first electronic device, thereby quickly achieving capability coordination, reducing the number and delay of interactions with other electronic devices, improving the efficiency of capability coordination, and ultimately improving the user experience.
[0203] In the embodiment of the present application, similar to the second electronic device, the first electronic device can also continuously publish its own capability status information. The specific process can refer to the description of the electronic device publishing its own capability status information recorded above, which will not be repeated here.
[0204] Because the first electronic device needs to publish its latest capability status information, after S403, the first electronic device sends second capability status information. The second capability status information is used to indicate the target capability of the target electronic device that the first electronic device uses in collaboration. In other words, the second capability status information can at least indicate that the first electronic device uses the target capability in collaboration with the target electronic device that provides the target capability.
[0205] Optionally, similar to the first capability status information, the second capability status information may further indicate at least one of the following:
[0206] The fourth capability provided by the first electronic device, the seventh electronic device that uses the fourth capability in conjunction with the seventh electronic device, the fifth capability provided by the eighth electronic device, the ninth electronic device that uses the fifth capability in conjunction with the ninth electronic device, the usage status of the fourth capability, the usage status of the fifth capability, the usage status of the target capability, or the operating status of the first electronic device, where the eighth electronic device is paired with the first electronic device.
[0207] Optionally, the first electronic device may send the second capability status information in the following manner:
[0208] Method 1: The first electronic device periodically sends the second capability status information;
[0209] Method 2: The first electronic device sends the second capability status information when the content indicated by the second capability status information changes. In this way, when the capability related to the first electronic device is released or used collaboratively, other electronic devices can promptly perceive the above content to facilitate subsequent decision-making on capability collaboration.
[0210] In this embodiment, since there are multiple electronic devices in the application scenario, the target capability of the first electronic device for collaborative use may also be occupied by other electronic devices. Therefore, this method may further include the following steps:
[0211] C1: The first electronic device receives third capability status information from a tenth electronic device. The third capability status information is used to instruct the tenth electronic device to collaboratively utilize the target capability of the target electronic device. Alternatively, the first electronic device receives fourth capability status information from a target electronic device. The fourth capability status information is used to instruct the tenth electronic device to collaboratively utilize the target capability of the target electronic device.
[0212] C2: In one embodiment, the first electronic device disconnects the communication connection with the target electronic device. In another embodiment, the first electronic device stops collaboratively using the target capability of the target electronic device.
[0213] Optionally, in step C2, the first electronic device no longer transmits service data to the target electronic device. For example, the first electronic device no longer sends service data to the target electronic device, or no longer monitors or receives service data from the target electronic device. Furthermore, the first electronic device may exit the target application or pause the audio or video being played by the target application.
[0214] Optionally, after the first electronic device receives the third capability status information or the fourth capability status information and determines that the target capability has been preempted by the tenth electronic device, the first electronic device may further display a second prompt message in the user interface. The second prompt message is used to indicate that the target capability has been preempted. For example, the user interface of the first electronic device (assuming a smartphone) displaying the second prompt message is shown in FIG5D .
[0215] Based on the method provided by the embodiment shown in Figure 4, this application also provides some capability collaboration embodiments. The process of each embodiment is described below in conjunction with the accompanying drawings.
[0216] Example 1: Assuming that the current application scenario includes a tablet computer and a PC, the following example illustrates the use of a tablet computer in conjunction with the keyboard and mouse capabilities of a PC, as shown in FIG6 .
[0217] S601: Synchronizing capability status information between electronic devices in a current application scenario, specifically including S601a and S601b, wherein the current application scenario includes a tablet computer and a PC.
[0218] S601a: The tablet computer publishes capability status information 1. The capability status information 1 may indicate that the tablet computer can provide display output capability and audio output capability, and is in an unfocused state.
[0219] S601b: The PC publishes capability status information 2. The capability status information 2 may indicate that the PC can provide keyboard and mouse capabilities, the keyboard and mouse capabilities are not currently in use, and the PC is in a focus state.
[0220] The process and manner in which the tablet computer or PC publishes its respective capability status information may be referred to the description of the embodiment shown in Figure 4. For example, the tablet computer or PC may periodically publish capability status information, or trigger the publication of the latest capability status information when the content indicated by the capability status information changes.
[0221] During S601 , the PC may receive capability status information 1 from the tablet computer, and the tablet computer may also receive capability status information 2 from the PC.
[0222] S602: After the tablet computer enters the focus state, it can perceive the near-field collaborative capabilities (i.e., the keyboard and mouse capabilities and display output capabilities of the PC) and the usage status of the capabilities based on the received capability status information 2. In this embodiment of the present application, the tablet computer pre-defines its own capabilities that support collaborative use (i.e., defined collaborative capabilities) as keyboard and mouse capabilities. Therefore, the tablet computer can determine the keyboard and mouse capabilities that need to be used collaboratively based on its own defined collaborative capabilities and capability status information 2.
[0223] S603: The tablet computer sends a capability cooperation request to the PC according to the decision result of S602. The capability cooperation request includes indication information of the keyboard and mouse capabilities, and is used to request the collaborative use of the keyboard and mouse capabilities of the PC.
[0224] S604: The PC receives a request for collaborative capabilities from the tablet and initiates the collaborative keyboard and mouse capabilities function. Optionally, the PC may display a prompt message in the user interface to inform the PC user that the tablet is requesting collaborative use of the PC's keyboard and mouse capabilities. The PC may initiate the collaborative keyboard and mouse capabilities function after detecting that the user has consented to the tablet's collaborative use of the PC's keyboard and mouse capabilities.
[0225] S605: Optionally, the PC may also send back a capability collaboration response to the tablet computer. The capability collaboration response is used to notify the tablet computer that the PC agrees to the tablet computer's collaborative use of the keyboard and mouse capability.
[0226] S606: The tablet computer cooperates with the keyboard and mouse capabilities of the PC. For example, after the PC detects the keyboard and mouse data input by the user through the keyboard or mouse, the PC transmits the keyboard and mouse data to the tablet computer so that the tablet computer performs subsequent processing based on the keyboard and mouse data.
[0227] S607: After S603 or S604, the electronic devices in the current application scenario continue to synchronize the capability status information, which specifically includes S607a and S607b.
[0228] S607a: The tablet computer publishes the latest capability status information 1.
[0229] Among them, the latest capability status information 1 can indicate the following: the tablet computer can provide output capability and audio output capability, the tablet computer can use the keyboard and mouse capability in conjunction, the electronic device that provides the keyboard and mouse capability is a PC, the usage status of the keyboard and mouse capability is currently in use, and the tablet computer is in focus.
[0230] S607b: The PC publishes the latest capability status information 2.
[0231] The latest capability status information 2 may indicate the following: the PC can provide keyboard and mouse capabilities, and the tablet computer collaboratively uses the keyboard and mouse capabilities, the usage status of the keyboard and mouse capabilities is in use, and the PC is in a focus state.
[0232] Example 2: Assume that the current application scenario includes a headset, mobile phone A, and mobile phone B. Take mobile phone A and mobile phone B as an example to collaboratively use the audio output capability of the headset, as shown in FIG7 .
[0233] Assume that both mobile phone A and mobile phone B have been paired with the headset.
[0234] S701: After mobile phone A and mobile phone B go online, they can synchronize their capability status information. In this process, both mobile phone A and mobile phone B can publish their respective capability status information. The specific process can be referred to the description of the embodiment shown in Figure 4 or Figure 6, and will not be described here.
[0235] S702: After mobile phone A enters the focus state, it can use the audio output capability of the headset to play audio through user operation and settings.
[0236] S703: Mobile phone A and mobile phone B continue to synchronize their inter-device capability status information.
[0237] The capability status information published by mobile phone A indicates that mobile phone A has the capability to collaboratively use the audio output of the headset.
[0238] S704: After mobile phone B enters the focus state, it can sense the near-field audio output capability of the headset based on the capability status information of mobile phone A received in S703. Therefore, mobile phone B can determine the audio output capability of the headset that needs to be used in conjunction based on its own defined coordination capability (audio output capability) and the capability status information of mobile phone A.
[0239] S705: Mobile phone B determines, based on the capability status information of mobile phone A, that the audio output capability of the headset is being used by mobile phone A or that mobile phone A is in a focus state. At this time, mobile phone B does not send a capability coordination request to the headset.
[0240] After S705 and before mobile phone B plays audio, mobile phone B can continue to synchronize the capability status information between devices with mobile phone A. If it is determined based on the capability status information of mobile phone A that the audio output capability of the headset is not in use, or when mobile phone A is in a non-focus state, mobile phone B can directly send a capability coordination request to the headset; otherwise, mobile phone B continues to wait.
[0241] S706: Mobile phone B determines, based on the latest capability status information received from mobile phone A, that the audio output capability of the headset is being used by mobile phone A or that mobile phone A is in focus, but mobile phone B starts playing audio. Mobile phone B can send a capability collaboration request to the headset according to the capability conflict rule (mobile phone B currently meets the conditions for preempting the audio output capability of the headset).
[0242] For a description of the capability conflict rule, please refer to the description of embodiment S403 shown in FIG4 above, which will not be repeated here. It should be noted that if, according to the setting of the capability conflict rule, mobile phone B determines that it does not currently meet the requirements for preempting the audio output capability of the headset, mobile phone B needs to continue waiting until mobile phone A no longer uses the audio output capability of the headset, or mobile phone A stops cooperating with the audio output capability of the headset, or mobile phone A enters a non-focus state.
[0243] S707: Mobile phone B cooperates with the headset to play audio using its audio output capability.
[0244] S708: Mobile phone A and mobile phone B continue to synchronize the inter-device capability status information.
[0245] The capability status information published by mobile phone B indicates that mobile phone B has the capability to collaboratively use the audio output of the headset.
[0246] S709: Mobile phone A determines that the headset's audio output capability has been preempted based on the capability status information of mobile phone B received in S708. Mobile phone A can prompt the user by displaying a prompt message and stop playing audio. Optionally, mobile phone A can also disconnect the communication connection with the headset.
[0247] Based on the method provided in the above embodiment, the present application also provides a structure of an electronic device. In the present application, the functions of the electronic device are logically divided at the framework layer, and the electronic device is divided into a focus management module, a DP module, and a DS module, as shown in FIG8 .
[0248] The DP module is used to establish a connection with other electronic devices in the near field, publish the capability status information of the electronic device, and receive and save the capability status information of other electronic devices to achieve capability status information synchronization between devices.
[0249] The focus management module determines the current operating state of the electronic device (focused or not) and updates the latest operating state to the DP module, which then synchronizes the capability status information with other surrounding electronic devices. The focus management module can also update the latest operating state to the DS module to trigger the DS module to make capability coordination decisions.
[0250] The DS module is used to make decisions based on the capability status information received from other electronic devices by the DP module after the electronic device is in the focus state, determine the capabilities and electronic devices to be coordinated, and based on the decision results, invoke the framework corresponding to the capability to achieve capability coordination. The DS module can also update the above decision results to the DP module, which generates and publishes the latest capability status information.
[0251] Continuing with the embodiment shown in FIG7 as an example, during the process of synchronizing capability status information between devices, the DP module of mobile phone A and the DP module of mobile phone B can interact, as shown in FIG9. In this way, the DP module of mobile phone A can publish the capability status information of mobile phone A and receive the capability status information from mobile phone B; the DP module of mobile phone B can also publish the capability status information of mobile phone B and receive the capability status information from mobile phone A.
[0252] After mobile phone B enters the focus state, if the DS module of mobile phone B determines that there is a conflict in the use of the audio output capability of the headset, it can temporarily suspend initiating a capability coordination request to the headset. When mobile phone B is not playing audio, if the DS module of mobile phone B determines that mobile phone A stops coordinating the use of the audio output capability of the headset based on the latest capability status information of mobile phone A received by the DP module of mobile phone B, the DS module of mobile phone B can initiate a capability coordination request to the headset, so that when mobile phone B plays audio, it can coordinate the use of the audio output capability of the headset. If the DS module of mobile phone B determines that there is a conflict in the continued use of the audio output capability of the headset based on the latest capability status information of mobile phone A, then the DS of mobile phone B will continue to suspend initiating a capability coordination request to the headset.
[0253] If mobile phone B starts playing audio, the DS module of mobile phone B can decide whether mobile phone B should seize the audio output capability of the headset or maintain the status quo of mobile phone A cooperating with the audio output capability of the headset based on the capability conflict rules. If the DS module of mobile phone B decides to initiate the seizure of the audio output capability of the headset, the DS module of mobile phone B can send a capability collaboration request to the headset through the DP module and publish the latest capability status information through the DP module. After receiving the latest capability status information, the DP module of mobile phone A notifies the DS module of mobile phone A. After the DS module of mobile phone A determines that mobile phone B has seized the audio output capability of the headset based on the latest capability status information of mobile phone B, it stops cooperating with the audio output capability of the headset and may also stop playing audio.
[0254] The above embodiments may be used in combination with each other or may be used alone, and there is no limitation on this.
[0255] It should also be noted that each step involved in the above embodiments can be performed by a corresponding device, or by a component such as a chip, processor, or chip system within the device, and the embodiments of the present application do not limit this. The above embodiments are only described as being performed by a corresponding device. In addition, the specific implementation methods or examples in the above embodiments do not limit the solutions provided in the embodiments of the present application.
[0256] It should be noted that in each of the above embodiments, some steps may be selected for implementation, and the order of the steps in the diagrams may be adjusted for implementation, and this application does not limit this. It should be understood that executing some of the steps in the diagrams, adjusting the order of the steps, or combining them for specific implementation all fall within the scope of protection of this application.
[0257] It is understandable that in order to implement the functions in the above embodiments, the various devices involved in the above embodiments include hardware structures and / or software modules corresponding to the execution of each function. It should be readily apparent to those skilled in the art that, in combination with the units and method steps of the various examples described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.
[0258] It can be understood that the above-mentioned network architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new services, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.
[0259] It should be noted that the "steps" in the embodiments of this application are merely illustrative and serve as a method of expression for a better understanding of the embodiments. They do not constitute a substantial limitation on the execution of the solutions of this application. For example, the "steps" can also be understood as "features." Furthermore, the steps do not constitute any limitation on the execution order of the solutions of this application. Any changes to the order of steps, or any operations such as step merging or splitting that do not affect the implementation of the overall solution, resulting in new technical solutions, are also within the scope of this application.
[0260] Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in FIG10 , comprising one or more processors 1001, a memory 1002, a transceiver 1003, and a display screen 1004. For example, the above-mentioned components may be connected via one or more communication buses. The one or more computer programs are stored in the above-mentioned memory 1002 and configured to be executed by the processor 1001. The one or more computer programs include instructions, which can be used to cause the electronic device to perform the various steps of the methods in the above-mentioned embodiments.
[0261] For example, the processor 1001 may be the processor 210 shown in FIG2 . The memory 1002 may be the internal memory 221 shown in FIG2 and / or an external memory connected to the electronic device. The transceiver 1003 may be the mobile communication module 250 and / or the wireless communication module 260 shown in FIG2 . The display screen 1004 may be the display screen 294 shown in FIG2 , which is not limited in this embodiment of the present application.
[0262] In addition, an embodiment of the present application further provides a graphical user interface (GUI) on an electronic device, which specifically includes a graphical user interface displayed by the electronic device when executing the above-mentioned method embodiments.
[0263] Based on the same concept, an embodiment of the present application further provides an electronic device, which includes a unit for executing each step of the method provided in the above embodiment. Optionally, the electronic device may include a display screen, a communication unit, and a processing unit; wherein the display screen is used to display an interface; the communication unit is used to receive and send data; and the processing unit is used to execute the method provided in the above embodiment.
[0264] Based on the above embodiments, the embodiments of the present application further provide a computer program product, which includes a computer program; when the computer program runs on a computer, the computer executes the method provided in the above embodiments.
[0265] Based on the above embodiments, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method provided in the above embodiments.
[0266] Optionally, the above-mentioned computer may include, but is not limited to, electronic devices.
[0267] The storage medium may be any available medium that can be accessed by a computer. By way of example and not limitation, computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer.
[0268] Based on the above embodiments, embodiments of the present application further provide a chip configured to read a computer program stored in a memory to implement the methods provided in the above embodiments. Optionally, the chip may include a processor and a memory, wherein the processor is coupled to the memory to read the computer program stored in the memory to implement the methods provided in the above embodiments.
[0269] Based on the above embodiments, embodiments of the present application provide a chip system, which includes a processor for supporting a computer device to implement the functions involved in the electronic device in the above embodiments. In one possible design, the chip system also includes a memory for storing the necessary programs and data for the computer device. The chip system can be composed of a chip or can include a chip and other discrete devices.
[0270] In summary, the embodiments of the present application provide a capability collaboration method and electronic device. In this method, after entering the focus state, the first electronic device can use the capability status information of each electronic device collected before focusing to determine the capabilities and electronic devices that need to be coordinated, thereby achieving capability collaboration. Through this method, the first electronic device can quickly use the capability status information of each electronic device collected before focusing to perceive the capabilities provided by each electronic device around the first electronic device, thereby quickly achieving capability collaboration, reducing the number and delay of interactions with other electronic devices, improving the efficiency of capability collaboration, and ultimately improving the user experience.
[0271] As used in the above embodiments, the terms “when…” or “after…” may be interpreted to mean “if…” or “after…” or “in response to determining…” or “in response to detecting…”, depending on the context. Similarly, the phrases “upon determining…” or “if (stated condition or event) is detected” may be interpreted to mean “if determining…” or “in response to determining…” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.
[0272] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)). In the absence of conflict, the solutions of the above embodiments can be used in combination.
[0273] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0274] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more flow charts and / or one or more boxes in the block diagram.
[0275] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0276] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0277] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A capability collaboration method, characterized in that: include: The first electronic device receives first capability status information from the second electronic device; wherein the first capability status information is used to indicate at least one of the following: a first capability that the second electronic device can provide, a second capability that the second electronic device can use in collaboration, and a third electronic device that provides the second capability and a third capability that a fourth electronic device can provide; the fourth electronic device is an electronic device paired with the second electronic device; After the first electronic device enters the focus state, determining a target capability to be coordinated and a target electronic device to be coordinated according to the first capability state information; wherein the target capability is any one of the first capability, the second capability and the third capability, and the target electronic device is an electronic device that provides the target capability; The first electronic device sends a capability collaboration request to the target electronic device; wherein the capability collaboration request includes indication information of the target capability, and the capability collaboration request is used to request collaborative use of the target capability; The first electronic device cooperatively uses the target capability of the target electronic device.
2. The method according to claim 1, characterized in that The step of determining the target capability to be coordinated and the target electronic device to be coordinated according to the first capability status information includes: The first electronic device determines at least one collaborative candidate capability and at least one collaborative candidate electronic device according to the first capability status information; wherein the at least one collaborative candidate capability includes the target capability, and the at least one collaborative candidate electronic device includes the target electronic device; The first electronic device displays the at least one collaborative candidate capability and the at least one collaborative candidate electronic device in a user interface; In response to a user's selection operation, the target capability and the target electronic device are determined.
3. The method according to claim 1 or 2, characterized in that The first capability status information is further used to indicate at least one of the following: a usage status of the first capability, a usage status of the second capability, a usage status of the third capability, and a working status of the second electronic device; The first electronic device sending a capability cooperation request to the target electronic device includes: When the first capability status information indicates that the target capability is not currently in use, or when the target capability is the second capability and the second electronic device is in a non-focus state, the first electronic device sends the capability collaboration request to the target electronic device.
4. The method according to claim 1 or 2, characterized in that: The first capability status information is further used to indicate at least one of the following: a usage status of the first capability, a usage status of the second capability, a usage status of the third capability, and a working status of the second electronic device; The first electronic device sending a capability cooperation request to the target electronic device includes: When the first capability status information indicates that the target capability is currently in use, or when the target capability is the second capability and the second electronic device is in a focus state, the first electronic device sends the capability collaboration request to the target electronic device after starting the target application; wherein the business data of the target application needs to be processed or generated through the target capability.
5. The method according to claim 4, characterized in that The method further comprises: When the first capability status information indicates that the target capability is currently in use, or when the target capability is the second capability and the second electronic device is in a focus state, the first electronic device displays a first prompt message in the user interface; wherein the first prompt message is used to prompt a usage conflict of the target capability.
6. The method according to claim 4 or 5, characterized in that The first capability status information is further used to indicate a fifth electronic device that collaboratively uses the first capability, or a sixth electronic device that collaboratively uses the third capability; The first electronic device sends the capability cooperation request to the target electronic device after starting the target application, including: After starting the target application, the first electronic device sends the capability coordination request to the target electronic device according to a capability conflict rule; the capability conflict rule includes any one of the following: Forcefully seize the target capability; or seize the target capability according to device priority; Wherein, in the case where the capability conflict rule includes preempting the target capability according to device priority, the priority of the first electronic device is higher than the priority of the conflicting electronic device; The conflicting electronic device is an electronic device that uses the target capability in collaboration; when the target capability is the first capability, The conflicting electronic device is the fifth electronic device; when the target capability is the second capability, the conflicting electronic device is the second electronic device; when the target capability is the third capability, the conflicting electronic device is the sixth electronic device.
7. The method according to claim 6, characterized in that The capability conflict rule is set for the target application or the target capability of the first electronic device.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: The first electronic device sends second capability status information; wherein the second capability status information is used to indicate that the first electronic device collaboratively uses the target capability of the target electronic device.
9. The method according to claim 8, characterized in that The second capability status information is further used to indicate at least one of the following: a fourth capability that can be provided by the first electronic device, a seventh electronic device that uses the fourth capability in coordination, a fifth capability that can be provided by the eighth electronic device, a ninth electronic device that uses the fifth capability in coordination, a usage status of the fourth capability, a usage status of the fifth capability, a usage status of the target capability, or a working status of the first electronic device; The eighth electronic device is an electronic device paired with the first electronic device.
10. The method according to claim 8 or 9, characterized in that The first electronic device sending second capability status information includes: The first electronic device periodically sends the second capability status information; or The first electronic device sends the second capability status information when the content indicated by the second capability status information changes.
11. The method according to any one of claims 1 to 10, characterized in that: The first electronic device sending a capability cooperation request to the target electronic device includes: The first electronic device establishes a communication connection with the target electronic device, and sends the capability coordination request to the target electronic device through the communication connection; The method further comprises: The first electronic device receives third capability status information from a tenth electronic device; wherein the third capability status information is used to indicate that the tenth electronic device collaboratively uses the target capability of the target electronic device; or The first electronic device receives fourth capability status information from the target electronic device; wherein the fourth capability status information is used to instruct the tenth electronic device to collaboratively use the target capability of the target electronic device; The first electronic device disconnects the communication connection with the target electronic device.
12. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: The first electronic device receives third capability status information from a tenth electronic device; wherein the third capability status information is used to indicate that the tenth electronic device collaboratively uses the target capability of the target electronic device; or The first electronic device receives fourth capability status information from the target electronic device; wherein the fourth capability status information is used to instruct the tenth electronic device to collaboratively use the target capability of the target electronic device; The first electronic device stops cooperatively using the target capability of the target electronic device.
13. The method according to claim 11 or 12, characterized in that The method further comprises: The first electronic device displays a second prompt message in the user interface; wherein the second prompt message is used to prompt that the target capability is preempted.
14. An electronic device, characterized in that: The electronic device includes a display screen, a memory and one or more processors; The memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the one or more processors, the electronic device executes the method according to any one of claims 1-13.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 13.
16. A computer program product, characterized in that The computer program product comprises a computer program or instructions, and when the computer program or instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Equipment cooperative control method and device
CN113965715A
Cooperation method between electronic equipment and electronic equipment
CN114629932A
Distributed cross-device cooperation method, electronic device and communication system
CN114741008A
Multi-device cooperation method, electronic device and related product
CN115002937A
Multi-device cooperative working method and device
CN115314494A
