WO2023045966A1 - Capability sharing method, electronic devices and computer-readable storage medium - Google Patents

Capability sharing method, electronic devices and computer-readable storage medium Download PDF

Info

Publication number
WO2023045966A1
WO2023045966A1 PCT/CN2022/120178 CN2022120178W WO2023045966A1 WO 2023045966 A1 WO2023045966 A1 WO 2023045966A1 CN 2022120178 W CN2022120178 W CN 2022120178W WO 2023045966 A1 WO2023045966 A1 WO 2023045966A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
information
capability
sharing
capability sharing
Prior art date
Application number
PCT/CN2022/120178
Other languages
French (fr)
Chinese (zh)
Inventor
蒋大圆
韦行海
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023045966A1 publication Critical patent/WO2023045966A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • the present application relates to the field of terminal and communication technologies, and in particular to a capability sharing method, electronic equipment, and a computer-readable storage medium.
  • NFC near field communication
  • WLAN wireless local area network
  • control center such as a mobile phone
  • the user can first open the corresponding control interface and search for each electronic device. Configured under the same network, the connection between various electronic devices can be realized later, so that they can share capabilities. At the same time, how to improve the efficiency of capability sharing between different electronic devices is a concern of technical personnel.
  • the present application provides a capability sharing method, an electronic device, and a computer-readable storage medium, which can improve the efficiency of capability sharing between different electronic devices.
  • the present application provides a capability sharing method, including: the first electronic device determines the second electronic device as the master device; determines the third electronic device as the secondary device; determines the capability sharing information of the third electronic device ; sending the capability sharing information to the second electronic device, where the capability sharing information is used to instruct the second electronic device to use the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
  • the user when the user needs the third electronic device to share capabilities with the second electronic device, the user can realize the capability sharing between the second electronic device and the third electronic device by controlling the first electronic device, so that the main Devices can use the capabilities shared by secondary devices.
  • the first electronic device may determine the second electronic device as a master device, and may also determine the third electronic device as a secondary device. After that, the first electronic device may also determine the capability sharing information of the third electronic device, and may report to the second electronic device The second electronic device sends the capability sharing information, so that the second electronic device can directly use the capability corresponding to the capability sharing information among the capabilities of the third electronic device according to the capability sharing information, so as to realize capability sharing between the second electronic device and the third electronic device .
  • capability sharing between different electronic devices can be conveniently realized through the above method, and the efficiency of capability sharing among different electronic devices is improved.
  • the user can also select different electronic devices for capability sharing according to actual needs, which improves the flexibility of capability sharing between different electronic devices, and is applicable to various application scenarios.
  • the method further includes: acquiring information of the third electronic device; determining the capability sharing information of the third electronic device includes: according to the information of the third electronic device , to determine the capability sharing information of the third electronic device.
  • the method further includes: acquiring information of the second electronic device, where the information of the second electronic device includes connection information of the second electronic device; using the second The connection information of the electronic device establishes a connection with the second electronic device.
  • the first electronic device can obtain the information of the second electronic device including the connection information of the second electronic device, and then, the first electronic device can use the connection information of the second electronic device to establish a connection with the second electronic device , so that the first electronic device and the second electronic device can communicate, so that the first electronic device can send capability sharing information to the second electronic device, so as to implement capability sharing between the second electronic device and the third electronic device.
  • information exchange can be performed more quickly and conveniently, so that capability sharing between the second electronic device and the third electronic device can be realized faster.
  • determining the second electronic device as the master device includes: displaying first prompt information for prompting the user whether to determine the second electronic device as the master device; detecting When the user performs the first operation on the first prompt information, the second electronic device is determined as the master device.
  • the first electronic device may display a prompt interface first, and the prompt interface includes prompt information for prompting the user whether to determine the second electronic device as the master device, and the user may execute the prompt for the prompt information according to actual needs. Click and other operations, the first electronic device can detect the user's operation on the prompt information, and only when it detects that the user's operation is the operation of setting the second electronic device as the master device, the first electronic device will determine the second electronic device as the master device.
  • the first electronic device can receive user input and determine the main device according to the user input. Therefore, the user can flexibly choose which electronic device is the main device, and expand the corresponding capabilities of the electronic device so as to adapt to different application scenarios and meet Various actual needs of users, and then can improve the user experience.
  • determining the third electronic device as a secondary device includes: displaying second prompt information for prompting the user whether to determine the third electronic device as the primary device; detecting When the user performs a second operation on the second prompt information, the third electronic device is determined as the secondary device.
  • the first electronic device may display a prompt interface first, and the prompt interface includes prompt information for prompting the user whether to determine the third electronic device as the master device, and the user may execute the prompt for the prompt information according to actual needs. Click and other operations, the first electronic device can detect the user's operation on the prompt information, and only when it detects that the user's operation is the operation of setting the third electronic device as a secondary device, the first electronic device will determine the third electronic device as a secondary device.
  • the first electronic device can receive user input and determine the secondary device according to the user input. Therefore, the user can flexibly select which electronic device is used as the secondary device, and share the capabilities of the electronic device with the main device, so as to adapt to different application scenarios , to meet various actual needs of users, thereby improving user experience.
  • the information of the third electronic device includes shared capability information of the third electronic device, and the shared capability information includes information of one or more capabilities, according to the third electronic device Information about the third electronic device. Determining the capability sharing information of the third electronic device includes: displaying the information of the one or more capabilities; The capability information is determined as capability sharing information.
  • the first electronic device after the first electronic device obtains the information of the third electronic device including the shared capability information of the third electronic device, it can display the information of one or more capabilities included in the shared capability information, and the user can When performing a selection operation such as clicking on the information of the one or more capabilities, the first electronic device may determine the information of the selected capabilities when detecting the user's selection instruction for some or all of the one or more capabilities. For capability sharing information, the capability sharing information may be sent to the second electronic device afterwards, so as to implement capability sharing between the second electronic device and the third electronic device, and other unselected capabilities may be shared with other electronic devices. Through the above method, the first electronic device can receive the user's selection instruction and determine the capability sharing information.
  • the user can flexibly select the capability that needs to be shared by the third electronic device to the second electronic device according to actual needs, avoiding unnecessary ability selection.
  • the capabilities of the third electronic device not included in the capability sharing information can be shared with other electronic devices, so that the utilization rate of the capabilities of the third electronic device can be improved.
  • the information of the third electronic device includes connection information of the third electronic device
  • sending the capability sharing information to the second electronic device includes: according to the third electronic device The connection information of the electronic device, determining the address information of the third electronic device; sending the address information and capability sharing information of the third electronic device to the second electronic device, and the address information is used to establish a connection with the third electronic device .
  • the first electronic device may determine the address information of the third electronic device according to the connection information of the third electronic device, and then may send the address information and capability sharing information of the third electronic device to the second electronic device, so that After receiving the address information of the third electronic device, the second electronic device can directly establish a connection with the third electronic device according to the address information of the third electronic device, so that the connection between the second electronic device and the third electronic device can be realized more quickly. capacity sharing among them.
  • the obtaining the information of the second electronic device includes: the first electronic device reads the information of the second electronic device from the NFC on the second electronic device through NFC information; or, the first electronic device obtains the information of the second electronic device by scanning the two-dimensional code including the information of the second electronic device.
  • the first electronic device in the case that the user needs the third electronic device to share the capability with the second electronic device, the first electronic device can be moved close to the second electronic device, and the first electronic device can be connected to the second electronic device through NFC.
  • Read the information of the second electronic device or can manipulate the first electronic device to scan the two-dimensional code containing the information of the second electronic device to obtain the information of the second electronic device, so that the second electronic device and the third electronic device can be realized capacity sharing among them.
  • the user can make the first electronic device obtain the information of the second electronic device through simple operations such as touching the first electronic device, that is, moving the first electronic device close to the second electronic device, or scanning a QR code.
  • cumbersome operations such as searching for the second electronic device and configuring the network of the second electronic device improves the efficiency of interaction between the first electronic device and the user.
  • the information of the second electronic device includes extended capability information
  • sending the capability sharing information to the second electronic device includes: including the capability sharing information in the extended capability information
  • the capability sharing information is sent to the second electronic device.
  • the first electronic device may first determine the extended capability information of the second electronic device before sending the capability sharing information to the second electronic device Whether to include capability sharing information. If it is determined that the extended capability information of the second electronic device does not include the capability sharing information, it indicates that the second electronic device does not support the capability shared by the third electronic device. Therefore, the first electronic device may not send the second electronic device to the second electronic device. Three electronic devices are capable of sharing information. If it is judged that the extended capability information of the second electronic device includes capability sharing information, it indicates that the second electronic device supports extending the capability of the third electronic device selected by the user, and the first electronic device may send the third electronic device to the second electronic device.
  • Capability sharing information of devices so as to implement capability sharing between the second electronic device and the third electronic device. It can be seen that when the extended capability information of the second electronic device includes capability sharing information, the first electronic device only sends the capability sharing information to the second electronic device, which can reduce the sending of unnecessary information, thereby reducing the cost of the first electronic device. power consumption. In addition, it can also avoid the situation that the second electronic device cannot use the capability corresponding to the capability sharing information among the capabilities of the third electronic device after receiving the capability sharing information from the first electronic device.
  • the method further includes: sending capability request information to the second electronic device; receiving extended capability information from the second electronic device; Sending the capability sharing information includes: if the extended capability information includes the capability sharing information, sending the capability sharing information to the second electronic device.
  • the first electronic device may send capability request information to the second electronic device, so that after receiving the capability request information, the second electronic device may send its own extended capability information to the first electronic device according to the capability request information. Afterwards, before the first electronic device sends the capability sharing information to the second electronic device, it may first determine whether the extended capability information of the second electronic device includes the capability sharing information. If it is determined that the extended capability information of the second electronic device does not include the capability sharing information, it indicates that the second electronic device does not support the capability shared by the third electronic device. Therefore, the first electronic device may not send the second electronic device to the second electronic device. Three electronic devices are capable of sharing information.
  • the extended capability information of the second electronic device includes capability sharing information
  • Capability sharing information of devices so as to implement capability sharing between the second electronic device and the third electronic device. It can be seen that when the extended capability information of the second electronic device includes capability sharing information, the first electronic device only sends the capability sharing information to the second electronic device, which can reduce the sending of unnecessary information, thereby reducing the cost of the first electronic device. power consumption.
  • the present application provides a capability sharing method, including: receiving capability sharing information of a third electronic device from a first electronic device; and using a capability corresponding to the capability sharing information among the capabilities of the third electronic device.
  • the second electronic device may receive the 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 among the capabilities of the third electronic device according to the capability sharing information to implement
  • the capability sharing between the second electronic device and the third electronic device improves the efficiency of capability sharing between different electronic devices.
  • receiving the capability sharing information of the third electronic device from the first electronic device includes: receiving the address information and capability sharing information of the third electronic device from the first electronic device information; the method further includes: establishing a connection with the third electronic device according to the address information.
  • the second electronic device may receive the address information and capability sharing information of the third electronic device from the first electronic device, and then directly establish a connection with the third electronic device according to the address information of the third electronic device to perform Information exchange, so that capability sharing between the second electronic device and the third electronic device can be quickly realized, so that the second electronic device can use the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
  • the method further includes: sending the information of the second electronic device to the first electronic device through the near field communication (NFC) of the second electronic device, and the second electronic device
  • NFC near field communication
  • the device information includes connection information and/or extended capability information of the second electronic device.
  • the first electronic device when the user needs the third electronic device to share capabilities with the second electronic device, the first electronic device can be moved close to the second electronic device, and the second electronic device can send the second electronic device to the first electronic device through NFC.
  • Information about the electronic device so as to realize capability sharing between the second electronic device and the third electronic device.
  • the user can make the second electronic device send its own information to the first electronic device through a touch operation, that is, an operation of moving the first electronic device close to the second electronic device.
  • the first electronic device can receive the information of the second electronic device without performing cumbersome operations such as: searching for the second electronic device, configuring the network of the second electronic device, etc., which improves the communication between the first electronic device and the user. Interactive efficiency.
  • the method further includes: receiving capability request information from the first electronic device; sending the information of the second electronic device to the first electronic device according to the capability request information Extended capabilities information.
  • the second electronic device may send its extended capability information to the first electronic device according to the capability request information. So that the first electronic device can receive the extended capability information from the second electronic device, and before sending the capability sharing information to the second electronic device, it can first determine whether the extended capability information of the second electronic device includes the capability sharing information. When 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 capability shared by the third electronic device. The electronic device sends capability sharing information of the third electronic device.
  • 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 capability of the third electronic device selected by the user, and the first electronic device may send the second electronic device
  • the capability sharing information of the third electronic device is sent, so as to implement capability sharing between the second electronic device and the third electronic device. It can be seen that when the extended capability information of the second electronic device includes capability sharing information, the first electronic device only sends the capability sharing information to the second electronic device, which can reduce the sending of unnecessary information, thereby reducing the cost of the first electronic device. power consumption.
  • the present application provides a capability sharing device.
  • the capability sharing device may be a first electronic device, or may be a module (for example, a chip) of the first electronic device.
  • the capability sharing means may include:
  • a first determining unit configured to determine the second electronic device as a master device
  • the first determining unit is further configured to determine the third electronic device as the secondary device
  • a second determining unit configured to determine the capability sharing information of the third electronic device
  • a sending unit configured to send the capability sharing information to the second electronic device, where the capability sharing information is used to instruct the second electronic device to use the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
  • the capability sharing apparatus may further include:
  • an obtaining unit configured to obtain information of the third electronic device
  • the second determining unit is specifically configured to determine the capability sharing information of the third electronic device according to the information of the third electronic device.
  • the obtaining unit is further configured to obtain information of the second electronic device, where the information of the second electronic device includes connection information of the second electronic device;
  • the capability sharing device may also include:
  • a connection establishing unit configured to use the connection information of the second electronic device to establish a connection with the second electronic device.
  • the determining by the first determining unit that the second electronic device is a master device includes:
  • the second electronic device is determined as the master device.
  • the first determining unit determining the third electronic device as the secondary device includes:
  • the third electronic device is determined as the secondary device.
  • the information of the third electronic device includes shared capability information of the third electronic device, the shared capability information includes information of one or more capabilities, and the second determination
  • the unit determining the capability sharing information of the third electronic device according to the information of the third electronic device includes:
  • the information of the selected capabilities is determined as capability sharing information.
  • the information of the third electronic device includes connection information of the third electronic device, and the sending unit is specifically configured to:
  • the acquiring unit is specifically configured to:
  • the information of the second electronic device is read from the NFC on the second electronic device through NFC; or, the information of the second electronic device is obtained by scanning a two-dimensional code including the information of the second electronic device.
  • the information of the second electronic device includes extended capability information
  • sending the capability sharing information to the second electronic device by the sending unit includes:
  • the extended capability information includes the capability sharing information, send the capability sharing information to the second electronic device.
  • the sending unit is further configured to send capability request information to the second electronic device
  • the capability sharing device may also include:
  • a receiving unit configured to receive extended capability information from the second electronic device
  • Sending the capability sharing information to the second electronic device by the sending unit includes:
  • the extended capability information includes the capability sharing information, send the capability sharing information to the second electronic device.
  • the present application provides a capability sharing device.
  • the capability sharing device may be a second electronic device, or may be a module (for example, a chip) of the second electronic device.
  • the capability sharing means may include:
  • a receiving unit configured to receive the capability sharing information of the third electronic device from the first electronic device
  • the using unit is configured to use the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
  • the receiving unit is specifically configured to receive address information and capability sharing information of a third electronic device from the first electronic device;
  • the capability sharing device may also include:
  • a connection establishing unit configured to establish a connection with the third electronic device according to the address information.
  • the capability sharing apparatus may further include:
  • the first sending unit is configured to send the information of the second electronic device to the first electronic device through near field communication (NFC), where the information of the second electronic device includes connection information and/or extended capability information of the second electronic device.
  • NFC near field communication
  • the receiving unit is further configured to receive capability request information from the first electronic device
  • the capability sharing device may also include:
  • the second sending unit is configured to send the extended capability information of the second electronic device to the first electronic device according to the capability request information.
  • the present application provides an electronic device, which may be a first electronic device, and may include: a memory, a processor, a touch screen, and a communication module.
  • the memory is used to store a computer program
  • the computer program includes program instructions
  • the processor is used to call the program instructions, so that the first electronic device performs the following steps:
  • the second electronic device uses the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
  • the processor is further configured to acquire information of the third electronic device; determining the capability sharing information of the third electronic device by the processor includes: according to the third electronic device The information of the device determines the capability sharing information of the third electronic device.
  • the processor is further configured to acquire information of the second electronic device, where the information of the second electronic device includes connection information of the second electronic device; through the communication module A connection is established with the second electronic device by using the connection information of the second electronic device.
  • determining the second electronic device as the master device by the processor specifically includes: indicating that the touch screen display is used to prompt the user whether to determine the second electronic device as the master device the first prompt information of the first prompt information; when the first operation of the user on the first prompt information is detected, the second electronic device is determined as the master device.
  • the processor determining the third electronic device as a secondary device specifically includes: instructing the touch screen to prompt the user whether to determine the third electronic device as a primary device the second prompt information; when detecting a second operation by the user on the second prompt information, determine the third electronic device as the secondary device.
  • the information of the third electronic device includes shared capability information of the third electronic device, and the shared capability information includes information of one or more capabilities
  • the processor according to The information of the third electronic device, determining the capability sharing information of the third electronic device includes: indicating that the touch screen displays the information of the one or more capabilities; detecting that the user has part or all of the one or more capabilities When the selection command is selected, the information of the selected capability is determined as the capability sharing information.
  • the information of the third electronic device includes connection information of the third electronic device
  • sending the capability sharing information to the second electronic device through the communication module includes: the The processor determines the address information of the third electronic device according to the connection information of the third electronic device; sends the address information and capability sharing information of the third electronic device to the second electronic device through the communication module, and uses the address information to for establishing a connection with the third electronic device.
  • obtaining the information of the second electronic device by the processor includes: reading the information of the second electronic device from the NFC of the second electronic device through NFC or, obtain the information of the second electronic device by instructing the camera to scan the two-dimensional code including the information of the second electronic device.
  • the information of the second electronic device includes extended capability information
  • sending the capability sharing information to the second electronic device through the communication module includes: the extended capability information includes In the case of the capability sharing information, the capability sharing information is sent to the second electronic device through the communication module.
  • the communication module is also used to send capability request information to the second electronic device; the communication module is also used to receive extended capability information from the second electronic device; The sending the capability sharing information to the second electronic device through the communication module includes: if the extended capability information includes the capability sharing information, sending the capability sharing information to the second electronic device.
  • the present application provides an electronic device, where the electronic device may 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, and the computer program includes program instructions; the processor is used to call the program instructions, so that the first electronic device performs the following steps:
  • receiving the capability sharing information of the third electronic device from the first electronic device through the communication module includes: receiving the third electronic device from the first electronic device through the communication module. Address information and capability sharing information of the device; the communication module is also used to establish a connection with the third electronic device according to the address information.
  • the communication module is further configured to send the information of the second electronic device to the first electronic device through the near field communication (NFC) of the second electronic device, and the second electronic device
  • the device information includes connection information and/or extended capability information of the second electronic device.
  • the communication module is further configured to receive capability request information from the first electronic device; the processor transmits the capability request information to the first electronic device through the communication module according to the capability request information The device sends extended capability information of the second electronic device.
  • the embodiment of the present application provides an electronic device, the electronic device includes: a touch screen, a communication module, and one or more processors and memories; the one or more processors and the touch screen, The communication module and the one or more memories are coupled, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and the one or more processors call the computer instructions to make the electronic device execute The method as described in the first aspect or any possible implementation manner in the first aspect.
  • the embodiment of the present application provides an electronic device, which includes: a communication module, and one or more processors and memories; the one or more processors and the communication module, the one or more Memory coupling, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and the one or more processors call the computer instructions to make the electronic device execute the second aspect or the second aspect Any possible implementation describes the method.
  • the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to invoke computer instructions so that the electronic device executes the electronic device according to the first aspect or Any possible implementation manner in the first aspect, or the second aspect or the method described in any possible implementation manner in the second aspect.
  • the present application provides a computer program product containing instructions.
  • the above-mentioned computer program product is run on an electronic device, the above-mentioned electronic device executes the first aspect or any possible implementation manner of the first aspect, Or the method described in the second aspect or any possible implementation manner of the second aspect.
  • the present application provides a computer-readable storage medium, including instructions.
  • the above-mentioned instructions When the above-mentioned instructions are run on the electronic device, the above-mentioned electronic device executes the first aspect or any possible implementation method of the first aspect. , or the second aspect or the method described in any possible implementation manner of the second aspect.
  • the capability sharing device provided by the fourth aspect the capability sharing device provided by the fifth aspect, the electronic device provided by the seventh aspect, the electronic device provided by the eighth aspect, the chip system provided by the ninth aspect, the tenth aspect
  • the computer program product provided and the computer storage medium provided in the eleventh aspect are both used to implement the first aspect of the present application and any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect method provided by the method. Therefore, the beneficial effects that it can achieve can refer to the beneficial effects in the corresponding method, and will not be repeated here.
  • FIG. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application.
  • FIG. 3A is a schematic diagram of a family scene provided by an embodiment of the present application.
  • FIG. 3B is a schematic diagram of an image captured by an electronic device provided in an embodiment of the present application.
  • Fig. 4A-Fig. 4C are a set of schematic diagrams of opening the NFC interface provided by the embodiment of the present application.
  • FIG. 4D is a schematic diagram of an electronic device touch provided in an embodiment of the present application.
  • FIG. 4E-FIG. 4F are schematic diagrams of a set of interfaces for setting master devices provided by the embodiment of the present application.
  • FIG. 4G is a schematic diagram of another electronic device touch provided by the embodiment of the present application.
  • FIG. 4H-FIG. 4I are schematic interface diagrams of a group of sharing capabilities provided by the embodiment of the present application.
  • Fig. 4J-Fig. 4K are a set of schematic diagrams of opening hyper terminal interfaces provided by the embodiment of the present application.
  • 5A-5E are schematic diagrams of a group of interfaces for video calls provided by the embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a capability sharing method provided by an embodiment of the present application.
  • first, second, third and the like in the specification and claims of the present application and the drawings are used to distinguish different objects, and are not used to describe a specific order. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, the “multiple” The meaning is two or more. Furthermore, the terms “comprising” and “having”, as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a series of steps or units are included, or alternatively, unlisted steps or units are also included, or other steps or units inherent in the process, method, product or apparatus are optionally included.
  • the first electronic device in the embodiment of the present application may be a communication device such as a smart phone, a tablet computer, and a smart watch
  • the second electronic device and the third electronic device may be a network camera, a network TV, a sweeping robot, a smart treadmill, and a Bluetooth speaker and other electronic equipment.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 As an example, the electronic device 100 shown in FIG. 1 is merely an example, and that the electronic device 100 may have more or fewer components than those shown in FIG. 1, two or more components may be combined, or Different component configurations are possible.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • graphics processing unit graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • the wireless communication module 160 can provide wireless local area network (wireless local area networks, WLAN) (such as Wi-Fi network), Bluetooth (bluetooth, BT), BLE broadcasting, global navigation satellite system (global navigation satellite system) applied on the electronic device 100. system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as: image recognition, face recognition, speech recognition, text understanding, and the like.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, sound source identification, and directional recording functions.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the Hongmeng system with a layered architecture is taken as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 2 is a block diagram of the software structure of the electronic device 100 provided by the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Hongmeng system is divided into four layers, which are application layer, application framework layer, system service layer, and kernel layer from top to bottom.
  • the application layer can include a series of system applications and third-party non-system applications.
  • the application based on Hongmeng system consists of one or more meta-programs (feature ability, FA) or meta-services (particle ability, PA).
  • FA has a user interface (UI) interface, which provides the ability to interact with users; while PA has no UI interface, which is used to provide the ability to run tasks in the background and a unified data access abstraction.
  • UI user interface
  • system applications may include applications such as calendar, desktop, control bar, settings, and phone
  • third-party applications may include applications such as Tencent Video, Weibo, Toutiao, and Youku Video.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include multilingual user program frameworks such as Java/C/C++/JS, ability (Ability) framework, UI framework (including Java UI framework suitable for Java language, suitable for JS language JS UI framework), as well as various software and hardware services open to the outside world, such as multilingual framework APIs.
  • multilingual user program frameworks such as Java/C/C++/JS, ability (Ability) framework, UI framework (including Java UI framework suitable for Java language, suitable for JS language JS UI framework), as well as various software and hardware services open to the outside world, such as multilingual framework APIs.
  • the system service layer is the core capability set of the Hongmeng system, which provides services to applications through the application framework layer.
  • the system service layer may include a basic capability subsystem set, a basic software service subsystem set, an enhanced software service subsystem set, a hardware service subsystem set, and the like.
  • the system basic capability subsystem set provides basic capabilities for the operation, scheduling, and migration of distributed applications on multiple devices in the Hongmeng system. It consists of distributed soft bus, distributed data management, distributed task scheduling, and Ark multilingual runtime , public basic library, multi-mode input, graphics, security, artificial intelligence (artificial intelligence, AI) and other subsystems. Among them, the Ark runtime provides C/C++/JS multi-language runtime and basic system class libraries, and also provides Runtime.
  • the basic software service subsystem set provides public and general software services, including event notification, telephone, multimedia, design for each/certain link of the product life cycle (design for x, DFX), mobile sensing development platform (mobile sensing development platform, MSDP) & device virtualization (device virtualization, DV) and other subsystems.
  • the enhanced software service subsystem set provides differentiated capability-enhanced software services for different devices, and is composed of subsystems such as smart screen proprietary services, wearable proprietary services, and Internet of Things (Internet of Things, IoT) proprietary services.
  • subsystems such as smart screen proprietary services, wearable proprietary services, and Internet of Things (Internet of Things, IoT) proprietary services.
  • IoT Internet of Things
  • the hardware service subsystem set provides hardware services and is composed of subsystems such as location services, biometric identification, wearable proprietary hardware services, and IoT proprietary hardware services.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer mainly acts as a bridge between hardware and software.
  • the kernel layer can include display drivers, camera drivers, audio drivers, sensor drivers, network card drivers, etc.
  • the kernel layer may include a kernel subsystem, a driver subsystem, and a kernel abstraction layer.
  • Kernel abstract layer (kernel abstract layer, KAL) can shield multi-core differences, and provide basic kernel capabilities to the upper layer, including process/thread management, memory management, file system, network management, and peripheral management.
  • the driver subsystem includes a hardware driver foundation (HDF), which can provide a unified peripheral access capability and a driver development and management framework.
  • HDF hardware driver foundation
  • the workflow of the software and hardware of the electronic device 100 will be exemplarily described below in conjunction with capturing and photographing scenes.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, and other information). Raw input events are stored at the kernel level.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Take the touch operation as an example of a touch click operation for illustration.
  • the control corresponding to the click operation is the control of the camera application icon as an example.
  • the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera application by calling the kernel layer. The camera is driven to capture still images or videos through the camera 193.
  • the software systems of the second electronic device and the third electronic device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, and a micro-service architecture, and various implementation modes of the present application may be combined arbitrarily to achieve different technical effects.
  • the software systems of the second electronic device and the third electronic device please refer to the embodiment in FIG. 2 , which will not be repeated in this embodiment of the present application.
  • the exemplary family scene 30 includes electronic device 100 (smart phone), electronic device 200 (smart TV) and electronic device 300 (network camera).
  • the electronic device 100 , the electronic device 200 and the electronic device 300 all have the NFC function and can be connected to the router 305 . Therefore, the electronic device 100 , the electronic device 200 and the electronic device 300 can be under the same local area network.
  • the electronic device 200 can be controlled by a remote controller 304 .
  • the remote controller 304 includes an "OK" button 311, and the electronic device 300 can shoot video images, and the range of the captured images is shown by two dotted lines in FIG. 3A. Please refer to FIG. 3B .
  • FIG. 3B is a picture captured by the electronic device 300 at a certain moment.
  • the user Before using the electronic device 200 to make a video call, the user can control the electronic device 100 to approach (for example, touch) the electronic device 200 , that is, the NFC sensing area 301 of the electronic device 100 can be brought close to the NFC sensing area 302 of the electronic device 200 . Similarly, the user can also use the electronic device 100 to approach the NFC sensing area 303 of the electronic device 300 . Afterwards, the electronic device 200 can use the camera function of the electronic device 300, so when using the electronic device 200 to make a video call, the electronic device 200 can obtain the video picture taken by the electronic device 300, and then, the electronic device 200 can send the obtained video picture to An electronic device that makes a video call to the opposite end, and can display the video image on its own display screen.
  • the electronic device 200 can use the camera function of the electronic device 300, so when using the electronic device 200 to make a video call, the electronic device 200 can obtain the video picture taken by the electronic device 300, and then, the electronic device 200 can send the obtained video picture to An electronic
  • the electronic device 100 may display a user interface 40, and the user interface 40 displays a page on which application icons are placed, and the page may include multiple application icons (for example, a weather application icon, stock app icon, calculator app icon, settings app icon 401, mail app icon, gallery app icon, music app icon, video app icon, browser app icon, etc.).
  • a page indicator is also displayed under the multiple application icons to indicate the positional relationship between the currently displayed page and other pages.
  • tray icons such as a dialer application icon, a messaging application icon, a contacts application icon, and a camera application icon
  • the above-mentioned page may also include multiple application icons and page indicators, and the page indicator may not be a part of the page, but exists independently.
  • the above-mentioned picture icons are also optional, which is not limited in this embodiment of the present application.
  • the electronic device 100 may receive an input operation (for example, click) from the user acting on the setting application icon 401 , and in response to the input operation, the electronic device 100 may display the user interface 41 as shown in FIG. 4B .
  • an input operation for example, click
  • the user interface 41 may include an NFC control 411 .
  • the user interface 41 may also include status information of the NFC function, and the status information is used to indicate whether the NFC function is on or off. At this time, the NFC function of the electronic device 100 is in an off state.
  • the electronic device 100 may receive an input operation (for example, a single click) performed by the user on the NFC control 411 , and in response to the input operation, the electronic device 100 may display the user interface 42 as shown in FIG. 4C .
  • an input operation for example, a single click
  • the user interface 42 may include an NFC switch control 421 .
  • the electronic device 100 detects an input operation (such as a single click) on the NFC switch control 421 , in response to the input operation, the electronic device 100 can turn on the NFC function. Afterwards, the electronic device 100 can touch the electronic device 200 to exchange data. For example, the electronic device 100 can read data in the NFC tag of the electronic device 200 .
  • the NFC sensing area 301 of the electronic device 100 may approach (for example, touch) the NFC sensing area 302 of the electronic device 200.
  • the electronic device 100 may display a user interface as shown in FIG. 4E 43.
  • the user interface 43 is a master device selection interface, that is, to select whether to use the currently touched electronic device as the master device.
  • 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 current touch electronic device as a master device, and the "No” confirmation control is used to set the current touch electronic device as a secondary device.
  • the electronic device 100 can receive the user's input operation (for example, click) acting on the "Yes" confirmation control 431, and in response to the input operation, the electronic device 100 can set the electronic device 200 as the master device of the hyper terminal, and can display as shown in FIG. User interface 44 is shown at 4F.
  • the user's input operation for example, click
  • the electronic device 100 can set the electronic device 200 as the master device of the hyper terminal, and can display as shown in FIG. User interface 44 is shown at 4F.
  • the user interface 44 is a hyper terminal interface, and may include an icon 441 of the main device, that is, an icon of the electronic device 200 .
  • the user interface 44 may also include a main device switch control 442 that may be used to turn the main device on or off.
  • User interface 44 may also include a hyperterminal icon 443 .
  • the switch control 442 of the master device When the switch control 442 of the master device is in the closed state, it indicates that the master device of the current hyper terminal is removed, that is, the master device of the current hyper terminal is deleted, and other auxiliary devices can be set as the master device of the hyper terminal, or the electronic device 100 It can be set as the master device in response to a user input operation (such as clicking) when other electronic devices equipped with NFC are detected.
  • a HyperTerminal can be understood as a virtual electronic device, which is composed of a main device and a secondary device.
  • the main device can use some or all of the capabilities shared by the secondary device.
  • the HyperTerminal can also be understood as a distributed electronic device across devices.
  • the NFC sensing area 301 of the electronic device 100 can also be close to (for example, touch) the NFC sensing area 303 of the electronic device 300.
  • the electronic device 100 can display the user information as shown in FIG. interface45.
  • the user interface 45 is a device function selection interface for selecting functions to be shared by the current touch electronic device.
  • the user interface 45 may include one or more capability selection controls 451 , and may also include a continue sharing control and a finish sharing control 452 .
  • the capability selection control 451 is used to select the capability that needs to be shared by the electronic device.
  • the electronic device 100 may receive an input operation (for example, click) from the user on the capability selection control 451, and in response to the input operation, the capability selection control 451 of the electronic device 100 may display a " ⁇ " as shown in FIG. 4H, indicating that the capability selection control 451 is selected.
  • the camera capability of the electronic device 300 is used so that the master device can use the camera capability, that is, the electronic device 200 uses the camera capability.
  • the electronic device 100 may receive an input operation (for example, click) from the user to complete the sharing control 452, and in response to the input operation, the electronic device 100 may set the electronic device 300 as the secondary device 1 of the HyperTerminal, and may display such as The user interface 46 is shown in FIG. 4I.
  • the electronic device detects an input operation such as a single click
  • the electronic device 100 can set the electronic device 300 as the secondary device 1 of the HyperTerminal, and can continue to detect the NFC nearby. other electronic equipment.
  • the user interface 46 may include an icon 461 of the secondary device 1 , that is, an icon of the electronic device 300 .
  • the user interface 46 can also include a switch control 462 of the secondary device 1 , and the switch control 462 of the secondary device 1 can be used to turn on or off the secondary device 1 .
  • the user interface 46 may also include capability information 463 shared by the electronic device 300 . When the switch control 462 of the secondary device 1 is in the on state, it indicates that the current secondary device 1 of the hyperterminal is in the open state, and the current main device of the hyperterminal can use the capability shared by the secondary device 1 .
  • the switch control 462 of the auxiliary device 1 When the switch control 462 of the auxiliary device 1 is in the off state, it indicates that the auxiliary device 1 of the current HyperTerminal is removed, that is, the auxiliary device 1 of the current HyperTerminal is deleted, and after that, the main device of the HyperTerminal cannot use the auxiliary device 1 The ability to share.
  • FIG. 4J is a user interface 40 .
  • the textual description of the user interface 40 reference may be made to the relevant description in FIG. 4A above, and details are not repeated here.
  • the electronic device 100 may receive an input operation (for example, pull down) acted on the status bar by the user, and in response to the input operation, the electronic device 100 may display the user interface 47 as shown in FIG. 4K .
  • an input operation for example, pull down
  • the electronic device 100 may display the user interface 47 as shown in FIG. 4K .
  • the user interface 47 may include a hyperterminal control 471 .
  • the hyperterminal control is used to open the hyperterminal composed of the electronic device 200 and the electronic device 300 .
  • the electronic device 100 may receive the user's input operation (for example, click) on the hyperterminal control 471, and in response to the input operation, the electronic device 100 may display the user interface 46 as shown in FIG. 4I.
  • the user's input operation for example, click
  • the electronic device 100 may display the user interface 46 as shown in FIG. 4I.
  • the electronic device 200 may display a user interface 50, which displays a page on which application icons are placed, and the page includes a plurality of application icons (for example, a gallery application icon, a video application icon, a setting application icon, video dial application icon 501, music application icon, etc.).
  • the above page may also include multiple application icons, and the above picture icon is also optional, which is not limited in this embodiment of the present application.
  • the selection box 502 has the video dialing application icon 501 selected.
  • the electronic device 200 may receive an input operation (for example, pressing) of the user on the ok button 311 of the remote controller, and in response to the input operation, the electronic device 200 may display a user interface 51 as shown in FIG. 5B .
  • the user interface 51 may include a contact option, a recent call option, a dial option 511, and a setting option.
  • the selection box 511 has the dialing option selected.
  • the dialing area can be displayed on the right side of the user interface 51, and the dialing area includes number icons, number display area, delete and clear icons.
  • the electronic device 200 detects the user's input operation on the digital icon (such as pressing the ok control of the remote control), in response to the input operation, the electronic device 200 displays the characters input by the user using the remote control 305 in the number display area, as shown in the figure 5C shows the user interface 52.
  • the user interface 52 includes a number input by the user, and the number is used for making a video call with the corresponding electronic device.
  • the user interface 52 also includes a video dial control 521 .
  • the selection box 522 has the video dial control 521 selected.
  • the electronic device 200 may receive the user's input operation (for example, press) on the ok button 311 of the remote controller, and in response to the input operation, the electronic device 200 may display the user interface 53 as shown in FIG. 5D .
  • the user interface 53 may include a video display area 531 , a user avatar 532 , a cancel control, and a switch to voice call control.
  • the video image displayed in the video display area 531 is the video image shown in FIG. 3A , that is, the video image captured by the electronic device 300 in real time.
  • the electronic device may display a user interface 54 as shown in FIG. 5E.
  • 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 by the electronic device 300 in real time
  • the second video display area 542 may display video images captured by the dial-up user's camera in real time.
  • the user can use the electronic device 100 to remove the main device and the auxiliary device of the HyperTerminal.
  • the electronic device 100 may receive an input operation (such as a single click) that the user acts on the switch control 462 of the secondary device 1, and in response to the input operation, the electronic device 100 may remove the secondary device 1 of the current hyper terminal, and then, the hyper terminal
  • the main device of the terminal cannot use the capability shared by the secondary device 1 , that is, the electronic device 200 cannot continue to use the camera capability of the electronic device 300 .
  • the electronic device 100 may also receive an input operation (for example, single click) from the user acting on the switch control 442 of the main device, and in response to the input operation, the electronic device 100 may remove the current main device of the HyperTerminal. After that, the electronic device 200 cannot continue to use the imaging capability of the electronic device 300 .
  • an input operation for example, single click
  • FIG. 6 is a schematic flowchart of a capability sharing method provided by an embodiment of the present application.
  • the user when the user needs the third electronic device to share capabilities with the second electronic device, the user can use the first electronic device to determine the second electronic device as the master device, and can also use the first electronic device to determine the second electronic device Three electronic devices are identified as secondary devices.
  • the first electronic device may determine the capability sharing information of the third electronic device, and then may send the capability sharing information of the third electronic device to the second electronic device. So that after the second electronic device receives the capability sharing information from the first electronic device, it can use the capability corresponding to the capability sharing information among the capabilities of the third electronic device according to the capability sharing information.
  • the first electronic device may be the electronic device 100 in the above embodiment
  • the second electronic device may be the electronic device 200 in the above embodiment
  • the third electronic device may be the electronic device 300 in the above embodiment.
  • the first electronic device acquires information about the second electronic device.
  • the user may control the first electronic device to obtain information about the second electronic device.
  • the information of the second electronic device may include connection information of the second electronic device.
  • the connection information of the second electronic device may be address information of the second electronic device, identification information of the second electronic device, or other information that can be used for connection.
  • the address information may be an internet protocol (internet protocol, IP) address, may also be a media access control (media access control, MAC) address, and may also be other information used to represent the address.
  • IP internet protocol
  • MAC media access control
  • the identification information may be a device identifier, or other identification information that can uniquely identify an electronic device.
  • the user may move the first electronic device so that the first electronic device is close to the second electronic device.
  • the first electronic device may read the information of the second electronic device from the NFC on the second electronic device through NFC. That is, when the user moves the first electronic device to touch the second electronic device, the first electronic device can acquire information of the second electronic device from the second electronic device through NFC.
  • the first electronic device can use NFC to detect whether there are other electronic devices equipped with NFC within the first threshold range.
  • the first electronic device can use NFC to detect the second electronic device equipped with NFC, that is, the first electronic device can find the NFC tag of the second electronic device, and then the first electronic device can read the stored data from the NFC tag of the second electronic device through NFC.
  • Information about the second electronic device may be sent the information of the second electronic device to the first electronic device through NFC.
  • the first threshold is the maximum distance for NFC sensing between two electronic devices, that is, the maximum distance for data exchange between the two electronic devices.
  • the size of the first threshold is related to the hardware device (such as chip) of the electronic device, and is also related to the surrounding environment (such as magnetic field strength) of the electronic device. It can be seen that the information of the second electronic device can be pre-stored in the NFC tag of the second electronic device, so as to be read by other electronic devices.
  • the first electronic device touching the second electronic device may be a touch operation (for example, contact) performed by the electronic device 100 on the electronic device 200 in the above-mentioned embodiment in FIG. 4D .
  • the first electronic device may determine the address information of the second electronic device according to the identification information of the second electronic device. Specifically, the first electronic device may locally store electronic device information data, which may include identification information of the electronic device and address information of the corresponding electronic device, that is, store the correspondence between the identification information of the electronic device and the address information. Therefore, the first electronic device can find the locally stored address information of the second electronic device according to the identification information of the second electronic device.
  • the first electronic device stores an electronic device information data table, as shown in Table 1, wherein each row of the table includes identification information of an electronic device (such as a product electronic code (electronic product code, EPC)) and a corresponding electronic product code.
  • Identification information such as IP address
  • EPC is a set of numbers composed of a version number and three other pieces of data (namely domain name, object type, serial number).
  • the version number is used to identify the version number of the EPC, and different EPC versions correspond to different lengths or types of EPCs;
  • the domain name is information describing the manufacturer related to this EPC number, such as "Huawei Company”;
  • the object type records the precise type of the product Information, for example: "Huawei P40 (a product of Huawei)”;
  • the serial number uniquely identifies a product of a product type, so the serial number can specifically indicate which Huawei P40 it is.
  • the identification information in Table 1 is encoded with the EPC-96I coding structure, including 96 binary bits, of which the first 8 bits are the EPC version number, 9-36 bits are the domain name, 37-60 bits are the object type, 61- 96 bits are the serial number, and the identification information shown in Table 1 is in hexadecimal notation.
  • the first electronic device can compare the identification information of an electronic device with the electronic device identification information of each row in the electronic device information data table in turn, and if they are the same, it indicates that it is the same electronic device, so that the address information of the row can be determined as the Address information for electronic devices.
  • the first electronic device can determine the information corresponding to the second row in Table 1 when comparing the identification information of the second electronic device with the identification information in Table 1 in sequence is the relevant information of the second electronic device, therefore, it can be determined that the address information of the second electronic device is "135.66.34.22".
  • the information of the second electronic device may also include capability information of the second electronic device.
  • the capability information of the second electronic device may include extended capability information of the second electronic device, and may further include shared capability information of the second electronic device.
  • the shared capability information may include information about one or more capabilities, and the extended capability information may also include information about one or more capabilities.
  • the sharing capability information of the second electronic device is used to indicate the capability that the second electronic device can provide for use by other electronic devices.
  • the extended capability information of the second electronic device is used to indicate that the second electronic device can support extended capabilities, that is, to indicate which capabilities provided by other electronic devices can be used by the second electronic device.
  • the first electronic device is a smart TV
  • its sharing capabilities may include display capabilities (display screens), audio capabilities (speakers), etc.
  • its extension capabilities may include camera capabilities (such as network cameras), audio capabilities (such as Bluetooth speakers) wait.
  • smart TVs can share display capabilities and audio capabilities with other electronic devices, such as sharing with other mobile terminals.
  • smart TVs can also expand their own capabilities, such as using the camera capabilities of webcams and Bluetooth speakers. audio capabilities.
  • the first electronic device can first establish a connection with the second electronic device according to the address information of the second electronic device, and then send a message to the second electronic device.
  • the second electronic device may receive capability request information from the first electronic device, and then may send its own capability information to the first electronic device according to the capability request information.
  • the first electronic device may receive capability information from the second electronic device.
  • the foregoing capability information of the second electronic device may include extended capability information of the second electronic device, and may also include shared capability information of the second electronic device.
  • the address information of the second electronic device can be an IP address or a MAC address, etc.
  • the first electronic device and the second electronic device can be connected through a wireless fidelity (wireless fidelity, WIFI) peer-to-peer network (peertoer , P2P), Bluetooth, transmission control protocol (transmission control protocol, TCP), etc. for connection.
  • wireless fidelity wireless fidelity, WIFI
  • peertoer peer-to-peer network
  • Bluetooth transmission control protocol
  • transmission control protocol transmission control protocol
  • the first electronic device may determine the capability information of the second electronic device according to the identification information of the second electronic device. Specifically, the first electronic device may locally store electronic device information data, which may include the identification information of the electronic device and the capability information of the corresponding electronic device, that is, the correspondence between the identification information and the capability information of the electronic device is stored. Therefore, the first electronic device may find locally stored capability information of the second electronic device according to the identification information of the second electronic device.
  • the first electronic device stores an electronic device information data table, as shown in Table 2, wherein each row of the table includes identification information (such as EPC) of an electronic device and capability information of the corresponding electronic device.
  • the identification information in Table 2 is coded with the EPC-96I coding structure, and the identification information shown in Table 2 is in hexadecimal notation.
  • the first electronic device can sequentially compare the identification information of an electronic device with the electronic device identification information of each row in the electronic device information data table. Capability information of the electronic device.
  • the first electronic device can determine the information corresponding to the second row in Table 2 when comparing the identification information of the second electronic device with the identification information in Table 2 in sequence is the relevant information of the second electronic device, therefore, the capability information of the second electronic device may be determined as "camera capability, storage capability”.
  • the first electronic device After the first electronic device acquires the information of the second electronic device, it may display first prompt information for prompting the user whether to determine the second electronic device as the master device. For example, a master device selection interface may be displayed, and the master device selection interface includes information about whether to set the touch device as the master device, and a "Yes" confirmation control and a "No" confirmation control for the user to select. The user can choose whether to set the second electronic device as the master device according to actual needs. When the first electronic device detects the user's first operation on the first prompt information, it may determine the second electronic device as the master device.
  • the first electronic device when the first electronic device detects the first operation on the master device selection interface, that is, when it detects the first operation for determining the second electronic device as the master device, the first electronic device may respond to the first operation by The second electronic device is set as the main device of the hyper terminal, and can display the hyper terminal interface.
  • the master device selection interface may be the user interface 43 shown in FIG. 4E above.
  • the hyperterminal interface may include an icon of the main device, and an on/off control of the main device.
  • the first operation may be an operation such as clicking or double-clicking on the "Yes" confirmation control 431 in the above-mentioned embodiment shown in FIG. 4E
  • the hyperterminal interface may be the user interface 44 in the above-mentioned embodiment shown in FIG. 4F .
  • a HyperTerminal can be understood as a virtual electronic device, which is composed of a main device and a secondary device.
  • the main device can use some or all of the capabilities shared by the secondary device.
  • the HyperTerminal can also be understood as a distributed electronic device across devices.
  • the hyperterminal is a virtual terminal formed by the second electronic device and the third electronic device, the second electronic device is the main device, and the third electronic device is the auxiliary device.
  • the two-dimensional code corresponding to the second electronic device can be generated in advance, that is, the two-dimensional code including the information of the second electronic device, and then the two-dimensional code can be displayed on the display screen, or the The QR code is printed out.
  • the user can operate the first electronic device to make the first electronic device scan the two-dimensional code including the information of the second electronic device, and the first electronic device can obtain the information of the second electronic device.
  • QR codes can be distinguished by different arrangements of black and white squares, and each arrangement only corresponds to a unique target. The black square can represent "1", and the white square can represent "0". Therefore, the two-dimensional code can be regarded as a sequence combination of "0" and "1" in essence.
  • Each two-dimensional code coding method has its specific character set, each character occupies a certain width, and has a certain verification function, etc.
  • Commonly used two-dimensional code preparation methods include: data matrix (data matrix, DM) code, quick response (quick response, QR) code, etc. It can be seen that the two-dimensional code corresponding to the second electronic device may include the information of the second electronic device or be generated according to the information code of the second electronic device, so that other electronic devices can decode the two-dimensional code corresponding to the second electronic device to obtain the second electronic device. 2. Information on electronic equipment.
  • the first electronic device acquires information about the third electronic device.
  • the first electronic device may obtain information about the third electronic device.
  • the first electronic device obtains the information of the third electronic device is the same as the first electronic device obtains the information of the second electronic device, so reference may be made to the related description of step 601 , which will not be described in detail here.
  • the information of the third electronic device may include connection information of the third electronic device, may further include shared capability information of the third electronic device, and may further include extended capability information of the third electronic device.
  • the connection information, shared capability information, and extended capability information of the third electronic device are similar to those of the second electronic device, so reference can be made to the related description of step 601, and details will not be repeated here.
  • the first electronic device may determine the address information of the third electronic device according to the connection information of the third electronic device. For detailed description, reference may be made to the above related description of determining the address information of the second electronic device according to the connection information of the second electronic device.
  • the first electronic device may display second prompt information for prompting the user whether to determine the third electronic device as the master device.
  • a master device selection interface may be displayed, and the master device selection interface includes information about whether to set the touch device as the master device, and a "Yes" confirmation control and a "No" confirmation control for the user to select.
  • the user can choose whether to set the third electronic device as the master device according to actual needs.
  • the first electronic device detects the user's second operation on the second prompt information, it may determine the third electronic device as the secondary device.
  • the first electronic device when the first electronic device detects the second operation on the main device selection interface, that is, when it detects the second operation for determining the third electronic device as the secondary device, the first electronic device may respond to the second operation,
  • the third electronic device is set as a sub-device of the hyper terminal, and the hyper terminal interface can be displayed.
  • the master device selection interface may be the user interface 43 shown in FIG. 4E above.
  • the hyper terminal interface may include an icon of the auxiliary device, and an on/off control of the auxiliary device.
  • the second operation may be an operation such as clicking or double-clicking on the "No" confirmation control in the above-mentioned embodiment shown in FIG. 4E .
  • the first electronic device may set the electronic device 300 as a secondary device of the HyperTerminal.
  • the first electronic device may display information about one or more capabilities included in the shared capability information of the third electronic device. For example, a device function selection interface is displayed, and the device function selection interface may include one or more capability selection controls, continue sharing controls, and finish sharing controls. The user may select a capability that needs to be shared by the third electronic device with the second electronic device from the displayed information of one or more capabilities according to actual needs.
  • the first electronic device When the first electronic device detects a user's selection instruction for some or all of the one or more capabilities included in the shared capability information of the third electronic device, it may 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, that is, when it detects a third operation for determining capability sharing information, the first electronic device may respond to the third operation and send the selected capability information to Identify the capabilities to share information.
  • the capability sharing information includes part 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 may be the user interface 45 in the embodiment shown in FIG. 4H above.
  • the third operation may be an input operation (for example, click) on the capability selection control 451 in the above-mentioned embodiment shown in FIG. 4H .
  • the capability selection control 451 may display a " ⁇ " as shown in FIG. 4H.
  • the first electronic device When the first electronic device does not determine the third electronic device as the secondary device, when the first electronic device detects the fourth operation on the device function selection interface, that is, when it detects the fourth operation for determining that the sharing is completed, In response to the fourth operation, the first electronic device can set the third electronic device as a secondary device of the HyperTerminal, and can display the HyperTerminal interface.
  • the hyperterminal interface may include the icon of the main device and the icon of the auxiliary device, as well as the switch control of the main device and the switch key of the auxiliary device.
  • the fourth operation may be an input operation (for example, click) for completing the sharing control 452 in the above-mentioned embodiment shown in FIG. 4H
  • the hyperterminal interface may be the user interface 46 in the above-mentioned embodiment shown in FIG. 4I .
  • the first electronic device After the first electronic device detects an input operation (such as a single click) aimed at completing the sharing control 452, in response to the input operation, the first electronic device may set the electronic device 300 as a secondary device of the HyperTerminal, and may display such as The user interface 46 is shown in FIG. 4I.
  • the first electronic device may receive user input, so that the user selects the capability that the third electronic device needs to share with the second electronic device. Therefore, users can freely build a virtual hyperterminal according to their own needs, so that the capabilities and usage scenarios of a single electronic device can be expanded according to actual needs.
  • Step 601 may be performed before step 602, or may be performed after step 602.
  • the first electronic device sends the address information and capability sharing information of the third electronic device to the second electronic device.
  • the second electronic device may receive address information and capability sharing information of the third electronic device from the first electronic device.
  • the first electronic device may first determine whether the extended capability information of the second electronic device includes capability sharing information; In the case of information, it indicates that the second electronic device does not support the capability shared by the third electronic device. Therefore, the first electronic device may not send the address information and capability sharing information of the third electronic device to the second electronic device, which can reduce unnecessary The information is sent, so that the power consumption of the first electronic device can be reduced.
  • the extended capability information of the second electronic device includes capability sharing information
  • Device address information and capability sharing information are included in the extended capability information of the second electronic device.
  • the first electronic device Sending the address information and capability sharing information of the third electronic device to the second electronic device ensures that after the connection between the second electronic device and the third electronic device is established, the second electronic device can use the capabilities of the third electronic device included in the capability sharing information .
  • the first electronic device may directly send capability sharing information to the second electronic device, so that the second electronic device may directly Among the capabilities of the third electronic device, the capability corresponding to the capability sharing information can be used.
  • the first electronic device can also send the second electronic device Send capability sharing information.
  • the first electronic device may first send notification information to the third electronic device, where the notification information includes the capability of the third electronic device included in the capability sharing information.
  • the third electronic device may receive the notification information from the first electronic device, and then may output prompt information for prompting the user whether to share the capability of the third electronic device included in the notification information.
  • the third electronic device detects the confirmation operation for the prompt information, it indicates that the third electronic device allows other electronic devices to use its own capabilities included in the notification information, and may send confirmation sharing information to the first electronic device.
  • the first electronic device may receive confirmation sharing information from the third electronic device, and then may send address information and capability sharing information of the third electronic device to the second electronic device according to the confirmation sharing information.
  • the third electronic device When the third electronic device detects the rejection operation for the prompt information, it indicates that other electronic devices are not allowed to use its own capabilities included in the notification information, so the third electronic device can send a refusal to share information or not send any information to the first electronic device .
  • the third electronic device may send the sharing refusal information to the first electronic device.
  • the first electronic device may receive the sharing refusal information from the third electronic device, and then may not send the address information and capability sharing information of the third electronic device to the second electronic device according to the sharing refusal information, which may reduce unnecessary information sending, thereby reducing the power consumption of the first electronic device.
  • the second electronic device cannot use the capability of the third electronic device included in the capability sharing information.
  • the third electronic device may not send any information to the first electronic device.
  • the first electronic device will not receive information from the third electronic device, therefore, if the first electronic device does not receive information from the third electronic device within a period of time, the first electronic device can determine that the third electronic device The device does not share the capability of the third electronic device included in the notification information, and may not send the address information and capability sharing information of the third electronic device to the second electronic device.
  • the first electronic device can send the address information and capability sharing information of the third electronic device to the second electronic device after receiving the confirmation sharing information from the third electronic device, which can reduce unnecessary information transmission, and thus can The power consumption of the first electronic device is reduced.
  • the second electronic device can use the capabilities of the third electronic device included in the capability sharing information.
  • the second electronic device establishes a communication connection with the third electronic device according to the address information of the third electronic device, and uses the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
  • the second electronic device may establish a communication connection with the third electronic device according to the address information of the third electronic device.
  • the second electronic device may also determine the available capabilities of the third electronic device according to the capability sharing information of the third electronic device, and use the corresponding capabilities of the third electronic device.
  • the second electronic device After the second electronic device establishes a communication connection with the third electronic device, the second electronic device can perform two-way communication with the third electronic device, and then the second electronic device can use the capability corresponding to the capability sharing information among the capabilities of the third electronic device. For example, assuming that the second electronic device can use the storage capability of the third electronic device, the second electronic device may first send request information to the third electronic device. Correspondingly, after the third electronic device receives the request information from the second electronic device, it may send the address of the locally available storage space to the second electronic device according to the request information. Therefore, after the second electronic device receives the storage space address from the third electronic device, it can send the data to be stored to the third electronic device, and at the same time, indicate the storage space address.
  • the third electronic device when the third electronic device receives data from the second electronic device, it can store the data in the corresponding address space. Afterwards, when the second electronic device needs to obtain data stored in the storage space of the third electronic device, the second electronic device may send data request information to the third electronic device, and the data request information may include a storage space address. Correspondingly, after the third electronic device receives the data request information 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 information, and send it to the second electronic device. Correspondingly, the second electronic device can receive data from the third electronic device.
  • the electronic device 200 when the electronic device 200 supports extended capabilities including the camera capability, and the user selects the electronic device 300 to share the camera capability with the electronic device 200, then the electronic device 200 can use the electronic device 300 camera capabilities. For example, when using the electronic device 200 to make a video call, the electronic device 200 may acquire the video frame captured by the electronic device 300 and display the video frame captured by the electronic device 300 on its own screen.
  • the second electronic device may display a hyperterminal interface.
  • the hyperterminal interface may include an icon of the main device and an icon of the auxiliary device, as well as an on/off control of the main device and an on/off key of the auxiliary device.
  • the hyperterminal interface may be the user interface 46 in the above embodiment shown in FIG. 4I.
  • the present application can also implement three or more electronic devices to form a hyper terminal.
  • the embodiment of the present application may also include a fourth electronic device.
  • the user may also control the first electronic device to obtain the fourth electronic device information, and the fourth electronic device can be set as a secondary device of the HyperTerminal.
  • the related description of the fourth electronic device is similar to the related description of the third electronic device, and reference may be made to the related description of the above third electronic device, and details are not repeated here. It can be understood that, in the case that the hyperterminal includes multiple auxiliary devices, part or all of the capabilities of a single electronic device can be utilized more effectively, and more application scenarios can be applied.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk, Solid State Disk) and the like.
  • the processes can be completed by computer programs to instruct related hardware.
  • the programs can be stored in computer-readable storage media.
  • When the programs are executed may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.

