Capability collaboration method and electronic equipment
By using the collected capability status information to make independent decisions and realize collaboration between electronic devices after the first electronic device enters the focus acquisition state, the problems of low collaboration efficiency between devices and poor user experience in the existing technology are solved, and the collaboration efficiency is improved. and fluency.
Patent Information
- Application Number
- CN202310194489.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technology is difficult to achieve capability synergy between different electronic devices, resulting in poor user experience and low interaction efficiency and poor fluency between devices.
After the first electronic device enters the focus acquisition state, the capability status information of each electronic device is collected and used to independently decide on capabilities and devices that require collaboration, thereby achieving capability collaboration, reducing the number of interactions and delays between devices, and improving user experience.
It improves the efficiency and fluency of capability collaboration between electronic devices, improves user experience, and reduces the number and delay of interactions between devices.
Smart Images

Figure CN118540691A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and in particular to a capability collaboration method and electronic device. Background Art
[0002] With the development of electronic technology in recent years, there are more and more types of intelligent electronic devices, which enrich and facilitate the lives of users. Different types of electronic devices have different capabilities.
[0003] For example, headphones are mainly used for audio acquisition and playback. Speakers are mainly used for audio playback. Mouse and keyboard are mainly used for data input. Virtual reality (VR) devices, augmented reality (AR) devices, and head mount displays (HMD) are mainly used for output and display user interfaces. Smartphones, tablets, and laptops generally have all of the above input and output capabilities.
[0004] Therefore, designing a solution for coordinating capabilities among devices can not only amplify the effectiveness of various electronic devices, but also enhance user experience and improve product competitiveness. Summary of the invention
[0005] The present application provides a capability collaboration method and an electronic device for realizing capability collaboration among different electronic devices and improving user experience.
[0006] In a first aspect, an embodiment of the present application provides a capability collaboration method. The method comprises the following steps:
[0007] The first electronic device receives first capability status information from the second electronic device; after the first electronic device enters a focus state, it can determine the target capability and target electronic device to be coordinated based on the received first capability status information; and then send a capability coordination request to the target electronic device to request coordinated use of the target capability of the target electronic device to achieve capability coordination.
[0008] 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 collaboration with the second electronic device, 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; 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.
[0009] 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 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 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.
[0010] In addition, 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, and no additional decision center is required to execute the process, which improves the smoothness of the capability collaboration process and improves the user experience.
[0011] In one possible design, after sending the capability collaboration request, the first electronic device can collaboratively use the target capability of the target electronic device. In one implementation, the first electronic device can send business data to the target electronic device, and the target electronic device processes the received business data through the target capability. In another implementation, the target electronic device can process or generate business data through 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.
[0012] In a 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:
[0013] 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.
[0014] 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.
[0015] In a 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.
[0016] With this design, the first electronic device can directly initiate a capability coordination 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).
[0017] 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 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.
[0018] With this design, when the target capability is currently being used or about to be used (when a capability usage conflict occurs), the first electronic device can temporarily suspend initiating a capability coordination request to the target electronic device until the target application is started and there is a need to use the target capability, and then initiate a capability coordination request to the target electronic device. This method can reduce the occurrence of preemption of the target capability and improve the user experience.
[0019] 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 focus 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.
[0020] 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.
[0021] 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.
[0022] 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.
[0023] In one possible design, the capability conflict rule is set for the target application or the target capability of the first electronic device.
[0024] 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.
[0025] In a possible design, the capability collaboration request may also include a device identifier of the first electronic device and a device identifier of the target electronic device.
[0026] In a possible design, the first electronic device may also send a second capability status information; wherein the second capability status information is used to indicate that the first electronic device uses the target capability of the target electronic device in collaboration. 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. Among them, 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-level 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 an electronic device with the ability to collaborate in the surrounding area determined by the first electronic device. 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, communication interface or communication protocol of the device.
[0027] Through this design, the first electronic device can publish its latest second capability status information.
[0028] 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, 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; wherein the eighth electronic device is an electronic device paired with the first electronic device.
[0029] 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.
[0030] In a possible design, the first electronic device may send the second capability status information in any of the following ways:
[0031] Method 1: the first electronic device periodically sends the second capability status information;
[0032] Mode 2: The first electronic device sends the second capability status information when the content indicated by the second capability status information changes.
[0033] 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.
[0034] 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.
[0035] 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.
[0036] 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 is preempted by the tenth electronic device, it no longer uses the target capability of the target electronic device in a coordinated manner.
[0037] 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.
[0038] In a second aspect, an embodiment of the present application provides an electronic device, comprising a unit for executing each step of the method provided in the first aspect above. Optionally, the electronic device comprises a display screen, a communication unit and a processing unit; wherein the display screen is used to display a user interface; the communication unit is used to receive and send data; and the processing unit is used to execute the method provided in the first aspect.
[0039] In a third aspect, an embodiment of the present application provides an electronic device, the 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 used 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.
[0040] In a fourth aspect, an embodiment of the present application provides a chip, comprising 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.
[0041] In a fifth aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program. When the computer program is run on an electronic device, the computer executes the method provided in the first aspect.
[0042] 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 executes the method provided in the first aspect.
[0043] 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 by any possible design in the first aspect mentioned above, and the repetitions will not be discussed here. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0045] Figure 2 A structural diagram of an electronic device provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0047] Figure 4 A flowchart of a capability collaboration method provided in an embodiment of the present application;
[0048] Figure 5AAn example diagram of a user interface provided in an embodiment of the present application;
[0049] Figure 5B An example diagram of a user interface provided in an embodiment of the present application;
[0050] Figure 5C An example diagram of a user interface provided in an embodiment of the present application;
[0051] Figure 5D An example diagram of a user interface provided in an embodiment of the present application;
[0052] Figure 6 A flowchart of a capability collaboration embodiment provided in an embodiment of the present application;
[0053] Figure 7 A flowchart of another capability coordination embodiment provided in an embodiment of the present application;
[0054] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0055] Fig. 9 A schematic diagram of synchronizing capability status information between devices provided in an embodiment of the present application;
[0056] Fig.10 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The present application provides a capability collaboration method and an electronic device for realizing capability collaboration among different electronic devices and improving user experience. The method and the electronic device are based on the same technical concept. Since the method and the electronic device solve problems in a similar manner, the implementation of the electronic device and the method can refer to each other, and the repetitions will not be repeated.
[0058] Some terms in this application are explained below to facilitate understanding by those skilled in the art.
[0059] 1) Electronic equipment refers to equipment or devices that have data connectivity, data computing and processing functions. The data computing and processing functions of electronic equipment are also called the capabilities of electronic equipment.
[0060] For example, the electronic device in this application can be a personal computer (PC), a laptop, a computer, a netbook, a tablet computer, a car computer, a smart phone, a smart wearable device (such as a smart watch, a smart bracelet, smart glasses, etc.), a car terminal device, a personal digital assistant (PDA), a smart home device (such as a smart TV, etc.), a VR device, an AR device, an HMD, a speaker, a headset, etc. This application does not limit the specific form of the electronic device.
[0061] Optionally, some electronic devices can implement their functions through the operating system installed to provide services to users. Or other operating systems.
[0062] Optionally, 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.
[0063] Electronic devices that are equipped with operating systems or have complex data computing and processing capabilities can also be called brain-powered devices. Some examples of brain-powered devices include: PCs, smartphones, car computers, smart wearable devices, smart home devices, etc.
[0064] Electronic devices with simple functions, no operating system, and only simple data connectivity functions can also be called brainless devices. Some examples of brainless devices include: mouse, keyboard, headset, HMD, some speakers, and some smart home devices.
[0065] Different types of electronic devices can be used or provide different capabilities.
[0066] Optionally, the capabilities used or provided by the electronic device may generally include input and output capabilities (input capabilities and output capabilities). For example, the 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 input capabilities, etc.
[0067] 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 may refer to whether the user is using or about to use the electronic device.
[0068] According to the definition of the focus above, the present application can divide the working states of the electronic device into the following two states, and the electronic device can switch between the above two states:
[0069] (1) Focus state: the state in which the electronic device obtains focus.
[0070] Exemplarily, the electronic device can determine whether the electronic device enters the focus state through input from a mouse, keyboard, touch display, and biometric information sampling data collected by built-in sensors (including pulse, temperature, face recognition data, eye recognition data, etc.).
[0071] In addition, when the electronic device is in a focused state, the user can change the focus position by inputting to the mouse, keyboard or touch display screen.
[0072] (2) Non-focus state: The state in which the electronic device loses focus, also known as out-of-focus state.
[0073] Exemplarily, when the electronic device does not detect input from a mouse, keyboard, or touch screen within a set time period, or the built-in sensor does not collect biometric information sampling data of the user, it is determined that the electronic device enters a non-focus state.
[0074] In the non-focus state, the electronic device may enter a power saving mode (eg, a dimmed screen or a black screen).
[0075] 3) Capability collaboration, that is, one electronic device can use the capabilities of another electronic device to jointly achieve a certain function. For example, a display device with a large screen can use the audio output capabilities of a speaker while playing a video. For another example, a tablet can use the keyboard and mouse capabilities of a nearby PC.
[0076] Based on the concept of capability collaboration, the capabilities involved in this application can be divided into two types:
[0077] The capabilities provided by electronic device a to the outside world: that is, the capabilities of electronic device a that other electronic devices can use in coordination;
[0078] Ability of electronic devices to be used in collaboration: Ability possessed by other electronic devices.
[0079] In the scenario where electronic device a uses electronic device b in collaboration, 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.
[0080] 4) Application (APP) is used to be installed in electronic devices and can provide services to users after running. Application can also be called application software or application program.
[0081] 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.
[0082] For example, the applications may include: call applications, camera applications, text messaging applications, chat applications, video applications, music applications, electronic map applications, social applications, etc.
[0083] 5) Capability status information of the electronic device, which is used to indicate 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 use the capabilities in a coordinated manner, the current usage status of these capabilities), and may also indicate the working status of the electronic device, etc.
[0084] Take electronic device a as an example for illustration. The capability status information of electronic device a may indicate at least one of the following:
[0085] 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.
[0086] Among the contents indicated by the capability status information of the electronic device a, the capability 3 that the electronic device d can provide or the information of the electronic device e that can collaboratively use the capability 3 can be determined by the electronic device a in the following manner:
[0087] 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.
[0088] In addition to the above, the capability status information of the electronic device a may also indicate at least one of the following:
[0089] 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).
[0090] The usage status of any capability includes currently not in use and currently in use. The "currently not in use" status means that the capability provider is not currently processing the business data of the capability user through the capability, or the capability provider is not currently generating the business data of the capability user through the capability; the "currently in use" status means that the capability provider is currently processing the business data of the capability user through the capability, or the capability provider is currently generating the business data of the capability user through the capability.
[0091] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "plurality" 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: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after 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.
[0092] 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 make corresponding processing under certain objective circumstances. It does not limit the time, nor does it require the electronic device to make a judgment when implementing it, nor does it mean that there are other limitations.
[0093] 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, and can also include an algorithm for determining the first content, a calculation parameter, etc. This application does not limit the method of "indication".
[0094] In the present application, "including / comprising A" may be equivalent to "including / comprising A information". A information is used to indicate A.
[0095] 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 an order.
[0096] The solution provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0097] The capability collaboration solution provided in the embodiment of the present application can be applied to application scenarios involving multiple electronic devices. Among them, the capabilities that the above multiple electronic devices can use or provide may be different. Figure 1 Take this as an example to illustrate. Figure 1 The application scenarios shown may include at least two of electronic devices such as a PC, a smart phone, a tablet computer, a speaker, and a headset.
[0098] 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.
[0099] In such Figure 1 In the application scenario shown, a wireless communication connection can be established between any two electronic devices. In one embodiment, an electronic device can actively initiate a connection establishment process as a master device 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 serving as the master device may also be responsible for providing a clock synchronization signal.
[0100] 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.
[0101] For example, in Figure 1 In the application scenario shown, the smartphone can establish a Bluetooth connection with the headset through Bluetooth technology, and realize control and management of the headset and business communication through the Bluetooth connection.
[0102] For example, in Figure 1 In the application scenario shown, 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 a smartphone through Bluetooth technology or WI-FI technology.
[0103] In another embodiment, two electronic devices can be connected to the same wireless local area network (WLAN) through short-range wireless communication technology. In this way, the two electronic devices can establish a wireless communication connection through the wireless local area network and complete the transmission of relevant data or information when implementing the capability collaboration method provided in the embodiment of the present application.
[0104] For example, in Figure 1 The application scenario shown may also include a WI-FI access point. The smartphone and the PC may first access the WI-FI access point according to the WI-FI technology, and then the WI-FI access point may connect the two electronic devices to the wireless local area network.
[0105] 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.
[0106] In the current solution, in the application scenario involving multiple electronic devices (e.g. Figure 1 In the application scenario shown in the figure, in order to achieve capability coordination between electronic devices and improve the efficiency of capability use, the electronic device that provides the capability generally needs to maintain communication connection 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., which is not limited in this application.
[0107] by Figure 1 Take the headphones in as an example. The hardware of the headphones needs to support multiple connections. The headphones can maintain communication connections with the PC and the 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 non-focused state, and the smartphone enters the focused state from the non-focused state, the user can switch the audio output capability of the headphones to the smartphone through the user interface of the decision center, and the smartphone continues to use the audio output capability of the headphones. At this time, the decision center is the electronic device to which the headphones are connected, such as a PC or a smartphone.
[0108] Obviously, in the above method, when the demand for capability usage changes, the user needs to manually operate in a fixed decision center to achieve capability switching. This method requires more interactions between devices, which leads to low capability coordination efficiency and poor fluency, and ultimately poor user experience.
[0109] 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 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.
[0110] In addition, 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, and no additional decision center is required to execute the process, which improves the smoothness of the capability collaboration process and improves the user experience.
[0111] The present application embodiment provides an electronic device that can provide capabilities to the outside or collaborate with the capabilities of other electronic devices to implement the capability collaboration method provided by the present application embodiment. Figure 2 , the structure of the electronic device provided in the embodiments of the present application is introduced.
[0112] like Figure 2 As shown, 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.
[0113] Understandably, Figure 2 The electronic device 200 shown is only an example and does not constitute a limitation on the electronic device. The electronic device may have more Figure 2 More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Figure 2 The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0114] 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 in 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 according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0115] A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. By providing the memory, the number of times the processor 210 accesses data to the internal memory 221 may be reduced, the waiting time of the processor 210 may be reduced, and thus the efficiency of the system may be improved.
[0116] The capability coordination 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 may include different devices. For example, when the CPU and GPU are integrated, the CPU and GPU can cooperate to execute the capability coordination method provided in the embodiment of the present application. For example, part of the algorithm in the capability coordination 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.
[0117] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode, an active matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 200 may include 1 or N display screens 294, where N is a positive integer greater than 1. The display screen 294 can be used to display information input by a user or information provided to a user and various graphical user interfaces (GUIs). For example, the display screen 294 can display windows, photos, videos, web pages, or files, etc. In addition, it can be understood 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 a stylus, etc.) on an application icon, in response to the touch operation, the user interface corresponding to the application icon is opened and displayed 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, a corresponding control operation is performed on the application.
[0118] In the embodiment of the present application, the display screen 294 may 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.
[0119] 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 a camera 293 may be used 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. Among them, 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.
[0120] 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, a program code 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 .
[0121] 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 one or more processors 210. The one or more computer programs include instructions, which may be used to execute the various steps in the following embodiments.
[0122] 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.
[0123] 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.
[0124] A touch sensor is also called a "touch panel". The touch sensor can be set on the display screen 294, and the display screen 294 coupled thereto is called a touch display screen. The touch sensor is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 294. In other embodiments, the touch sensor can also be set on the surface of the electronic device 200, which is different from the position of the display screen 294.
[0125] 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.
[0126] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0127] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., 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.
[0128] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a 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.
[0129] 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 (IR), etc., which are applied to the electronic device 200. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and filters it, and sends the processed signal to the processor 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In the 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 coordination requests and business data can be transmitted.
[0130] 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 interface 270D, and the application processor. For example, music playback, recording, etc. The electronic device 200 can receive the key 290 input and generate key signal input related to the user settings and function control of the electronic device 200. The electronic device 200 can generate a vibration prompt using the motor 291. 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 inserted into the SIM card interface 295, or pulled out from the SIM card interface 295, to achieve contact and separation with the electronic device 200.
[0131] It should also be noted that the structures of the various electronic devices involved in the capability coordination method provided in the embodiments of the present application can refer to Figure 2 It should be noted that the structures of different electronic devices may be different, and any electronic device involved in the method provided in this application may have different Figure 2 More or fewer components than those shown, or different component configurations, will not be described in detail in this application.
[0132] 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 to illustrate the software structure of the electronic device. Figure 3 shown.
[0133] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. Figure 3 As shown, the software architecture can be divided into four layers, from top to bottom, namely, application layer, application framework layer (framework, FWK), Android runtime (Android runtime) and system library, and kernel layer. In addition, the electronic device may also include a hardware layer.
[0134] The application layer is the top layer of the operating system, including native applications of the operating system, as well as third-party applications such as camera, gallery, calendar, Bluetooth, music, video, information, maps, etc.
[0135] 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 realize the functions of the electronic device, the application framework layer may also include a Bluetooth framework, an audio framework, and a distributed input framework.
[0136] The window manager is used to provide window management services. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The window manager can provide multiple management functions to control the transparency, position, size and other parameters of the window or interface on the display screen.
[0137] Content providers are used to store and retrieve data and make these data accessible to applications. The data may include files (such as documents, videos, images, audio), text and other information.
[0138] The view system includes visual controls, such as controls for displaying text, images, documents, etc. The view system can be used to build applications. The interface in the display window can be composed of one or more controls. For example, a display interface showing a file icon can include controls for displaying text and controls for displaying images.
[0139] The phone manager is used to provide the communication function of the terminal device. The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages and disappear automatically after a short stay without user interaction.
[0140] 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.
[0141] The focus management module is used to determine the current working state of the electronic device (focus state or non-focus state), and refresh the latest working state of the electronic device to the DP module, which is then synchronized to other surrounding electronic devices through the capability status information. The focus management module can also refresh the latest working state to the DS module.
[0142] The DS module is used to make decisions based on the capability status information of other electronic devices received by the DP module after the electronic device is in the focus state, determine the capabilities and electronic devices to be coordinated, and call the framework corresponding to the capability to achieve capability coordination based on the above decision results. The DS module can also update the above decision results to the DP module, and the DP module generates the latest capability status information and publishes it.
[0143] The audio framework is used to realize the coordination of the audio input capability or audio output capability of electronic devices. For example, when the DS module decides to coordinate the use of the audio output capability 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 capability of another electronic device, the audio framework can also receive audio service data from another electronic device.
[0144] The distributed input framework is used to realize 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 input by the user through another electronic device.
[0145] The Bluetooth framework is used to establish a communication connection with other electronic devices through Bluetooth technology and communicate with other electronic devices. For example, in the scenario where the audio framework, distributed input framework, or DP module supports Bluetooth technology, these modules can call the Bluetooth framework to transmit corresponding information.
[0146] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0147] The core library of the Android system consists of two parts: one is the function that the Java language needs to call, and the other is the core library of the Android system. The core library is used to provide input / output services (Input / OutputService) and core services (Kernel Service) for the Android system. The application layer and the application framework layer run in the virtual machine. Taking Java as an example, the virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
[0148] 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 provide the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.
[0149] The kernel layer provides the core system services of the operating system, such as security, memory management, process management, network protocol stack and driver model, which are all implemented based on the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and software stacks. This layer has many drivers related to electronic devices, the main drivers are: display driver; keyboard driver as input device; input / output driver; Flash driver based on memory technology devices; camera driver; audio driver; Bluetooth driver; WiFi driver; sensor driver, etc.
[0150] Input / output driver is used to obtain and report the operation information of the interface or window displayed on the display screen from external input devices (such as mouse, keyboard, touch screen, 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 screens, other electronic devices with display screens).
[0151] The hardware layer may include various sensors, display screens, cameras, input devices such as keyboards and keyboards, Bluetooth communication modules, WI-FI communication modules, audio modules, etc.
[0152] In order to reduce the interaction between electronic devices during the capability collaboration process and improve the efficiency and fluency of capability collaboration, the embodiment of the present application provides a capability collaboration method. The method can be applied to an application scenario including multiple electronic devices, such as Figure 1 The application scenario shown.
[0153] It should be noted that in the embodiments of the present application, each electronic device can define the capabilities that it can provide to the outside (i.e., the capabilities provided to other electronic devices for collaborative use). For example, headphones can provide audio output capabilities, and headphones with microphones can also provide audio input capabilities; PCs can provide their own keyboard and mouse capabilities; smart TVs can provide audio output capabilities and display output capabilities; smart TVs with microphones and cameras can also provide audio input capabilities and video input capabilities.
[0154] In addition, some electronic devices can also define their own collaborative capabilities. For example, smart TVs can collaboratively use keyboard and mouse capabilities, audio output capabilities, etc.
[0155] In an embodiment of the present application, some electronic devices (such as 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.
[0156] 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.
[0157] 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 an underlying 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.
[0158] The electronic device may use various communication methods or communication technologies to transmit the capability status information. For example, the electronic device 1 may use Bluetooth technology to send its capability status information to the electronic device 2, and may also use SideLink technology to send its capability status information to the electronic device 3.
[0159] See below for details Figure 4 The flowchart shown takes the first electronic device as an example to illustrate the capability collaboration method provided in an embodiment of the present application.
[0160] S401: A first electronic device receives first capability status information from a second electronic device.
[0161] 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 to be 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.
[0162] In some implementations, the first capability status information may also indicate electronic devices that collaboratively use the above capabilities, that is, a fifth electronic device that collaboratively uses the first capability, or a sixth electronic device that collaboratively uses the third capability.
[0163] In some embodiments, the first capability status information may also indicate the usage status of the aforementioned various capabilities, as well as information such as the working status of the second electronic device. That is, the first capability status information may also 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 (i.e., the focused state or the non-focused state).
[0164] 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 it.
[0165] Optionally, any second electronic device can publish the first capability status information in the manner of publishing its own capability status information by the aforementioned electronic device, and the specific process can be referenced to each other and will not be repeated here. It should be noted that since the second electronic device can continuously send the latest capability status information, therefore, in the embodiment of the present application, the first electronic device can also continuously receive the capability status information of the second electronic device.
[0166] 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 the target capabilities that need to be used in coordination.
[0167] S402: After the first electronic device enters the focus state, the first electronic device determines the target capability to be coordinated and the target electronic device to be coordinated according to the first capability state information received in S401.
[0168] 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. 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; when the target capability is the third capability, the target electronic device is the fourth electronic device.
[0169] 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.
[0170] In one implementation, during S402, the first electronic device may finally determine the target capability and the target electronic device through a user's selection operation. The specific process is as follows:
[0171] A1: 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.
[0172] 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.
[0173] A2: The first electronic device displays at least one cooperation candidate capability and at least one cooperation candidate electronic device in a user interface.
[0174] A3: In response to the user's selection operation, a target capability and a target electronic device are determined.
[0175] For example, after the smartphone determines at least one collaborative candidate capability (audio input capability and display output capability) and at least one collaborative candidate electronic device (earphone 1, earphone 2, speaker 1, smart screen 1, PC 1) through step A1, it can display a user interface for "select collaborative capability". Figure 5A The user can select the target capability and the target electronic device in the user interface.
[0176] 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.
[0177] In a first implementation manner, after the first electronic device determines the target capability and the target electronic device in S402, it may directly send a capability coordination request to the target electronic device.
[0178] In the second implementation, 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 in collaboration. Therefore, in this implementation, the execution process of S403 includes the following two implementation methods:
[0179] 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 coordination request to the target electronic device.
[0180] 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, the first electronic device may 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 may also send a capability collaboration request to the target electronic device at any subsequent time. For example, the first electronic device may 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 through the target capability.
[0181] Implementation method 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 starting the target application. The business data of the target application needs to be processed or generated by the target capability.
[0182] 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 suspend initiating a capability collaboration request to the target electronic device until the target application is started and there is a demand for the use of the target capability, 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.
[0183] 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 also 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 as follows: Figure 5B shown.
[0184] 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 subsequently received capability status information indicates that the target capability is no longer in conflict (satisfying 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 subsequently received capability status information 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 before deciding whether to initiate a capability coordination request to the target electronic device.
[0185] Optionally, during implementation B2, after starting the target application, the first electronic device may send the capability coordination request to the target electronic device according to a capability conflict rule. The capability conflict rule includes any of the following: forcibly preempting the target capability; or preempting the target capability according to device priority.
[0186] Wherein, in the case where 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.
[0187] 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 service implementation of the conflicting electronic device due to preempting the target capability.
[0188] In the 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; it may also be determined according to the frequency of using the target capability; or other electronic devices in the application scenario may publish information indicating their own priority when using the target capability in a collaborative manner.
[0189] Optionally, the capability conflict rule may also include the 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 according to the type of the conflicting electronic device, and determine its own priority according to its own type.
[0190] 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 on the basis of minimizing the impact on the user's usage experience.
[0191] 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 realizing the customization of product design in the case of capability usage conflict.
[0192] Optionally, the capability collaboration request may also include a device identification of the first electronic device and a device identification of the target electronic device.
[0193] 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 detects that the user chooses to agree to the first electronic device's collaborative use of the target capability, the software and hardware resources required to use the target capability are reserved. Exemplarily, the user interface of the target electronic device (assuming it is a smart phone) displaying the prompt message is as follows: Figure 5C shown.
[0194] Optionally, before S404, the target electronic device may also feed back a capability coordination response to the first electronic device. The capability coordination response is used to notify the first electronic device that the target electronic device agrees to cooperate with the first electronic device to use the target capability.
[0195] In one implementation, during the execution of step S403, the first electronic device may first establish a communication connection with the target electronic device, and then send a capability collaboration request to the target electronic device through the communication connection. If the first electronic device has established a communication connection with the target electronic device before executing S403, the first electronic device may directly send a capability collaboration request to the target electronic device through the communication connection.
[0196] S404: The first electronic device collaboratively uses the target capability of the target electronic device.
[0197] 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 through the target capability. This embodiment may be applicable to the case where the target capability is an output capability. For example, in a scenario where the first electronic device cooperates with the audio output capability of the 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.
[0198] In another embodiment, the target electronic device can process or generate business data through 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 collaboration, the PC can generate keyboard and mouse data based on the user's input operation, and send the keyboard and mouse data to the first electronic device.
[0199] 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.
[0200] 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.
[0201] Since the first electronic device needs to publish its latest capability status information, after S403, the first electronic device sends the second capability status information. The second capability status information is used to indicate the target capability of the first electronic device to collaboratively use the target electronic device. In other words, the second capability status information can at least indicate: the first electronic device collaboratively uses the target capability to provide the target electronic device with the target capability.
[0202] Optionally, similar to the first capability status information, the second capability status information may further indicate at least one of the following:
[0203] The fourth capability that can be provided by the first electronic device, the seventh electronic device that uses the fourth capability in coordination, the fifth capability that can be provided by the eighth electronic device, the ninth electronic device that uses the fifth capability in coordination, 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. The eighth electronic device is an electronic device paired with the first electronic device.
[0204] Optionally, the first electronic device may send the second capability status information in the following manner:
[0205] Method 1: The first electronic device periodically sends the second capability status information;
[0206] Method 2: When the content indicated by the second capability status information changes, the first electronic device sends the second capability status information. In this way, when the capability related to the first electronic device is released or used in collaboration, other electronic devices can perceive the above content in time to make subsequent decision on capability collaboration.
[0207] In this embodiment, since there are multiple electronic devices in the application scenario, the target capability used by the first electronic device in collaboration may also be occupied by other electronic devices. Therefore, the method may further include the following steps:
[0208] C1: The first electronic device receives the third capability status information from the tenth electronic device. 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 the fourth capability status information from the target electronic device. The fourth capability status information is used to indicate that the tenth electronic device collaboratively uses the target capability of the target electronic device;
[0209] 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 cooperatively using the target capability of the target electronic device.
[0210] Optionally, in step C2, the first electronic device no longer transmits business data to the target electronic device. For example, the first electronic device no longer sends business data to the target electronic device, or no longer monitors and receives business data from the target electronic device. In addition, the first electronic device may also exit the target application or pause the audio or video played by the target application.
[0211] 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 also display a second prompt message in the user interface. The second prompt message is used to prompt that the target capability has been preempted. Exemplarily, at this time, the user interface of the first electronic device (assuming a smartphone) displaying the second prompt message is as follows: Figure 5D shown.
[0212] based on Figure 4 The method provided by the illustrated embodiment, this application also provides some capability coordination embodiments. The process of each embodiment is described below in conjunction with the accompanying drawings.
[0213] Example 1: Assume that the current application scenario includes a tablet computer and a PC. Take the example of a tablet computer cooperating with the keyboard and mouse capabilities of a PC. Figure 6 shown.
[0214] S601: The capability status information synchronization process is performed between electronic devices in the current application scenario, specifically including S601a and S601b. The current application scenario includes a tablet computer and a PC.
[0215] 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 the tablet computer is in a non-focus state.
[0216] 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.
[0217] The process and method of tablet computers or PCs publishing their respective capability status information can be referred to 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.
[0218] In the process 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.
[0219] 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 the embodiment of the present application, the tablet computer predefines 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 of the PC that need to be used collaboratively based on its own defined collaborative capabilities and capability status information 2.
[0220] 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 capability, and is used to request the collaborative use of the keyboard and mouse capability of the PC.
[0221] S604: The PC receives a capability collaboration request from the tablet and starts the collaborative function of the keyboard and mouse capabilities. Optionally, the PC may also display a prompt message in the user interface to prompt the PC user that the tablet currently requests to collaboratively use the keyboard and mouse capabilities of the PC. The PC may start the collaborative function of the keyboard and mouse capabilities after detecting an operation performed by the user to agree to the tablet collaboratively use the keyboard and mouse capabilities of the PC.
[0222] S605: Optionally, the PC may also feed 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.
[0223] 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 according to the keyboard and mouse data.
[0224] 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.
[0225] S607a: The tablet computer publishes the latest capability status information 1.
[0226] 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 cooperate with the keyboard and mouse capability, 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.
[0227] S607b: The PC publishes the latest capability status information 2.
[0228] Among them, 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.
[0229] Embodiment 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 respectively using the audio output capability of the headset in collaboration as an example. Figure 7 shown.
[0230] Assume that both mobile phone A and mobile phone B have been paired with the headset.
[0231] S701: After mobile phone A and mobile phone B go online, they can synchronize the capability status information between devices. In this process, mobile phone A and mobile phone B can publish their own capability status information. For the specific process, please refer to Figure 4 or Figure 6 The description in the illustrated embodiment will not be expanded here.
[0232] 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.
[0233] S703: Mobile phone A and mobile phone B continue to synchronize the inter-device capability status information.
[0234] The capability status information published by mobile phone A indicates the audio output capability of mobile phone A to collaboratively use the headset.
[0235] 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 coordination based on its own defined coordination capability (audio output capability) and the capability status information of mobile phone A.
[0236] 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.
[0237] 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 according to the capability status information of mobile phone A that the audio output capability of the headset is not in use, or 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.
[0238] S706: Mobile phone B determines, based on the most recently received 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 focus, but mobile phone B starts playing audio. Mobile phone B may send a capability coordination request to the headset based on the capability conflict rule (mobile phone B currently meets the conditions for preempting the audio output capability of the headset).
[0239] For the description of the capability conflict rules, please refer to the above Figure 4 The description of the embodiment S403 shown is not 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 audio output capability of the headset, mobile phone B needs to continue to wait 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.
[0240] S707: Mobile phone B cooperates with the audio output capability of the headset to play audio.
[0241] S708: Mobile phone A and mobile phone B continue to synchronize the inter-device capability status information.
[0242] 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.
[0243] S709: Mobile phone A determines that the audio output capability of the headset is preempted based on the capability status information of mobile phone B received in S708, and 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.
[0244] Based on the method provided in the above embodiment, the present application embodiment also adopts a structure of an electronic device. In the present application embodiment, 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. Figure 8 shown.
[0245] 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.
[0246] The focus management module is used to determine the current working state of the electronic device (focus state or non-focus state), and refresh the latest working state of the electronic device to the DP module, which is then synchronized to other surrounding electronic devices through the capability status information. The focus management module can also refresh the latest working state to the DS module to trigger the DS module to make a decision on capability coordination.
[0247] The DS module is used to make decisions based on the capability status information of other electronic devices received by the DP module after the electronic device is in the focus state, determine the capabilities and electronic devices to be coordinated, and call the framework corresponding to the capability to achieve capability coordination based on the above decision results. The DS module can also update the above decision results to the DP module, and the DP module generates the latest capability status information and publishes it.
[0248] Continue with Figure 7 The embodiment shown in the figure is used as an example to illustrate that in the process of synchronizing the capability status information between devices, the DP module of mobile phone A and the DP module of mobile phone B can interact with each other. Fig. 9 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.
[0249] 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 continued conflict in the 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 continues to suspend initiating a capability coordination request to the headset.
[0250] If mobile phone B starts to play 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 coordination 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 can also stop playing audio.
[0251] The above embodiments may be used in combination with each other or may be used alone, and there is no limitation on this.
[0252] It should also be noted that each step involved in the above embodiments can be performed by a corresponding device, or by a chip, processor, or chip system in the device, and the embodiments of the present application do not limit them. The above embodiments are only described by taking the execution by the corresponding device as an example. 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.
[0253] It should be noted that in the above embodiments, some steps can be selected for implementation, and the order of the steps in the diagram can be adjusted for implementation, and this application does not limit this. It should be understood that executing some steps in the diagram, adjusting the order of the steps, or combining them for specific implementation all fall within the scope of protection of this application.
[0254] 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 the various functions. It should be easily appreciated by 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.
[0255] 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.
[0256] It should be noted that the "steps" in the embodiments of the present application are only for illustration, and are a method of expression used to better understand the embodiments, and do not constitute a substantial limitation on the execution of the scheme of the present application. For example, the "steps" can also be understood as "features". In addition, the steps do not constitute any limitation on the execution order of the scheme of the present application. Any changes in the order of steps, step merging, or step splitting made on this basis that do not affect the implementation of the overall scheme, and the resulting new technical solutions are also within the scope of the disclosure of the present application.
[0257] Based on the same concept, the present application also provides an electronic device, such as Fig.10As shown, it includes one or more processors 1001, a memory 1002, a transceiver 1003 and a display screen 1004. For example, the above-mentioned components can be connected via one or more communication buses. Among them, the one or more computer programs are stored in the above-mentioned memory 1002 and are configured to be executed by the processor 1001. The one or more computer programs include instructions, and the above-mentioned instructions can be used to enable the electronic device to perform each step of the method in the above-mentioned embodiments.
[0258] Exemplarily, the processor 1001 may be Figure 2 The processor 210 shown. The memory 1002 may be specifically Figure 2 The internal memory 221 shown and / or the external memory connected to the electronic device. The transceiver 1003 can be Figure 2 The mobile communication module 250 and / or the wireless communication module 260 shown. The display screen 1004 can be specifically Figure 2 The display screen 294 is shown, and the embodiment of the present application does not impose any limitation on this.
[0259] In addition, an embodiment of the present application further provides a graphical user interface (GUI) on an electronic device, and the graphical user interface specifically includes a graphical user interface displayed by the electronic device when executing the above-mentioned method embodiments.
[0260] Based on the same concept, an embodiment of the present application also provides an electronic device, which includes a unit for executing each step in 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.
[0261] 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.
[0262] Based on the above embodiments, the embodiments of the present application further provide 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.
[0263] Optionally, the above-mentioned computer may include, but is not limited to, electronic devices.
[0264] The storage medium may be any available medium that can be accessed by a computer. For example, but not limited to, a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.
[0265] Based on the above embodiments, the embodiments of the present application further provide a chip, the chip is used to read the computer program stored in the memory, and implement the method provided in the above embodiments. Optionally, the chip may include a processor and a memory, the processor is coupled to the memory, and is used to read the computer program stored in the memory, and implement the method provided in the above embodiments.
[0266] Based on the above embodiments, the 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 a possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0267] In summary, the embodiments of the present application provide 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 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.
[0268] As used in the above embodiments, the term "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 phrase "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0269] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. 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 a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. 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 hard disk Solid State Disk (SSD)), etc. In the absence of conflict, the solutions of the above embodiments can be used in combination.
[0270] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may 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 may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0271] 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 process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart 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 generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0272] These computer program instructions may also be stored in a computer-readable memory capable of directing 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 an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0273] 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, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0274] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also 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 enabled to execute the method according to any one of claims 1 to 13.
