Capability sharing method, electronic device, and computer-readable storage medium
By determining the roles of primary and secondary devices among electronic devices and directly sending capability sharing information, the problem of low efficiency in capability sharing between devices in existing technologies is solved, achieving efficient and flexible capability sharing and device utilization, and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-23
- Publication Date
- 2026-03-17
AI Technical Summary
When sharing capabilities between different electronic devices, existing technologies require cumbersome searches and network configurations through a control center, resulting in low efficiency and an inability to flexibly adapt to various application scenarios.
The roles of the second and third electronic devices are determined by the first electronic device, and capability sharing information is sent directly, enabling the second electronic device to use the capabilities of the third electronic device. This simplifies the connection and information interaction process between devices, including obtaining device information via NFC or QR code, determining device expansion capabilities, and receiving and sending capability request information to optimize information interaction.
It improves the efficiency and flexibility of capability sharing between electronic devices, reduces unnecessary information transmission, lowers power consumption, and enhances user interaction efficiency and device utilization.
Smart Images

Figure CN115866568B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of terminal and communication technology, and in particular to capability sharing methods, electronic devices, and computer-readable storage media. Background Technology
[0002] With the continuous development of science and technology, electronic devices are becoming increasingly feature-rich. In smart home scenarios, most electronic devices possess near-field communication (NFC), Bluetooth, and wireless local area network (WLAN) capabilities. Therefore, different electronic devices can establish connections to share capabilities. For example, a smartphone can connect to a smart TV, allowing the smartphone to utilize the smart TV's display capabilities for functions such as screen mirroring.
[0003] Currently, sharing capabilities between different electronic devices requires a control center (such as a mobile phone). Users must first open the corresponding control interface, search for various electronic devices, and then configure them to be on the same network before connecting to enable capability sharing. Meanwhile, improving the efficiency of capability sharing between different electronic devices is a key concern for technical personnel. Summary of the Invention
[0004] This application provides a capability-sharing method, an electronic device, and a computer-readable storage medium that can improve the efficiency of capability sharing between different electronic devices.
[0005] In a first aspect, this application provides a capability sharing method, comprising: a first electronic device determining a second electronic device as a master device; a third electronic device as a slave device; determining capability sharing information of the third electronic device; and sending the capability sharing information to the second electronic device, wherein the capability sharing information is used to instruct the second electronic device to use the capability corresponding to the capability sharing information of the third electronic device.
[0006] In the above embodiments, when a user needs a third electronic device to share capabilities with a second electronic device, the user can control a first electronic device to achieve capability sharing between the second and third electronic devices, allowing the master device to use the capabilities shared by the slave device. Specifically, the first electronic device can designate the second electronic device as the master device and the third electronic device as the slave device. Then, the first electronic device can determine the capability sharing information of the third electronic device and send this information to the second electronic device. This allows the second electronic device to directly use the capabilities corresponding to the capability sharing information in the third electronic device's capabilities, thus achieving capability sharing between the two devices. It is evident that the above method can conveniently achieve capability sharing between different electronic devices, improving the efficiency of capability sharing between them. Furthermore, users can select different electronic devices for capability sharing according to actual needs, increasing the flexibility of capability sharing between different electronic devices and making it applicable to various application scenarios.
[0007] In conjunction with some embodiments of the first aspect, in some embodiments, the method further includes: acquiring information about the third electronic device; determining the capability sharing information of the third electronic device includes: determining the capability sharing information of the third electronic device based on the information about the third electronic device.
[0008] In conjunction with some embodiments of the first aspect, in some embodiments, the method further includes: obtaining information about the second electronic device, the information about the second electronic device including connection information of the second electronic device; and establishing a connection with the second electronic device using the connection information of the second electronic device.
[0009] In the above embodiments, the first electronic device can obtain information about the second electronic device, including connection information of the second electronic device. Then, the first electronic device can use the connection information of the second electronic device to establish a connection with it, enabling communication between the two devices. This allows the first electronic device to send capability-sharing information to the second electronic device, thus achieving capability sharing between the second and third electronic devices. Furthermore, since the first and second electronic devices can interact more quickly and conveniently after establishing a connection, capability sharing between them can be achieved more rapidly.
[0010] In conjunction with some embodiments of the first aspect, in some embodiments, determining the second electronic device as the master device includes: displaying a first prompt message to prompt the user whether to determine the second electronic device as the master device; and determining the second electronic device as the master device when a first operation by the user in response to the first prompt message is detected.
[0011] In the above embodiments, the first electronic device may first display a prompt interface, which includes prompting the user whether to designate the second electronic device as the primary device. The user can perform operations such as clicking on the prompt information as needed. The first electronic device can detect the user's operation on the prompt information, and only when the user's operation is detected as setting the second electronic device as the primary device will the first electronic device designate the second electronic device as the primary device. Through the above method, the first electronic device can receive user input and determine the primary device based on the user input. Therefore, the user can flexibly choose which electronic device as the primary device, expand the corresponding capabilities of the electronic device, adapt to different application scenarios, meet various actual needs of the user, and thus improve the user experience.
[0012] In conjunction with some embodiments of the first aspect, in some embodiments, identifying the third electronic device as a secondary device includes: displaying a second prompt message to prompt the user whether to identify the third electronic device as the primary device; and identifying the third electronic device as a secondary device when a second operation by the user in response to the second prompt message is detected.
[0013] In the above embodiments, the first electronic device can first display a prompt interface, which includes prompting the user whether to designate the third electronic device as the primary device. The user can perform operations such as clicking on the prompt information as needed. The first electronic device can detect the user's operation on the prompt information, and only when the user's operation is detected as setting the third electronic device as a secondary device will the first electronic device designate the third electronic device as a secondary device. Through the above method, the first electronic device can receive user input and determine the secondary device based on the user input. Therefore, the user can flexibly choose which electronic device to use as the secondary device and share the capabilities of that electronic device with the primary device to adapt to different application scenarios, meet various actual user needs, and thus improve the user experience.
[0014] In conjunction with some embodiments of the first aspect, in some embodiments, the information of the third electronic device includes shared capability information of the third electronic device, the shared capability information including information of one or more capabilities, and determining the capability sharing information of the third electronic device based on the information of the third electronic device includes: displaying the information of the one or more capabilities; and when a user's selection instruction for some or all of the one or more capabilities is detected, determining the information of the selected capability as capability sharing information.
[0015] In the above embodiments, after the first electronic device obtains information about the third electronic device, including the shared capability information of the third electronic device, it can display information about one or more capabilities included in the shared capability information. The user can perform selection operations such as clicking on the information of the one or more capabilities according to actual needs. When the first electronic device detects a user's selection instruction for some or all of the one or more capabilities, it determines the selected capability information as capability sharing information. Then, it can send this capability sharing information to the second electronic device to achieve capability sharing between the second and third electronic devices. Other unselected capabilities can be shared with other electronic devices. Through this method, the first electronic device can receive the user's selection instruction and determine the capability sharing information. Therefore, the user can flexibly select the capabilities that the third electronic device needs to share with the second electronic device according to actual needs, avoiding unnecessary capability selection. Furthermore, capabilities of the third electronic device not included in the capability sharing information can be shared with other electronic devices, thereby improving the utilization rate of the third electronic device's capabilities.
[0016] In conjunction with some embodiments of the first aspect, in some embodiments, the information of the third electronic device includes the connection information of the third electronic device, and sending the capability sharing information to the second electronic device includes: determining the address information of the third electronic device based on the connection information of the third electronic device; sending the address information and capability sharing information of the third electronic device to the second electronic device, wherein the address information is used to establish a connection with the third electronic device.
[0017] In the above embodiments, the first electronic device can determine the address information of the third electronic device based on the connection information of the third electronic device. Then, it can send the address information and capability sharing information of the third electronic device to the second electronic device. After receiving the address information of the third electronic device, the second electronic device can directly establish a connection with the third electronic device based on the address information of the third electronic device, thereby enabling capability sharing between the second and third electronic devices more quickly.
[0018] In conjunction with some embodiments of the first aspect, in some embodiments, obtaining the information of the second electronic device includes: the first electronic device reading the information of the second electronic device from the NFC on the second electronic device via NFC; or, the first electronic device obtaining the information of the second electronic device by scanning a QR code containing the information of the second electronic device.
[0019] In the above embodiments, when a user needs a third electronic device to share capabilities with a second electronic device, the first electronic device can be moved closer to the second electronic device. The first electronic device can then read information from the second electronic device's NFC storage via NFC, or it can scan a QR code containing information about the second electronic device to obtain that information, thus enabling capability sharing between the second and third electronic devices. As can be seen, the user can obtain information from the second electronic device through simple operations such as touching it (moving the first electronic device closer to the second) or scanning a QR code, without needing to perform cumbersome operations such as searching for or configuring the second electronic device's network, thereby improving the interaction efficiency between the first and third electronic devices.
[0020] In conjunction with some embodiments of the first aspect, in some embodiments, the information of the second electronic device includes extended capability information, and sending the capability sharing information to the second electronic device includes: sending the capability sharing information to the second electronic device when the extended capability information includes the capability sharing information.
[0021] In the above embodiments, since electronic devices cannot use the capabilities of other electronic devices that they do not support for extension, the first electronic device can determine whether the extended capability information of the second electronic device includes capability sharing information before sending capability sharing information to the second electronic device. If it is determined that the extended capability information of the second electronic device does not include capability sharing information, it indicates that the second electronic device does not support the capabilities shared by the third electronic device. Therefore, the first electronic device may not send the capability sharing information of the third electronic device to the second electronic device. If it is determined that the extended capability information of the second electronic device includes capability sharing information, it indicates that the second electronic device supports extending the capabilities of the third electronic device selected by the user. The first electronic device can then send the capability sharing information of the third electronic device to the second electronic device to achieve capability sharing between the second and third electronic devices. It is evident that the first electronic device only sends capability sharing information to the second electronic device when the extended capability information of the second electronic device includes capability sharing information, which reduces the transmission of unnecessary information and thus reduces the power consumption of the first electronic device. Furthermore, it can prevent the second electronic device from receiving capability sharing information from the first electronic device but being unable to use the capabilities corresponding to the capability sharing information of the third electronic device.
[0022] In conjunction with some embodiments of the first aspect, in some embodiments, the method further includes: sending capability request information to the second electronic device; receiving extended capability information from the second electronic device; the sending of the capability sharing information to the second electronic device includes: sending the capability sharing information to the second electronic device when the extended capability information includes the capability sharing information.
[0023] In the above embodiments, the first electronic device can send capability request information to the second electronic device, so that after receiving the capability request information, the second electronic device can send its own extended capability information to the first electronic device according to the capability request information. Then, before sending capability sharing information to the second electronic device, the first electronic device can first determine whether the extended capability information of the second electronic device includes capability sharing information. If it is determined that the extended capability information of the second electronic device does not include capability sharing information, it indicates that the second electronic device does not support the capabilities shared by the third electronic device; therefore, the first electronic device may not send the capability sharing information of the third electronic device to the second electronic device. If it is determined that the extended capability information of the second electronic device includes capability sharing information, it indicates that the second electronic device supports extending the capabilities of the user-selected third electronic device; the first electronic device can then send the capability sharing information of the third electronic device to the second electronic device to achieve capability sharing between the second and third electronic devices. Therefore, by only sending capability sharing information to the second electronic device when the extended capability information of the second electronic device includes capability sharing information, unnecessary information transmission can be reduced, thereby reducing the power consumption of the first electronic device.
[0024] Secondly, this application provides a capability sharing method, comprising: receiving capability sharing information of a third electronic device from a first electronic device; and using the capability of the third electronic device corresponding to the capability sharing information.
[0025] In the above embodiments, the second electronic device can receive capability sharing information of the third electronic device from the first electronic device, and then directly use the capability corresponding to the capability sharing information in the capability of the third electronic device, thereby realizing capability sharing between the second electronic device and the third electronic device, and thus improving the efficiency of capability sharing between different electronic devices.
[0026] In conjunction with some embodiments of the second aspect, in some embodiments, receiving capability sharing information from a third electronic device from a first electronic device includes: receiving address information and capability sharing information from a third electronic device from the first electronic device; the method further includes: establishing a connection with the third electronic device based on the address information.
[0027] In the above embodiments, the second electronic device can receive address information and capability sharing information of the third electronic device from the first electronic device. Then, it can directly establish a connection with the third electronic device based on the address information of the third electronic device and perform information interaction. This enables the second electronic device to quickly realize capability sharing between the second and third electronic devices, allowing the second electronic device to use the capabilities corresponding to the capability sharing information in the capabilities of the third electronic device.
[0028] In conjunction with some embodiments of the second aspect, in some embodiments, the method further includes: sending information of the second electronic device to the first electronic device via near field communication (NFC) of the second electronic device, the information of the second electronic device including connection information and / or expansion capability information of the second electronic device.
[0029] In the above embodiments, when a user needs a third electronic device to share capabilities with a second electronic device, the first electronic device can be moved closer to the second electronic device. The second electronic device can then send its information to the first electronic device via NFC, thereby enabling capability sharing between the two devices. As can be seen, the user can use a touch operation—that is, moving the first electronic device closer to the second electronic device—to cause the second electronic device to send its own information to the first electronic device. Correspondingly, the first electronic device can receive the information from the second electronic device without needing to perform cumbersome operations such as searching for or configuring the second electronic device's network, thus improving the interaction efficiency between the first electronic device and the user.
[0030] In conjunction with some embodiments of the second aspect, in some embodiments, the method further includes: receiving capability request information from the first electronic device; and sending extended capability information of the second electronic device to the first electronic device based on the capability request information.
[0031] In the above embodiments, after receiving capability request information from the first electronic device, the second electronic device can send its own extended capability information to the first electronic device according to the capability request information. This allows the first electronic device to receive the extended capability information from the second electronic device. Before sending capability sharing information to the second electronic device, the first electronic device can first determine whether the extended capability information of the second electronic device includes capability sharing information. If the first electronic device determines that the extended capability information of the second electronic device does not include capability sharing information, it indicates that the second electronic device does not support the capabilities shared by the third electronic device. Therefore, the first electronic device may not send the capability sharing information of the third electronic device to the second electronic device. If the first electronic device determines that the extended capability information of the second electronic device includes capability sharing information, it indicates that the second electronic device supports extending the capabilities of the user-selected third electronic device. The first electronic device can then send the capability sharing information of the third electronic device to the second electronic device to achieve capability sharing between the second and third electronic devices. Therefore, by only sending capability sharing information to the second electronic device when the extended capability information of the second electronic device includes capability sharing information, unnecessary information transmission can be reduced, thereby reducing the power consumption of the first electronic device.
[0032] Thirdly, this application provides a capability sharing device, which can be a first electronic device or a module (e.g., a chip) of the first electronic device. The capability sharing device may include:
[0033] The first determining unit is used to determine the second electronic device as the main device;
[0034] The first determining unit is also used to determine the third electronic device as a secondary device;
[0035] The second determining unit is used to determine the capability sharing information of the third electronic device;
[0036] The sending unit is configured to send the capability sharing information to the second electronic device, the capability sharing information being used to instruct the second electronic device to use the capability corresponding to the capability sharing information in the capability of the third electronic device.
[0037] In conjunction with some embodiments of the third aspect, in some embodiments, the capability-sharing device may further include:
[0038] The acquisition unit is used to acquire information from the third electronic device;
[0039] The second determining unit is specifically used to determine the capability sharing information of the third electronic device based on the information of the third electronic device.
[0040] In conjunction with some embodiments of the third aspect, in some embodiments, the acquisition unit is further configured to acquire information of the second electronic device, the information of the second electronic device including connection information of the second electronic device;
[0041] The capability-sharing device may also include:
[0042] A connection establishment unit is used to establish a connection with the second electronic device using the connection information of the second electronic device.
[0043] In conjunction with some embodiments of the third aspect, in some embodiments, the first determining unit determines the second electronic device as the master device, including:
[0044] Display a first prompt message to ask the user whether to designate the second electronic device as the main device;
[0045] When a user's first action in response to the first prompt message is detected, the second electronic device is identified as the master device.
[0046] In conjunction with some embodiments of the third aspect, in some embodiments, the first determining unit determines the third electronic device as a secondary device by:
[0047] Display a second prompt message to ask the user whether to designate the third electronic device as the main device;
[0048] When a second action by the user in response to the second prompt message is detected, the third electronic device is identified as a secondary device.
[0049] In conjunction with some embodiments of the third aspect, in some embodiments, the information of the third electronic device includes sharing capability information of the third electronic device, the sharing capability information including information on one or more capabilities, and the second determining unit determines the capability sharing information of the third electronic device based on the information of the third electronic device, including:
[0050] Displays information about this one or more capabilities;
[0051] When a user's selection instruction for some or all of the capabilities is detected, the information of the selected capabilities is determined as capability-sharing information.
[0052] In conjunction with some embodiments of the third aspect, in some embodiments, the information of the third electronic device includes the connection information of the third electronic device, and the transmitting unit is specifically used for:
[0053] Based on the connection information of the third electronic device, determine the address information of the third electronic device;
[0054] The address information and capability sharing information of the third electronic device are sent to the second electronic device, and the address information is used to establish a connection with the third electronic device.
[0055] In conjunction with some embodiments of the third aspect, in some embodiments, the acquiring unit is specifically used for:
[0056] Information about the second electronic device can be read from the NFC on the second electronic device via Near Field Communication (NFC); or, information about the second electronic device can be obtained by scanning a QR code that includes information about the second electronic device.
[0057] In conjunction with some embodiments of the third aspect, in some embodiments, the information of the second electronic device includes extended capability information, and the sending unit sends the capability sharing information to the second electronic device including:
[0058] If the extended capability information includes the capability sharing information, the capability sharing information is sent to the second electronic device.
[0059] In conjunction with some embodiments of the third aspect, in some embodiments, the sending unit is further configured to send capability request information to the second electronic device;
[0060] The capability-sharing device may also include:
[0061] A receiving unit is configured to receive extended capability information from the second electronic device;
[0062] The transmitting unit sends the capability sharing information to the second electronic device, including:
[0063] If the extended capability information includes the capability sharing information, the capability sharing information is sent to the second electronic device.
[0064] Fourthly, this application provides a capability sharing device, which can be a second electronic device or a module (e.g., a chip) of the second electronic device. The capability sharing device may include:
[0065] A receiving unit is configured to receive capability-sharing information from a third electronic device received from a first electronic device;
[0066] The unit is used to access the capability corresponding to the capability sharing information in the capability of using the third electronic device.
[0067] In conjunction with some embodiments of the fourth aspect, in some embodiments, the receiving unit is specifically used to receive address information and capability sharing information of a third electronic device from a first electronic device;
[0068] The capability-sharing device may also include:
[0069] A connection establishment unit is used to establish a connection with the third electronic device based on the address information.
[0070] In conjunction with some embodiments of the fourth aspect, in some embodiments, the capability-sharing device may further include:
[0071] The first transmitting unit is configured to transmit information about the second electronic device to the first electronic device via near field communication (NFC). The information about the second electronic device includes connection information and / or expansion capability information of the second electronic device.
[0072] In conjunction with some embodiments of the fourth aspect, in some embodiments, the receiving unit is further configured to receive capability request information from the first electronic device;
[0073] The capability-sharing device may also include:
[0074] The second sending unit is used to send the extended capability information of the second electronic device to the first electronic device according to the capability request information.
[0075] Fifthly, this application provides an electronic device, which can be a first electronic device, and may include: a memory, a processor, a touch screen, and a communication module. The memory stores a computer program, which includes program instructions; the processor invokes the program instructions to cause the first electronic device to perform the following steps:
[0076] The second electronic device is designated as the primary device; the third electronic device is designated as the secondary device; the capability sharing information of the third electronic device is determined; the capability sharing information is sent to the second electronic device, which is used to instruct the second electronic device to use the capability corresponding to the capability sharing information of the third electronic device.
[0077] In conjunction with some embodiments of the fifth aspect, in some embodiments, the processor is further configured to acquire information about the third electronic device; the processor determines the capability sharing information of the third electronic device by: determining the capability sharing information of the third electronic device based on the information of the third electronic device.
[0078] In conjunction with some embodiments of the fifth aspect, in some embodiments, the processor is further configured to acquire information of the second electronic device, the information of the second electronic device including connection information of the second electronic device; and to establish a connection with the second electronic device using the connection information of the second electronic device through a communication module.
[0079] In conjunction with some embodiments of the fifth aspect, in some embodiments, the processor determines the second electronic device as the master device by: instructing the touch screen to display a first prompt message to prompt the user whether to determine the second electronic device as the master device; and when a first operation by the user in response to the first prompt message is detected, determining the second electronic device as the master device.
[0080] In conjunction with some embodiments of the fifth aspect, in some embodiments, the processor identifies the third electronic device as a secondary device by: instructing the touch screen to display a second prompt message to prompt the user whether to identify the third electronic device as the primary device; and when a second operation by the user in response to the second prompt message is detected, identifying the third electronic device as a secondary device.
[0081] In conjunction with some embodiments of the fifth aspect, in some embodiments, the information of the third electronic device includes shared capability information of the third electronic device, the shared capability information including information of one or more capabilities, and the processor determines the capability sharing information of the third electronic device based on the information of the third electronic device by: instructing the touch screen to display information of the one or more capabilities; and when detecting a user's selection instruction for some or all of the one or more capabilities, determining the information of the selected capability as capability sharing information.
[0082] In conjunction with some embodiments of the fifth aspect, in some embodiments, the information of the third electronic device includes the connection information of the third electronic device, and the sending of the capability sharing information to the second electronic device through the communication module includes: the processor determining the address information of the third electronic device based on the connection information of the third electronic device; and sending the address information and capability sharing information of the third electronic device to the second electronic device through the communication module, wherein the address information is used to establish a connection with the third electronic device.
[0083] In conjunction with some embodiments of the fifth aspect, in some embodiments, the processor acquires information about the second electronic device by: reading information about the second electronic device from the NFC via near-field communication (NFC); or by instructing a camera to scan a QR code containing information about the second electronic device to obtain the information about the second electronic device.
[0084] In conjunction with some embodiments of the fifth aspect, in some embodiments, the information of the second electronic device includes extended capability information, and sending the capability sharing information to the second electronic device via the communication module includes: when the extended capability information includes the capability sharing information, sending the capability sharing information to the second electronic device via the communication module.
[0085] In conjunction with some embodiments of the fifth aspect, in some embodiments, the communication module is further configured to send capability request information to the second electronic device; the communication module is further configured to receive extended capability information from the second electronic device; the sending of the capability sharing information to the second electronic device through the communication module includes: sending the capability sharing information to the second electronic device when the extended capability information includes the capability sharing information.
[0086] Sixthly, this application provides an electronic device, which can be a second electronic device, and the electronic device may include: a memory, a processor, and a communication module. The memory is used to store a computer program, the computer program including program instructions; the processor is used to invoke the program instructions, causing the first electronic device to perform the following steps:
[0087] The system receives capability sharing information from a third electronic device from a first electronic device via a communication module; and uses the capability corresponding to the capability sharing information in the capabilities of the third electronic device.
[0088] In conjunction with some embodiments of the sixth aspect, in some embodiments, receiving capability sharing information of a third electronic device from a first electronic device via a communication module includes: receiving address information and capability sharing information of a third electronic device from the first electronic device via the communication module; the communication module is also used to establish a connection with the third electronic device based on the address information.
[0089] In conjunction with some embodiments of the sixth aspect, in some embodiments, the communication module is further configured to send information of the second electronic device to the first electronic device via near field communication (NFC) of the second electronic device, the information of the second electronic device including connection information and / or expansion capability information of the second electronic device.
[0090] In conjunction with some embodiments of the sixth aspect, in some embodiments, the communication module is further configured to receive capability request information from the first electronic device; the processor, based on the capability request information, sends extended capability information of the second electronic device to the first electronic device through the communication module.
[0091] In a seventh aspect, embodiments of this application provide an electronic device, the electronic device including: a touch screen, a communication module, and one or more processors and a memory; the one or more processors are coupled to the touch screen, the communication module, and the one or more memories, the one or more memories being used to store computer program code, the computer program code including computer instructions, and the one or more processors calling the computer instructions to cause the electronic device to perform the method as described in the first aspect or any possible implementation of the first aspect.
[0092] Eighthly, embodiments of this application provide an electronic device comprising: a communication module, and one or more processors and a memory; the one or more processors being coupled to the communication module and the one or more memories, the one or more memories being used to store computer program code, the computer program code including computer instructions, and the one or more processors calling the computer instructions to cause the electronic device to perform the method as described in the second aspect or any possible implementation thereof.
[0093] Ninthly, this application provides a chip system applied to an electronic device, the chip system including one or more processors, the processors being configured to invoke computer instructions to cause the electronic device to perform the method described in the first aspect or any possible implementation thereof, or in the second aspect or any possible implementation thereof.
[0094] In a tenth aspect, this application provides a computer program product containing instructions that, when the computer program product is run on an electronic device, causes the electronic device to perform the method described in the first aspect or any possible implementation thereof, or in the second aspect or any possible implementation thereof.
[0095] In one aspect, this application provides a computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the first aspect or any possible implementation thereof, or in the second aspect or any possible implementation thereof.
[0096] Understandably, the capability-sharing device provided in the fourth aspect, the capability-sharing device provided in the fifth aspect, the electronic device provided in the seventh aspect, the electronic device provided in the eighth aspect, the chip system provided in the ninth aspect, the computer program product provided in the tenth aspect, and the computer storage medium provided in the eleventh aspect are all used to execute the methods provided in the first aspect and any possible implementation thereof, and in the second aspect and any possible implementation thereof. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here. Attached Figure Description
[0097] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0098] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of this application;
[0099] Figure 3A A schematic diagram of a home scene provided in an embodiment of this application;
[0100] Figure 3B A schematic diagram of an image captured by an electronic device, provided as an embodiment of this application;
[0101] Figures 4A-4C A set of schematic diagrams illustrating the NFC enabling interface provided in this application embodiment;
[0102] Figure 4D A schematic diagram of an electronic device touch provided in an embodiment of this application;
[0103] Figures 4E-4F A set of schematic diagrams illustrating the interface for setting up the main device provided in this application embodiment;
[0104] Figure 4G A schematic diagram illustrating another type of electronic device touch provided in an embodiment of this application;
[0105] Figures 4H-4I A schematic diagram of an interface providing a set of shared capabilities for embodiments of this application;
[0106] Figures 4J-4K A set of schematic diagrams illustrating the interface for opening HyperTerminal provided in the embodiments of this application;
[0107] Figures 5A-5E A set of schematic diagrams of a video call interface provided for embodiments of this application;
[0108] Figure 6 This is a flowchart illustrating a capability sharing method provided in an embodiment of this application. Detailed Implementation
[0109] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. The term "embodiment" as used herein means that a specific feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of this application. The appearance of this phrase in different places in the specification does not necessarily indicate the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0110] In the specification, claims, and accompanying drawings of this application, the terms "first," "second," "third," etc., are used to distinguish different objects, not to describe a specific order. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this application, unless otherwise stated, "multiple" means two or more. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, it may include a series of steps or units, or optionally, steps or units not listed, or other steps or units inherent to these processes, methods, products, or devices.
[0111] The first electronic device in this application embodiment can be a communication device such as a smartphone, tablet computer, or smartwatch, while the second and third electronic devices can be electronic devices such as webcams, smart TVs, robot vacuum cleaners, smart treadmills, and Bluetooth speakers.
[0112] Figure 1 A schematic diagram of the structure of the electronic device 100 is shown.
[0113] The following description uses electronic device 100 as an example to illustrate the embodiment. It should be understood that... Figure 1 The electronic device 100 shown is merely an example, and the electronic device 100 may have more than Figure 1 The more or fewer components shown can be combined into two or more components, or they can have different component configurations. The various components shown in the figure can 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] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0115] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0116] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0117] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0118] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0119] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0120] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), BLE broadcasting, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0121] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0122] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0123] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0124] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0125] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0126] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0127] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0128] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0129] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0130] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0131] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0132] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
[0133] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.
[0134] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover.
[0135] The 180E accelerometer can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices and applied to applications such as screen orientation switching and pedometers.
[0136] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0137] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0138] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords.
[0139] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the HarmonyOS system with a layered architecture as an example to illustrate the software structure of electronic device 100.
[0140] Figure 2 This is a software structure block diagram of the electronic device 100 provided in the embodiments of this application.
[0141] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the HarmonyOS system is divided into four layers, from top to bottom: the application layer, the application framework layer, the system service layer, and the kernel layer.
[0142] The application layer can include a series of system applications and third-party non-system applications. Applications based on the HarmonyOS system consist of one or more meta-programs (feature ability, FA) or meta-services (particle ability, PA). FA has a user interface (UI) to provide the ability to interact with the user; while PA has no UI and is used to provide the ability to run background tasks and a unified data access abstraction.
[0143] like Figure 2 As shown, system applications can include applications such as calendar, desktop, control bar, settings, and phone, while third-party applications can include applications such as Tencent Video, Weibo, Toutiao, and Youku Video.
[0144] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions.
[0145] like Figure 2 As shown, the application framework layer can include user program frameworks in multiple languages such as Java / C / C++ / JS, ability frameworks, UI frameworks (including Java UI frameworks for Java and JS UI frameworks for JS), and various multi-language framework APIs for software and hardware services.
[0146] The system service layer is the core capability set of the HarmonyOS system, which provides services to applications through the application framework layer.
[0147] like Figure 2 As shown, the system service layer may include a set of basic capability subsystems, a set of basic software service subsystems, a set of enhanced software service subsystems, a set of hardware service subsystems, etc.
[0148] The system's basic capability subsystems provide foundational capabilities for the operation, scheduling, and migration of distributed applications across multiple devices within the HarmonyOS system. These subsystems comprise distributed soft bus, distributed data management, distributed task scheduling, Ark multi-language runtime, common basic libraries, multi-modal input, graphics, security, and artificial intelligence (AI) subsystems. Among these, the Ark runtime provides C / C++ / JS multi-language runtimes and basic system class libraries, and also provides a runtime for Java programs statically generated using the Ark compiler (i.e., the parts of the application or framework layer developed using the Java language).
[0149] The basic software service subsystem provides common and general software services, consisting of subsystems such as event notification, telephone, multimedia, design for x (DFX) for each / specific stage of the product lifecycle, mobile sensing development platform (MSDP) & device virtualization (DV).
[0150] The Enhanced Software Services Subsystem provides differentiated enhanced software services for different devices, consisting of subsystems such as Smart Screen Dedicated Services, Wearable Dedicated Services, and Internet of Things (IoT) Dedicated Services.
[0151] The hardware service subsystem provides hardware services and consists of subsystems such as location services, biometric recognition, wearable proprietary hardware services, and IoT proprietary hardware services.
[0152] The kernel layer is the layer between hardware and software. Its main function is to act as a bridge between the two. The kernel layer can contain drivers for displays, cameras, audio, sensors, network cards, etc.
[0153] like Figure 2 As shown, the kernel layer can include the kernel subsystem, driver subsystem, and kernel abstraction layer, etc.
[0154] The kernel subsystem employs a multi-kernel design, supporting the selection of a suitable operating system (OS) kernel for different resource-constrained devices. The kernel abstraction layer (KAL) shields the differences between multiple kernels, providing basic kernel capabilities to higher layers, including process / thread management, memory management, file system, network management, and peripheral device management.
[0155] The driver subsystem includes the hardware driver foundation (HDF), which provides unified peripheral access capabilities and a framework for driver development and management.
[0156] The following example, using a scene of capturing a photograph, illustrates the workflow of the software and hardware of the electronic device 100.
[0157] When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the input event. Taking a single touch operation as an example, and the control corresponding to the single touch operation being the camera application icon, the camera application calls the interface of the application framework layer to launch the camera application, and then calls the kernel layer to launch the camera driver, capturing still images or videos through camera 193.
[0158] The software systems of the second and third electronic devices can adopt layered architectures, event-driven architectures, microkernel architectures, and microservice architectures. The various embodiments of this application can be arbitrarily combined to achieve different technical effects. Please refer to the software systems of the second and third electronic devices for details. Figure 2 The embodiments described in this application will not be repeated here.
[0159] The following describes a capability sharing method based on an application scenario.
[0160] like Figure 3A As shown, this exemplary home scenario 30 includes electronic device 100 (smartphone), electronic device 200 (smart TV), and electronic device 300 (webcam). Electronic devices 100, 200, and 300 all have NFC functionality and can all connect to router 305; therefore, they can be on the same local area network. Electronic device 200 can be controlled via remote control 304. Remote control 304 includes an "OK" button 311. Electronic device 300 can capture video footage, with the captured image range as shown... Figure 3A As shown by the two dashed lines. Please refer to [link / reference]. Figure 3B , Figure 3B It is a shot taken by electronic device 300 at a certain moment.
[0161] Before making a video call using electronic device 200, the user can control electronic device 100 to approach (e.g., touch) electronic device 200, specifically by bringing the NFC sensing area 301 of electronic device 100 close to the NFC sensing area 302 of electronic device 200. Similarly, the user can bring electronic device 100 close to the NFC sensing area 303 of electronic device 300. Afterward, electronic device 200 can utilize the camera function of electronic device 300. Therefore, when making a video call using electronic device 200, electronic device 200 can capture video footage captured by electronic device 300. Electronic device 200 can then send the captured video footage to the other electronic device in the video call and can also display the video footage on its own screen.
[0162] For example, such as Figure 4A As shown, the electronic device 100 can display a user interface 40, which displays a page containing application icons. This page can include multiple application icons (e.g., weather app icon, stock app icon, calculator app icon, settings app icon 401, email app icon, gallery app icon, music app icon, video app icon, browser app icon, etc.). Below the multiple application icons, a page indicator is also displayed to indicate the positional relationship between the currently displayed page and other pages. Below the page indicator are multiple tray icons (e.g., dialer app icon, messaging app icon, contacts app icon, camera app icon), which remain displayed when switching pages. In some embodiments, the page can also include multiple application icons and a page indicator. The page indicator may not be part of the page and may exist independently. The aforementioned image icons are also optional, and this embodiment does not impose any limitations on this.
[0163] Electronic device 100 can receive user input (e.g., clicking) on settings application icon 401, and in response to the input, electronic device 100 can display, for example... Figure 4B The user interface 41 shown.
[0164] like Figure 4B As shown, the user interface 41 may include an NFC control 411. The user interface 41 may also include NFC function status information, indicating whether the NFC function is enabled or disabled. At this time, the NFC function of the electronic device 100 is disabled.
[0165] Electronic device 100 can receive input operations (such as clicks) from users on NFC control 411, and in response to such input operations, electronic device 100 can display, for example, Figure 4C The user interface shown is 42.
[0166] like Figure 4C As shown, the user interface 42 may include an NFC switch control 421. When electronic device 100 detects an input operation (e.g., a click) on the NFC switch control 421, in response to the input operation, electronic device 100 can activate the NFC function. Afterwards, electronic device 100 can touch electronic device 200 to exchange data. For example, electronic device 100 can read data from the NFC tag of electronic device 200.
[0167] like Figure 4D As shown, the NFC sensing area 301 of electronic device 100 can be brought close to (e.g., touched) the NFC sensing area 302 of electronic device 200. In response to this touch operation, electronic device 100 can display as shown in the image. Figure 4E The user interface shown is 43.
[0168] like Figure 4E As shown, the user interface 43 is the main device selection interface, which is used to select whether to set the currently touched electronic device as the main device. The user interface 43 may include a "Yes" confirmation control 431 and a "No" confirmation control. The "Yes" confirmation control 431 is used to set the currently touched electronic device as the main device, and the "No" confirmation control is used to set the currently touched electronic device as the secondary device.
[0169] Electronic device 100 can receive user input (e.g., a click) on the "Yes" confirmation control 431. In response to this input, electronic device 100 can set electronic device 200 as the master device of HyperTerminal and can display, for example... Figure 4F The user interface shown is 44.
[0170] like Figure 4F As shown, the user interface 44 is a HyperTerminal interface, which may include an icon 441 for the main device, i.e., the icon for the electronic device 200. The user interface 44 may also include a toggle control 442 for the main device, which can be used to turn the main device on or off. The user interface 44 may also include a HyperTerminal icon 443. When the toggle control 442 for the main device is on, it indicates that the current HyperTerminal's main device is active and can use the capabilities shared by other secondary devices. When the toggle control 442 for the main device is off, it indicates that the current HyperTerminal's main device has been removed, i.e., deleted. Other secondary devices can be set as the HyperTerminal's main device, or the electronic device 100 can, upon detecting another electronic device with NFC enabled, respond to user input (such as a click) and set it as the main device.
[0171] A super terminal can be understood as a virtual electronic device consisting of a main device and a secondary device. The main device can use some or all of the capabilities shared by the secondary device. At the same time, a super terminal can also be understood as a distributed electronic device that spans multiple devices.
[0172] like Figure 4G As shown, the NFC sensing area 301 of the electronic device 100 can also be brought close to (e.g., touched) the NFC sensing area 303 of the electronic device 300. In response to this touch operation, the electronic device 100 can display as shown in the image. Figure 4H The user interface shown is 45.
[0173] like Figure 4H As shown, the user interface 45 is a device function selection interface, used to select the function that the currently touched electronic device needs to share. The user interface 45 may include one or more capability selection controls 451, and may also include a continue sharing control and a complete sharing control 452. The capability selection control 451 is used to select the capability that the electronic device needs to share.
[0174] Electronic device 100 can receive user input (e.g., a click) on capability selection control 451, and in response to the input, capability selection control 451 of electronic device 100 can display, as shown in the image. Figure 4H The checkmark shown indicates that the camera capability of electronic device 300 is selected so that the main device can use the camera capability, that is, electronic device 200 uses the camera capability.
[0175] Subsequently, electronic device 100 can receive user input operations (e.g., clicks) to complete shared control 452. In response to this input operation, electronic device 100 can set electronic device 300 as a secondary device 1 of HyperTerminal, and can display, for example... Figure 4I The user interface 46 is shown. When the electronic device detects an input operation (e.g., a click) for the continue sharing control, in response to the input operation, the electronic device 100 can set the electronic device 300 as a secondary device 1 of the hyperterminal, and can continue to detect other nearby electronic devices equipped with NFC.
[0176] like Figure 4IAs shown, the user interface 46 may include an icon 461 for the secondary device 1, which is also the icon for the electronic device 300. The user interface 46 may also include a switch control 462 for the secondary device 1, which can be used to turn the secondary device 1 on or off. The user interface 46 may also include capability information 463 shared by the electronic device 300. When the switch control 462 for the secondary device 1 is in the on state, it indicates that the secondary device 1 of the current super terminal is in the on state, and the main device of the current super terminal can use the capabilities shared by the secondary device 1. When the switch control 462 for the secondary device 1 is in the off state, it indicates that the secondary device 1 of the current super terminal has been removed, that is, deleted. Afterwards, the main device of the super terminal cannot use the capabilities shared by the secondary device 1.
[0177] Figure 4J This refers to user interface 40. The textual description of user interface 40 can be found above. Figure 4A The relevant descriptions will not be repeated here.
[0178] Electronic device 100 can receive user input operations (such as pull-down) on the status bar, and in response to the input operation, electronic device 100 can display, for example, Figure 4K The user interface shown is 47.
[0179] like Figure 4K As shown, the user interface 47 may include a HyperTerminal control 471. This HyperTerminal control is used to open the HyperTerminal terminal previously formed by electronic devices 200 and 300.
[0180] Electronic device 100 can receive user input operations (e.g., clicks) on HyperTerminal control 471, and in response to such input operations, electronic device 100 can display, for example... Figure 4I The user interface shown is 46.
[0181] like Figure 5A As shown, the electronic device 200 may display a user interface 50, which displays a page containing application icons. This page includes multiple application icons (e.g., gallery application icon, video application icon, settings application icon, video dialer application icon 501, music application icon, etc.). In some embodiments, the page may also include multiple application icons, and the image icons are optional; this application embodiment does not impose any limitations on this.
[0182] like Figure 5A As shown, the selection box 502 has selected the video dialing application icon 501. The electronic device 200 can receive input operations (e.g., pressing) from the user on the OK button 311 of the remote control; in response to this input operation, the electronic device 200 can display... Figure 5BThe user interface 51 shown may include contact options, recent calls options, dialing options 511, and settings options.
[0183] like Figure 5B As shown, the dialing option is selected in selection box 511. The dialing area can be displayed on the right side of the user interface 51, including number icons, a number display area, and delete and clear icons. When the electronic device 200 detects user input on the number icons (e.g., pressing the OK control on the remote control), in response to this input, the electronic device 200 displays the characters entered by the user using the remote control 305 in the number display area, such as... Figure 5C The user interface shown is 52.
[0184] like Figure 5C As shown, the user interface 52 includes a user-inputted number used for video calls with a corresponding electronic device. The user interface 52 also includes a video dialing control 521.
[0185] like Figure 5C As shown, selection box 522 has selected video dial control 521. Electronic device 200 can receive input operations (e.g., pressing) from the user on the OK button 311 of the remote control; in response to this input operation, electronic device 200 can display... Figure 5D The user interface shown is 53.
[0186] like Figure 5D As shown, the user interface 53 may include a video display area 531, a user avatar 532, a cancel control, and a control to switch to voice call. The video image displayed in the video display area 531 is... Figure 3A The video image shown is the video image captured in real time by the electronic device 300.
[0187] Once the dialing user accepts the video invitation, the electronic display can show, for example: Figure 5E The user interface shown is 54.
[0188] like Figure 5E As shown, the user interface 54 may include a first video display area 541 and a second video display area 542. The first video display area 541 may display video images captured in real time by the electronic device 300, and the second video display area 542 may display video images captured in real time by the dial-up user's camera.
[0189] After a video call ends, the user can use electronic device 100 to remove both the primary and secondary devices of the super terminal. Specifically, electronic device 100 can receive input operations (e.g., a click) from the user on the switch control 462 of the secondary device 1. In response to this input operation, electronic device 100 can remove the current secondary device 1 from the super terminal. Afterward, the primary device of the super terminal cannot use the capabilities shared by the secondary device 1, meaning electronic device 200 cannot continue to use the camera capabilities of electronic device 300. Electronic device 100 can also receive input operations (e.g., a click) from the user on the switch control 442 of the primary device. In response to this input operation, electronic device 100 can remove the current primary device of the super terminal. Afterward, electronic device 200 cannot continue to use the camera capabilities of electronic device 300.
[0190] The capability sharing method provided by the embodiments of this application is described in detail below with reference to the accompanying drawings.
[0191] Please see Figure 6 , Figure 6 This is a flowchart illustrating a capability-sharing method provided in an embodiment of this application. Figure 6 In this embodiment, when a user needs a third electronic device to share capabilities with a second electronic device, the first electronic device can designate the second electronic device as the primary device, and the first electronic device can also designate the third electronic device as the secondary device. Furthermore, the first electronic device can determine the capability-sharing information of the third electronic device and then send this information to the second electronic device. This allows the second electronic device, upon receiving the capability-sharing information from the first electronic device, to utilize the capabilities corresponding to the capability-sharing information in the third electronic device's capabilities.
[0192] For example, the first electronic device can be the electronic device 100 in the above embodiments, the second electronic device can be the electronic device 200 in the above embodiments, and the third electronic device can be the electronic device 300 in the above embodiments. The capability sharing process will now be described in detail:
[0193] 601: The first electronic device acquires information from the second electronic device.
[0194] When a user needs a third electronic device to share capabilities with a second electronic device, the user can control the first electronic device to obtain information from the second electronic device. This information may include the second electronic device's connection information. This connection information can be the second electronic device's address information, its identification information, or other information that can be used for connection. The address information can be an Internet Protocol (IP) address, a Media Access Control (MAC) address, or other information used to represent an address. The identification information can be a device identifier or other unique identifiers for the electronic device.
[0195] In one scenario, a user can move a first electronic device closer to a second electronic device. When the distance between the first and second electronic devices is less than or equal to a first threshold, the first electronic device can read information from the second electronic device via NFC. That is, when the user moves the first electronic device to touch the second electronic device, the first electronic device can obtain information from the second electronic device via NFC.
[0196] A first electronic device can use NFC to detect whether other electronic devices equipped with NFC exist within a first threshold range. When the distance between the first and second electronic devices is less than or equal to the first threshold, the first electronic device can detect the second electronic device equipped with NFC, meaning it can discover the NFC tag of the second electronic device. Subsequently, the first electronic device can read the stored information of the second electronic device from its NFC tag via NFC. Correspondingly, the second electronic device can send its own information to the first electronic device via NFC. The first threshold is the maximum NFC sensing distance between the two electronic devices, which is also the maximum distance at which data exchange can occur between them. The magnitude of the first threshold is related to the hardware of the electronic device (such as a chip) and the surrounding environment (such as magnetic field strength). Therefore, the information of the second electronic device can be pre-stored in its NFC tag for easy reading by other electronic devices.
[0197] For example, the first electronic device touching the second electronic device can be as described above. Figure 4D In the embodiment, the electronic device 100 responds to a touch operation (e.g., contact) of the electronic device 200.
[0198] When the connection information of the second electronic device is its identification information, the first electronic device can determine the address information of the second electronic device based on its identification information. Specifically, the first electronic device can locally store electronic device information data, which may include the identification information of the electronic device and the corresponding address information of the electronic device, that is, it stores the correspondence between the identification information and the address information of the electronic device. Therefore, the first electronic device can find the locally stored address information of the second electronic device based on its identification information.
[0199] For example, the first electronic device stores an electronic device information data table, as shown in Table 1. Each row of the table includes the identification information of an electronic device (such as an electronic product code (EPC)) and the address information of the corresponding electronic device (such as an IP address). The EPC is a set of numbers consisting of a version number and three other data segments (domain name, object type, and serial number, in that order). The version number identifies the version of the EPC; different EPC versions correspond to different EPC lengths or types. The domain name describes the manufacturer associated with this EPC number, such as "Huawei Corporation." The object type records the precise type information of the product, such as "Huawei P40 (a product of Huawei Corporation)." The serial number uniquely identifies a product of a specific product type; therefore, the serial number specifically indicates which Huawei P40 it is. The identification information in Table 1 is encoded using the EPC-96Ⅰ type encoding structure, containing 96 binary bits. The first 8 bits are the EPC version number, bits 9-36 are the domain name, bits 37-60 are the object type, and bits 61-96 are the serial number. The identification information shown in Table 1 is in hexadecimal representation. The first electronic device can compare its identification information with the identification information of each electronic device in the electronic device information data table. If they match, it indicates that they are the same electronic device, and the address information in that row can be determined as the address information of that electronic device. For example, if the identification information of the second electronic device is "010000F7900016F000169D2A", when the first electronic device compares the identification information of the second electronic device with the identification information in Table 1, it can determine that the information corresponding to the second row in Table 1 is the relevant information of the second electronic device. Therefore, the address information of the second electronic device can be determined as "135.66.34.22".
[0200] Identification information Address Information 010000A8900016F000169DC0 120.24.65.13 010000F7900016F000169D2A 135.66.34.22 010003F0000016C000178CC0 201.23.42.56 … … 010000C6100015A000157AB0 212.35.32.12
[0201] Table 1
[0202] The information of the second electronic device may also include capability information. This capability information may include extended capability information and shared capability information. Shared capability information may include information on one or more capabilities, and extended capability information may also include information on one or more capabilities. The shared capability information of the second electronic device indicates the capabilities that the second electronic device can provide to other electronic devices. The extended capability information of the second electronic device indicates the extended capabilities that the second electronic device can support, that is, it indicates which capabilities provided by other electronic devices the second electronic device can use.
[0203] For example, assuming the first electronic device is a smart TV, its sharing capabilities can include display capabilities (screen), audio capabilities (speakers), etc., and its extended capabilities can include camera capabilities (such as webcams), audio capabilities (such as Bluetooth speakers), etc. That is, a smart TV can share its display and audio capabilities with other electronic devices, such as with other mobile terminals. Furthermore, a smart TV can extend its own capabilities, for example, by using the camera capabilities of a webcam and the audio capabilities of a Bluetooth speaker.
[0204] If the information of the second electronic device does not include its capability information, the first electronic device can first establish a connection with the second electronic device based on its address information, and then send capability request information to the second electronic device. Correspondingly, the second electronic device can receive the capability request information from the first electronic device, and then send its own capability information to the first electronic device based on the capability request information. Correspondingly, the first electronic device can receive the capability information from the second electronic device. The aforementioned capability information of the second electronic device may include its extended capability information, and may also include its shared capability information.
[0205] It is understandable that, since the address information of the second electronic device can be an IP address or a MAC address, the first electronic device and the second electronic device can connect through wireless fidelity (WIFI) peer-to-peer (P2P), Bluetooth, transmission control protocol (TCP), etc.
[0206] In the case where the information of the second electronic device does not include its capability information, and the connection information of the second electronic device is its identification information, the first electronic device can determine the capability information of the second electronic device based on its identification information. Specifically, the first electronic device can locally store electronic device information data, which may include the identification information of the electronic device and the corresponding capability information of the electronic device, that is, it stores the correspondence between the identification information and the capability information of the electronic device. Therefore, the first electronic device can find the locally stored capability information of the second electronic device based on its identification information.
[0207] For example, the first electronic device stores an electronic device information data table, as shown in Table 2. Each row of the table includes the identification information (e.g., EPC) of an electronic device and the corresponding capability information of the electronic device. The identification information in Table 2 is encoded using the EPC-96Ⅰ type encoding structure, and the identification information shown in Table 2 is in hexadecimal representation. The first electronic device can compare the identification information of an electronic device with the identification information of each row in the electronic device information data table. If they are the same, it indicates that they are the same electronic device, and thus the capability information of that row can be determined as the capability information of that electronic device. Assuming that the identification information of the second electronic device is "010000F7900016F000169D2A", when the first electronic device compares the identification information of the second electronic device with the identification information in Table 2, it can determine that the information corresponding to the second row in Table 2 is the relevant information of the second electronic device. Therefore, the capability information of the second electronic device can be determined as "camera capability, storage capability".
[0208] Identification information Capability Information 010000A8900016F000169DC0 Display capabilities 010000F7900016F000169D2A Camera capabilities and storage capabilities 010003F0000016C000178CC0 computing power … … 010000C6100015A000157AB0 Storage capacity
[0209] Table 2
[0210] After the first electronic device obtains information from the second electronic device, it can display a first prompt message asking the user whether to designate the second electronic device as the primary device. For example, it can display a primary device selection interface, which includes information on whether to set the touch device as the primary device, as well as "yes" and "no" confirmation controls for the user to choose from. The user can choose whether to set the second electronic device as the primary device according to their actual needs. When the first electronic device detects the user's first operation in response to the first prompt message, it can designate the second electronic device as the primary device. For example, when the first electronic device detects the first operation in response to the primary device selection interface, i.e., when it detects the first operation to designate the second electronic device as the primary device, the first electronic device can respond to the first operation, designate the second electronic device as the primary device of the HyperTerminal, and display the HyperTerminal interface. The primary device selection interface can be as described above. Figure 4EThe user interface 43 is shown. The HyperTerminal interface may include the icon of the main device and the power switch controls for the main device.
[0211] The first operation can be directed at the above. Figure 4E In the illustrated embodiment, for operations such as clicking or double-clicking the "Yes" confirmation control 431, the HyperTerminal interface can be as described above. Figure 4F The user interface 44 in the illustrated embodiment. After the first electronic device detects an input operation (e.g., a click) to the "Yes" confirmation control 431, in response to the input operation, the first electronic device can set the electronic device 200 as the host device of the HyperTerminal, and can display, as shown in the example. Figure 4F The user interface shown is 44.
[0212] A super terminal can be understood as a virtual electronic device composed of a master device and a slave device. The master device can use some or all of the capabilities shared by the slave devices. Furthermore, a super terminal can also be understood as a distributed electronic device that spans multiple devices. In this embodiment, the super terminal is a virtual terminal composed of a second electronic device and a third electronic device, where the second electronic device is the master device and the third electronic device is the slave device.
[0213] In some embodiments, a QR code corresponding to the second electronic device can be pre-generated, that is, a QR code containing information about the second electronic device. This QR code can then be displayed on a screen or printed. A user can operate a first electronic device to scan the QR code containing the information of the second electronic device, allowing the first electronic device to obtain that information. The QR code can be distinguished by different arrangements of black and white squares, each arrangement corresponding to a unique target. Black squares can represent "1", and white squares can represent "0". Therefore, a QR code can essentially be seen as a sequence of "0" and "1". Each QR code encoding method has its specific character set, each character occupies a certain width, and has certain verification functions. Commonly used QR code encoding methods include data matrix (DM) codes and quick response (QR) codes. Therefore, the QR code corresponding to the second electronic device can include information about the second electronic device or be encoded based on that information, so that other electronic devices can decode and obtain the information of the second electronic device by scanning the QR code.
[0214] 602: The first electronic device obtains information from the third electronic device.
[0215] When a user requires a third electronic device to share capabilities with a second electronic device, the first electronic device can obtain information from the third electronic device. The process by which the first electronic device obtains information from the third electronic device is the same as the process by which it obtains information from the second electronic device; therefore, the relevant description in step 601 can be referred to, and will not be elaborated upon here.
[0216] The information of the third electronic device may include its connection information, its sharing capability information, and its expansion capability information. The connection information, sharing capability information, and expansion capability information of the third electronic device are similar to those of the second electronic device; therefore, please refer to the relevant description in step 601, which will not be elaborated upon here.
[0217] The first electronic device can determine the address information of the third electronic device based on the connection information of the third electronic device. For a detailed description, please refer to the above description regarding determining the address information of the second electronic device based on its connection information.
[0218] In the absence of a primary device, after the first electronic device acquires information from the third electronic device, it can display a second prompt message asking the user whether to designate the third electronic device as the primary device. For example, a primary device selection interface can be displayed, including information on whether to set the touch device as the primary device, as well as "yes" and "no" confirmation controls for the user to choose from. The user can choose whether to set the third electronic device as the primary device according to their actual needs. When the first electronic device detects a second operation by the user in response to the second prompt message, it can designate the third electronic device as a secondary device. That is, when the first electronic device detects a second operation in response to the primary device selection interface, i.e., a second operation to designate the third electronic device as a secondary device, the first electronic device can respond to the second operation, designate the third electronic device as a secondary device of the HyperTerminal, and display the HyperTerminal interface. The primary device selection interface can be as described above. Figure 4E The user interface 43 is shown. The HyperTerminal interface may include icons for secondary devices, as well as on / off controls for the secondary devices.
[0219] The second operation can be directed at the above. Figure 4E The illustrated embodiment includes click, double-click, and other operations on the "No" confirmation control. After the first electronic device detects an input operation (e.g., a click) on the "No" confirmation control, in response to the input operation, the first electronic device can set the electronic device 300 as a secondary device of the HyperTerminal.
[0220] When the first electronic device has already designated the second electronic device as the primary device and has acquired information about the third electronic device, or when the first electronic device has acquired information about the third electronic device and designated the third electronic device as a secondary device, the first electronic device can display information about one or more capabilities included in the shared capability information of the third electronic device. For example, it can display a device function selection interface, which may include one or more capability selection controls, a continue sharing control, and a complete sharing control. The user can select the capability that the third electronic device needs to share with the second electronic device from the displayed information about one or more capabilities, according to actual needs. When the first electronic device detects a user's selection instruction for some or all of the capabilities included in the shared capability information of the third electronic device, it can determine the selected capability information as capability sharing information. For example, when the first electronic device detects a third operation on the device function selection interface, i.e., when it detects a third operation for determining capability sharing information, the first electronic device can respond to the third operation and determine the selected capability information as capability sharing information. The capability sharing information includes some or all of the capability information in the shared capability information of the third electronic device selected by the user. The device function selection interface can be as described above. Figure 4H User interface 45 in the illustrated embodiment.
[0221] The third operation can be as described above. Figure 4H The illustrated embodiment represents an input operation (e.g., a click) to the capability selection control 451. After the first electronic device detects an input operation (e.g., a click) to the capability selection control 451, in response to the input operation, the capability selection control 451 can display as follows: Figure 4H "√" shown.
[0222] If the first electronic device does not designate the third electronic device as a secondary device, but detects a fourth operation on the device function selection interface (i.e., a fourth operation to confirm completion of sharing), the first electronic device can respond to the fourth operation, designate the third electronic device as a secondary device of the HyperTerminal, and display the HyperTerminal interface. The HyperTerminal interface may include icons for the primary and secondary devices, as well as power controls for the primary and secondary devices.
[0223] The fourth operation can be as described above. Figure 4H In the illustrated embodiment, for completing an input operation (e.g., clicking) on the shared control 452, the HyperTerminal interface can be as described above. Figure 4IThe user interface 46 in the illustrated embodiment. After the first electronic device detects an input operation (e.g., a click) to complete the shared control 452, in response to the input operation, the first electronic device can set the electronic device 300 as a secondary device of the HyperTerminal, and can display, as shown in the example... Figure 4I The user interface shown is 46.
[0224] As can be seen, the first electronic device can receive user input, allowing the user to select the capabilities that the third electronic device needs to share with the second electronic device. Therefore, users can freely build virtual super terminals according to their needs, thereby expanding the capabilities and usage scenarios of individual electronic devices based on actual requirements.
[0225] Step 601 can be performed before or after step 602.
[0226] 603: The first electronic device sends the address information and capability sharing information of the third electronic device to the second electronic device.
[0227] Accordingly, the second electronic device can receive address information and capability sharing information from the third electronic device from the first electronic device.
[0228] Since electronic devices cannot use the capabilities of other electronic devices that they do not support for extension, when the capability information of the second electronic device includes its extension capability information, and before the first electronic device sends the address information and capability sharing information of the third electronic device to the second electronic device, the first electronic device can first determine whether the extension capability information of the second electronic device includes capability sharing information. If it is determined that the extension capability information of the second electronic device does not include capability sharing information, it indicates that the second electronic device does not support the capabilities shared by the third electronic device. Therefore, the first electronic device can choose not to send the address information and capability sharing information of the third electronic device to the second electronic device, reducing the transmission of unnecessary information and thus reducing the power consumption of the first electronic device. If it is determined that the extension capability information of the second electronic device includes capability sharing information, it indicates that the second electronic device supports extending the capabilities of the user-selected third electronic device, and the first electronic device can send the address information and capability sharing information of the third electronic device to the second electronic device.
[0229] It is evident that the first electronic device sends the address information and capability sharing information of the third electronic device to the second electronic device only when the capability of the third electronic device selected by the user is an extended capability supported by the second electronic device, that is, when the extended capability information of the second electronic device includes capability sharing information. This ensures that after the second electronic device establishes a connection with the third electronic device, the second electronic device can use the capabilities of the third electronic device included in the capability sharing information.
[0230] When the capability of the third electronic device selected by the user is an extended capability supported by the second electronic device, the first electronic device can directly send capability sharing information to the second electronic device. This allows the second electronic device to directly use the capability corresponding to the capability sharing information in the third electronic device's capabilities. Alternatively, the first electronic device can send capability sharing information to the second electronic device only after the user confirms that they can use the capability corresponding to the capability sharing information in the third electronic device's capabilities. Specifically, the first electronic device can first send a notification message to the third electronic device, which includes the capabilities of the third electronic device included in the capability sharing information. Correspondingly, the third electronic device can receive the notification message from the first electronic device and then output a prompt message to the user asking whether to share the capabilities of the third electronic device included in the notification message. The user can choose whether to share their own capabilities included in the prompt message based on the actual situation and perform the corresponding operation based on the prompt message. When the third electronic device detects a confirmation operation on the prompt message, indicating that the third electronic device allows other electronic devices to use its own capabilities included in the notification message, it can send a confirmation sharing message to the first electronic device. Correspondingly, the first electronic device can receive the confirmation sharing message from the third electronic device and then send the address information and capability sharing information of the third electronic device to the second electronic device based on the confirmation sharing message.
[0231] When a third electronic device detects a rejection operation in response to the notification message, it indicates that other electronic devices are not allowed to use its capabilities included in the notification message. Therefore, the third electronic device can send a rejection sharing message to the first electronic device or not send any message. In one scenario, when the third electronic device detects a rejection operation in response to the notification message, it can send a rejection sharing message to the first electronic device. Accordingly, the first electronic device can receive the rejection sharing message from the third electronic device and then, based on the rejection sharing message, not send the third electronic device's address information and capability sharing information to the second electronic device, reducing unnecessary information transmission and thus lowering the first electronic device's power consumption. Furthermore, this avoids the situation where, after establishing a connection with the third electronic device, the second electronic device is unable to use the capabilities of the third electronic device included in the capability sharing information. In another scenario, when the third electronic device detects a rejection operation in response to the notification message, it can choose not to send any message to the first electronic device. Accordingly, the first electronic device will not receive any information from the third electronic device. Therefore, if the first electronic device does not receive any information from the third electronic device for a period of time, the first electronic device can determine that the third electronic device is not sharing its capabilities included in the notification message and can therefore not send the third electronic device's address information and capability sharing information to the second electronic device.
[0232] Therefore, the first electronic device can send the address information and capability sharing information of the third electronic device to the second electronic device only after receiving the confirmation sharing information from the third electronic device. This reduces unnecessary information transmission and thus lowers the power consumption of the first electronic device. Furthermore, it ensures that after the second electronic device establishes a connection with the third electronic device based on its address information, it can utilize the capabilities of the third electronic device included in the capability sharing information.
[0233] 604: The second electronic device establishes a communication connection with the third electronic device based on the address information of the third electronic device, and uses the capabilities corresponding to the capability sharing information in the capabilities of the third electronic device.
[0234] After the second electronic device receives the address information and capability sharing information of the third electronic device from the first electronic device, the second electronic device can establish a communication connection with the third electronic device based on the address information of the third electronic device. In addition, the second electronic device can also determine the capabilities of the third electronic device that can be used, and use the corresponding capabilities of the third electronic device, based on the capability sharing information of the third electronic device.
[0235] After the second electronic device establishes a communication connection with the third electronic device, the second electronic device can communicate bidirectionally with the third electronic device, and thus the second electronic device can use the capabilities corresponding to the capability sharing information of the third electronic device. For example, assuming the second electronic device can use the storage capacity of the third electronic device, the second electronic device can first send a request message to the third electronic device. Accordingly, after receiving the request message from the second electronic device, the third electronic device can send the locally available storage space address to the second electronic device according to the request message. Therefore, after receiving the storage space address from the third electronic device, the second electronic device can send the data that needs to be stored to the third electronic device, and can also indicate the storage space address. Accordingly, when the third electronic device receives the data from the second electronic device, it can store the data in the corresponding address space. Then, when the second electronic device needs to retrieve the data stored in the storage space of the third electronic device, the second electronic device can send a data request message to the third electronic device, and the data request message can include the storage space address. Accordingly, after receiving the data request message from the second electronic device, the third electronic device can retrieve the data in the corresponding storage space according to the storage space address included in the data request message and send it to the second electronic device. Accordingly, the second electronic device can receive the data from the third electronic device.
[0236] For example, such as Figures 5A to 5E As shown, when electronic device 200 supports extended capabilities including camera capabilities, and the user selects electronic device 300 to share its camera capabilities with electronic device 200, then electronic device 200 can use the camera capabilities of electronic device 300. For example, when using electronic device 200 for a video call, electronic device 200 can acquire the video footage captured by electronic device 300 and display the captured video footage on its own screen.
[0237] In some embodiments, after the second electronic device receives address information and capability sharing information from the third electronic device from the first electronic device, it can display a HyperTerminal interface. The HyperTerminal interface may include icons for the main device and the secondary device, as well as power controls for the main device and the secondary device. The HyperTerminal interface can be as described above. Figure 4I User interface 46 in the illustrated embodiment.
[0238] It should be understood that this application can also enable the formation of a super terminal by three or more electronic devices. For example, embodiments of this application may further include a fourth electronic device. After the user controls the first electronic device to form a super terminal by combining the second and third electronic devices, the user can also control the first electronic device to obtain information from the fourth electronic device, and can set the fourth electronic device as a secondary device of the super terminal. The description of the fourth electronic device is similar to that of the third electronic device, and can be referred to the above description of the third electronic device, which will not be repeated in detail here. It is understood that when a super terminal includes multiple secondary devices, it is possible to more effectively utilize some or all of the capabilities of a single electronic device, and it can be applied to more application scenarios.
[0239] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive, Solid State Disk).
[0240] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0241] In summary, the above description is merely an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made according to the disclosure of the present invention should be included within the scope of protection of the present invention.
Claims
1. A capability sharing method, the method being applied to a first electronic device, characterized in that, The method comprises: obtaining information of a second electronic device, the information of the second electronic device comprising connection information of the second electronic device; establishing a connection with the second electronic device using the connection information of the second electronic device; determining the second electronic device as a master device by the first electronic device; determining a third electronic device as a slave device; determining capability sharing information of the third electronic device; sending the capability sharing information to the second electronic device, the capability sharing information being used to instruct the second electronic device to use a capability corresponding to the capability sharing information in the capability of the third electronic device; the obtaining of the information of the second electronic device comprises: reading the information of the second electronic device from a near field communication (NFC) of the second electronic device by the first electronic device through NFC; or, obtaining the information of the second electronic device by scanning a two-dimensional code comprising the information of the second electronic device by the first electronic device.
2. The method of claim 1, wherein, The method further comprises: obtaining information of the third electronic device; the determining of the capability sharing information of the third electronic device comprises: determining the capability sharing information of the third electronic device according to the information of the third electronic device.
3. The method of claim 1, wherein, The determining of the second electronic device as a master device comprises: displaying first prompt information for prompting a user whether to determine the second electronic device as a master device; determining the second electronic device as a master device when detecting a first operation of the user to the first prompt information.
4. The method of claim 1, wherein, The determining of the third electronic device as a slave device comprises: displaying second prompt information for prompting a user whether to determine the third electronic device as a master device; determining the third electronic device as a slave device when detecting a second operation of the user to the second prompt information.
5. The method of claim 2, wherein, The information of the third electronic device comprises shared capability information of the third electronic device, the shared capability information comprising information of one or more capabilities, and the determining of the capability sharing information of the third electronic device according to the information of the third electronic device comprises: displaying the information of the one or more capabilities; determining information of selected capabilities as the capability sharing information when detecting a selection instruction of the user to part or all of the one or more capabilities.
6. The method according to any one of claims 2-5, characterized in that, The information of the third electronic device comprises connection information of the third electronic device, and the sending of the capability sharing information to the second electronic device comprises: determining address information of the third electronic device according to the connection information of the third electronic device; sending the address information of the third electronic device and the capability sharing information to the second electronic device, the address information being used to establish a connection with the third electronic device.
7. The method according to any one of claims 1 to 5, characterized in that, The information of the second electronic device comprises extended capability information, and the sending of the capability sharing information to the second electronic device comprises: sending the capability sharing information to the second electronic device in a case where the extended capability information comprises the capability sharing information.
8. The method according to any one of claims 1 to 5, characterized in that, The method further comprises: sending capability request information to the second electronic device; receiving extended capability information from the second electronic device; The sending of the capability sharing information to the second electronic device comprises: In the case that the extended capability information comprises the capability sharing information, the capability sharing information is sent to the second electronic device.
9. A capability sharing method, characterized by, The method is applied to a second electronic device, comprising: In the case that a first electronic device requests to read information of the second electronic device from the second electronic device through near field communication (NFC), the information of the second electronic device is sent to the first electronic device through the NFC of the second electronic device; or a two-dimensional code of the information of the second electronic device is provided to the first electronic device; the two-dimensional code is used for the first electronic device to scan to obtain the information of the second electronic device; The second electronic device receives capability sharing information of a third electronic device from a first electronic device; the capability sharing information is used to indicate that the second electronic device uses a capability corresponding to the capability sharing information in the capability of the third electronic device; The capability corresponding to the capability sharing information in the capability of the third electronic device is used.
10. The method of claim 9, wherein, The receiving of the capability sharing information of the third electronic device from the first electronic device comprises: The address information and the capability sharing information of the third electronic device are received from the first electronic device; The method further comprises: The connection with the third electronic device is established according to the address information.
11. The method according to claim 9 or 10, characterized in that, The information of the second electronic device comprises connection information and / or extended capability information of the second electronic device.
12. The method of claim 9 or 10, wherein, The method further comprises: The capability request information is received from the first electronic device; The extended capability information of the second electronic device is sent to the first electronic device according to the capability request information.
13. An electronic device, comprising: Comprise: A memory, a processor, a touch screen and a communication module; wherein: The touch screen is used to display content; The communication module is used to communicate with other electronic devices; The memory is used to store a computer program, and the computer program comprises program instructions; The processor is used to call the program instructions, so that the electronic device executes the method according to any one of claims 1-8.
14. An electronic device, comprising: Comprise: A memory, a processor and a communication module; wherein: The communication module is used to communicate with other electronic devices; The memory is used to store a computer program, and the computer program comprises program instructions; The processor is used to call the program instructions, so that the electronic device executes the method according to any one of claims 9-12.
15. A chip system, characterized by The chip system is applied to an electronic device, and the chip system comprises one or more processors, and the processor is used to call computer instructions to make the electronic device execute the method according to any one of claims 1-12.
16. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to realize the method according to any one of claims 1-12.
17. A computer program product comprising computer instructions, characterized in that, When the computer program product runs on the electronic device, the electronic device executes the method according to any one of claims 1-12.
Citation Information
Patent Citations
Method and device for sharing network device capacity and network devices
CN103379107A
Information interaction method and electronic equipment
CN111148081A