Abstract

A capability sharing method, electronic devices, and a computer-readable storage medium. The method comprises: a first electronic device determines that a second electronic device is a master device, determines that a third electronic device is a slave device, determines capability sharing information of the third electronic device, and sends the capability sharing information to the second electronic device, wherein the capability sharing information is used to instruct the second electronic device to use a capability corresponding to the capability sharing information among capabilities of the third electronic device. In the embodiments of the present application, the efficiency of capability sharing between different electronic devices may be increased.

Description

能力共享方法、电子设备以及计算机可读存储介质Capability sharing method, electronic device, and computer-readable storage medium
本申请要求于2021年09月23日提交中国专利局、申请号为202111116285.1、申请名称为“能力共享方法、电子设备以及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111116285.1 and the title of "capability sharing method, electronic device, and computer-readable storage medium" filed with the China Patent Office on September 23, 2021, the entire contents of which are incorporated by reference incorporated in this application.
技术领域technical field
本申请涉及终端及通信技术领域,尤其涉及能力共享方法、电子设备以及计算机可读存储介质。The present application relates to the field of terminal and communication technologies, and in particular to a capability sharing method, electronic equipment, and a computer-readable storage medium.
背景技术Background technique
随着科学技术的不断发展,电子设备的功能越来越丰富。在智能家居场景下,大部分电子设备都具有近场通信(near field communication,NFC)、蓝牙以及无线局域网(wireless local area network,WLAN)等功能。因此,不同的电子设备之间可以建立连接,以便它们之间可以进行能力共享。例如,智能手机可以和智能电视建立连接,之后智能手机可以使用智能电视的显示能力,实现例如投屏等功能。With the continuous development of science and technology, the functions of electronic equipment are becoming more and more abundant. In the smart home scenario, most electronic devices have functions such as near field communication (near field communication, NFC), Bluetooth, and wireless local area network (wireless local area network, WLAN). Therefore, connections can be established between different electronic devices so that capabilities can be shared among them. For example, a smart phone can establish a connection with a smart TV, and then the smart phone can use the display capability of the smart TV to implement functions such as screen projection.
目前,在不同的电子设备之间要进行能力共享的情况下,需要通过一个控制中心(如手机)来完成,用户可以先打开相应的控制界面,搜索各个电子设备,搜索到对应电子设备之后需要配置在同一网络下,之后可以实现各个电子设备之间的连接,以便它们之间可以进行能力共享。与此同时,如何提高不同电子设备之间进行能力共享的效率是技术人员关注的问题。At present, in the case of capability sharing between different electronic devices, it needs to be completed through a control center (such as a mobile phone). The user can first open the corresponding control interface and search for each electronic device. Configured under the same network, the connection between various electronic devices can be realized later, so that they can share capabilities. At the same time, how to improve the efficiency of capability sharing between different electronic devices is a concern of technical personnel.
发明内容Contents of the invention
本申请提供了能力共享方法、电子设备以及计算机可读存储介质,可以提高不同电子设备之间进行能力共享的效率。The present application provides a capability sharing method, an electronic device, and a computer-readable storage medium, which can improve the efficiency of capability sharing between different electronic devices.
第一方面,本申请提供了一种能力共享方法,包括:第一电子设备将第二电子设备确定为主设备;将第三电子设备确定为副设备;确定该第三电子设备的能力共享信息;向该第二电子设备发送该能力共享信息,该能力共享信息用于指示该第二电子设备使用该第三电子设备的能力中该能力共享信息对应的能力。In the first aspect, the present application provides a capability sharing method, including: the first electronic device determines the second electronic device as the master device; determines the third electronic device as the secondary device; determines the capability sharing information of the third electronic device ; sending the capability sharing information to the second electronic device, where the capability sharing information is used to instruct the second electronic device to use the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
在上述实施例中,在用户需要第三电子设备向第二电子设备共享能力的情况下,用户可以通过控制第一电子设备实现第二电子设备和第三电子设备之间的能力共享,使主设备可以使用副设备共享的能力。具体地,第一电子设备可以将第二电子确定为主设备,还可以将第三电子确定为副设备,之后,第一电子设备还可以确定第三电子设备的能力共享信息,以及可以向第二电子设备发送该能力共享信息,以便第二电子设备可以根据能力共享信息直接使用第三电子设备的能力中能力共享信息对应的能力,实现第二电子设备和第三电子设备之间的能力共享。可见,通过上述方法可以便捷的实现不同电子设备之间的能力共享,提高了不同电子设备之间进行能力共享的效率。此外,用户还可以根据实际的需求,选择不同的电子设备进行能力共享,提高了不同电子设备之间进行能力共享的灵活性,进而可以适用于各种应用场景。In the above embodiment, when the user needs the third electronic device to share capabilities with the second electronic device, the user can realize the capability sharing between the second electronic device and the third electronic device by controlling the first electronic device, so that the main Devices can use the capabilities shared by secondary devices. Specifically, the first electronic device may determine the second electronic device as a master device, and may also determine the third electronic device as a secondary device. After that, the first electronic device may also determine the capability sharing information of the third electronic device, and may report to the second electronic device The second electronic device sends the capability sharing information, so that the second electronic device can directly use the capability corresponding to the capability sharing information among the capabilities of the third electronic device according to the capability sharing information, so as to realize capability sharing between the second electronic device and the third electronic device . It can be seen that capability sharing between different electronic devices can be conveniently realized through the above method, and the efficiency of capability sharing among different electronic devices is improved. In addition, the user can also select different electronic devices for capability sharing according to actual needs, which improves the flexibility of capability sharing between different electronic devices, and is applicable to various application scenarios.
结合第一方面的一些实施例,在一些实施例中,该方法还包括:获取该第三电子设备的信息;该确定该第三电子设备的能力共享信息包括:根据该第三电子设备的信息,确定该第三电子设备的能力共享信息。With reference to some embodiments of the first aspect, in some embodiments, the method further includes: acquiring information of the third electronic device; determining the capability sharing information of the third electronic device includes: according to the information of the third electronic device , to determine the capability sharing information of the third electronic device.
结合第一方面的一些实施例,在一些实施例中,该方法还包括:获取该第二电子设备的信息,该第二电子设备的信息包括该第二电子设备的连接信息;使用该第二电子设备的连接信息与该第二电子设备建立连接。With reference to some embodiments of the first aspect, in some embodiments, the method further includes: acquiring information of the second electronic device, where the information of the second electronic device includes connection information of the second electronic device; using the second The connection information of the electronic device establishes a connection with the second electronic device.
在上述实施例中,第一电子设备可以获取包括第二电子设备的连接信息的第二电子设备的信息,之后,第一电子设备可以使用第二电子设备的连接信息与第二电子设备建立连接,从而第一电子设备和第二电子设备可以进行通信,以便第一电子设备可以向第二电子设备发送能力共享信息,实现第二电子设备和第三电子设备之间的能力共享。此外,由于第一电子设备与第二电子设备建立连接之后,可以更加快速便捷的进行信息交互,从而可以更快的实现第二电子设备和第三电子设备之间的能力共享。In the above embodiment, the first electronic device can obtain the information of the second electronic device including the connection information of the second electronic device, and then, the first electronic device can use the connection information of the second electronic device to establish a connection with the second electronic device , so that the first electronic device and the second electronic device can communicate, so that the first electronic device can send capability sharing information to the second electronic device, so as to implement capability sharing between the second electronic device and the third electronic device. In addition, after the first electronic device establishes a connection with the second electronic device, information exchange can be performed more quickly and conveniently, so that capability sharing between the second electronic device and the third electronic device can be realized faster.
结合第一方面的一些实施例,在一些实施例中,该将第二电子设备确定为主设备包括:显示用于提示用户是否将第二电子设备确定为主设备的第一提示信息;检测到用户针对该第一提示信息的第一操作时,将该第二电子设备确定为主设备。With reference to some embodiments of the first aspect, in some embodiments, determining the second electronic device as the master device includes: displaying first prompt information for prompting the user whether to determine the second electronic device as the master device; detecting When the user performs the first operation on the first prompt information, the second electronic device is determined as the master device.
在上述实施例中,第一电子设备可以先显示一个提示界面,该提示界面包括用于提示用户是否将第二电子设备确定为主设备的提示信息,用户可以根据实际需要执行针对该提示信息的单击等操作,第一电子设备可以检测用户针对该提示信息的操作,在检测到用户的操作为将第二电子设备设置为主设备的操作时,第一电子设备才将第二电子设备确定为主设备。通过上述方法,第一电子设备可以接收用户输入,根据用户输入确定主设备,因此,用户可以灵活的选择哪个电子设备作为主设备,扩展该电子设备对应的能力,以便适应不同的应用场景,满足用户的各种实际需求,进而可以提高用户的使用体验。In the above embodiment, the first electronic device may display a prompt interface first, and the prompt interface includes prompt information for prompting the user whether to determine the second electronic device as the master device, and the user may execute the prompt for the prompt information according to actual needs. Click and other operations, the first electronic device can detect the user's operation on the prompt information, and only when it detects that the user's operation is the operation of setting the second electronic device as the master device, the first electronic device will determine the second electronic device as the master device. Through the above method, the first electronic device can receive user input and determine the main device according to the user input. Therefore, the user can flexibly choose which electronic device is the main device, and expand the corresponding capabilities of the electronic device so as to adapt to different application scenarios and meet Various actual needs of users, and then can improve the user experience.
结合第一方面的一些实施例,在一些实施例中,该将第三电子设备确定为副设备包括:显示用于提示用户是否将第三电子设备确定为主设备的第二提示信息;检测到用户针对该第二提示信息的第二操作时,将该第三电子设备确定为副设备。With reference to some embodiments of the first aspect, in some embodiments, determining the third electronic device as a secondary device includes: displaying second prompt information for prompting the user whether to determine the third electronic device as the primary device; detecting When the user performs a second operation on the second prompt information, the third electronic device is determined as the secondary device.
在上述实施例中,第一电子设备可以先显示一个提示界面,该提示界面包括用于提示用户是否将第三电子设备确定为主设备的提示信息,用户可以根据实际需要执行针对该提示信息的单击等操作,第一电子设备可以检测用户针对该提示信息的操作,在检测到用户的操作为将第三电子设备设置为副设备的操作时,第一电子设备才将第三电子设备确定为副设备。通过上述方法,第一电子设备可以接收用户输入,根据用户输入确定副设备,因此,用户可以灵活的选择哪个电子设备作为副设备,共享该电子设备的能力给主设备,以便适应不同的应用场景,满足用户的各种实际需求,进而可以提高用户的使用体验。In the above embodiment, the first electronic device may display a prompt interface first, and the prompt interface includes prompt information for prompting the user whether to determine the third electronic device as the master device, and the user may execute the prompt for the prompt information according to actual needs. Click and other operations, the first electronic device can detect the user's operation on the prompt information, and only when it detects that the user's operation is the operation of setting the third electronic device as a secondary device, the first electronic device will determine 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 according to the user input. Therefore, the user can flexibly select which electronic device is used as the secondary device, and share the capabilities of the electronic device with the main device, so as to adapt to different application scenarios , to meet various actual needs of users, thereby improving user experience.
结合第一方面的一些实施例,在一些实施例中,该第三电子设备的信息包括该第三电子设备的共享能力信息,该共享能力信息包括一个或多个能力的信息,该根据该第三电子设备的信息,确定该第三电子设备的能力共享信息包括:显示该一个或多个能力的信息;检测到用户对该一个或多个能力中部分或全部能力的选择指令时,将选择的能力的信息确定为能力共享信息。With reference to 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, and the shared capability information includes information of one or more capabilities, according to the third electronic device Information about the third electronic device. Determining the capability sharing information of the third electronic device includes: displaying the information of the one or more capabilities; The capability information is determined as capability sharing information.
在上述实施例中,第一电子设备获取到包括第三电子设备的共享能力信息的第三电子设备的信息之后,可以显示共享能力信息包括的一个或多个能力的信息,用户可以根据实际需要执行针对该一个或多个能力的信息的单击等选择操作,第一电子设备可以在检测到用户对该一个或多个能力中部分或全部能力的选择指令时,将选择的能力的信息确定为能力共享信息,之后,可以向第二电子设备发送该能力共享信息,以便实现第二电子设备和第三电子设备之间的能力共享,其它未选择的能力可以共享给其它电子设备。通过上述方法,第一电子设备可以接收用户的选择指令,确定能力共享信息,因此,用户可以根据实际的需要,灵活 的选择需要第三电子设备向第二电子设备共享的能力,避免了不必要的能力选择。此外,能力共享信息不包括的第三电子设备的能力可以共享给其它电子设备,从而可以提高第三电子设备的能力的利用率。In the above embodiment, after the first electronic device obtains the information of the third electronic device including the shared capability information of the third electronic device, it can display the information of one or more capabilities included in the shared capability information, and the user can When performing a selection operation such as clicking on the information of the one or more capabilities, the first electronic device may determine the information of the selected capabilities when detecting the user's selection instruction for some or all of the one or more capabilities. For capability sharing information, the capability sharing information may be sent to the second electronic device afterwards, so as to implement capability sharing between the second electronic device and the third electronic device, and other unselected capabilities may be shared with other electronic devices. Through the above 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 capability that needs to be shared by the third electronic device to the second electronic device according to actual needs, avoiding unnecessary ability selection. In addition, the capabilities of the third electronic device not included in the capability sharing information can be shared with other electronic devices, so that the utilization rate of the capabilities of the third electronic device can be improved.
结合第一方面的一些实施例,在一些实施例中,该第三电子设备的信息包括该第三电子设备的连接信息,该向该第二电子设备发送该能力共享信息包括:根据该第三电子设备的连接信息,确定该第三电子设备的地址信息;向该第二电子设备发送该第三电子设备的地址信息和能力共享信息,该地址信息用于建立与该第三电子设备的连接。With reference to some embodiments of the first aspect, in some embodiments, the information of the third electronic device includes connection information of the third electronic device, and sending the capability sharing information to the second electronic device includes: according to the third electronic device The connection information of the electronic device, determining the address information of the third electronic device; sending the address information and capability sharing information of the third electronic device to the second electronic device, and the address information is used to establish a connection with the third electronic device .
在上述实施例中,第一电子设备可以根据第三电子设备的连接信息确定第三电子设备的地址信息,之后,可以向第二电子设备发送第三电子设备的地址信息和能力共享信息,以便第二电子设备在接收到第三电子设备的地址信息之后,可以根据第三电子设备的地址信息直接与第三电子设备建立连接,从而可以更快的实现第二电子设备与第三电子设备之间的能力共享。In the above embodiment, the first electronic device may determine the address information of the third electronic device according to the connection information of the third electronic device, and then may send the address information and capability sharing information of the third electronic device to the second electronic device, so that After receiving the address information of the third electronic device, the second electronic device can directly establish a connection with the third electronic device according to the address information of the third electronic device, so that the connection between the second electronic device and the third electronic device can be realized more quickly. capacity sharing among them.
结合第一方面的一些实施例,在一些实施例中,该获取该第二电子设备的信息包括:该第一电子设备通过NFC从该第二电子设备上NFC中读取该第二电子设备的信息;或者,该第一电子设备通过扫描包括该第二电子设备的信息的二维码,得到该第二电子设备的信息。With reference to some embodiments of the first aspect, in some embodiments, the obtaining the information of the second electronic device includes: the first electronic device reads the information of the second electronic device from the NFC on the second electronic device through NFC information; or, the first electronic device obtains the information of the second electronic device by scanning the two-dimensional code including the information of the second electronic device.
在上述实施例中,在用户需要第三电子设备向第二电子设备共享能力的情况下,可以移动第一电子设备靠近第二电子设备,第一电子设备可以通过NFC从第二电子设备上NFC中读取第二电子设备的信息,或可以操控第一电子设备扫描包括第二电子设备的信息的二维码,得到第二电子设备的信息,以便可以实现第二电子设备和第三电子设备之间的能力共享。可见,用户可以通过触碰操作,也即是移动第一电子设备靠近第二电子设备的操作,或扫描二维码等简单的操作,使第一电子设备获取第二电子设备的信息,不需要执行诸如:搜索第二电子设备、配置第二电子设备的网络等繁琐的操作,提高了第一电子设备与用户之间的交互效率。In the above embodiment, in the case that the user needs the third electronic device to share the capability with the second electronic device, the first electronic device can be moved close to the second electronic device, and the first electronic device can be connected to the second electronic device through NFC. Read the information of the second electronic device, or can manipulate the first electronic device to scan the two-dimensional code containing the information of the second electronic device to obtain the information of the second electronic device, so that the second electronic device and the third electronic device can be realized capacity sharing among them. It can be seen that the user can make the first electronic device obtain the information of the second electronic device through simple operations such as touching the first electronic device, that is, moving the first electronic device close to the second electronic device, or scanning a QR code. Performing cumbersome operations such as searching for the second electronic device and configuring the network of the second electronic device improves the efficiency of interaction between the first electronic device and the user.
结合第一方面的一些实施例,在一些实施例中,该第二电子设备的信息包括扩展能力信息,该向该第二电子设备发送该能力共享信息包括:在该扩展能力信息包括该能力共享信息的情况下,向该第二电子设备发送该能力共享信息。With reference to 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: including the capability sharing information in the extended capability information In the case of information, the capability sharing information is sent to the second electronic device.
在上述实施例中,由于电子设备不能使用自身不支持扩展的其它电子设备的能力,因此,第一电子设备向第二电子设备发送能力共享信息之前,可以先判断第二电子设备的扩展能力信息是否包括能力共享信息。在判断出第二电子设备的扩展能力信息不包括能力共享信息的情况下,表明第二电子设备不支持第三电子设备共享的能力,因此,第一电子设备可以不向第二电子设备发送第三电子设备的能力共享信息。在判断出第二电子设备的扩展能力信息包括能力共享信息的情况下,表明第二电子设备支持扩展用户选择的第三电子设备的能力,第一电子设备可以向第二电子设备发送第三电子设备的能力共享信息,以便实现第二电子设备和第三电子设备之间的能力共享。可见,在第二电子设备的扩展能力信息包括能力共享信息的情况下,第一电子设备才向第二电子设备发送能力共享信息,可以减少不必要信息的发送,从而可以降低第一电子设备的功耗。此外,还可以避免第二电子设备接收到来自第一电子设备的能力共享信息后,不能使用第三电子设备的能力中能力共享信息对应的能力的情况发生。In the above embodiment, since the electronic device cannot use the capabilities of other electronic devices that do not support extensions, the first electronic device may first determine the extended capability information of the second electronic device before sending the capability sharing information to the second electronic device Whether to include capability sharing information. If it is determined that the extended capability information of the second electronic device does not include the capability sharing information, it indicates that the second electronic device does not support the capability shared by the third electronic device. Therefore, the first electronic device may not send the second electronic device to the second electronic device. Three electronic devices are capable of sharing information. If it is judged that the extended capability information of the second electronic device includes capability sharing information, it indicates that the second electronic device supports extending the capability of the third electronic device selected by the user, and the first electronic device may send the third electronic device to the second electronic device. Capability sharing information of devices, so as to implement capability sharing between the second electronic device and the third electronic device. It can be seen that when the extended capability information of the second electronic device includes capability sharing information, the first electronic device only sends the capability sharing information to the second electronic device, which can reduce the sending of unnecessary information, thereby reducing the cost of the first electronic device. power consumption. In addition, it can also avoid the situation that the second electronic device cannot use the capability corresponding to the capability sharing information among the capabilities of the third electronic device after receiving the capability sharing information from the first electronic device.
结合第一方面的一些实施例,在一些实施例中,该方法还包括:向该第二电子设备发送能力请求信息;接收来自该第二电子设备的扩展能力信息;该向该第二电子设备发送该能力共享信息包括:在该扩展能力信息包括该能力共享信息的情况下,向该第二电子设备发送该能力共享信息。With reference to 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; Sending the capability sharing information includes: if the extended capability information includes the capability sharing information, sending the capability sharing information to the second electronic device.
在上述实施例中,第一电子设备可以向第二电子设备发送能力请求信息,以便第二电子设备接收到能力请求信息后,可以根据能力请求信息向第一电子设备发送自身的扩展能力信息。之后,第一电子设备向第二电子设备发送能力共享信息之前,可以先判断第二电子设备的扩展能力信息是否包括能力共享信息。在判断出第二电子设备的扩展能力信息不包括能力共享信息的情况下,表明第二电子设备不支持第三电子设备共享的能力,因此,第一电子设备可以不向第二电子设备发送第三电子设备的能力共享信息。在判断出第二电子设备的扩展能力信息包括能力共享信息的情况下,表明第二电子设备支持扩展用户选择的第三电子设备的能力,第一电子设备可以向第二电子设备发送第三电子设备的能力共享信息,以便实现第二电子设备和第三电子设备之间的能力共享。可见,在第二电子设备的扩展能力信息包括能力共享信息的情况下,第一电子设备才向第二电子设备发送能力共享信息,可以减少不必要信息的发送,从而可以降低第一电子设备的功耗。In the above embodiment, the first electronic device may send capability request information to the second electronic device, so that after receiving the capability request information, the second electronic device may send its own extended capability information to the first electronic device according to the capability request information. Afterwards, before the first electronic device sends the capability sharing information to the second electronic device, it may first determine whether the extended capability information of the second electronic device includes the capability sharing information. If it is determined that the extended capability information of the second electronic device does not include the capability sharing information, it indicates that the second electronic device does not support the capability shared by the third electronic device. Therefore, the first electronic device may not send the second electronic device to the second electronic device. Three electronic devices are capable of sharing information. If it is judged that the extended capability information of the second electronic device includes capability sharing information, it indicates that the second electronic device supports extending the capability of the third electronic device selected by the user, and the first electronic device may send the third electronic device to the second electronic device. Capability sharing information of devices, so as to implement capability sharing between the second electronic device and the third electronic device. It can be seen that when the extended capability information of the second electronic device includes capability sharing information, the first electronic device only sends the capability sharing information to the second electronic device, which can reduce the sending of unnecessary information, thereby reducing the cost of the first electronic device. power consumption.
第二方面,本申请提供了一种能力共享方法,包括:接收来自第一电子设备的第三电子设备的能力共享信息;使用该第三电子设备的能力中该能力共享信息对应的能力。In a second aspect, the present application provides a capability sharing method, including: receiving capability sharing information of a third electronic device from a first electronic device; and using a capability corresponding to the capability sharing information among the capabilities of the third electronic device.
在上述实施例中,第二电子设备可以接收来自第一电子设备的第三电子设备的能力共享信息,之后可以直接根据能力共享信息使用第三电子设备的能力中能力共享信息对应的能力,实现第二电子设备和第三电子设备之间的能力共享,从而提高了不同电子设备之间进行能力共享的效率。In the above embodiment, the second electronic device may receive the 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 among the capabilities of the third electronic device according to the capability sharing information to implement The capability sharing between the second electronic device and the third electronic device improves the efficiency of capability sharing between different electronic devices.
结合第二方面的一些实施例,在一些实施例中,该接收来自第一电子设备的第三电子设备的能力共享信息包括:接收来自第一电子设备的第三电子设备的地址信息和能力共享信息;该方法还包括:根据该地址信息建立与该第三电子设备的连接。With reference to some embodiments of the second aspect, in some embodiments, receiving the capability sharing information of the third electronic device from the first electronic device includes: receiving the address information and capability sharing information of the third electronic device from the first electronic device information; the method further includes: establishing a connection with the third electronic device according to the address information.
在上述实施例中,第二电子设备可以接收来自第一电子设备的第三电子设备的地址信息和能力共享信息,之后可以根据第三电子设备的地址信息直接与第三电子设备建立连接,进行信息交互,从而可以快速的实现第二电子设备与第三电子设备之间的能力共享,使第二电子设备可以使用第三电子设备的能力中能力共享信息对应的能力。In the above embodiment, the second electronic device may receive the address information and capability sharing information of the third electronic device from the first electronic device, and then directly establish a connection with the third electronic device according to the address information of the third electronic device to perform Information exchange, so that capability sharing between the second electronic device and the third electronic device can be quickly realized, so that the second electronic device can use the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
结合第二方面的一些实施例,在一些实施例中,该方法还包括:通过该第二电子设备的近场通信NFC向该第一电子设备发送该第二电子设备的信息,该第二电子设备的信息包括该第二电子设备的连接信息和/或扩展能力信息。With reference to some embodiments of the second aspect, in some embodiments, the method further includes: sending the information of the second electronic device to the first electronic device through the near field communication (NFC) of the second electronic device, and the second electronic device The device information includes connection information and/or extended capability information of the second electronic device.
在上述实施例中,在用户需要第三电子设备向第二电子设备共享能力的情况下,可以移动第一电子设备靠近第二电子设备,第二电子设备可以通过NFC向第一电子发送第二电子设备的信息,以便实现第二电子设备和第三电子设备之间的能力共享。可见,用户可以通过触碰操作,也即是移动第一电子设备靠近第二电子设备的操作,使第二电子设备向第一电子设备发送自身的信息。相应地,第一电子设备可以接收第二电子设备的信息,不需要执行诸如:搜索第二电子设备、配置第二电子设备的网络等繁琐的操作,提高了第一电子设备与用户之间的交互效率。In the above embodiment, when the user needs the third electronic device to share capabilities with the second electronic device, the first electronic device can be moved close to the second electronic device, and the second electronic device can send the second electronic device to the first electronic device through NFC. Information about the electronic device, so as to realize capability sharing between the second electronic device and the third electronic device. It can be seen that the user can make the second electronic device send its own information to the first electronic device through a touch operation, that is, an operation of moving the first electronic device close to the second electronic device. Correspondingly, the first electronic device can receive the information of the second electronic device without performing cumbersome operations such as: searching for the second electronic device, configuring the network of the second electronic device, etc., which improves the communication between the first electronic device and the user. Interactive efficiency.
结合第二方面的一些实施例,在一些实施例中,该方法还包括:接收来自该第一电子设备的能力请求信息;根据该能力请求信息向该第一电子设备发送该第二电子设备的扩展能力信息。With reference to some embodiments of the second aspect, in some embodiments, the method further includes: receiving capability request information from the first electronic device; sending the information of the second electronic device to the first electronic device according to the capability request information Extended capabilities information.
在上述实施例中,第二电子设备接收来自第一电子设备的能力请求信息之后,可以根据能力请求信息向第一电子设备发送自身的扩展能力信息。以便第一电子设备可以接收来自第二电子设备的扩展能力信息,之后在向第二电子设备发送能力共享信息之前,可以先判断第 二电子设备的扩展能力信息是否包括能力共享信息。第一电子设备在判断出第二电子设备的扩展能力信息不包括能力共享信息的情况下,表明第二电子设备不支持第三电子设备共享的能力,因此,第一电子设备可以不向第二电子设备发送第三电子设备的能力共享信息。第一电子设备在判断出第二电子设备的扩展能力信息包括能力共享信息的情况下,表明第二电子设备支持扩展用户选择的第三电子设备的能力,第一电子设备可以向第二电子设备发送第三电子设备的能力共享信息,以便实现第二电子设备和第三电子设备之间的能力共享。可见,在第二电子设备的扩展能力信息包括能力共享信息的情况下,第一电子设备才向第二电子设备发送能力共享信息,可以减少不必要信息的发送,从而可以降低第一电子设备的功耗。In the above embodiment, after receiving the capability request information from the first electronic device, the second electronic device may send its extended capability information to the first electronic device according to the capability request information. So that the first electronic device can receive the extended capability information from the second electronic device, and before sending the capability sharing information to the second electronic device, it can first determine whether the extended capability information of the second electronic device includes the capability sharing information. When 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 capability shared by the third electronic device. The electronic device sends capability sharing information of the third electronic device. When 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 capability of the third electronic device selected by the user, and the first electronic device may send the second electronic device The capability sharing information of the third electronic device is sent, so as to implement capability sharing between the second electronic device and the third electronic device. It can be seen that when the extended capability information of the second electronic device includes capability sharing information, the first electronic device only sends the capability sharing information to the second electronic device, which can reduce the sending of unnecessary information, thereby reducing the cost of the first electronic device. power consumption.
第三方面,本申请提供了一种能力共享装置,该能力共享装置可以为第一电子设备,也可以为第一电子设备的模块(例如,芯片)。该能力共享装置可以包括:In a third aspect, the present application provides a capability sharing device. The capability sharing device may be a first electronic device, or may be a module (for example, a chip) of the first electronic device. The capability sharing means may include:
第一确定单元,用于将第二电子设备确定为主设备;a first determining unit, configured to determine the second electronic device as a master device;
第一确定单元,还用于将第三电子设备确定为副设备;The first determining unit is further configured to determine the third electronic device as the secondary device;
第二确定单元,用于确定该第三电子设备的能力共享信息;a second determining unit, configured to determine the capability sharing information of the third electronic device;
发送单元,用于向该第二电子设备发送该能力共享信息,该能力共享信息用于指示该第二电子设备使用该第三电子设备的能力中该能力共享信息对应的能力。A sending unit, configured to send the capability sharing information to the second electronic device, where the capability sharing information is used to instruct the second electronic device to use the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
结合第三方面的一些实施例,在一些实施例中,该能力共享装置还可以包括:With reference to some embodiments of the third aspect, in some embodiments, the capability sharing apparatus may further include:
获取单元,用于获取该第三电子设备的信息;an obtaining unit, configured to obtain information of the third electronic device;
该第二确定单元,具体用于根据该第三电子设备的信息,确定该第三电子设备的能力共享信息。The second determining unit is specifically configured to determine the capability sharing information of the third electronic device according to the information of the third electronic device.
结合第三方面的一些实施例,在一些实施例中,该获取单元还用于获取该第二电子设备的信息,该第二电子设备的信息包括该第二电子设备的连接信息;With reference to some embodiments of the third aspect, in some embodiments, the obtaining unit is further configured to obtain information of the second electronic device, where the information of the second electronic device includes connection information of the second electronic device;
该能力共享装置还可以包括:The capability sharing device may also include:
连接建立单元,用于使用该第二电子设备的连接信息与该第二电子设备建立连接。A connection establishing unit, configured to use the connection information of the second electronic device to establish a connection with the second electronic device.
结合第三方面的一些实施例,在一些实施例中,该第一确定单元将第二电子设备确定为主设备包括:With reference to some embodiments of the third aspect, in some embodiments, the determining by the first determining unit that the second electronic device is a master device includes:
显示用于提示用户是否将第二电子设备确定为主设备的第一提示信息;displaying first prompt information for prompting the user whether to determine the second electronic device as the master device;
检测到用户针对该第一提示信息的第一操作时,将该第二电子设备确定为主设备。When the first operation of the user on the first prompt information is detected, the second electronic device is determined as the master device.
结合第三方面的一些实施例,在一些实施例中,该第一确定单元将第三电子设备确定为副设备包括:With reference to some embodiments of the third aspect, in some embodiments, the first determining unit determining the third electronic device as the secondary device includes:
显示用于提示用户是否将第三电子设备确定为主设备的第二提示信息;displaying second prompt information for prompting the user whether to determine the third electronic device as the master device;
检测到用户针对该第二提示信息的第二操作时,将该第三电子设备确定为副设备。When the second operation of the user on the second prompt information is detected, the third electronic device is determined as the secondary device.
结合第三方面的一些实施例,在一些实施例中,该第三电子设备的信息包括该第三电子设备的共享能力信息,该共享能力信息包括一个或多个能力的信息,该第二确定单元根据该第三电子设备的信息,确定该第三电子设备的能力共享信息包括:With reference to some embodiments of the third aspect, in some embodiments, the information of the third electronic device includes shared capability information of the third electronic device, the shared capability information includes information of one or more capabilities, and the second determination The unit determining the capability sharing information of the third electronic device according to the information of the third electronic device includes:
显示该一个或多个能力的信息;information showing the one or more capabilities;
检测到用户对该一个或多个能力中部分或全部能力的选择指令时,将选择的能力的信息确定为能力共享信息。When a user's selection instruction for some or all of the one or more capabilities is detected, the information of the selected capabilities is determined as capability sharing information.
结合第三方面的一些实施例,在一些实施例中,该第三电子设备的信息包括该第三电子设备的连接信息,该发送单元具体用于:With reference to some embodiments of the third aspect, in some embodiments, the information of the third electronic device includes connection information of the third electronic device, and the sending unit is specifically configured to:
根据该第三电子设备的连接信息,确定该第三电子设备的地址信息;determining address information of the third electronic device according to the connection information of the third electronic device;
向该第二电子设备发送该第三电子设备的地址信息和能力共享信息,该地址信息用于建 立与该第三电子设备的连接。Send the address information and capability sharing information of the third electronic device to the second electronic device, where the address information is used to establish a connection with the third electronic device.
结合第三方面的一些实施例,在一些实施例中,该获取单元具体用于:With reference to some embodiments of the third aspect, in some embodiments, the acquiring unit is specifically configured to:
通过近场通信NFC从该第二电子设备上NFC中读取该第二电子设备的信息;或者,通过扫描包括该第二电子设备的信息的二维码,得到该第二电子设备的信息。The information of the second electronic device is read from the NFC on the second electronic device through NFC; or, the information of the second electronic device is obtained by scanning a two-dimensional code including the information of the second electronic device.
结合第三方面的一些实施例,在一些实施例中,该第二电子设备的信息包括扩展能力信息,该发送单元向该第二电子设备发送该能力共享信息包括:With reference to some embodiments of the third 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 by the sending unit includes:
在该扩展能力信息包括该能力共享信息的情况下,向该第二电子设备发送该能力共享信息。If the extended capability information includes the capability sharing information, send the capability sharing information to the second electronic device.
结合第三方面的一些实施例,在一些实施例中,该发送单元,还用于向该第二电子设备发送能力请求信息;With reference to 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;
该能力共享装置还可以包括:The capability sharing device may also include:
接收单元,用于接收来自该第二电子设备的扩展能力信息;a receiving unit, configured to receive extended capability information from the second electronic device;
该发送单元向该第二电子设备发送该能力共享信息包括:Sending the capability sharing information to the second electronic device by the sending unit includes:
在该扩展能力信息包括该能力共享信息的情况下,向该第二电子设备发送该能力共享信息。If the extended capability information includes the capability sharing information, send the capability sharing information to the second electronic device.
第四方面,本申请提供了一种能力共享装置,该能力共享装置可以为第二电子设备,也可以为第二电子设备的模块(例如,芯片)。该能力共享装置可以包括:In a fourth aspect, the present application provides a capability sharing device. The capability sharing device may be a second electronic device, or may be a module (for example, a chip) of the second electronic device. The capability sharing means may include:
接收单元,用于接收来自第一电子设备的第三电子设备的能力共享信息;a receiving unit, configured to receive the capability sharing information of the third electronic device from the first electronic device;
使用单元,用于使用该第三电子设备的能力中该能力共享信息对应的能力。The using unit is configured to use the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
结合第四方面的一些实施例,在一些实施例中,该接收单元,具体用于接收来自第一电子设备的第三电子设备的地址信息和能力共享信息;With reference to some embodiments of the fourth aspect, in some embodiments, the receiving unit is specifically configured to receive address information and capability sharing information of a third electronic device from the first electronic device;
该能力共享装置还可以包括:The capability sharing device may also include:
连接建立单元,用于根据该地址信息建立与该第三电子设备的连接。A connection establishing unit, configured to establish a connection with the third electronic device according to the address information.
结合第四方面的一些实施例,在一些实施例中,该能力共享装置还可以包括:With reference to some embodiments of the fourth aspect, in some embodiments, the capability sharing apparatus may further include:
第一发送单元,用于通过近场通信NFC向该第一电子设备发送该第二电子设备的信息,该第二电子设备的信息包括该第二电子设备的连接信息和/或扩展能力信息。The first sending unit is configured to send the information of the second electronic device to the first electronic device through near field communication (NFC), where the information of the second electronic device includes connection information and/or extended capability information of the second electronic device.
结合第四方面的一些实施例,在一些实施例中,该接收单元,还用于接收来自该第一电子设备的能力请求信息;With reference to 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;
该能力共享装置还可以包括:The capability sharing device may also include:
第二发送单元,用于根据该能力请求信息向该第一电子设备发送该第二电子设备的扩展能力信息。The second sending unit is configured to send the extended capability information of the second electronic device to the first electronic device according to the capability request information.
第五方面,本申请提供了一种电子设备,该电子设备可以为第一电子设备,该电子设备可以包括:存储器、处理器、触控屏和通信模块。其中,该存储器,用于存储计算机程序,该计算机程序包括程序指令;该处理器用于调用该程序指令,使得该第一电子设备执行如下步骤:In a fifth aspect, the present application provides an electronic device, which may be a first electronic device, and may include: a memory, a processor, a touch screen, and a communication module. Wherein, the memory is used to store a computer program, and the computer program includes program instructions; the processor is used to call the program instructions, so that the first electronic device performs the following steps:
将第二电子设备确定为主设备;将第三电子设备确定为副设备;确定该第三电子设备的能力共享信息;向该第二电子设备发送该能力共享信息,该能力共享信息用于指示该第二电子设备使用该第三电子设备的能力中该能力共享信息对应的能力。Determine the second electronic device as the master device; determine the third electronic device as the slave device; determine the capability sharing information of the third electronic device; send the capability sharing information to the second electronic device, and the capability sharing information is used to indicate The second electronic device uses the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
结合第五方面的一些实施例,在一些实施例中,该处理器还用于获取该第三电子设备的信息;该处理器确定该第三电子设备的能力共享信息包括:根据该第三电子设备的信息,确定该第三电子设备的能力共享信息。With reference to some embodiments of the fifth aspect, in some embodiments, the processor is further configured to acquire information of the third electronic device; determining the capability sharing information of the third electronic device by the processor includes: according to the third electronic device The information of the device determines the capability sharing information of the third electronic device.
结合第五方面的一些实施例,在一些实施例中,该处理器还用于获取该第二电子设备的信息,该第二电子设备的信息包括该第二电子设备的连接信息;通过通信模块使用该第二电子设备的连接信息与该第二电子设备建立连接。With reference to some embodiments of the fifth aspect, in some embodiments, the processor is further configured to acquire information of the second electronic device, where the information of the second electronic device includes connection information of the second electronic device; through the communication module A connection is established with the second electronic device by using the connection information of the second electronic device.
结合第五方面的一些实施例,在一些实施例中,该处理器将第二电子设备确定为主设备具体包括:指示该触控屏显示用于提示用户是否将第二电子设备确定为主设备的第一提示信息;检测到用户针对该第一提示信息的第一操作时,将该第二电子设备确定为主设备。With reference to some embodiments of the fifth aspect, in some embodiments, determining the second electronic device as the master device by the processor specifically includes: indicating that the touch screen display is used to prompt the user whether to determine the second electronic device as the master device the first prompt information of the first prompt information; when the first operation of the user on the first prompt information is detected, the second electronic device is determined as the master device.
结合第五方面的一些实施例,在一些实施例中,该处理器将第三电子设备确定为副设备具体包括:指示该触控屏显示用于提示用户是否将第三电子设备确定为主设备的第二提示信息;检测到用户针对该第二提示信息的第二操作时,将该第三电子设备确定为副设备。With reference to some embodiments of the fifth aspect, in some embodiments, the processor determining the third electronic device as a secondary device specifically includes: instructing the touch screen to prompt the user whether to determine the third electronic device as a primary device the second prompt information; when detecting a second operation by the user on the second prompt information, determine the third electronic device as the secondary device.
结合第五方面的一些实施例,在一些实施例中,该第三电子设备的信息包括该第三电子设备的共享能力信息,该共享能力信息包括一个或多个能力的信息,该处理器根据该第三电子设备的信息,确定该第三电子设备的能力共享信息包括:指示该触控屏显示该一个或多个能力的信息;检测到用户对该一个或多个能力中部分或全部能力的选择指令时,将选择的能力的信息确定为能力共享信息。With reference to 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, and the shared capability information includes information of one or more capabilities, and the processor according to The information of the third electronic device, determining the capability sharing information of the third electronic device includes: indicating that the touch screen displays the information of the one or more capabilities; detecting that the user has part or all of the one or more capabilities When the selection command is selected, the information of the selected capability is determined as the capability sharing information.
结合第五方面的一些实施例,在一些实施例中,该第三电子设备的信息包括该第三电子设备的连接信息,该通过通信模块向该第二电子设备发送该能力共享信息包括:该处理器根据该第三电子设备的连接信息,确定该第三电子设备的地址信息;通过该通信模块向该第二电子设备发送该第三电子设备的地址信息和能力共享信息,该地址信息用于建立与该第三电子设备的连接。With reference to some embodiments of the fifth aspect, in some embodiments, the information of the third electronic device includes connection information of the third electronic device, and sending the capability sharing information to the second electronic device through the communication module includes: the The processor determines the address information of the third electronic device according to the connection information of the third electronic device; sends the address information and capability sharing information of the third electronic device to the second electronic device through the communication module, and uses the address information to for establishing a connection with the third electronic device.
结合第五方面的一些实施例,在一些实施例中,该处理器获取该第二电子设备的信息包括:通过近场通信NFC从该第二电子设备NFC中读取该第二电子设备的信息;或者,通过指示摄像头扫描包括该第二电子设备的信息的二维码,得到该第二电子设备的信息。With reference to some embodiments of the fifth aspect, in some embodiments, obtaining the information of the second electronic device by the processor includes: reading the information of the second electronic device from the NFC of the second electronic device through NFC or, obtain the information of the second electronic device by instructing the camera to scan the two-dimensional code including the information of the second electronic device.
结合第五方面的一些实施例,在一些实施例中,该第二电子设备的信息包括扩展能力信息,该通过通信模块向该第二电子设备发送该能力共享信息包括:在该扩展能力信息包括该能力共享信息的情况下,通过通信模块向该第二电子设备发送该能力共享信息。With reference to 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 through the communication module includes: the extended capability information includes In the case of the capability sharing information, the capability sharing information is sent to the second electronic device through the communication module.
结合第五方面的一些实施例,在一些实施例中,该通信模块还用于向该第二电子设备发送能力请求信息;该通信模块还用于接收来自该第二电子设备的扩展能力信息;该通过通信模块向该第二电子设备发送该能力共享信息包括:在该扩展能力信息包括该能力共享信息的情况下,向该第二电子设备发送该能力共享信息。With reference to some embodiments of the fifth aspect, in some embodiments, the communication module is also used to send capability request information to the second electronic device; the communication module is also used to receive extended capability information from the second electronic device; The sending the capability sharing information to the second electronic device through the communication module includes: if the extended capability information includes the capability sharing information, sending the capability sharing information to the second electronic device.
第六方面,本申请提供了一种电子设备,该电子设备可以为第二电子设备,该电子设备可以包括:存储器、处理器和通信模块。其中,该存储器,用于存储计算机程序,该计算机程序包括程序指令;该处理器用于调用该程序指令,使得该第一电子设备执行如下步骤:In a sixth aspect, the present application provides an electronic device, where the electronic device may be a second electronic device, and the electronic device may include: a memory, a processor, and a communication module. Wherein, the memory is used to store a computer program, and the computer program includes program instructions; the processor is used to call the program instructions, so that the first electronic device performs the following steps:
通过通信模块接收来自第一电子设备的第三电子设备的能力共享信息;使用该第三电子设备的能力中该能力共享信息对应的能力。Receive the capability sharing information of the third electronic device from the first electronic device through the communication module; use the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
结合第六方面的一些实施例,在一些实施例中,该通过通信模块接收来自第一电子设备的第三电子设备的能力共享信息包括:通过该通信模块接收来自第一电子设备的第三电子设备的地址信息和能力共享信息;该通信模块还用于根据该地址信息建立与该第三电子设备的连接。With reference to some embodiments of the sixth aspect, in some embodiments, receiving the capability sharing information of the third electronic device from the first electronic device through the communication module includes: receiving the third electronic device from the first electronic device through the communication module. Address information and capability sharing information of the device; the communication module is also used to establish a connection with the third electronic device according to the address information.
结合第六方面的一些实施例,在一些实施例中,该通信模块还用于通过第二电子设备的近场通信NFC向该第一电子设备发送该第二电子设备的信息,该第二电子设备的信息包括该第二电子设备的连接信息和/或扩展能力信息。With reference to some embodiments of the sixth aspect, in some embodiments, the communication module is further configured to send the information of the second electronic device to the first electronic device through the near field communication (NFC) of the second electronic device, and the second electronic device The device information includes connection information and/or extended capability information of the second electronic device.
结合第六方面的一些实施例,在一些实施例中,该通信模块还用于接收来自该第一电子设备的能力请求信息;该处理器根据该能力请求信息通过该通信模块向该第一电子设备发送该第二电子设备的扩展能力信息。With reference to 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 transmits the capability request information to the first electronic device through the communication module according to the capability request information The device sends extended capability information of the second electronic device.
第七方面,本申请实施例提供了一种电子设备,该电子设备包括:触控屏、通信模块,以及一个或多个处理器和存储器;该一个或多个处理器与该触控屏、该通信模块、该一个或多个存储器耦合,该一个或多个存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,该一个或多个处理器调用该计算机指令以使得该电子设备执行如第一方面或第一方面中任一可能的实现方式描述的方法。In a seventh aspect, the embodiment of the present application provides an electronic device, the electronic device includes: a touch screen, a communication module, and one or more processors and memories; the one or more processors and the touch screen, The communication module and the one or more memories are coupled, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and the one or more processors call the computer instructions to make the electronic device execute The method as described in the first aspect or any possible implementation manner in the first aspect.
第八方面,本申请实施例提供了一种电子设备,该电子设备包括:通信模块,以及一个或多个处理器和存储器;该一个或多个处理器与该通信模块、该一个或多个存储器耦合,该一个或多个存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令,该一个或多个处理器调用该计算机指令以使得该电子设备执行如第二方面或第二方面中任一可能的实现方式描述的方法。In an eighth aspect, the embodiment of the present application provides an electronic device, which includes: a communication module, and one or more processors and memories; the one or more processors and the communication module, the one or more Memory coupling, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and the one or more processors call the computer instructions to make the electronic device execute the second aspect or the second aspect Any possible implementation describes the method.
第九方面,本申请提供了一种芯片系统,该芯片系统应用于电子设备,该芯片系统包括一个或多个处理器,该处理器用于调用计算机指令以使得该电子设备执行如第一方面或第一方面中任一可能的实现方式,或者第二方面或第二方面中任一种可能的实现方式描述的方法。In a ninth aspect, the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to invoke computer instructions so that the electronic device executes the electronic device according to the first aspect or Any possible implementation manner in the first aspect, or the second aspect or the method described in any possible implementation manner in the second aspect.
第十方面,本申请提供了一种包含指令的计算机程序产品,当上述计算机程序产品在电子设备上运行时,使得上述电子设备执行如第一方面或第一方面中任一可能的实现方式,或者第二方面或第二方面中任一种可能的实现方式描述的方法。In a tenth aspect, the present application provides a computer program product containing instructions. When the above-mentioned computer program product is run on an electronic device, the above-mentioned electronic device executes the first aspect or any possible implementation manner of the first aspect, Or the method described in the second aspect or any possible implementation manner of the second aspect.
第十一方面,本申请提供了一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如第一方面或第一方面中任一可能的实现方式,或者第二方面或第二方面中任一种可能的实现方式描述的方法。In an eleventh aspect, the present application provides a computer-readable storage medium, including instructions. When the above-mentioned instructions are run on the electronic device, the above-mentioned electronic device executes the first aspect or any possible implementation method of the first aspect. , or the second aspect or the method described in any possible implementation manner of the second aspect.
可以理解地,上述第四方面提供的能力共享装置、第五方面提供的能力共享装置、第七方面提供的电子设备、第八方面提供的电子设备、第九方面提供的芯片系统、第十方面提供的计算机程序产品和第十一方面提供的计算机存储介质均用于执行本申请第一方面以及第一方面中任一可能的实现方式、第二方面以及第二方面中任一种可能的实现方式所提供的方法。因此,其所能达到的有益效果可参考对应方法中的有益效果,此处不再赘述。It can be understood that the capability sharing device provided by the fourth aspect, the capability sharing device provided by the fifth aspect, the electronic device provided by the seventh aspect, the electronic device provided by the eighth aspect, the chip system provided by the ninth aspect, the tenth aspect The computer program product provided and the computer storage medium provided in the eleventh aspect are both used to implement the first aspect of the present application and any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect method provided by the method. Therefore, the beneficial effects that it can achieve can refer to the beneficial effects in the corresponding method, and will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
图2为本申请实施例提供的一种电子设备的软件结构示意图;FIG. 2 is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application;
图3A为本申请实施例提供的一种家庭场景示意图;FIG. 3A is a schematic diagram of a family scene provided by an embodiment of the present application;
图3B为本申请实施例提供的一张电子设备捕获的图像示意图;FIG. 3B is a schematic diagram of an image captured by an electronic device provided in an embodiment of the present application;
图4A-图4C为本申请实施例提供的一组开启NFC界面示意图;Fig. 4A-Fig. 4C are a set of schematic diagrams of opening the NFC interface provided by the embodiment of the present application;
图4D为本申请实施例提供的一种电子设备触碰的示意图;FIG. 4D is a schematic diagram of an electronic device touch provided in an embodiment of the present application;
图4E-图4F为本申请实施例提供的一组设置主设备的界面示意图;FIG. 4E-FIG. 4F are schematic diagrams of a set of interfaces for setting master devices provided by the embodiment of the present application;
图4G为本申请实施例提供的另一种电子设备触碰的示意图;FIG. 4G is a schematic diagram of another electronic device touch provided by the embodiment of the present application;
图4H-图4I为本申请实施例提供的一组共享能力的界面示意图;FIG. 4H-FIG. 4I are schematic interface diagrams of a group of sharing capabilities provided by the embodiment of the present application;
图4J-图4K为本申请实施例提供的一组打开超级终端的界面示意图;Fig. 4J-Fig. 4K are a set of schematic diagrams of opening hyper terminal interfaces provided by the embodiment of the present application;
图5A-图5E为本申请实施例提供的一组进行视频通话的界面示意图;5A-5E are schematic diagrams of a group of interfaces for video calls provided by the embodiment of the present application;
图6为本申请实施例提供的一种能力共享方法的流程示意图。FIG. 6 is a schematic flowchart of a capability sharing method provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或者特性可以包含在本实施例申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是相同的实施例,也不是与其它实施例互斥的独立的或是备选的实施例。本领域技术人员可以显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application of embodiments. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
本申请的说明书和权利要求书及所述附图中术语“第一”、“第二”、“第三”等是区别于不同的对象,而不是用于描述特定顺序。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。此外,术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤或单元,或者可选地,还包括没有列出的步骤或单元,或者可选地还包括这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and the like in the specification and claims of the present application and the drawings are used to distinguish different objects, and are not used to describe a specific order. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, the "multiple" The meaning is two or more. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a series of steps or units are included, or alternatively, unlisted steps or units are also included, or other steps or units inherent in the process, method, product or apparatus are optionally included.
本申请实施例中的第一电子设备可以为智能手机、平板电脑以及智能手表等通信设备,第二电子设备和第三电子设备可以为网络摄像头、网络电视、扫地机器人、智能跑步机以及蓝牙音箱等电子设备。The first electronic device in the embodiment of the present application may be a communication device such as a smart phone, a tablet computer, and a smart watch, and the second electronic device and the third electronic device may be a network camera, a network TV, a sweeping robot, a smart treadmill, and a Bluetooth speaker and other electronic equipment.
图1示出了电子设备100的结构示意图。FIG. 1 shows a schematic structural diagram of an electronic device 100 .
下面以电子设备100为例对实施例进行具体说明。应该理解的是,图1所示电子设备100仅是一个范例,并且电子设备100可以具有比图1中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。Hereinafter, the embodiment will be specifically described by taking the electronic device 100 as an example. It should be understood that the electronic device 100 shown in FIG. 1 is merely an example, and that the electronic device 100 may have more or fewer components than those shown in FIG. 1, two or more components may be combined, or Different component configurations are possible. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或 多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units can be independent devices, and can also be integrated in one or more processors.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如Wi-Fi网络),蓝牙(bluetooth,BT),BLE广播,全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area network (wireless local area networks, WLAN) (such as Wi-Fi network), Bluetooth (bluetooth, BT), BLE broadcasting, global navigation satellite system (global navigation satellite system) applied on the electronic device 100. system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可 以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as: image recognition, face recognition, speech recognition, text understanding, and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。 Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the receiver 170B can be placed close to the human ear to receive the voice.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号、降噪、还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, sound source identification, and directional recording functions.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 .
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的鸿蒙系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Hongmeng system with a layered architecture is taken as an example to illustrate the software structure of the electronic device 100 .
图2是本申请实施例提供的电子设备100的软件结构框图。FIG. 2 is a block diagram of the software structure of the electronic device 100 provided by the embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接 口通信。在一些实施例中,将鸿蒙系统分为四层,从上至下分别为应用层,应用框架层,系统服务层,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Hongmeng system is divided into four layers, which are application layer, application framework layer, system service layer, and kernel layer from top to bottom.
应用层可以包括一系列系统应用和第三方非系统应用。其中,基于鸿蒙系统的应用由一个或多个元程序(feature ability,FA)或元服务(particle ability,PA)组成。其中,FA有用户界面(user interface,UI)界面,提供与用户交互的能力;而PA无UI界面,用于提供后台运行任务的能力以及统一的数据访问抽象。The application layer can include a series of system applications and third-party non-system applications. Among them, the application based on Hongmeng system consists of one or more meta-programs (feature ability, FA) or meta-services (particle ability, PA). Among them, FA has a user interface (UI) interface, which provides the ability to interact with users; while PA has no UI interface, which is used to provide the ability to run tasks in the background and a unified data access abstraction.
如图2所示,系统应用可以包括日历,桌面,控制栏,设置,电话等应用程序,第三方应用可以包括腾讯视频,微博,今日头条,优酷视频等应用程序。As shown in Figure 2, system applications may include applications such as calendar, desktop, control bar, settings, and phone, and third-party applications may include applications such as Tencent Video, Weibo, Toutiao, and Youku Video.
应用框架层为应用层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用框架层可以包括Java/C/C++/JS等多语言的用户程序框架,能力(Ability)框架,UI框架(包括适用于Java语言的Java UI框架、适用于JS语言的JS UI框架),以及各种软硬件服务对外开放的多语言框架API等。As shown in Figure 2, the application framework layer can include multilingual user program frameworks such as Java/C/C++/JS, ability (Ability) framework, UI framework (including Java UI framework suitable for Java language, suitable for JS language JS UI framework), as well as various software and hardware services open to the outside world, such as multilingual framework APIs.
系统服务层是鸿蒙系统的核心能力集合,其通过应用框架层对应用程序提供服务。The system service layer is the core capability set of the Hongmeng system, which provides services to applications through the application framework layer.
如图2所示,系统服务层可以包括基本能力子系统集,基础软件服务子系统集,增强软件服务子系统集,硬件服务子系统集等。As shown in Figure 2, the system service layer may include a basic capability subsystem set, a basic software service subsystem set, an enhanced software service subsystem set, a hardware service subsystem set, and the like.
系统基本能力子系统集为分布式应用在鸿蒙系统多设备上的运行、调度、迁移等操作提供了基础能力,由分布式软总线、分布式数据管理、分布式任务调度、方舟多语言运行时、公共基础库、多模输入、图形、安全、人工智能(artificial intelligence,AI)等子系统组成。其中,方舟运行时提供了C/C++/JS多语言运行时和基础的系统类库,也为使用方舟编译器静态化的Java程序(即应用程序或框架层中使用Java语言开发的部分)提供运行时。The system basic capability subsystem set provides basic capabilities for the operation, scheduling, and migration of distributed applications on multiple devices in the Hongmeng system. It consists of distributed soft bus, distributed data management, distributed task scheduling, and Ark multilingual runtime , public basic library, multi-mode input, graphics, security, artificial intelligence (artificial intelligence, AI) and other subsystems. Among them, the Ark runtime provides C/C++/JS multi-language runtime and basic system class libraries, and also provides Runtime.
基础软件服务子系统集提供公共的、通用的软件服务,由事件通知、电话、多媒体、面向产品生命周期各/某环节的设计(design for x,DFX)、移动感知平台(mobile sensing development platform,MSDP)&设备虚拟化(device virtualization,DV)等子系统组成。The basic software service subsystem set provides public and general software services, including event notification, telephone, multimedia, design for each/certain link of the product life cycle (design for x, DFX), mobile sensing development platform (mobile sensing development platform, MSDP) & device virtualization (device virtualization, DV) and other subsystems.
增强软件服务子系统集提供针对不同设备的、差异化的能力增强型软件服务,由智慧屏专有业务、穿戴专有业务、物联网(internet of things,IoT)专有业务等子系统组成。The enhanced software service subsystem set provides differentiated capability-enhanced software services for different devices, and is composed of subsystems such as smart screen proprietary services, wearable proprietary services, and Internet of Things (Internet of Things, IoT) proprietary services.
硬件服务子系统集提供硬件服务,由位置服务、生物特征识别、穿戴专有硬件服务、IoT专有硬件服务等子系统组成。The hardware service subsystem set provides hardware services and is composed of subsystems such as location services, biometric identification, wearable proprietary hardware services, and IoT proprietary hardware services.
内核层是硬件和软件之间的层。内核层主要在硬件和软件之间起到一个桥梁的作用。内核层可以包含显示驱动,摄像头驱动,音频驱动,传感器驱动、网卡驱动等。The kernel layer is the layer between hardware and software. The kernel layer mainly acts as a bridge between hardware and software. The kernel layer can include display drivers, camera drivers, audio drivers, sensor drivers, network card drivers, etc.
如图2所示,内核层可以包括内核子系统,驱动子系统,以及内核抽象层等。As shown in FIG. 2, the kernel layer may include a kernel subsystem, a driver subsystem, and a kernel abstraction layer.
内核子系统采用多内核设计,支持针对不同资源受限设备选用适合的操作系统(operating system,OS)内核。内核抽象层(kernel abstract layer,KAL)可以屏蔽多内核差异,对上层提供基础的内核能力,包括进程/线程管理、内存管理、文件系统、网络管理和外设管理等。The kernel subsystem adopts a multi-core design, which supports the selection of a suitable operating system (OS) kernel for different resource-constrained devices. Kernel abstract layer (kernel abstract layer, KAL) can shield multi-core differences, and provide basic kernel capabilities to the upper layer, including process/thread management, memory management, file system, network management, and peripheral management.
驱动子系统包括硬件驱动框架(hardware driver foundation,HDF),可以提供统一外设访问能力和驱动开发、管理框架。The driver subsystem includes a hardware driver foundation (HDF), which can provide a unified peripheral access capability and a driver development and management framework.
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。The workflow of the software and hardware of the electronic device 100 will be exemplarily described below in conjunction with capturing and photographing scenes.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作为触摸单击操作为例进行说明,该单击操作所对应的控件为相机应用图标的控件为 例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, and other information). Raw input events are stored at the kernel level. The application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Take the touch operation as an example of a touch click operation for illustration. The control corresponding to the click operation is the control of the camera application icon as an example. The camera application calls the interface of the application framework layer to start the camera application, and then starts the camera application by calling the kernel layer. The camera is driven to capture still images or videos through the camera 193.
第二电子设备、第三电子设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,本申请的各实施方式可以任意进行组合,以实现不同的技术效果。第二电子设备和第三电子设备的软件系统请参考图2中的实施例,本申请实施例不再赘述。The software systems of the second electronic device and the third electronic device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, and a micro-service architecture, and various implementation modes of the present application may be combined arbitrarily to achieve different technical effects. For the software systems of the second electronic device and the third electronic device, please refer to the embodiment in FIG. 2 , which will not be repeated in this embodiment of the present application.
下面结合应用场景,介绍本申请实施例涉及的一种能力共享的方法。The following describes a capability sharing method involved in the embodiment of the present application in combination with application scenarios.
如图3A所示,在该示例性家庭场景30中包括电子设备100(智能手机)、电子设备200(智能电视)以及电子设备300(网络摄像头)。电子设备100、电子设备200以及电子设备300都具有NFC功能,且都可以连接路由器305,因此,电子设备100、电子设备200以及电子设备300可以在同一局域网下。电子设备200可以通过遥控器304控制。其中,遥控器304包括“OK”按键311,电子设备300可以拍摄视频画面,其拍摄的画面范围如图3A两条虚线所示。请参阅图3B,图3B是电子设备300某一时刻拍摄的画面。As shown in FIG. 3A , the exemplary family scene 30 includes electronic device 100 (smart phone), electronic device 200 (smart TV) and electronic device 300 (network camera). The electronic device 100 , the electronic device 200 and the electronic device 300 all have the NFC function and can be connected to the router 305 . Therefore, the electronic device 100 , the electronic device 200 and the electronic device 300 can be under the same local area network. The electronic device 200 can be controlled by a remote controller 304 . Wherein, the remote controller 304 includes an "OK" button 311, and the electronic device 300 can shoot video images, and the range of the captured images is shown by two dotted lines in FIG. 3A. Please refer to FIG. 3B . FIG. 3B is a picture captured by the electronic device 300 at a certain moment.
用户在使用电子设备200进行视频通话之前,可以控制电子设备100去靠近(例如触碰)电子设备200,也即是可以将电子设备100的NFC感应区301靠近电子设备200的NFC感应区302。同理,用户还可以使用电子设备100去靠近电子设备300的NFC感应区303。之后,电子设备200可以使用电子设备300的摄像功能,因此当使用电子设备200进行视频通话时,电子设备200可以获取电子设备300拍摄的视频画面,之后,电子设备200可以将获取的视频画面发送给对端进行视频通话的电子设备,以及可以在自身的显示屏上显示该视频画面。Before using the electronic device 200 to make a video call, the user can control the electronic device 100 to approach (for example, touch) the electronic device 200 , that is, the NFC sensing area 301 of the electronic device 100 can be brought close to the NFC sensing area 302 of the electronic device 200 . Similarly, the user can also use the electronic device 100 to approach the NFC sensing area 303 of the electronic device 300 . Afterwards, the electronic device 200 can use the camera function of the electronic device 300, so when using the electronic device 200 to make a video call, the electronic device 200 can obtain the video picture taken by the electronic device 300, and then, the electronic device 200 can send the obtained video picture to An electronic device that makes a video call to the opposite end, and can display the video image on its own display screen.
示例性的,如图4A所示,电子设备100可以显示有用户界面40,该用户界面40中显示了一个放置有应用图标的页面,该页面可以包括多个应用图标(例如,天气应用图标、股票应用图标、计算器应用图标、设置应用图标401、邮件应用图标、图库应用图标、音乐应用图标、视频应用图标、浏览器应用图标等等)。多个应用图标下方还显示包括有页面指示符,以表明当前显示的页面与其他页面的位置关系。页面指示符的下方有多个托盘图标(例如拨号应用图标、信息应用图标、联系人应用图标、相机应用图标),托盘图标在页面切换时保持显示。在一些实施例中,上述页面也可以包括多个应用图标和页面指示符,页面指示符可以不是页面的一部分,单独存在,上述图片图标也是可选的,本申请实施例对此不作限制。Exemplarily, as shown in FIG. 4A , the electronic device 100 may display a user interface 40, and the user interface 40 displays a page on which application icons are placed, and the page may include multiple application icons (for example, a weather application icon, stock app icon, calculator app icon, settings app icon 401, mail app icon, gallery app icon, music app icon, video app icon, browser app icon, etc.). A page indicator is also displayed under the multiple application icons to indicate the positional relationship between the currently displayed page and other pages. There are multiple tray icons (such as a dialer application icon, a messaging application icon, a contacts application icon, and a camera application icon) below the page indicator, and the tray icons remain displayed when the page is switched. In some embodiments, the above-mentioned page may also include multiple application icons and page indicators, and the page indicator may not be a part of the page, but exists independently. The above-mentioned picture icons are also optional, which is not limited in this embodiment of the present application.
电子设备100可以接收用户作用于设置应用图标401的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图4B所示的用户界面41。The electronic device 100 may receive an input operation (for example, click) from the user acting on the setting application icon 401 , and in response to the input operation, the electronic device 100 may display the user interface 41 as shown in FIG. 4B .
如图4B所示,该用户界面41可以包括NFC控件411。用户界面41还可以包括NFC功能的状态信息,状态信息用于表示NFC功能是处于开启状态还是处于关闭状态。此时,电子设备100的NFC功能处于关闭状态。As shown in FIG. 4B , the user interface 41 may include an NFC control 411 . The user interface 41 may also include status information of the NFC function, and the status information is used to indicate whether the NFC function is on or off. At this time, the NFC function of the electronic device 100 is in an off state.
电子设备100可以接收用户作用于NFC控件411的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图4C所示的用户界面42。The electronic device 100 may receive an input operation (for example, a single click) performed by the user on the NFC control 411 , and in response to the input operation, the electronic device 100 may display the user interface 42 as shown in FIG. 4C .
如图4C所示,该用户界面42可以包括NFC开关控件421。当电子设备100检测到对NFC开关控件421的输入操作(例如单击),响应于该输入操作,电子设备100可以打开NFC功能。之后,电子设备100可以触碰电子设备200进行数据交换。例如,电子设备100可以读取电子设备200的NFC标签中的数据。As shown in FIG. 4C , the user interface 42 may include an NFC switch control 421 . When the electronic device 100 detects an input operation (such as a single click) on the NFC switch control 421 , in response to the input operation, the electronic device 100 can turn on the NFC function. Afterwards, the electronic device 100 can touch the electronic device 200 to exchange data. For example, the electronic device 100 can read data in the NFC tag of the electronic device 200 .
如图4D所示,电子设备100的NFC感应区域301可以靠近(例如触碰)电子设备200的NFC感应区域302,响应于该触碰操作,电子设备100可以显示如图4E所示的用户界面43。As shown in FIG. 4D, the NFC sensing area 301 of the electronic device 100 may approach (for example, touch) the NFC sensing area 302 of the electronic device 200. In response to the touch operation, the electronic device 100 may display a user interface as shown in FIG. 4E 43.
如图4E所示,该用户界面43为主设备选择界面,也即是选择是否将当前触碰的电子设备作为主设备。用户界面43可以包括“是”确认控件431,以及“否”确认控件。“是”确认控件431用于将当前触碰电子设备设置为主设备,“否”确认控件用于将当前触碰电子设备设置为副设备。As shown in FIG. 4E , the user interface 43 is a master device selection interface, that is, to select whether to use the currently touched electronic device as the master device. 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 current touch electronic device as a master device, and the "No" confirmation control is used to set the current touch electronic device as a secondary device.
电子设备100可以接收用户作用于“是”确认控件431的输入操作(例如单击),响应于该输入操作,电子设备100可以将电子设备200设置为超级终端的主设备,以及可以显示如图4F所示的用户界面44。The electronic device 100 can receive the user's input operation (for example, click) acting on the "Yes" confirmation control 431, and in response to the input operation, the electronic device 100 can set the electronic device 200 as the master device of the hyper terminal, and can display as shown in FIG. User interface 44 is shown at 4F.
如图4F所示,该用户界面44为超级终端界面,可以包括主设备的图标441,也即是电子设备200的图标。用户界面44还可以包括主设备的开关控件442,该主设备的开关控件442可以用于开启或关闭主设备。用户界面44还可以包括超级终端图标443。在主设备的开关控件442处于开启状态的情况下,表明当前超级终端的主设备处于开启状态,可以使用其它副设备共享的能力。当主设备的开关控件442处于关闭状态的时候,表明移除当前超级终端的主设备,也即是删除当前超级终端的主设备,可以将其它副设备设置为超级终端的主设备,或电子设备100可以在检测到设置有NFC的其它电子设备时,响应于用户输入操作(如单击),将其设置为主设备。As shown in FIG. 4F , the user interface 44 is a hyper terminal interface, and may include an icon 441 of the main device, that is, an icon of the electronic device 200 . The user interface 44 may also include a main device switch control 442 that may be used to turn the main device on or off. User interface 44 may also include a hyperterminal icon 443 . When the switch control 442 of the main device is in the ON state, it indicates that the current HyperTerminal main device is in the ON state, and the capability shared by other auxiliary devices can be used. When the switch control 442 of the master device is in the closed state, it indicates that the master device of the current hyper terminal is removed, that is, the master device of the current hyper terminal is deleted, and other auxiliary devices can be set as the master device of the hyper terminal, or the electronic device 100 It can be set as the master device in response to a user input operation (such as clicking) when other electronic devices equipped with NFC are detected.
超级终端可以理解为一个虚拟的电子设备,其由主设备和副设备组成,主设备可以使用副设备共享的部分或者全部能力,同时,超级终端还可以理解为跨设备的分布式的电子设备。A HyperTerminal can be understood as a virtual electronic device, which is composed 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, the HyperTerminal can also be understood as a distributed electronic device across devices.
如图4G所示,电子设备100的NFC感应区域301还可以靠近(例如触碰)电子设备300的NFC感应区域303,响应于该触碰操作,电子设备100可以显示如图4H所示的用户界面45。As shown in FIG. 4G, the NFC sensing area 301 of the electronic device 100 can also be close to (for example, touch) the NFC sensing area 303 of the electronic device 300. In response to the touch operation, the electronic device 100 can display the user information as shown in FIG. interface45.
如图4H所示,该用户界面45为设备功能选择界面,用于选择当前触碰电子设备需要共享的功能。用户界面45可以包括一个或多个能力选择控件451,还可以包括继续共享控件以及完成共享控件452。能力选择控件451用于选择需要电子设备共享的能力。As shown in FIG. 4H , the user interface 45 is a device function selection interface for selecting functions to be shared by the current touch electronic device. The user interface 45 may include one or more capability selection controls 451 , and may also include a continue sharing control and a finish sharing control 452 . The capability selection control 451 is used to select the capability that needs to be shared by the electronic device.
电子设备100可以接收用户作用于能力选择控件451的输入操作(例如单击),响应于该输入操作,电子设备100的能力选择控件451可以显示有如图4H所示的“√”,表示选中了电子设备300的摄像能力,以便主设备可以使用该摄像能力,也即是电子设备200使用该摄像能力。The electronic device 100 may receive an input operation (for example, click) from the user on the capability selection control 451, and in response to the input operation, the capability selection control 451 of the electronic device 100 may display a "√" as shown in FIG. 4H, indicating that the capability selection control 451 is selected The camera capability of the electronic device 300 is used so that the master device can use the camera capability, that is, the electronic device 200 uses the camera capability.
之后,电子设备100可以接收用户作用于完成共享控件452的输入操作(例如单击),响应于该输入操作,电子设备100可以将电子设备300设置为超级终端的副设备1,以及可以显示如图4I所示的用户界面46。当电子设备检测到针对继续共享控件的输入操作(例如单击),响应于该输入操作,电子设备100可以将电子设备300设置为超级终端的副设备1,以及可以继续检测附近设置有NFC的其它电子设备。Afterwards, the electronic device 100 may receive an input operation (for example, click) from the user to complete the sharing control 452, and in response to the input operation, the electronic device 100 may set the electronic device 300 as the secondary device 1 of the HyperTerminal, and may display such as The user interface 46 is shown in FIG. 4I. When the electronic device detects an input operation (such as a single click) for continuing to share the control, in response to the input operation, the electronic device 100 can set the electronic device 300 as the secondary device 1 of the HyperTerminal, and can continue to detect the NFC nearby. other electronic equipment.
如图4I所示,该用户界面46可以包括副设备1的图标461,也即是电子设备300的图标。用户界面46还可以包括副设备1的开关控件462,该副设备1的开关控件462可以用于开启或关闭副设备1。用户界面46还可以包括电子设备300共享的能力信息463。在副设备1的开关控件462处于开启状态的情况下,表明当前超级终端的副设备1处于开启状态,当前超级终端的主设备可以使用副设备1共享的能力。当副设备1的开关控件462处于关闭状态的时候,表明移除当前超级终端的副设备1,也即是删除当前超级终端的副设备1,之后,超级终端的主设备不可以使用副设备1共享的能力。As shown in FIG. 4I , the user interface 46 may include an icon 461 of the secondary device 1 , that is, an icon of the electronic device 300 . The user interface 46 can also include a switch control 462 of the secondary device 1 , and the switch control 462 of the secondary device 1 can be used to turn on or off the secondary device 1 . The user interface 46 may also include capability information 463 shared by the electronic device 300 . When the switch control 462 of the secondary device 1 is in the on state, it indicates that the current secondary device 1 of the hyperterminal is in the open state, and the current main device of the hyperterminal can use the capability shared by the secondary device 1 . When the switch control 462 of the auxiliary device 1 is in the off state, it indicates that the auxiliary device 1 of the current HyperTerminal is removed, that is, the auxiliary device 1 of the current HyperTerminal is deleted, and after that, the main device of the HyperTerminal cannot use the auxiliary device 1 The ability to share.
图4J为用户界面40。其中,针对用户界面40的文字描述可以参考上述图4A的相关描述,在此不再赘述。FIG. 4J is a user interface 40 . Wherein, for the textual description of the user interface 40, reference may be made to the relevant description in FIG. 4A above, and details are not repeated here.
电子设备100可以接收用户作用于状态栏的输入操作(例如下拉),响应于该输入操作,电子设备100可以显示如图4K所示的用户界面47。The electronic device 100 may receive an input operation (for example, pull down) acted on the status bar by the user, and in response to the input operation, the electronic device 100 may display the user interface 47 as shown in FIG. 4K .
如图4K所示,该用户界面47可以包括超级终端控件471。该超级终端控件用于打开之前电子设备200和电子设备300组成的超级终端。As shown in FIG. 4K , the user interface 47 may include a hyperterminal control 471 . The hyperterminal control is used to open the hyperterminal composed of the electronic device 200 and the electronic device 300 .
电子设备100可以接收用户作用于超级终端控件471的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图4I所示的用户界面46。The electronic device 100 may receive the user's input operation (for example, click) on the hyperterminal control 471, and in response to the input operation, the electronic device 100 may display the user interface 46 as shown in FIG. 4I.
如图5A所示,电子设备200可以显示有用户界面50,该用户界面50中显示了一个放置有应用图标的页面,该页面包括多个应用图标(例如,图库应用图标、视频应用图标、设置应用图标、视频拨号应用图标501、音乐应用图标等等)。在一些实施例中,上述页面也可以包括多个应用图标,上述图片图标也是可选的,本申请实施例对此不作限制。As shown in FIG. 5A, the electronic device 200 may display a user interface 50, which displays a page on which application icons are placed, and the page includes a plurality of application icons (for example, a gallery application icon, a video application icon, a setting application icon, video dial application icon 501, music application icon, etc.). In some embodiments, the above page may also include multiple application icons, and the above picture icon is also optional, which is not limited in this embodiment of the present application.
如图5A所示,选择框502已选中视频拨号应用图标501。电子设备200可以接收用户作用于遥控器ok按键311的输入操作(例如按压),响应于该输入操作,电子设备200可以显示如图5B所示的用户界面51。该用户界面51可以包括联系人选项,最近通话选项,拨号选项511,设置选项。As shown in FIG. 5A , the selection box 502 has the video dialing application icon 501 selected. The electronic device 200 may receive an input operation (for example, pressing) of the user on the ok button 311 of the remote controller, and in response to the input operation, the electronic device 200 may display a user interface 51 as shown in FIG. 5B . The user interface 51 may include a contact option, a recent call option, a dial option 511, and a setting option.
如图5B所示,选择框511已选中拨号选项。用户界面51右侧可以显示拨号区域,该拨号区域包括数字图标,号码显示区域,删除和清空图标。当电子设备200检测到用户对数字图标的输入操作(例如按压遥控器ok控件),响应于该输入操作,电子设备200在号码显示区域中显示用户使用遥控器305输入的字符,可以显示如图5C所示的用户界面52。As shown in FIG. 5B, the selection box 511 has the dialing option selected. The dialing area can be displayed on the right side of the user interface 51, and the dialing area includes number icons, number display area, delete and clear icons. When the electronic device 200 detects the user's input operation on the digital icon (such as pressing the ok control of the remote control), in response to the input operation, the electronic device 200 displays the characters input by the user using the remote control 305 in the number display area, as shown in the figure 5C shows the user interface 52.
如图5C所示,该用户界面52包括用户输入的号码,该号码用于和对应的电子设备进行视频通话。用户界面52还包括视频拨号控件521。As shown in FIG. 5C , the user interface 52 includes a number input by the user, and the number is used for making a video call with the corresponding electronic device. The user interface 52 also includes a video dial control 521 .
如图5C所示,选择框522已选中视频拨号控件521。电子设备200可以接收用户作用于遥控器ok按键311的输入操作(例如按压),响应于该输入操作,电子设备200可以显示如图5D所示的用户界面53。As shown in FIG. 5C , the selection box 522 has the video dial control 521 selected. The electronic device 200 may receive the user's input operation (for example, press) on the ok button 311 of the remote controller, and in response to the input operation, the electronic device 200 may display the user interface 53 as shown in FIG. 5D .
如图5D所示,该用户界面53可以包括视频显示区域531、用户头像532、取消控件以及切到语音通话控件。视频显示区域531显示的视频图像为图3A所示的视频图像,也即是电子设备300实时捕捉到的视频图像。As shown in FIG. 5D , the user interface 53 may include a video display area 531 , a user avatar 532 , a cancel control, and a switch to voice call control. The video image displayed in the video display area 531 is the video image shown in FIG. 3A , that is, the video image captured by the electronic device 300 in real time.
当拨号的用户接受视频邀请后,电子可以显示如图5E所示的用户界面54。After the dialing user accepts the video invitation, the electronic device may display a user interface 54 as shown in FIG. 5E.
如图5E所示,该用户界面54可以包括第一视频显示区域541,以及第二视频显示区域542。第一视频显示区域541可以显示电子设备300实时捕捉的视频图像,第二视频显示区域542可以显示拨号用户摄像头实时捕捉的视频图像。As shown in FIG. 5E , 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 by the electronic device 300 in real time, and the second video display area 542 may display video images captured by the dial-up user's camera in real time.
当用户完成视频通话之后,用户可以使用电子设备100移除超级终端的主设备和副设备。具体地,电子设备100可以接收用户作用于副设备1的开关控件462的输入操作(例如单击),响应于该输入操作,电子设备100可以移除当前超级终端的副设备1,之后,超级终端的主设备不可以使用副设备1共享的能力,也即是电子设备200不能继续使用电子设备300的摄像能力。电子设备100还可以接收用户作用于主设备的开关控件442的输入操作(例如单击),响应于该输入操作,电子设备100可以移除当前超级终端的主设备。之后电子设备200不能继续使用电子设备300的摄像能力。After the user completes the video call, the user can use the electronic device 100 to remove the main device and the auxiliary device of the HyperTerminal. Specifically, the electronic device 100 may receive an input operation (such as a single click) that the user acts on the switch control 462 of the secondary device 1, and in response to the input operation, the electronic device 100 may remove the secondary device 1 of the current hyper terminal, and then, the hyper terminal The main device of the terminal cannot use the capability shared by the secondary device 1 , that is, the electronic device 200 cannot continue to use the camera capability of the electronic device 300 . The electronic device 100 may also receive an input operation (for example, single click) from the user acting on the switch control 442 of the main device, and in response to the input operation, the electronic device 100 may remove the current main device of the HyperTerminal. After that, the electronic device 200 cannot continue to use the imaging capability of the electronic device 300 .
下面结合附图详细描述本申请实施例提供的能力共享方法。The capability sharing method provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
请参见图6,图6是本申请实施例提供的一种能力共享方法的流程示意图。在图6实施 例中,用户在需要第三电子设备向第二电子设备共享能力的情况下,可以使用第一电子设备将第二电子设备确定为主设备,还可以使用第一电子设备将第三电子设备确定为副设备。此外,第一电子设备可以确定第三电子设备的能力共享信息,之后可以向第二电子设备发送第三电子设备的能力共享信息。以便当第二电子设备接收到来自第一电子设备的能力共享信息之后,可以根据能力共享信息使用第三电子设备的能力中能力共享信息对应的能力。Please refer to FIG. 6 . FIG. 6 is a schematic flowchart of a capability sharing method provided by an embodiment of the present application. In the embodiment in FIG. 6, when the user needs the third electronic device to share capabilities with the second electronic device, the user can use the first electronic device to determine the second electronic device as the master device, and can also use the first electronic device to determine the second electronic device Three electronic devices are identified as secondary devices. In addition, the first electronic device may determine the capability sharing information of the third electronic device, and then may send the capability sharing information of the third electronic device to the second electronic device. So that after the second electronic device receives the capability sharing information from the first electronic device, it can use the capability corresponding to the capability sharing information among the capabilities of the third electronic device according to the capability sharing information.
示例性的,第一电子设备可以为上述实施例中的电子设备100,第二电子设备可以为上述实施例中的电子设备200,第三电子设备可以为上述实施例中的电子设备300。下面,对能力共享的流程进行展开描述:Exemplarily, the first electronic device may be the electronic device 100 in the above embodiment, the second electronic device may be the electronic device 200 in the above embodiment, and the third electronic device may be the electronic device 300 in the above embodiment. The following describes the process of capability sharing:
601:第一电子设备获取第二电子设备的信息。601: The first electronic device acquires information about the second electronic device.
在用户需要第三电子设备向第二电子设备共享能力的情况下,用户可以控制第一电子设备获取第二电子设备的信息。第二电子设备的信息可以包括第二电子设备的连接信息。第二电子设备的连接信息可以为第二电子设备的地址信息,也可以为第二电子设备的标识信息,还可以为其他能够用于连接的信息。地址信息可以为网际互连协议(internet protocol,IP)地址,也可以为媒体存取控制(media access control,MAC)地址,还可以为其它用于表示地址的信息。标识信息可以为设备标识符,也可以为其它可以唯一标识电子设备的标识信息。In a case where the user needs the third electronic device to share capabilities with the second electronic device, the user may control the first electronic device to obtain information about the second electronic device. The information of the second electronic device may include connection information of the second electronic device. The connection information of the second electronic device may be address information of the second electronic device, identification information of the second electronic device, or other information that can be used for connection. The address information may be an internet protocol (internet protocol, IP) address, may also be a media access control (media access control, MAC) address, and may also be other information used to represent the address. The identification information may be a device identifier, or other identification information that can uniquely identify an electronic device.
在一种情况下,用户可以移动第一电子设备,使第一电子设备靠近第二电子设备。在第第一电子设备与第二电子设备之间的距离小于或等于第一阈值的情况下,第一电子设备可以通过NFC从第二电子设备上NFC中读取第二电子设备的信息。即当用户移动第一电子设备触碰第二电子设备时,第一电子设备可以通过NFC从第二电子设备NFC中获取第二电子设备的信息。In one case, the user may move the first electronic device so that the first electronic device is close to the second electronic device. In the case that the distance between the first electronic device and the second electronic device is less than or equal to the first threshold, the first electronic device may read the information of the second electronic device from the NFC on the second electronic device through NFC. That is, when the user moves the first electronic device to touch the second electronic device, the first electronic device can acquire information of the second electronic device from the second electronic device through NFC.
第一电子设备可以使用NFC检测第一阈值范围内是否存在设置有NFC的其它电子设备,在第一电子设备与第二电子设备之间的距离小于或等于第一阈值的情况下,第一电子设备可以使用NFC检测到设置有NFC的第二电子设备,即第一电子设备可以发现第二电子设备的NFC标签,之后第一电子设备可以通过NFC从第二电子设备的NFC标签中读取存储的第二电子设备的信息。相应地,第二电子设备可以通过NFC向第一电子设备发送第二电子设备的信息。第一阈值为两个电子设备之间NFC感应的最大距离,也即是两个电子设备之间可以进行数据交换的最大距离。第一阈值的大小与电子设备的硬件设备(如芯片)有关,还与电子设备的周围环境(如磁场强度)有关。可见,可以将第二电子设备的信息预先存储在第二电子设备的NFC标签中,便于其它电子设备读取。The first electronic device can use NFC to detect whether there are other electronic devices equipped with NFC within the first threshold range. When the distance between the first electronic device and the second electronic device is less than or equal to the first threshold, the first electronic device The device can use NFC to detect the second electronic device equipped with NFC, that is, the first electronic device can find the NFC tag of the second electronic device, and then the first electronic device can read the stored data from the NFC tag of the second electronic device through NFC. Information about the second electronic device. Correspondingly, the second electronic device may send the information of the second electronic device to the first electronic device through NFC. The first threshold is the maximum distance for NFC sensing between two electronic devices, that is, the maximum distance for data exchange between the two electronic devices. The size of the first threshold is related to the hardware device (such as chip) of the electronic device, and is also related to the surrounding environment (such as magnetic field strength) of the electronic device. It can be seen that the information of the second electronic device can be pre-stored in the NFC tag of the second electronic device, so as to be read by other electronic devices.
示例性的,第一电子设备触碰第二电子设备可以是上述图4D实施例中电子设备100针对电子设备200的触碰操作(例如接触)。Exemplarily, the first electronic device touching the second electronic device may be a touch operation (for example, contact) performed by the electronic device 100 on the electronic device 200 in the above-mentioned embodiment in FIG. 4D .
在第二电子设备的连接信息为第二电子设备的标识信息的情况下,第一电子设备可以根据第二电子设备的标识信息确定第二电子设备的地址信息。具体地,第一电子设备本地可以存储有电子设备信息数据,其可以包括电子设备的标识信息和对应电子设备的地址信息,即存储有电子设备的标识信息与地址信息之间的对应关系。因此,第一电子设备可以根据第二电子设备的标识信息找到本地存储的第二电子设备的地址信息。If the connection information of the second electronic device is the identification information of the second electronic device, the first electronic device may determine the address information of the second electronic device according to the identification information of the second electronic device. Specifically, the first electronic device may locally store electronic device information data, which may include identification information of the electronic device and address information of the corresponding electronic device, that is, store the correspondence between the identification information of the electronic device and the address information. Therefore, the first electronic device can find the locally stored address information of the second electronic device according to the identification information of the second electronic device.
例如,第一电子设备存储有电子设备信息数据表,如表1所示,其中,表格的每一行包括有一个电子设备的标识信息(如产品电子代码(electronic product code,EPC))和对应电子设备的地址信息(如IP地址)。EPC是由一个版本号和另外三段数据(依次为域名、对象种类、序列号)组成的一组数字。其中版本号用于标识EPC的版本号,不同的EPC版本对应不同EPC的长度或类型;域名是描述与此EPC号相关的生产厂商的信息,例如“华为公 司”;对象种类记录产品精确的类型信息,例如:“华为P40(华为公司的一种产品)”;序列号唯一标识一种产品类型的一个产品,因此,通过序列号可以具体地指明是哪一部华为P40。表1的标识信息是以EPC-96Ⅰ型的编码结构编码的,包含96个二进制位,其中,前8位为EPC版本号,9-36位为域名,37-60位为对象种类,61-96位为序列号,表1中所示标识信息为十六进制表示法。第一电子设备可以根据一个电子设备的标识信息依次与电子设备信息数据表中每一行的电子设备标识信息进行对比,如果相同,表明为同一电子设备,从而可以将该行的地址信息确定为该电子设备的地址信息。假设,第二电子设备的标识信息为“010000F7900016F000169D2A”,第一电子设备在将第二电子设备的标识信息与表1中的标识信息依次对比时,可以确定表1中的第二行对应的信息为第二电子设备的相关信息,因此,可以确定第二电子设备的地址信息为“135.66.34.22”。For example, the first electronic device stores an electronic device information data table, as shown in Table 1, wherein each row of the table includes identification information of an electronic device (such as a product electronic code (electronic product code, EPC)) and a corresponding electronic product code. Address information (such as IP address) of the device. EPC is a set of numbers composed of a version number and three other pieces of data (namely domain name, object type, serial number). The version number is used to identify the version number of the EPC, and different EPC versions correspond to different lengths or types of EPCs; the domain name is information describing the manufacturer related to this EPC number, such as "Huawei Company"; the object type records the precise type of the product Information, for example: "Huawei P40 (a product of Huawei)"; the serial number uniquely identifies a product of a product type, so the serial number can specifically indicate which Huawei P40 it is. The identification information in Table 1 is encoded with the EPC-96Ⅰ coding structure, including 96 binary bits, of which the first 8 bits are the EPC version number, 9-36 bits are the domain name, 37-60 bits are the object type, 61- 96 bits are the serial number, and the identification information shown in Table 1 is in hexadecimal notation. The first electronic device can compare the identification information of an electronic device with the electronic device identification information of each row in the electronic device information data table in turn, and if they are the same, it indicates that it is the same electronic device, so that the address information of the row can be determined as the Address information for electronic devices. Assuming that the identification information of the second electronic device is "010000F7900016F000169D2A", the first electronic device can determine the information corresponding to the second row in Table 1 when comparing the identification information of the second electronic device with the identification information in Table 1 in sequence is the relevant information of the second electronic device, therefore, it can be determined that the address information of the second electronic device is "135.66.34.22".
标识信息Identification information 地址信息Address information
010000A8900016F000169DC0010000A8900016F000169DC0 120.24.65.13120.24.65.13
010000F7900016F000169D2A010000F7900016F000169D2A 135.66.34.22135.66.34.22
010003F0000016C000178CC0010003F0000016C000178CC0 201.23.42.56201.23.42.56
010000C6100015A000157AB0010000C6100015A000157AB0 212.35.32.12212.35.32.12
表1Table 1
第二电子设备的信息还可以包括第二电子设备的能力信息。第二电子设备的能力信息可以包括第二电子设备的扩展能力信息,还可以包括第二电子设备的共享能力信息。共享能力信息可以包括一个或多个能力的信息,扩展能力信息也可以包括一个或多个能力的信息。第二电子设备的共享能力信息用于指示第二电子设备可以提供给其它电子设备使用的能力。第二电子设备的扩展能力信息用于指示第二电子设备可以支持扩展的能力,也即是指示第二电子设备可以使用其它电子设备提供的哪些能力。The information of the second electronic device may also include capability information of the second electronic device. The capability information of the second electronic device may include extended capability information of the second electronic device, and may further include shared capability information of the second electronic device. The shared capability information may include information about one or more capabilities, and the extended capability information may also include information about one or more capabilities. The sharing capability information of the second electronic device is used to indicate the capability that the second electronic device can provide for use by other electronic devices. The extended capability information of the second electronic device is used to indicate that the second electronic device can support extended capabilities, that is, to indicate which capabilities provided by other electronic devices can be used by the second electronic device.
例如,假设第一电子设备为智能电视,其共享能力可以包括显示能力(显示屏)、音频能力(音箱)等,其扩展能力可以包括摄像能力(如网络摄像头)、音频能力(如蓝牙音箱)等。也即是智能电视可以将显示能力、音频能力共享给其它电子设备使用,比如可以共享给其它手机终端使用,此外,智能电视还可以扩展自身的能力,比如可以使用网络摄像头的摄像能力以及蓝牙音箱的音频能力。For example, assuming that the first electronic device is a smart TV, its sharing capabilities may include display capabilities (display screens), audio capabilities (speakers), etc., and its extension capabilities may include camera capabilities (such as network cameras), audio capabilities (such as Bluetooth speakers) wait. That is to say, smart TVs can share display capabilities and audio capabilities with other electronic devices, such as sharing with other mobile terminals. In addition, smart TVs can also expand their own capabilities, such as using the camera capabilities of webcams and Bluetooth speakers. audio capabilities.
在第二电子设备的信息不包括第二电子设备的能力信息的情况下,第一电子设备可以先根据第二电子设备的地址信息与第二电子设备建立连接,之后可以向第二电子设备发送能力请求信息。相应地,第二电子设备可以接收来自第一电子设备的能力请求信息,之后可以根据能力请求信息向第一电子设备发送自身的能力信息。相应地,第一电子设备可以接收到来自第二电子设备的能力信息。上述第二电子设备的能力信息可以包括第二电子设备的扩展能力信息,还可以包括第二电子设备的共享能力信息。In the case that the information of the second electronic device does not include the capability information of the second electronic device, the first electronic device can first establish a connection with the second electronic device according to the address information of the second electronic device, and then send a message to the second electronic device. Ability to request information. Correspondingly, the second electronic device may receive capability request information from the first electronic device, and then may send its own capability information to the first electronic device according to the capability request information. Correspondingly, the first electronic device may receive capability information from the second electronic device. The foregoing capability information of the second electronic device may include extended capability information of the second electronic device, and may also include shared capability information of the second electronic device.
可以理解的是,由于第二电子设备的地址信息可以为IP地址或MAC地址等,因此第一电子设备与第二电子设备之间可以通过无线保真(wireless fidelity,WIFI)对等网络(peertopeer,P2P)、蓝牙、传输控制协议(transmission control protocol,TCP)等进行连接。It can be understood that since the address information of the second electronic device can be an IP address or a MAC address, etc., the first electronic device and the second electronic device can be connected through a wireless fidelity (wireless fidelity, WIFI) peer-to-peer network (peertoer , P2P), Bluetooth, transmission control protocol (transmission control protocol, TCP), etc. for connection.
在第二电子设备的信息不包括第二电子设备的能力信息,且第二电子设备的连接信息为第二电子设备的标识信息的情况下。第一电子设备可以根据第二电子设备的标识信息确定第二电子设备的能力信息。具体地,第一电子设备本地可以存储有电子设备信息数据,其可以 包括电子设备的标识信息和对应电子设备的能力信息,即存储有电子设备的标识信息与能力信息之间的对应关系。因此,第一电子设备可以根据第二电子设备的标识信息找到本地存储的第二电子设备的能力信息。In a case where the information of the second electronic device does not include capability information of the second electronic device, and the connection information of the second electronic device is identification information of the second electronic device. The first electronic device may determine the capability information of the second electronic device according to the identification information of the second electronic device. Specifically, the first electronic device may locally store electronic device information data, which may include the identification information of the electronic device and the capability information of the corresponding electronic device, that is, the correspondence between the identification information and the capability information of the electronic device is stored. Therefore, the first electronic device may find locally stored capability information of the second electronic device according to the identification information of the second electronic device.
例如,第一电子设备存储有电子设备信息数据表,如表2所示,其中,表格的每一行包括有一个电子设备的标识信息(如EPC)和对应电子设备的能力信息。表2的标识信息是以EPC-96Ⅰ型的编码结构编码,表2中所示标识信息为十六进制表示法。第一电子设备可以根据一个电子设备的标识信息依次与电子设备信息数据表中每一行的电子设备标识信息进行对比,如果相同,表明为同一电子设备,从而可以将该行的能力信息确定为该电子设备的能力信息。假设,第二电子设备的标识信息为“010000F7900016F000169D2A”,第一电子设备在将第二电子设备的标识信息与表2中的标识信息依次对比时,可以确定表2中的第二行对应的信息为第二电子设备的相关信息,因此,可以确定第二电子设备的能力信息为“摄像能力、存储能力”。For example, the first electronic device stores an electronic device information data table, as shown in Table 2, wherein each row of the table includes identification information (such as EPC) of an electronic device and capability information of the corresponding electronic device. The identification information in Table 2 is coded with the EPC-96I coding structure, and the identification information shown in Table 2 is in hexadecimal notation. The first electronic device can sequentially compare the identification information of an electronic device with the electronic device identification information of each row in the electronic device information data table. Capability information of the electronic device. Assuming that the identification information of the second electronic device is "010000F7900016F000169D2A", the first electronic device can determine the information corresponding to the second row in Table 2 when comparing the identification information of the second electronic device with the identification information in Table 2 in sequence is the relevant information of the second electronic device, therefore, the capability information of the second electronic device may be determined as "camera capability, storage capability".
标识信息Identification information 能力信息Capability information
010000A8900016F000169DC0010000A8900016F000169DC0 显示能力display ability
010000F7900016F000169D2A010000F7900016F000169D2A 摄像能力、存储能力Camera capability, storage capability
010003F0000016C000178CC0010003F0000016C000178CC0 计算能力Calculate ability
010000C6100015A000157AB0010000C6100015A000157AB0 存储能力storage capacity
表2Table 2
第一电子设备获取到第二电子设备的信息之后,可以显示用于提示用户是否将第二电子设备确定为主设备的第一提示信息。例如,可以显示主设备选择界面,主设备选择界面包括是否将触碰设备设置为主设备的信息,以及供用户选择的“是”确认控件,以及“否”确认控件。用户可以根据实际需求选择是否将第二电子设备设置为主设备。第一电子设备检测到用户针对第一提示信息的第一操作时,可以将第二电子设备确定为主设备。例如,第一电子设备检测到针对主设备选择界面的第一操作时,即检测到用于将第二电子设备确定为主设备的第一操作时,第一电子设备可以响应第一操作,将第二电子设备设置为超级终端的主设备,以及可以显示超级终端界面。其中,主设备选择界面可以是上述图4E所示的用户界面43。超级终端界面可以包括主设备的图标,以及主设备的开关控件。After the first electronic device acquires the information of the second electronic device, it may display first prompt information for prompting the user whether to determine the second electronic device as the master device. For example, a master device selection interface may be displayed, and the master device selection interface includes information about whether to set the touch device as the master device, and a "Yes" confirmation control and a "No" confirmation control for the user to select. The user can choose whether to set the second electronic device as the master device according to actual needs. When the first electronic device detects the user's first operation on the first prompt information, it may determine the second electronic device as the master device. For example, when the first electronic device detects the first operation on the master device selection interface, that is, when it detects the first operation for determining the second electronic device as the master device, the first electronic device may respond to the first operation by The second electronic device is set as the main device of the hyper terminal, and can display the hyper terminal interface. Wherein, the master device selection interface may be the user interface 43 shown in FIG. 4E above. The hyperterminal interface may include an icon of the main device, and an on/off control of the main device.
该第一操作可以是针对上述图4E所示实施例中针对“是”确认控件431的点击、双击等操作,该超级终端界面可以是上述图4F所示实施例中的用户界面44。在第一电子设备检测到针对于“是”确认控件431的输入操作(例如单击)后,响应于该输入操作,第一电子设备可以将电子设备200设置为超级终端的主设备,以及可以显示如图4F所示的用户界面44。The first operation may be an operation such as clicking or double-clicking on the "Yes" confirmation control 431 in the above-mentioned embodiment shown in FIG. 4E , and the hyperterminal interface may be the user interface 44 in the above-mentioned embodiment shown in FIG. 4F . After the first electronic device detects an input operation (such as a single click) for the "Yes" confirmation control 431, in response to the input operation, the first electronic device can set the electronic device 200 as the main device of the hyper terminal, and can A user interface 44 as shown in FIG. 4F is displayed.
超级终端可以理解为一个虚拟的电子设备,其由主设备和副设备组成,主设备可以使用副设备共享的部分或者全部能力,同时,超级终端还可以理解为跨设备的分布式的电子设备。在本实施例中,超级终端为第二电子设备和第三电子设备组建的一个虚拟终端,第二电子设备为主设备,第三电子设备为副设备。A HyperTerminal can be understood as a virtual electronic device, which is composed 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, the HyperTerminal can also be understood as a distributed electronic device across devices. In this embodiment, the hyperterminal is a virtual terminal formed by the second electronic device and the third electronic device, the second electronic device is the main device, and the third electronic device is the auxiliary device.
在一些实施例中,可以预先生成第二电子设备对应的二维码,也即是包括第二电子设备的信息的二维码,之后可以将该二维码显示在显示屏上,也可以将该二维码打印出来。用户可以操作第一电子设备,使第一电子设备扫描包括第二电子设备的信息的二维码,第一电子设备可以得到第二电子设备的信息。二维码可以以黑白方块通过不同的排列方式来进行区分, 每种排列方式只对应唯一的目标。黑色方块可以代表“1”,白色方块可以代表“0”,因此,二维码本质上可以看作“0”、“1”的序列组合。每种二维码编制方式有其特定的字符集,每个字符占有一定的宽度,具有一定的校验功能等。常用的二维码编制方式有:数据矩阵(data matrix,DM)码、快速反应(quick response,QR)码等。可见,第二电子设备对应的二维码可以包括第二电子设备的信息或者根据第二电子设备的信息编码生成,以便其它电子设备可以通过扫描第二电子设备对应的二维码,解码得到第二电子设备的信息。In some embodiments, the two-dimensional code corresponding to the second electronic device can be generated in advance, that is, the two-dimensional code including the information of the second electronic device, and then the two-dimensional code can be displayed on the display screen, or the The QR code is printed out. The user can operate the first electronic device to make the first electronic device scan the two-dimensional code including the information of the second electronic device, and the first electronic device can obtain the information of the second electronic device. QR codes can be distinguished by different arrangements of black and white squares, and each arrangement only corresponds to a unique target. The black square can represent "1", and the white square can represent "0". Therefore, the two-dimensional code can be regarded as a sequence combination of "0" and "1" in essence. Each two-dimensional code coding method has its specific character set, each character occupies a certain width, and has a certain verification function, etc. Commonly used two-dimensional code preparation methods include: data matrix (data matrix, DM) code, quick response (quick response, QR) code, etc. It can be seen that the two-dimensional code corresponding to the second electronic device may include the information of the second electronic device or be generated according to the information code of the second electronic device, so that other electronic devices can decode the two-dimensional code corresponding to the second electronic device to obtain the second electronic device. 2. Information on electronic equipment.
602:第一电子设备获取第三电子设备的信息。602: The first electronic device acquires information about the third electronic device.
在用户需要第三电子设备向第二电子设备共享能力的情况下,第一电子设备可以获取第三电子设备的信息。其中,第一电子设备获取第三电子设备的信息与第一电子设备获取第二电子设备的信息相同因此可以参考步骤601的相关描述,在此不再详细赘述。In a case where the user needs the third electronic device to share capabilities with the second electronic device, the first electronic device may obtain information about the third electronic device. Wherein, the first electronic device obtains the information of the third electronic device is the same as the first electronic device obtains the information of the second electronic device, so reference may be made to the related description of step 601 , which will not be described in detail here.
第三电子设备的信息可以包括第三电子设备的连接信息,还可以包括第三电子设备的共享能力信息,还可以包括第三电子设备的扩展能力信息。第三电子设备的连接信息,共享能力信息以及扩展能力信息与第二电子设备的相似,因此可以参考步骤601的相关描述,在此不再详细赘述。The information of the third electronic device may include connection information of the third electronic device, may further include shared capability information of the third electronic device, and may further include extended capability information of the third electronic device. The connection information, shared capability information, and extended capability information of the third electronic device are similar to those of the second electronic device, so reference can be made to the related description of step 601, and details will not be repeated here.
第一电子设备可以根据第三电子设备的连接信息,确定第三电子设备的地址信息。详细描述可以参考上述根据第二电子设备的连接信息确定第二电子设备的地址信息的相关描述。The first electronic device may determine the address information of the third electronic device according to the connection information of the third electronic device. For detailed description, reference may be made to the above related description of determining the address information of the second electronic device according to the connection information of the second electronic device.
在没有主设备的情况下,第一电子设备获取到第三电子设备的信息之后,可以显示用于提示用户是否将第三电子设备确定为主设备的第二提示信息。例如,可以显示主设备选择界面,主设备选择界面包括是否将触碰设备设置为主设备的信息,以及供用户选择的“是”确认控件,以及“否”确认控件。用户可以根据实际需求选择是否将第三电子设备设置为主设备。第一电子设备检测到用户针对第二提示信息的第二操作时,可以将第三电子设备确定为副设备。也即是第一电子设备检测到针对主设备选择界面的第二操作时,即检测到用于将第三电子设备确定为副设备的第二操作时,第一电子设备可以响应第二操作,将第三电子设备设置为超级终端的副设备,以及可以显示超级终端界面。其中,主设备选择界面可以是上述图4E所示的用户界面43。超级终端界面可以包括副设备的图标,以及副设备的开关控件。In the absence of the master device, after the first electronic device acquires the information of the third electronic device, it may display second prompt information for prompting the user whether to determine the third electronic device as the master device. For example, a master device selection interface may be displayed, and the master device selection interface includes information about whether to set the touch device as the master device, and a "Yes" confirmation control and a "No" confirmation control for the user to select. The user can choose whether to set the third electronic device as the master device according to actual needs. When the first electronic device detects the user's second operation on the second prompt information, it may determine the third electronic device as the secondary device. That is, when the first electronic device detects the second operation on the main device selection interface, that is, when it detects the second operation for determining the third electronic device as the secondary device, the first electronic device may respond to the second operation, The third electronic device is set as a sub-device of the hyper terminal, and the hyper terminal interface can be displayed. Wherein, the master device selection interface may be the user interface 43 shown in FIG. 4E above. The hyper terminal interface may include an icon of the auxiliary device, and an on/off control of the auxiliary device.
该第二操作可以是针对上述图4E所示实施例中针对“否”确认控件的点击、双击等操作。在第一电子设备检测到针对于“否”确认控件的输入操作(例如单击)后,响应于该输入操作,第一电子设备可以将电子设备300设置为超级终端的副设备。The second operation may be an operation such as clicking or double-clicking on the "No" confirmation control in the above-mentioned embodiment shown in FIG. 4E . After the first electronic device detects an input operation (for example, click) on the "No" confirmation control, in response to the input operation, the first electronic device may set the electronic device 300 as a secondary device of the HyperTerminal.
在第一电子设备已经将第二电子设备确定为主设备,以及第一电子设备获取到第三电子设备的信息的情况下,或者,在第一电子设备获取到第三电子设备的信息,以及将第三电子设备确定为副设备的情况下,第一电子可以显示第三电子设备的共享能力信息包括的一个或多个能力的信息。例如,显示设备功能选择界面,设备功能选择界面可以包括一个或多个能力选择控件、继续共享控件以及完成共享控件。用户可以根据实际的需要,从显示的一个或多个能力的信息中选择需要第三电子设备向第二电子设备共享的能力。第一电子设备检测到用户对第三电子设备的共享能力信息包括的一个或多个能力中部分或全部能力的选择指令时,可以将选择的能力的信息确定为能力共享信息。例如,第一电子设备检测到针对设备功能选择界面的第三操作时,即检测到用于确定能力共享信息的第三操作时,第一电子设备可以响应第三操作,将选择的能力的信息确定为能力共享信息。能力共享信息包括用户选择的第三电子设备的共享能力信息中的部分或全部能力信息。其中,设备功能选择界面可以是上述图4H所示实施例中的用户界面45。In the case that the first electronic device has determined the second electronic device to be the master device, and the first electronic device obtains the information of the third electronic device, or, when the first electronic device obtains the information of the third electronic device, and When the third electronic device is determined as the secondary device, the first electronic device may display information about one or more capabilities included in the shared capability information of the third electronic device. For example, a device function selection interface is displayed, and the device function selection interface may include one or more capability selection controls, continue sharing controls, and finish sharing controls. The user may select a capability that needs to be shared by the third electronic device with the second electronic device from the displayed information of 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 included in the shared capability information of the third electronic device, it may 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, that is, when it detects a third operation for determining capability sharing information, the first electronic device may respond to the third operation and send the selected capability information to Identify the capabilities to share information. The capability sharing information includes part or all of the capability information in the shared capability information of the third electronic device selected by the user. Wherein, the device function selection interface may be the user interface 45 in the embodiment shown in FIG. 4H above.
该第三操作可以是上述图4H所示实施例中针对能力选择控件451的输入操作(例如单 击)。在第一电子设备检测到针对于能力选择控件451的输入操作(例如单击)后,响应于该输入操作,能力选择控件451可以显示有如图4H所示的“√”。The third operation may be an input operation (for example, click) on the capability selection control 451 in the above-mentioned embodiment shown in FIG. 4H . After the first electronic device detects an input operation (for example, click) on the capability selection control 451, in response to the input operation, the capability selection control 451 may display a "√" as shown in FIG. 4H.
在第一电子设备没有将第三电子设备确定为副设备的情况下,第一电子设备检测到针对设备功能选择界面的第四操作时,即检测到用于确定完成共享的第四操作时,第一电子设备可以响应第四操作,将第三电子设备设置为超级终端的副设备,以及可以显示超级终端界面。其中,超级终端界面可以包括主设备的图标和副设备的图标,以及主设备的开关控件和副设备的开关键控。When the first electronic device does not determine the third electronic device as the secondary device, when the first electronic device detects the fourth operation on the device function selection interface, that is, when it detects the fourth operation for determining that the sharing is completed, In response to the fourth operation, the first electronic device can set the third electronic device as a secondary device of the HyperTerminal, and can display the HyperTerminal interface. Wherein, the hyperterminal interface may include the icon of the main device and the icon of the auxiliary device, as well as the switch control of the main device and the switch key of the auxiliary device.
该第四操作可以是上述图4H所示实施例中针对完成共享控件452的输入操作(例如单击),该超级终端界面可以是上述图4I所示实施例中的用户界面46。在第一电子设备检测到针对于完成共享控件452的输入操作(例如单击)后,响应于该输入操作,第一电子设备可以将电子设备300设置为超级终端的副设备,以及可以显示如图4I所示的用户界面46。The fourth operation may be an input operation (for example, click) for completing the sharing control 452 in the above-mentioned embodiment shown in FIG. 4H , and the hyperterminal interface may be the user interface 46 in the above-mentioned embodiment shown in FIG. 4I . After the first electronic device detects an input operation (such as a single click) aimed at completing the sharing control 452, in response to the input operation, the first electronic device may set the electronic device 300 as a secondary device of the HyperTerminal, and may display such as The user interface 46 is shown in FIG. 4I.
可见,第一电子设备可以接收用户输入,以便用户选择第三电子设备需要向第二电子设备共享的能力。因此,用户可以根据自己的需求,自由的组建虚拟的超级终端,以便可以根据实际的需求扩展单个电子设备的能力以及使用场景。It can be seen that the first electronic device may receive user input, so that the user selects the capability that the third electronic device needs to share with the second electronic device. Therefore, users can freely build a virtual hyperterminal according to their own needs, so that the capabilities and usage scenarios of a single electronic device can be expanded according to actual needs.
步骤601可以在步骤602之前执行,也可以在步骤602之后执行。Step 601 may be performed before step 602, or may be performed after step 602.
603:第一电子设备向第二电子设备发送第三电子设备的地址信息和能力共享信息。603: The first electronic device sends the address information and capability sharing information of the third electronic device to the second electronic device.
相应地,第二电子设备可以接收到来自第一电子设备的第三电子设备的地址信息和能力共享信息。Correspondingly, the second electronic device may receive address information and capability sharing information of the third electronic device from the first electronic device.
由于电子设备不能使用自身不支持扩展的其它电子设备的能力,因此,在第二电子设备的能力信息包括第二电子设备的扩展能力信息的情况下,且在第一电子设备向第二电子设备发送第三电子设备的地址信息和能力共享信息之前,第一电子设备可以先判断第二电子设备的扩展能力信息是否包括能力共享信息,在判断出第二电子设备的扩展能力信息不包括能力共享信息的情况下,表明第二电子设备不支持第三电子设备共享的能力,因此,第一电子设备可以不向第二电子设备发送第三电子设备的地址信息和能力共享信息,可以减少不必要信息的发送,从而可以降低第一电子设备的功耗。在判断出第二电子设备的扩展能力信息包括能力共享信息的情况下,表明第二电子设备支持扩展用户选择的第三电子设备的能力,第一电子设备可以向第二电子设备发送第三电子设备的地址信息和能力共享信息。Since the electronic device cannot use the capabilities of other electronic devices that do not support extensions, when the capability information of the second electronic device includes the extended capability information of the second electronic device, and when the first electronic device sends the second electronic device Before sending the address information and capability sharing information of the third electronic device, the first electronic device may first determine whether the extended capability information of the second electronic device includes capability sharing information; In the case of information, it indicates that the second electronic device does not support the capability shared by the third electronic device. Therefore, the first electronic device may not send the address information and capability sharing information of the third electronic device to the second electronic device, which can reduce unnecessary The information is sent, so that the power consumption of the first electronic device can be reduced. If it is judged that the extended capability information of the second electronic device includes capability sharing information, it indicates that the second electronic device supports extending the capability of the third electronic device selected by the user, and the first electronic device may send the third electronic device to the second electronic device. Device address information and capability sharing information.
可见,在用户选择的第三电子设备的能力属于第二电子设备支持扩展的能力的情况下,也即是在第二电子设备的扩展能力信息包括能力共享信息的情况下,第一电子设备才向第二电子设备发送第三电子设备的地址信息和能力共享信息,确保了第二电子设备与第三电子设备建立连接之后,第二电子设备可以使用能力共享信息包括的第三电子设备的能力。It can be seen that when the capability of the third electronic device selected by the user belongs to the extended capability of the second electronic device, that is, when the extended capability information of the second electronic device includes capability sharing information, the first electronic device Sending the address information and capability sharing information of the third electronic device to the second electronic device ensures that after the connection between the second electronic device and the third electronic device is established, the second electronic device can use the capabilities of the third electronic device included in the capability sharing information .
在用户选择的第三电子设备的能力是第二电子设备支持扩展的能力的情况下,第一电子设备可以直接向第二电子设备发送能力共享信息,以便第二电子设备可以根据能力共享信息直接使用第三电子设备的能力中能力共享信息对应的能力,此外,第一电子设备也可以在用户确认可以使用第三电子设备的能力中能力共享信息对应的能力情况下,再向第二电子设备发送能力共享信息。具体地,第一电子设备可以先向第三电子设备发送通知信息,通知信息包括能力共享信息包括的第三电子设备的能力。相应地,第三电子设备可以接收到来自第一电子设备的通知信息,之后可以输出一个用于提示用户是否共享通知信息包括的第三电子设备的能力的提示信息。用户可以根据实际情况选择是否共享提示信息包括的自身的能力,针对提示信息执行对应的操作。第三电子设备可以在检测到针对提示信息的确认操作时,表明第三电子设备允许其它电子设备使用通知信息包括的自身的能力,可以向第一电子设备发送 确认共享信息。相应地,第一电子设备可以接收来自第三电子设备的确认共享信息,之后可以根据确认共享信息向第二电子设备发送第三电子设备的地址信息和能力共享信息。In the case that the capability of the third electronic device selected by the user is the capability of the second electronic device to support extensions, the first electronic device may directly send capability sharing information to the second electronic device, so that the second electronic device may directly Among the capabilities of the third electronic device, the capability corresponding to the capability sharing information can be used. In addition, the first electronic device can also send the second electronic device Send capability sharing information. Specifically, the first electronic device may first send notification information to the third electronic device, where the notification information includes the capability of the third electronic device included in the capability sharing information. Correspondingly, the third electronic device may receive the notification information from the first electronic device, and then may output prompt information for prompting the user whether to share the capability of the third electronic device included in the notification information. Users can choose whether to share their own capabilities included in the prompt information according to the actual situation, and perform corresponding operations on the prompt information. When the third electronic device detects the confirmation operation for the prompt information, it indicates that the third electronic device allows other electronic devices to use its own capabilities included in the notification information, and may send confirmation sharing information to the first electronic device. Correspondingly, the first electronic device may receive confirmation sharing information from the third electronic device, and then may send address information and capability sharing information of the third electronic device to the second electronic device according to the confirmation sharing information.
当第三电子设备检测到针对提示信息的拒绝操作时,表明不允许其它电子设备使用通知信息包括的自身的能力,因此第三电子设备可以向第一电子设备发送拒绝共享信息或者不发送任何信息。一种情况下,当第三电子设备检测到针对提示信息的拒绝操作时,第三电子设备可以向第一电子设备发送拒绝共享信息。相应地,第一电子设备可以接收来自第三电子设备的拒绝共享信息,之后可以根据拒绝共享信息不向第二电子设备发送第三电子设备的地址信息和能力共享信息,可以减少不必要的信息发送,从而降低第一电子设备的功耗。此外,还可以避免第二电子设备和第三电子设备建立连接后,第二电子设备不能够使用能力共享信息包括的第三电子设备的能力的情况发生。另一种情况下,当第三电子设备检测到针对提示信息的拒绝操作时,第三电子设备可以不向第一电子设备发送任何信息。相应地,第一电子设备不会接收到来自第三电子设备的信息,因此,如果在一段时间内第一电子设备没有接收到来自第三电子设备的信息,第一电子设备可以确定第三电子设备不共享通知信息包括的第三电子设备的能力,可以不向第二电子设备发送第三电子设备的地址信息和能力共享信息。When the third electronic device detects the rejection operation for the prompt information, it indicates that other electronic devices are not allowed to use its own capabilities included in the notification information, so the third electronic device can send a refusal to share information or not send any information to the first electronic device . In one case, when the third electronic device detects a rejection operation for the prompt information, the third electronic device may send the sharing refusal information to the first electronic device. Correspondingly, the first electronic device may receive the sharing refusal information from the third electronic device, and then may not send the address information and capability sharing information of the third electronic device to the second electronic device according to the sharing refusal information, which may reduce unnecessary information sending, thereby reducing the power consumption of the first electronic device. In addition, after the connection between the second electronic device and the third electronic device is established, the second electronic device cannot use the capability of the third electronic device included in the capability sharing information. In another case, when the third electronic device detects a rejection operation for the prompt information, the third electronic device may not send any information to the first electronic device. Correspondingly, the first electronic device will not receive information from the third electronic device, therefore, if the first electronic device does not receive information from the third electronic device within a period of time, the first electronic device can determine that the third electronic device The device does not share the capability of the third electronic device included in the notification information, and may not send the address information and capability sharing information of the third electronic device to the second electronic device.
可见,第一电子设备可以在接收到来自第三电子设备的确认共享信息之后,才向第二电子设备发送第三电子设备的地址信息和能力共享信息,可以减少不必要的信息发送,从而可以降低第一电子设备的功耗。此外,还可以确保第二电子设备根据第三电子设备的地址信息与第三电子设备建立连接之后,第二电子设备可以使用能力共享信息包括的第三电子设备的能力。It can be seen that the first electronic device can send the address information and capability sharing information of the third electronic device to the second electronic device after receiving the confirmation sharing information from the third electronic device, which can reduce unnecessary information transmission, and thus can The power consumption of the first electronic device is reduced. In addition, it can also be ensured that after the second electronic device establishes a connection with the third electronic device according to the address information of the third electronic device, the second electronic device can use the capabilities of the third electronic device included in the capability sharing information.
604:第二电子设备根据第三电子设备的地址信息与第三电子设备建立通信连接,使用第三电子设备的能力中能力共享信息对应的能力。604: The second electronic device establishes a communication connection with the third electronic device according to the address information of the third electronic device, and uses the capability corresponding to the capability sharing information among the capabilities of the third electronic device.
在第二电子设备接收到来自第一电子设备的第三电子设备的地址信息和能力共享信息之后,第二电子设备可以根据第三电子设备的地址信息与第三电子设备建立通信连接,此外,第二电子设备还可以根据第三电子设备的能力共享信息确定可以使用的第三电子设备的能力,以及使用对应的第三电子设备的能力。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 may establish a communication connection with the third electronic device according to the address information of the third electronic device. In addition, The second electronic device may also determine the available capabilities of the third electronic device according to the capability sharing information of the third electronic device, and use the corresponding capabilities of the third electronic device.
当第二电子设备与第三电子设备建立通信连接之后,第二电子设备可以与第三电子设备进行双向通信,进而第二电子设备可以使用第三电子设备的能力中能力共享信息对应的能力。例如,假设第二电子设备可以使用第三电子设备的存储能力,第二电子设备可以先向第三电子设备发送请求信息。相应地,当第三电子设备接收到来自第二电子设备的请求信息之后,可以根据请求信息向第二电子设备发送本地可用的存储空间地址。因此,当第二电子设备接收到来自第三电子设备的存储空间地址之后,可以将需要存储的数据发送给第三电子设备,同时,还可以指示存储空间地址。相应地,当第三电子设备接收到来自第二电子设备的数据时,可以将该数据存储到对应的地址空间中。之后,当第二电子设备需要获取存储在第三电子设备存储空间中的数据时,第二电子设备可以向第三电子设备发送数据请求信息,数据请求信息可以包括存储空间地址。相应地,当第三电子设备接收到来自第二电子设备的数据请求信息之后,第三电子设备可以根据数据请求信息包括的存储空间地址取出对应存储空间的数据,发送给第二电子设备。相应地,第二电子设备可以接收到来自第三电子设备的数据。After the second electronic device establishes a communication connection with the third electronic device, the second electronic device can perform two-way communication with the third electronic device, and then the second electronic device can use the capability corresponding to the capability sharing information among the capabilities of the third electronic device. For example, assuming that the second electronic device can use the storage capability of the third electronic device, the second electronic device may first send request information to the third electronic device. Correspondingly, after the third electronic device receives the request information from the second electronic device, it may send the address of the locally available storage space to the second electronic device according to the request information. Therefore, after the second electronic device receives the storage space address from the third electronic device, it can send the data to be stored to the third electronic device, and at the same time, indicate the storage space address. Correspondingly, when the third electronic device receives data from the second electronic device, it can store the data in the corresponding address space. Afterwards, when the second electronic device needs to obtain data stored in the storage space of the third electronic device, the second electronic device may send data request information to the third electronic device, and the data request information may include a storage space address. Correspondingly, after the third electronic device receives the data request information 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 information, and send it to the second electronic device. Correspondingly, the second electronic device can receive data from the third electronic device.
示例性的,如图5A到图5E所示,当电子设备200支持扩展的能力包括摄像能力,且用户选择了电子设备300共享摄像能力给电子设备200,之后,电子设备200可以使用电子设备300的摄像能力。例如,当使用电子设备200进行视频通话时,电子设备200可以获取到电子设备300捕获的视频画面,并且可以在自身的屏幕上显示电子设备300捕获的视频画面。Exemplarily, as shown in FIG. 5A to FIG. 5E , when the electronic device 200 supports extended capabilities including the camera capability, and the user selects the electronic device 300 to share the camera capability with the electronic device 200, then the electronic device 200 can use the electronic device 300 camera capabilities. For example, when using the electronic device 200 to make a video call, the electronic device 200 may acquire the video frame captured by the electronic device 300 and display the video frame captured by the electronic device 300 on its own screen.
在一些实施例中,第二电子设备接收到来自第一电子设备的第三电子设备的地址信息和能力共享信息之后,可以显示超级终端界面。超级终端界面可以包括主设备的图标和副设备的图标,以及主设备的开关控件和副设备的开关键控。该超级终端界面可以是上述图4I所示实施例中的用户界面46。In some embodiments, after receiving the address information and capability sharing information of the third electronic device from the first electronic device, the second electronic device may display a hyperterminal interface. The hyperterminal interface may include an icon of the main device and an icon of the auxiliary device, as well as an on/off control of the main device and an on/off key of the auxiliary device. The hyperterminal interface may be the user interface 46 in the above embodiment shown in FIG. 4I.
应理解,本申请还可以实现三个或三个以上的电子设备组建超级终端。例如,本申请实施例还可以包括第四电子设备,在用户控制第一电子设备将第二电子设备和第三电子设备组建成超级终端之后,用户还可以控制第一电子设备获取第四电子设备的信息,以及可以将第四电子设备设置为超级终端的副设备。第四电子设备的相关描述和第三电子设备的相关描述类似,可以参考上述第三电子设备的相关描述,在此不再详细赘述。可以理解的是,在超级终端包括多个副设备的情况下,能够更有效的利用单个电子设备的部分或全部能力,并且可以适用更多的应用场景。It should be understood that the present application can also implement three or more electronic devices to form a hyper terminal. For example, the embodiment of the present application may also include a fourth electronic device. After the user controls the first electronic device to form the second electronic device and the third electronic device into a hyper terminal, the user may also control the first electronic device to obtain the fourth electronic device information, and the fourth electronic device can be set as a secondary device of the HyperTerminal. The related description of the fourth electronic device is similar to the related description of the third electronic device, and reference may be made to the related description of the above third electronic device, and details are not repeated here. It can be understood that, in the case that the hyperterminal includes multiple auxiliary devices, part or all of the capabilities of a single electronic device can be utilized more effectively, and more application scenarios can be applied.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘,Solid State Disk)等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk, Solid State Disk) and the like.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are realized. The processes can be completed by computer programs to instruct related hardware. The programs can be stored in computer-readable storage media. When the programs are executed , may include the processes of the foregoing method embodiments. The aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In a word, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. All modifications, equivalent replacements, improvements, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.

Claims (19)

  1. 一种能力共享方法,其特征在于,包括:A capability sharing method, characterized by comprising:
    第一电子设备将第二电子设备确定为主设备;The first electronic device determines the second electronic device as a master device;
    将第三电子设备确定为副设备;identifying the third electronic device as a secondary device;
    确定所述第三电子设备的能力共享信息;determining capability sharing information of the third electronic device;
    向所述第二电子设备发送所述能力共享信息,所述能力共享信息用于指示所述第二电子设备使用所述第三电子设备的能力中所述能力共享信息对应的能力。Sending the capability sharing information to the second electronic device, where the capability sharing information is used to instruct the second electronic device to use a capability corresponding to the capability sharing information among the capabilities of the third electronic device.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    获取所述第三电子设备的信息;acquiring information of the third electronic device;
    所述确定所述第三电子设备的能力共享信息包括:The determining the capability sharing information of the third electronic device includes:
    根据所述第三电子设备的信息,确定所述第三电子设备的能力共享信息。Determine capability sharing information of the third electronic device according to the information of the third electronic device.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, characterized in that the method further comprises:
    获取所述第二电子设备的信息,所述第二电子设备的信息包括所述第二电子设备的连接信息;acquiring information of the second electronic device, where the information of the second electronic device includes connection information of the second electronic device;
    使用所述第二电子设备的连接信息与所述第二电子设备建立连接。Establishing a connection with the second electronic device by using the connection information of the second electronic device.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述将第二电子设备确定为主设备包括:The method according to any one of claims 1-3, wherein the determining the second electronic device as the master device comprises:
    显示用于提示用户是否将第二电子设备确定为主设备的第一提示信息;displaying first prompt information for prompting the user whether to determine the second electronic device as the master device;
    检测到用户针对所述第一提示信息的第一操作时,将所述第二电子设备确定为主设备。When the first operation of the user on the first prompt information is detected, the second electronic device is determined as the master device.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述将第三电子设备确定为副设备包括:The method according to any one of claims 1-4, wherein the determining the third electronic device as a secondary device comprises:
    显示用于提示用户是否将第三电子设备确定为主设备的第二提示信息;displaying second prompt information for prompting the user whether to determine the third electronic device as the master device;
    检测到用户针对所述第二提示信息的第二操作时,将所述第三电子设备确定为副设备。When detecting the second operation of the user on the second prompt information, the third electronic device is determined as the secondary device.
  6. 根据权利要求2-5任一项所述的方法,其特征在于,所述第三电子设备的信息包括所述第三电子设备的共享能力信息,所述共享能力信息包括一个或多个能力的信息,所述根据所述第三电子设备的信息,确定所述第三电子设备的能力共享信息包括:The method according to any one of claims 2-5, wherein the information of the third electronic device includes shared capability information of the third electronic device, and the shared capability information includes information about one or more capabilities. Information, the determining the capability sharing information of the third electronic device according to the information of the third electronic device includes:
    显示所述一个或多个能力的信息;displaying information about the one or more capabilities;
    检测到用户对所述一个或多个能力中部分或全部能力的选择指令时,将选择的能力的信息确定为能力共享信息。When a user's selection instruction for some or all of the one or more capabilities is detected, the information of the selected capabilities is determined as capability sharing information.
  7. 根据权利要求2-6任一项所述的方法,其特征在于,所述第三电子设备的信息包括所述第三电子设备的连接信息,所述向所述第二电子设备发送所述能力共享信息包括:The method according to any one of claims 2-6, wherein the information of the third electronic device includes connection information of the third electronic device, and the sending the capability to the second electronic device Shared information includes:
    根据所述第三电子设备的连接信息,确定所述第三电子设备的地址信息;determining address information of the third electronic device according to the connection information of the third electronic device;
    向所述第二电子设备发送所述第三电子设备的地址信息和能力共享信息,所述地址信息用于建立与所述第三电子设备的连接。Sending address information and capability sharing information of the third electronic device to the second electronic device, where the address information is used to establish a connection with the third electronic device.
  8. 根据权利要求3-7任一项所述的方法,其特征在于,所述获取所述第二电子设备的信息包括:The method according to any one of claims 3-7, wherein the acquiring information of the second electronic device comprises:
    所述第一电子设备通过近场通信NFC从所述第二电子设备上NFC中读取所述第二电子设备的信息;The first electronic device reads the information of the second electronic device from the NFC on the second electronic device through NFC;
    或者,or,
    所述第一电子设备通过扫描包括所述第二电子设备的信息的二维码,得到所述第二电子 设备的信息。The first electronic device obtains the information of the second electronic device by scanning the two-dimensional code including the information of the second electronic device.
  9. 根据权利要求3-8任一项所述的方法,其特征在于,所述第二电子设备的信息包括扩展能力信息,所述向所述第二电子设备发送所述能力共享信息包括:The method according to any one of claims 3-8, wherein the information of the second electronic device includes extended capability information, and sending the capability sharing information to the second electronic device includes:
    在所述扩展能力信息包括所述能力共享信息的情况下,向所述第二电子设备发送所述能力共享信息。If the extended capability information includes the capability sharing information, sending the capability sharing information to the second electronic device.
  10. 根据权利要求1-8任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-8, wherein the method further comprises:
    向所述第二电子设备发送能力请求信息;sending capability request information to the second electronic device;
    接收来自所述第二电子设备的扩展能力信息;receiving extended capability information from the second electronic device;
    所述向所述第二电子设备发送所述能力共享信息包括:The sending the capability sharing information to the second electronic device includes:
    在所述扩展能力信息包括所述能力共享信息的情况下,向所述第二电子设备发送所述能力共享信息。If the extended capability information includes the capability sharing information, sending the capability sharing information to the second electronic device.
  11. 一种能力共享方法,其特征在于,包括:A capability sharing method, characterized by comprising:
    第二电子设备接收来自第一电子设备的第三电子设备的能力共享信息;The second electronic device receives the capability sharing information of the third electronic device from the first electronic device;
    使用所述第三电子设备的能力中所述能力共享信息对应的能力。Using the capability corresponding to the capability sharing information in the capability of the third electronic device.
  12. 根据权利要求11所述的方法,其特征在于,所述接收来自第一电子设备的第三电子设备的能力共享信息包括:The method according to claim 11, wherein the receiving the capability sharing information of the third electronic device from the first electronic device comprises:
    接收来自第一电子设备的第三电子设备的地址信息和能力共享信息;receiving address information and capability sharing information of a third electronic device from the first electronic device;
    所述方法还包括:The method also includes:
    根据所述地址信息建立与所述第三电子设备的连接。Establishing a connection with the third electronic device according to the address information.
  13. 根据权利要求11或12所述的方法,其特征在于,所述方法还包括:The method according to claim 11 or 12, characterized in that the method further comprises:
    通过所述第二电子设备的近场通信NFC向所述第一电子设备发送所述第二电子设备的信息,所述第二电子设备的信息包括所述第二电子设备的连接信息和/或扩展能力信息。Send the information of the second electronic device to the first electronic device through the near field communication NFC of the second electronic device, the information of the second electronic device includes the connection information and/or of the second electronic device Extended capabilities information.
  14. 根据权利要求11或12所述的方法,其特征在于,所述方法还包括:The method according to claim 11 or 12, characterized in that the method further comprises:
    接收来自所述第一电子设备的能力请求信息;receiving capability request information from the first electronic device;
    根据所述能力请求信息向所述第一电子设备发送所述第二电子设备的扩展能力信息。Sending extended capability information of the second electronic device to the first electronic device according to the capability request information.
  15. 一种电子设备,其特征在于,包括:存储器、处理器、触控屏和通信模块;其中:An electronic device is characterized in that it includes: 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 includes program instructions;
    所述处理器用于调用所述程序指令,使得所述电子设备执行如权利要求1-10任一项所述的方法。The processor is configured to call the program instruction, so that the electronic device executes the method according to any one of claims 1-10.
  16. 一种电子设备,其特征在于,包括:存储器、处理器和通信模块;其中:An electronic device, characterized in that it includes: 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 includes program instructions;
    所述处理器用于调用所述程序指令,使得所述电子设备执行如权利要求11-14任一项所述的方法。The processor is configured to call the program instruction, so that the electronic device executes the method according to any one of claims 11-14.
  17. 一种芯片系统,其特征在于,所述芯片系统应用于电子设备,所述芯片系统包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行如权利要求1-14中任一项所述的方法。A system on a chip, characterized in that the system on a chip is applied to an electronic device, and the system on a chip includes one or more processors, the processors are used to invoke computer instructions so that the electronic device performs the following claims 1- The method of any one of 14.
  18. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时,实现如权利要求1-14任意一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1-14 is implemented.
  19. 一种包含计算机指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-14中任意一项所述的方法。A computer program product containing computer instructions, characterized in that, when the computer program product is run on an electronic device, the electronic device is made to execute the method according to any one of claims 1-14.
PCT/CN2022/120178 2021-09-23 2022-09-21 Capability sharing method, electronic devices and computer-readable storage medium WO2023045966A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111116285.1A CN115866568A (en) 2021-09-23 2021-09-23 Capability sharing method, electronic device, and computer-readable storage medium
CN202111116285.1 2021-09-23

Publications (1)

Publication Number Publication Date
WO2023045966A1 true WO2023045966A1 (en) 2023-03-30

Family

ID=85652332

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/120178 WO2023045966A1 (en) 2021-09-23 2022-09-21 Capability sharing method, electronic devices and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN115866568A (en)
WO (1) WO2023045966A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092808A (en) * 2011-10-31 2013-05-08 联想(北京)有限公司 Device sharing method
CN103379107A (en) * 2012-04-26 2013-10-30 中兴通讯股份有限公司 Method and device for sharing network device capacity and network devices
CN112261340A (en) * 2020-10-22 2021-01-22 维沃移动通信有限公司 Visual field sharing method and device, electronic equipment and readable storage medium
WO2021052200A1 (en) * 2019-09-19 2021-03-25 华为技术有限公司 Device capability scheduling method and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092808A (en) * 2011-10-31 2013-05-08 联想(北京)有限公司 Device sharing method
CN103379107A (en) * 2012-04-26 2013-10-30 中兴通讯股份有限公司 Method and device for sharing network device capacity and network devices
WO2021052200A1 (en) * 2019-09-19 2021-03-25 华为技术有限公司 Device capability scheduling method and electronic device
CN112261340A (en) * 2020-10-22 2021-01-22 维沃移动通信有限公司 Visual field sharing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN115866568A (en) 2023-03-28

Similar Documents

Publication Publication Date Title
JP7381021B2 (en) Device control page display method, related equipment, and system
CN113885759B (en) Notification message processing method, device, system and computer readable storage medium
CN111628916B (en) Method for cooperation of intelligent sound box and electronic equipment
WO2021185244A1 (en) Device interaction method and electronic device
WO2020173375A1 (en) Multi-intelligent device linkage control method, device and system
CN113923230B (en) Data synchronization method, electronic device, and computer-readable storage medium
WO2021052200A1 (en) Device capability scheduling method and electronic device
CN116360725B (en) Display interaction system, display method and device
WO2020216098A1 (en) Method for providing forwarding service across electronic apparatuses, apparatus, and system
WO2022001619A1 (en) Screenshot method and electronic device
CN112130788A (en) Content sharing method and device
WO2022042326A1 (en) Display control method and related apparatus
WO2021218707A1 (en) Method for determining operated object, and mobile device and gateway
CN113918110A (en) Screen projection interaction method, device, system, storage medium and product
WO2024087900A1 (en) Camera switching method and related electronic device
CN114125789A (en) Communication method, terminal device and storage medium
WO2022152174A1 (en) Screen projection method and electronic device
WO2023045966A1 (en) Capability sharing method, electronic devices and computer-readable storage medium
WO2021218544A1 (en) Wireless connection providing system, method, and electronic apparatus
WO2020062308A1 (en) Location information processing method and related device
WO2022037412A1 (en) Method and apparatus for managing internet of things devices
WO2023236939A1 (en) Application component interaction method and related device
WO2023142941A1 (en) Playing record display method and related device
CN114697960B (en) Method and system for connecting external camera
WO2023045876A1 (en) Application installation method and related devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22872012

Country of ref document: EP

Kind code of ref document: A1