Function enabling method and device, electronic equipment and readable storage medium
By obtaining the function information or screen screen of the second electronic device, the matching functions are automatically enabled. On the first electronic device, the problem of users cumbersome to enable functions on different electronic devices is solved, and the efficiency of function activation is improved.
Patent Information
- Application Number
- CN202411628135.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-02-14
AI Technical Summary
When enabling the same function on different electronic devices, users need to perform multiple manual operations, which makes the activation process cumbersome and time-consuming and inefficient.
By acquiring the function information or screen screen of the second electronic device, the matching function is automatically enabled on the first electronic device.
It simplifies the process of enabling functions on different electronic devices, improves the efficiency of function activation, and reduces the number of times the user operates manually.
Smart Images

Figure CN119449941A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a function enabling method, device, electronic device and readable storage medium. Background Art
[0002] As electronic devices become more popular, users may need to enable the same function on different electronic devices. For example, users need to enable a screen recording function on different electronic devices.
[0003] In the related art, when a user needs to enable the screen recording function on two electronic devices (such as electronic device 1 and electronic device 2), the user can first slide down on the screen of electronic device 1 to trigger electronic device 1 to display the shortcut function interface a, and then the user can click on the screen recording logo in the shortcut function interface a to trigger electronic device 1 to enable the screen recording function. Similarly, the user can first slide down on the screen of electronic device 2 to trigger electronic device 2 to display the shortcut function interface b, and then the user can click on the screen recording logo in the shortcut function interface b to trigger electronic device 2 to enable the screen recording function.
[0004] However, according to the above method, since the user needs two inputs to trigger an electronic device to enable a function indicated by a function identifier in a shortcut function interface, when the shortcut function interface does not include the function identifier of the function that the user needs to enable, the user may need to use more inputs to trigger an electronic device to enable the function that the user needs to enable. Therefore, the operation process of the user manually triggering two electronic devices to enable functions in turn is cumbersome and time-consuming, which leads to low efficiency in enabling electronic device functions. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a function enabling method, device, electronic device and readable storage medium, which can improve the efficiency of enabling electronic device functions.
[0006] In a first aspect, an embodiment of the present application provides a function enabling method, which is applied to a first electronic device, and the method includes: obtaining first information of a second electronic device, the first information being any one of the following: function information sent by the second electronic device, a screen image displayed by the second electronic device, the function information being used to indicate a first function currently enabled by the second electronic device; based on the first information, enabling a second function of the first electronic device, the second function matching the first function, or the second function matching the screen image displayed by the second electronic device.
[0007] In a second aspect, an embodiment of the present application provides a function enabling method, which is applied to a second electronic device, and the method includes: sending a first notification message to a first electronic device, the first notification message carrying function information, the function information being used to indicate a first function currently enabled by the second electronic device, and the first notification message being used by the first electronic device to enable a second function of the first electronic device that matches the first function.
[0008] In a third aspect, an embodiment of the present application provides a function enabling device, the device comprising an acquisition module and an enabling module. The acquisition module is used to acquire first information of a second electronic device, the first information being any one of the following: function information sent by the second electronic device, a screen displayed by the second electronic device, the function information being used to indicate the first function currently enabled by the second electronic device; the enabling module is used to enable a second function of the first electronic device based on the first information, the second function matching the first function, or the second function matching the screen displayed by the second electronic device.
[0009] In a fourth aspect, an embodiment of the present application provides a function enabling device, the device comprising a sending module. The sending module is used to send a first notification message to a first electronic device, the first notification message carries function information, the function information is used to indicate the first function currently enabled by the second electronic device, and the first notification message is used by the first electronic device to enable a second function of the first electronic device that matches the first function.
[0010] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect or the second aspect above are implemented.
[0011] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect above are implemented.
[0012] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described in the first or second aspect above.
[0013] In an eighth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first or second aspect above.
[0014] In an embodiment of the present application, a first electronic device can obtain first information of a second electronic device, and based on the first information, enable a second function of the first electronic device, the first information being any of the following: function information sent by the second electronic device, a screen displayed by the second electronic device, the function information being used to indicate a first function currently enabled by the second electronic device, the second function matching the first function, or the second function matching the screen displayed by the second electronic device. Through this scheme, on the one hand, since the first electronic device can obtain information about the first function currently enabled by the second electronic device, the first electronic device can automatically enable a second function matching the first function currently enabled by the second electronic device according to the information. On the other hand, since the first electronic device can obtain a screen currently displayed by the second electronic device, and the screen can represent the first function currently enabled by the second electronic device, the first electronic device can enable a function matching the first function currently enabled by the second electronic device according to the screen, i.e., the second function. In this way, since the first electronic device can automatically enable a function matching the function currently enabled by the second electronic device in the first electronic device according to the relevant information of the second electronic device, the user does not need to manually operate on the first electronic device and the second electronic device respectively, so the efficiency of enabling functions of the electronic device can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flowchart of a function enabling method provided in an embodiment of the present application;
[0016] Figure 2 is a schematic diagram of an ultrasonic sensor providing an embodiment of the present application sending and receiving ultrasonic waves;
[0017] Figure 3 This is a schematic diagram of multiple devices performing ultrasonic scanning in a function enabling method provided in an embodiment of the present application;
[0018] Figure 4 is a schematic diagram of a first electronic device drawing a circle around a second electronic device in a function enabling method provided by an embodiment of the present application;
[0019] Figure 5 is a schematic diagram of a first electronic device colliding with a second electronic device in a function enabling method provided by an embodiment of the present application;
[0020] Figure 6 It is a schematic diagram of a method for enabling a function provided by an embodiment of the present application, in which a first electronic device captures a screen image of a second electronic device through a camera;
[0021] Figure 7 It is a flowchart of a function enabling method provided in an embodiment of the present application;
[0022] Figure 8 It is a flowchart of a function enabling method provided in an embodiment of the present application;
[0023] Fig. 9 It is a flowchart of a function enabling method provided in an embodiment of the present application;
[0024] Fig.10 It is a flowchart of a function enabling method provided in an embodiment of the present application;
[0025] Fig.11 is a schematic diagram of a first electronic device crossing a second electronic device in a function enabling method provided by an embodiment of the present application;
[0026] Fig.12 It is a flowchart of a function enabling method provided in an embodiment of the present application;
[0027] Fig.13 It is a flowchart of a function enabling method provided in an embodiment of the present application;
[0028] Fig.14 is a structural diagram of a function enabling device provided in an embodiment of the present application;
[0029] Fig.15 is a structural diagram of a function enabling device provided in an embodiment of the present application;
[0030] Fig.16 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0031] Fig.17 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0033] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0034] In the following, in combination with the accompanying drawings, a function enabling method provided by an embodiment of the present application is described in detail through specific embodiments and application scenarios.
[0035] A function enabling method provided in an embodiment of the present application can be applied to an application scenario in which multiple electronic devices need to enable matching functions. Specifically, after a user triggers an electronic device (i.e., the second electronic device in the embodiment of the present application) to enable a function, if the user also needs to trigger another electronic device (i.e., the first electronic device in the embodiment of the present application) to enable the function, the user can trigger the other electronic device through an input to obtain relevant information of the one electronic device, such as function information of the function currently enabled by the one electronic device or the screen currently displayed by the one electronic device, so that the other electronic device automatically enables the function that matches the function in the other electronic device according to the relevant information. In this way, since the other electronic device can automatically enable the function that matches the function currently enabled by the one electronic device according to the relevant information of the one electronic device, without the user having to manually perform at least two inputs on the other electronic device, the efficiency of enabling the electronic device function can be improved.
[0036] In a possible application scenario, assuming that a user needs to use a first electronic device and a second electronic device to perform screen recording during a live broadcast, then after the user triggers the second electronic device to enable the screen recording function, the user can click on the shooting mark in the first electronic device to trigger the first electronic device to capture the screen image currently displayed by the second electronic device, so as to automatically trigger the first electronic device to enable the screen recording function based on the screen image. In this way, since the first electronic device can automatically enable the screen recording function based on the screen image displayed by the second electronic device, the user does not need to manually perform at least two inputs on the first electronic device to enable the screen recording function. Therefore, the efficiency of enabling the screen recording function of the electronic device can be improved.
[0037] In a possible application scenario, assuming that during a live broadcast using a first electronic device and a second electronic device, if a user needs the first electronic device and the second electronic device to capture a live broadcast screen, the user can first trigger the second electronic device to enable the screenshot function, and then the user can circle the first electronic device around the second electronic device, so that the second electronic device sends the function information of the screenshot function currently enabled by the second electronic device to the first electronic device based on the circle input, so that the first electronic device can enable the screenshot function of the first electronic device according to the function information after receiving the function information. In this way, since the first electronic device can automatically enable the screenshot function according to the function information of the screenshot function sent by the second electronic device, the user does not need to manually perform at least two inputs on the first electronic device to enable the screenshot function. Therefore, the efficiency of enabling the screen recording function of the electronic device can be improved.
[0038] In a possible application scenario, suppose that when a user and his friend are traveling, they need to use the user's second electronic device and his friend's first electronic device to take photos respectively. Then, after the user triggers the second electronic device to enable the photo function, his friend can collide the first electronic device with the second electronic device, so that the second electronic device sends the function information of the photo function currently enabled by the second electronic device to the first electronic device based on the collision input, so that the first electronic device can enable the photo function of the first electronic device according to the function information after receiving the function information. In this way, since the first electronic device can automatically enable the photo function according to the function information of the photo function sent by the second electronic device, the user does not need to manually perform at least two inputs on the first electronic device to enable the photo function. Therefore, the efficiency of enabling the photo function of the electronic device can be improved.
[0039] The execution subject of the function enabling method provided in the embodiment of the present application is a function enabling device, which can be an electronic device, or a functional module or entity in an electronic device, and the embodiment of the present application does not limit this. The function enabling method provided in the embodiment of the present application will be exemplarily described below using an electronic device as an example.
[0040] The function enabling method provided in the embodiment of the present application is exemplarily described below in conjunction with specific embodiments.
[0041] Combination Figure 1 An embodiment of the present application provides a function enabling method, which can be applied to a first electronic device. The method may include the following steps 101 to 102.
[0042] Step 101: A first electronic device obtains first information of a second electronic device.
[0043] The first information is any one of the following: function information sent by the second electronic device, a screen image displayed by the second electronic device, and the function information can be used to indicate the first function currently enabled by the second electronic device.
[0044] In some embodiments of the present application, the second electronic device may be an electronic device connected to the first electronic device.
[0045] In some embodiments of the present application, the second electronic device can be connected to the first electronic device via a local area network, near field communication (NFC), WiFi or Bluetooth. Of course, the first electronic device and the second electronic device can also be connected in any other possible manner, which is not limited in the embodiments of the present application.
[0046] In some embodiments of the present application, the first information of the second electronic device may be any one of the following: functional information sent by the second electronic device, and a screen image displayed by the second electronic device.
[0047] The function information sent by the second electronic device is information about the first function currently enabled by the second electronic device, that is, the function information can be used to indicate the first function.
[0048] For example, the first function may be the screen recording, screenshot, and camera functions mentioned in the above embodiments. Of course, the first function may also be any other possible function other than the screen recording, screenshot, and camera functions, such as a recording and calculator function.
[0049] It should be noted that the first function currently enabled by the second electronic device may be understood as the function enabled by the second electronic device when the second electronic device sends the function information to the first electronic device.
[0050] In the embodiment of the present application, the above-mentioned first information is different, and the first electronic device may obtain the first information in different ways. Specifically, when the first information is functional information sent by the second electronic device, the first electronic device may obtain the first information in the following way 1. When the first information is a screen image displayed by the second electronic device, the first electronic device may obtain the first information in the following way 2.
[0051] Method 1: The first electronic device may obtain the first information through a first notification message sent by the second electronic device.
[0052] Exemplarily, the above step 101 can be specifically implemented through the following steps 101a to 101b.
[0053] Step 101a: The first electronic device receives a first notification message sent by the second electronic device.
[0054] The first notification message carries function information for indicating the above-mentioned first function.
[0055] Step 101b: The first electronic device obtains first information from the first notification message.
[0056] In the first method, the first electronic device can obtain the first information through the first notification message sent by the second electronic device.
[0057] Among them, in a first possible implementation method: the second electronic device can send a first notification message to the first electronic device when the movement parameters of the first electronic device meet the first preset parameters; or, in a second possible implementation method: the second electronic device can send a first notification message to the first electronic device when the number of contacts between the first electronic device and the second electronic device reaches a preset number of times.
[0058] In some embodiments of the present application, when the second electronic device currently has multiple functions enabled, the first notification message carries function information of the most recently enabled function of the second electronic device, or may include function information of all functions currently enabled by the second electronic device, which can be determined based on actual usage requirements.
[0059] The first possible implementation manner and the second possible implementation manner are described in detail below.
[0060] The first possible implementation is:
[0061] In some embodiments of the present application, the second electronic device can obtain the movement parameters of the first electronic device through the first device. The first device may include at least one of the following: radar, ultrasonic sensor, infrared transceiver, position information sensor, and of course the first device can also be any device that can obtain the movement parameters of the first electronic device.
[0062] For example, taking the first device as an ultrasonic sensor, Figure 2 As shown, the ultrasonic sensor can utilize the propagation characteristics of ultrasonic waves to detect the distance between an object, such as a first electronic device, and a target, such as a second electronic device, by transmitting and receiving ultrasonic signals.
[0063] For example, at least two ultrasonic sensors in the second electronic device can emit ultrasonic waves. For each ultrasonic sensor, when the ultrasonic wave emitted by an ultrasonic sensor propagates to the first electronic device, the first electronic device can reflect the ultrasonic wave. When the reflected wave reaches the ultrasonic sensor, the ultrasonic sensor can receive the reflected wave, so that the ultrasonic sensor can calculate the relative distance between the first electronic device and the second electronic device according to the time difference between the time of sending the ultrasonic wave and the time of receiving the reflected wave. It can be understood that after the at least two ultrasonic sensors perform an ultrasonic scan, the at least two ultrasonic sensors can calculate at least two relative distances between the first electronic device and the second electronic device, and the at least two relative distances correspond one-to-one to the at least two ultrasonic sensors.
[0064] Then, the second electronic device can calculate the relative position information of the first electronic device based on the triangle positioning method according to the at least two relative distances and the relative position information between the at least two ultrasonic sensors. It can be understood that the relative position information is the relative position information of the first electronic device relative to the second electronic device.
[0065] Furthermore, the second electronic device may perform multiple ultrasonic scans through the at least two ultrasonic sensors to obtain multiple relative position information of the first electronic device, so that the second electronic device may calculate the movement parameters of the first electronic device according to the multiple relative position information.
[0066] In some embodiments of the present application, the second electronic device can calculate the movement parameter of the first electronic device based on the above-mentioned multiple relative position information and the first time corresponding to the multiple relative position information. The first time can be any one of the following: the clock time of the second electronic device when a relative position information is obtained; the ultrasonic transmission time corresponding to the relative position information.
[0067] In some embodiments of the present application, the first electronic device may also perform ultrasonic scanning through at least two ultrasonic sensors in the first electronic device. After the at least two ultrasonic sensors perform an ultrasonic scan, the at least two ultrasonic sensors can calculate at least two relative distances between the second electronic device and the first electronic device, and the at least two relative distances correspond one-to-one to the at least two ultrasonic sensors. Then, the first electronic device can calculate the relative position information of the second electronic device based on the triangle positioning method according to the at least two relative distances and the relative position information between the at least two ultrasonic sensors. It can be understood that the relative position information is the relative position information of the second electronic device relative to the first electronic device.
[0068] Each time the first electronic device and the second electronic device calculate a relative position information, an identity recognition message may be sent to the connected electronic device, and the identity recognition message carries the device identification and the relative position information. In this way, the first electronic device and the second electronic device can determine the identities of both parties based on the received identity recognition message and the relative position information calculated by themselves.
[0069] For example, after calculating the relative position information 1 of the second electronic device, the first electronic device may send an identity recognition message to the second electronic device, and the identity recognition message may carry the device identification of the first electronic device and the relative position information 1. Thus, after receiving the identity recognition message, the second electronic device may determine the identity of the first electronic device according to the identity recognition message and the relative position information calculated by the second electronic device.
[0070] In some embodiments of the present application, the above-mentioned movement parameter may include but is not limited to at least one of the following: movement trajectory, movement direction, movement angle, and movement range. Of course, the movement parameter can also be any parameter that can implement this solution, and the embodiments of the present application do not limit this.
[0071] In some embodiments of the present application, taking the example of the second electronic device using an ultrasonic sensor to determine the movement parameters of the first electronic device, when the movement parameters of the first electronic device meet the first preset parameters, the second electronic device sends a first notification message to the first electronic device, and the specific implementation process may be:
[0072] After the second electronic device is connected to the first electronic device, the second electronic device can perform ultrasonic scanning through the ultrasonic sensor in the second electronic device, and the second electronic device can notify the first electronic device to also perform ultrasonic scanning. For example, the second electronic device can send a collaborative scanning request to the first electronic device to notify the first electronic device to perform radar ultrasonic scanning.
[0073] Then, after the first electronic device receives the collaborative scanning request sent by the second electronic device, it can perform ultrasonic scanning through the ultrasonic sensor in the first electronic device. In addition, the first electronic device can output a prompt message to instruct the user to move the first electronic device in a preset manner through the prompt message. Thus, the user can move the first electronic device according to the prompt of the above prompt message. It can be understood that in the process of the user moving the first electronic device according to the above prompt message, the first electronic device and the second electronic device both continue to detect each other's relative position information through ultrasound, that is, the first electronic device and the second electronic device continue to confirm the position. In addition, the second electronic device can determine the movement parameters of the first electronic device based on the relative position information of the first electronic device that has been confirmed for multiple times. When the second electronic device confirms that the movement parameters of the first electronic device meet the first preset parameters in the second electronic device, the second electronic device can send a first notification message to the first electronic device.
[0074] In some embodiments of the present application, the above-mentioned prompt information can be a prompt voice or a prompt text, which can be determined according to actual usage requirements.
[0075] It should be noted that the above embodiment is illustrated by taking the output of the above prompt information by the device that receives the cooperative scanning request as an example. In actual implementation, the above prompt information can also be output by the second electronic device that sends the ultrasonic scanning.
[0076] For example, the prompt information output by the second electronic device may be a prompt text or prompt voice: "Please move the device that also needs to activate the first function around this device in a preset manner."
[0077] In some embodiments of the present application, the above-mentioned preset method may include but is not limited to any of the following: the first electronic device draws a circle around the second electronic device, the first electronic device draws a check mark "√" around the second electronic device, the first electronic device draws a rectangle around the second electronic device, the first electronic device moves from the left side of the second electronic device to the right side of the second electronic device, the first electronic device moves from the upper side of the second electronic device to the lower side of the second electronic device, the first electronic device moves 90° counterclockwise around the second electronic device, the first electronic device quickly moves from the upper left to the lower right of the second electronic device, etc., which can be determined according to actual usage requirements.
[0078] The following uses the movement parameter as a movement trajectory as an example to exemplify the above-mentioned possible implementation manner.
[0079] For example, assume that multiple devices are interconnected, so that each of the multiple devices can exchange information through a connection path, such as an NFC connection path. For example, each of the multiple devices can send a collaborative scanning request to other devices through the NFC connection path, and after receiving the synchronous collaborative scanning request, the other devices can perform ultrasonic scanning through ultrasonic sensors. It can be understood that the multiple devices are in a decentralized state, such as Figure 3 As shown, if the interconnected multiple devices are recorded as a free point, marked as NC01, NC02, NC03, NC04..., then: the four interconnected devices NC01 to NC04 can all be ultrasonically scanned. When the interconnected multiple devices are all turned on for ultrasonic scanning, as one or more of the multiple devices move, each device can calculate the relative position information of other devices in real time through ultrasound, and determine the movement parameters of the other devices based on the relative position information of the same other device calculated multiple times. For example, Figure 3 NC01 in the example can determine the movement parameters of NC02 based on the relative position information of NC02 calculated three times in a row, and calculate the movement parameters of NC03 based on the relative position information of NC03 calculated three times in a row. If NC01 turns on the first function, such as the video recording function, NC01 can output a voice message: "Please circle NC01 with the device that also needs to turn on the video recording function." Figure 4 As shown, if the user moves NC02 clockwise or counterclockwise from position one to position four, NC01 can obtain the relative position information one, two, three and four that NC02 has passed through through ultrasonic scanning in real time during the movement of NC02, and determine, based on the four positions, that the movement trajectory of NC02 is a circle around NC01, so that NC01 can determine NC02 as the first electronic device and send a first notification message to NC02.
[0080] It can be seen that the trajectory from position one to position four is a quasi-circular trajectory, that is, the present application does not limit the moving trajectory of NC02 to a complete circle, as long as it is a quasi-circular curve, which can reduce the difficulty of operation.
[0081] It can be understood that the above four interconnected devices can confirm the identities of both parties through the interaction of identity identification messages. For example, NC01 can determine the identity of NC02 based on the identity identification message sent by NC02, so that NC01 can know which device is drawing a circle around NC01.
[0082] The second possible implementation is:
[0083] In some embodiments of the present application, the second electronic device can obtain the number of contacts between the first electronic device and the second electronic device through a second device. The second device can be any of the following: a distance sensor, a pressure sensor, an acceleration sensor, and of course, the second device can also be any device that can obtain the number of contacts between the first electronic device and the second electronic device.
[0084] For example, taking the second device as an acceleration sensor, when the first electronic device collides with the second electronic device, the second electronic device can measure the collision acceleration through the acceleration sensor. If the collision acceleration is greater than the preset acceleration, it is determined that the first electronic device and the second electronic device have collided.
[0085] For example, taking the second device as a pressure sensor, when the first electronic device collides with the second electronic device, the second electronic device can measure the collision pressure value through the pressure sensor. If the collision pressure value is greater than a preset pressure value, it is determined that the first electronic device and the second electronic device have collided.
[0086] In some embodiments of the present application, the above-mentioned number of contacts may be in the form of any number of contacts that can implement the present solution, such as the number of contacts, the number of collisions, or the number of squeezes, and the embodiments of the present application are not limited to this.
[0087] In some embodiments of the present application, when the second electronic device sends the first notification message to the first electronic device when the number of contacts between the first electronic device and the second electronic device reaches a preset number, the specific implementation process may be:
[0088] After the second electronic device is connected to the first electronic device, the second electronic device enables the first function, the first electronic device contacts the second electronic device, the first electronic device and the second electronic device respectively record the number of contacts, and when the number of contacts between the first electronic device and the second electronic device reaches a preset number, the second electronic device sends a first notification message to the first electronic device. Among them, the first electronic device can detect whether the first electronic device contacts the second electronic device based on the third device in the first electronic device. For the description of the third device and the detection of whether contact occurs by the third device, please refer to the relevant description of the second device in the above embodiment. In order to avoid repetition, it will not be repeated here.
[0089] It is understood that the first electronic device and the second electronic device can confirm the collision object by sharing the collision number. For example, the first electronic device sends the device identification and the recorded collision number to the second electronic device. If the collision number sent by the first electronic device is the same as the collision number recorded by the second electronic device, the second electronic device can determine that the collision object it collides with is the first electronic device.
[0090] The following takes the contact number as the collision number as an example to exemplify another possible implementation manner.
[0091] For example, the number of collisions between the first electronic device and the second electronic device is detected by an acceleration sensor. Assume that the first electronic device is connected to the second electronic device, and the second electronic device currently enables the screen recording function, and assume that the preset number of times is 2. Then: if the user needs to enable the screen recording function through the first electronic device, Figure 5 As shown, the user can collide the first electronic device 50 with the second electronic device 51. Thus, the first electronic device 50 and the second electronic device 51 both detect the collision acceleration through their respective acceleration sensors, and determine the number of collisions between the first electronic device 50 and the second electronic device 51 according to the collision accelerations detected by each. In addition, the first electronic device 50 and the second electronic device 51 can exchange the number of collisions determined by each. If the number of collisions determined by the first electronic device 50 and the second electronic device 51 is greater than or equal to 2 times, the second electronic device 51 can send a first notification message to the first electronic device 50, and the first notification message carries the function information and synchronization information of the screen recording function. Thus, after receiving the first notification message, the first electronic device 50 can first calibrate the clock signal of the first electronic device 50 according to the synchronization information, and then the first electronic device 50 can enable the screen recording function in the first electronic device 50 according to the function information.
[0092] In this way, since the first electronic device can obtain the first information from the first notification message sent by the second electronic device and start the second function of the first electronic device according to the first information, the process of obtaining the first information can be simplified, thereby further improving the efficiency of enabling the electronic device function.
[0093] Method 2: The first electronic device may capture the screen image of the second electronic device through the camera of the first electronic device to obtain the first information.
[0094] Exemplarily, the first information is a screen image displayed by the second electronic device, and the step 101 can be implemented specifically through the following step 101c.
[0095] Step 101c: The first electronic device captures a screen image of the second electronic device through the camera of the first electronic device.
[0096] The screen image of the second electronic device is a currently enabled function of the second electronic device, that is, the first function of the second electronic device.
[0097] In the second method, the first electronic device can capture the screen image currently displayed by the second electronic device through the camera of the first electronic device, and determine the first function currently running in the foreground of the second electronic device by identifying the screen image.
[0098] For example, if the first electronic device recognizes that the screen includes a video playback progress bar, the first electronic device may determine that the first function is a video playback function.
[0099] For example, if the first electronic device recognizes that the screen image includes a photo-taking control, the first electronic device may determine that the first function is a photo-taking function.
[0100] For example, if the first electronic device recognizes that the screen image includes a video recording control, the first electronic device may determine that the first function is a video recording function.
[0101] For example, if the first electronic device recognizes that the screen image includes a screen recording identifier and screen recording duration information, the first electronic device may determine that the first function is a screen recording function.
[0102] It should be noted that the screen image currently displayed on the second electronic device can be understood as: the image displayed on the screen of the second electronic device when the first electronic device captures the screen image of the second electronic device through the camera of the first electronic device.
[0103] In some embodiments of the present application, the first electronic device may capture the screen image currently displayed by the second electronic device through a front camera or a rear camera.
[0104] The specific implementation process of the above-mentioned method 2 may be: after the second electronic device is connected to the first electronic device, the second electronic device enables the first function. If the user requires the first electronic device to also enable the second function matching the first function, the user can trigger the first electronic device to capture the screen image of the second electronic device through the camera. After the first electronic device captures the screen image of the second electronic device, the screen content can be identified to determine the function information of the first function enabled by the second electronic device, and the second function of the first electronic device can be enabled based on the function information.
[0105] In some embodiments of the present application, before the first electronic device starts the second function, the first electronic device can send a function confirmation message to the second electronic device, the function confirmation message includes the function information of the first function, and then the second electronic device can send a function response message to the first electronic device after receiving the function confirmation message, and the function response message can be used to confirm that the second electronic device is executing the first function. In this way, the accuracy of the electronic device starting the function can be improved.
[0106] In some embodiments of the present application, the first electronic device may take a photo or record a video of the screen of the second electronic device through a camera to obtain the above-mentioned screen image.
[0107] The following uses the rear camera of the first electronic device to capture the screen image of the first electronic device as an example to exemplarily illustrate the second method.
[0108] For example, assuming that the second electronic device has enabled the screen recording function, if the user wants the first electronic device to also enable the screen recording function, Figure 6 As shown, the user can place the first electronic device 60 in front of the second electronic device 61, and collect the screen image of the second electronic device 61, that is, the first information, through the rear camera of the first electronic device 60. Then, the first electronic device can perform image recognition on the collected screen image. If it is recognized that the screen image includes a screen recording mark and screen recording duration information, the first electronic device can determine that the second electronic device is recording the screen, so that the first electronic device can send a function confirmation message to the second electronic device. The function confirmation message includes the function information of the screen recording function. Then, after receiving the function confirmation message, the second electronic device can send a function response message to the first electronic device. The function response message can be used to confirm that the second electronic device is executing the screen recording function. Therefore, after the first electronic device receives the function response message, the first electronic device can turn on the screen recording function. It should be noted that Figure 6 The arrow in is used to indicate the shooting direction of the camera of the first electronic device.
[0109] In this way, since the first electronic device can capture the screen image of the second electronic device and enable a function in the first electronic device that matches the function currently enabled by the second electronic device based on the screen image, the efficiency of enabling electronic device functions can be improved.
[0110] Step 102: The first electronic device enables a second function of the first electronic device based on the first information.
[0111] The second function matches the first function, or the second function matches a screen image displayed by the second electronic device.
[0112] It can be understood that the matching of the second function with the first function may include: the matching degree between the second function and the first function is greater than or equal to the first matching degree.
[0113] In some embodiments of the present application, when two functions belong to the same category, the first electronic device can determine that the matching degree between the two functions is greater than or equal to the first matching degree. That is, the first function and the second function belong to the same category, such as both belong to the video playback category.
[0114] In some embodiments of the present application, the above-mentioned function information may include application information of the application to which the first function belongs, and the application information may indicate the application to which the first function belongs; the matching degree between similar functions in the same application is greater than the matching degree between similar functions in different applications.
[0115] For example, assuming that function 1 is a video playback function in application A, and function 2 is a video playback function in application B, then: function 1 and function 2 are the same type of functions, and when application A and application B are different, the matching degree between function 1 and function 2 can be matching degree 1, and when application A and application B are the same, the matching degree between function 1 and function 2 can be matching degree 2. Wherein, matching degree 1 and matching degree 2 are both greater than or equal to the first matching degree, and matching degree 1 is less than matching degree 2.
[0116] In some embodiments of the present application, if the application to which the second function belongs is the same as the application to which the first function belongs, and the first function and the second function are functions of the same type, then the first function and the second function are the same.
[0117] For example, the first function is the video shooting function in application 1 in the second electronic device. If application 1 is installed in the electronic device, the second function can be the video shooting function in application 1 installed in the first electronic device, that is, the first function is the same as the second function.
[0118] In some embodiments of the present application, the matching degree between similar functions in different applications under the same application brand is greater than the matching degree between similar functions in applications under different application brands.
[0119] For example, assuming that application brand 1 includes application 1 and application 2, and application 1 has a video playback function, application 2 also has a video playback function, and application brand 2 includes application 3, and application 3 also has a video playback function, then: if the first function is the video playback function in application 1 installed in the second electronic device, and application 2 and application 3 are installed in the first electronic device, then the first electronic device can determine: the matching degree a between the video playback function in application 2 and the first function is greater than or equal to the first matching degree, and the matching degree b between the video playback function in application 3 and the first function is also greater than or equal to the first matching degree, and the matching degree a is greater than the matching degree b. It can be understood that the electronic device can enable the video playback function in application 2, or can enable the video playback function in application 3.
[0120] In some embodiments of the present application, when the first electronic device determines that at least one function in the first electronic device matches the first function, the first electronic device may enable the function of the at least one function that has the highest degree of match with the first function.
[0121] It can be understood that the second function matches the screen displayed by the second electronic device can be understood as: the second function matches the function determined according to the screen displayed by the second electronic device. For the description of function matching, refer to the relevant description in the above embodiment.
[0122] In some embodiments of the present application, the first electronic device can determine that the function currently enabled by the second electronic device is the first function based on the above-mentioned first information, that is, the function information or can recognize the above-mentioned screen image; then the first electronic device can enable the second function in the first electronic device.
[0123] Exemplarily, the above step 102 can be implemented specifically through step 102a and step 102b.
[0124] Step 102a: The first electronic device determines that the function currently enabled by the second electronic device is the first function based on the function information or the recognition screen.
[0125] Step 102b: The first electronic device enables the second function of the first electronic device.
[0126] In some embodiments of the present application, the first electronic device can determine that the function currently enabled by the second electronic device is the first function through the function information in the first notification message sent by the second electronic device, and then the first electronic device can enable the second function of the first electronic device.
[0127] Exemplarily, the first electronic device can determine that the screen recording function is currently enabled on the second electronic device through the screen recording function information in the first notification message sent by the second electronic device, and then the first electronic device can enable the screen recording function of the first electronic device.
[0128] In some embodiments of the present application, the first electronic device can capture the screen image currently displayed by the second electronic device through the camera of the first electronic device, and by identifying the screen image, determine that the function currently enabled by the second electronic device is the first function, and then the first electronic device can enable the second function of the first electronic device.
[0129] Exemplarily, a user may aim a camera of a first electronic device at the screen of a second electronic device and trigger the first electronic device to take a photo or record a video to obtain the screen image of the second electronic device. Then, the first electronic device may perform image recognition on the screen image. If the screen image is recognized as a screen recording image, such as the screen image includes a recording mark and recording duration information, the first electronic device may determine that the second electronic device currently has the screen recording function enabled, so that the first electronic device may send a function confirmation message to the second electronic device. After the first electronic device receives the function response message sent by the second electronic device, if the function response message indicates that the second electronic device has indeed enabled the screen recording function, the first electronic device may also enable the screen recording function.
[0130] In some embodiments of the present application, when the first information is a screen image displayed by a second electronic device, the first electronic device can recognize the screen image and determine content matching the screen image, so that the first electronic device can output content matching the content after enabling the second function.
[0131] For example, the first electronic device determines that the second electronic device is currently using application A to play video 1 by identifying the screen displayed by the second electronic device; then: the first electronic device can determine that the second function is a video playback function, and the content matching the screen is video 1. If application A is installed in the first electronic device, the first electronic device can enable the video playback function in application A and play video 1.
[0132] In this way, since the first electronic device can determine that the function currently enabled by the second electronic device is the first function through the received function information or identification of the captured screen image, and enable the second function in the first electronic device, the flexibility and efficiency of enabling electronic device functions can be improved.
[0133] In the function enabling method provided in the embodiment of the present application, on the one hand, since the first electronic device can obtain the information of the function currently enabled by the second electronic device, the first electronic device can automatically enable the function that matches the second electronic device, that is, the second function, based on the information. On the other hand, since the first electronic device can obtain the screen image currently displayed by the second electronic device, and the screen image can represent the function currently enabled by the second electronic device, the first electronic device can enable the function that matches the second electronic device, that is, the second function, based on the screen image. In this way, since the first electronic device can automatically enable the function that matches the second electronic device based on the relevant information of the second electronic device, there is no need for the user to manually enable the matching functions on the first electronic device and the second electronic device respectively, so the efficiency of enabling the functions of the electronic devices can be improved.
[0134] In some embodiments of the present application, the first notification message sent by the second electronic device to the first electronic device may also carry synchronization information, and the synchronization information may be used by the first electronic device to calibrate a clock signal of the first electronic device.
[0135] Exemplary, combined Figure 1 ,like Figure 7 As shown, before executing the above step 102, the function enabling method provided in the embodiment of the present application may further include step 103.
[0136] Step 103: The first electronic device calibrates a clock signal of the first electronic device based on the synchronization information.
[0137] It can be understood that after the first electronic device receives the first notification message, it can obtain synchronization information and functional information of the first function from the first notification message, and then the first electronic device can calibrate the clock signal of the first electronic device based on the synchronization information so that the clock signal of the first electronic device is consistent with the clock signal of the second electronic device. After completing the clock calibration, the first electronic device can enable the second function according to the functional information of the first function.
[0138] In this way, since the first notification message carries synchronization information for clock correction, the first electronic device calibrates the clock signal of the first electronic device according to the synchronization information, thereby improving the clock consistency between the first electronic device and the second electronic device while keeping the matching functions enabled between the first electronic device and the second electronic device.
[0139] In some embodiments of the present application, after the first electronic device enables the second function of the first electronic device based on the first information, the first electronic device may further disable the second function.
[0140] Exemplary, combined Figure 1 ,like Figure 8 As shown, after executing the above step 101, the function enabling method provided in the embodiment of the present application may further include step 104.
[0141] Step 104: When the first electronic device meets the deactivation condition, deactivate the second function of the first electronic device.
[0142] The deactivation condition may include any one of the following: receiving a second notification message, determining contact with the second electronic device after enabling the second function, failing to identify the first function from the screen of the second electronic device, or disconnecting the first electronic device from the second electronic device. The second notification message may be used to notify the first electronic device to deactivate the second function.
[0143] In some embodiments of the present application, the second notification message may be a notification message sent by a second electronic device.
[0144] In some embodiments of the present application, after the first electronic device enables the second function, the first electronic device can detect whether it has touched the second electronic device through a third device. And in order to improve accuracy, the first electronic device can determine that the first electronic device has touched the second electronic device when a collision is detected and a collision confirmation message sent by the second electronic device is received, so that the second function can be disabled. The collision confirmation message is used to indicate that the second electronic device has detected a collision.
[0145] It can be understood that if the first electronic device cannot recognize the first function from the screen image of the second electronic device, the first electronic device cannot execute step 102.
[0146] In this way, since the first electronic device can deactivate the second function when it receives the second notification message, determines that it is in contact with the second electronic device after enabling the second function, cannot recognize the first function from the screen of the second electronic device, or the first electronic device is disconnected from the second electronic device, the flexibility of deactivating electronic device functions can be improved.
[0147] Combination Fig. 9 An embodiment of the present application provides a function enabling method, which can be applied to a second electronic device. The method may include the following step 201.
[0148] Step 201: The second electronic device sends a first notification message to the first electronic device.
[0149] The first notification message carries function information, which can be used to indicate the first function currently enabled by the second electronic device, and the first notification message can be used by the first electronic device to enable the second function of the first electronic device that matches the first function.
[0150] In some embodiments of the present application, when the second electronic device currently has multiple functions enabled, the first notification message carries function information of the most recently enabled function of the second electronic device, or may include function information of all functions currently enabled by the second electronic device, which can be determined based on actual usage requirements.
[0151] It can be understood that after the second electronic device sends the first notification message to the first electronic device, the first electronic device can receive the first notification message, obtain the above-mentioned function information from the first notification message, and enable the second function in the first electronic device based on the function information.
[0152] It should be noted that, for the description of the first information, please refer to the relevant description of the first information in the method embodiment of the first electronic device mentioned above, and to avoid repetition, it will not be repeated here.
[0153] In some embodiments of the present application, the first notification message also carries synchronization information, which can be used by the first electronic device to calibrate the clock signal of the first electronic device. In this way, the clock signals of the first electronic device and the second electronic device can be kept consistent on the basis of ensuring that the first electronic device automatically enables a function that matches the function currently enabled by the second electronic device.
[0154] In some embodiments of the present application, the second electronic device may send a first notification message to the first electronic device when the movement parameters of the first electronic device meet the first preset parameters, or when the number of contacts between the first electronic device and the second electronic device reaches a preset number.
[0155] Exemplarily, the above step 201 can be implemented by the following step 201a or step 201b.
[0156] Step 201a: When the movement parameter of the first electronic device meets the first preset parameter, the second electronic device sends a first notification message to the first electronic device.
[0157] Step 201b: When the number of contacts between the first electronic device and the second electronic device reaches a preset number, the second electronic device sends a first notification message to the first electronic device.
[0158] For other descriptions of step 201a and step 201b, refer to the relevant description of method 1 in the above embodiment, and in order to avoid repetition, they are not repeated here.
[0159] In the function enabling method provided in the embodiment of the present application, since the second electronic device can send a first notification message to the connected first electronic device, and the first notification message includes function information of the first function currently enabled by the second electronic device, the first electronic device can enable the second function in the first electronic device based on the function information, thereby improving the efficiency of enabling the function of the first electronic device.
[0160] In some embodiments of the present application, after the second electronic device sends the first notification message to the first electronic device, the second electronic device may also send a second notification message to the first electronic device to notify the first electronic device to deactivate the second function.
[0161] For example, in combination with the above Fig. 9 ,like Fig.10 As shown, after executing the above step 201, the function enabling method provided in the embodiment of the present application may further include step 202.
[0162] Step 202: When the movement parameter of the first electronic device meets the second preset parameter, or when it is determined that the second electronic device has deactivated the first function, the second electronic device sends a second notification message to the first electronic device.
[0163] The second notification message may be used to notify the first electronic device to deactivate the second function.
[0164] It can be understood that after the second electronic device sends the second notification message to the first electronic device, the first electronic device can receive the second notification message and deactivate the second function based on the second notification message.
[0165] In some embodiments of the present application, the second preset parameter is different from the first preset parameter.
[0166] For example, the first preset parameter is to draw a circle around the second electronic device, and the second preset parameter is to draw a cross "×" with the second electronic device as the center. Of course, the second preset parameter can also be any parameter different from the first preset parameter, which is determined according to actual usage requirements and is not limited in the embodiments of the present application.
[0167] In some embodiments of the present application, the process of the second electronic device determining whether the movement parameters of the first electronic device meet the second preset parameters refers to the relevant description in the above embodiments, and in order to avoid repetition, it will not be repeated here.
[0168] The function enabling method provided in the embodiment of the present application is exemplarily described below in conjunction with the accompanying drawings.
[0169] For example, assuming that the first electronic device is NC02, the second device is NC01, and both NC02 and NC01 have enabled the video recording function, and the second preset parameter is a cross “X” with the second electronic device as the center. If the user needs NC01 to disable the video recording function, Fig.11 As shown, the user can diagonally connect NC02 to NC01 to "draw an X", moving from position one to position three, and then from position two to position four, so that NC01 can obtain the movement trajectory of NC02 as a cross "X" with NC01 as the center, so that NC01 can send a second notification message to NC02, and the second notification message is used to notify NC02 to deactivate the video recording function, so that NC02 can deactivate the video recording function after receiving the second notification message, thereby ending the functional synchronization operation of NC02 and NC01.
[0170] In this way, since the second electronic device can send a second notification message to the first electronic device when the movement parameters of the first electronic device meet the second preset parameters, or when it is determined that the second electronic device has deactivated the first function, the first electronic device can deactivate the second function based on the second notification message, thereby improving the flexibility of deactivating the functions of the electronic device.
[0171] The following is an exemplary description of the interaction process between the first electronic device and the second electronic device in the function activation method provided in the embodiment of the present application in conjunction with the accompanying drawings. Wherein, the interaction process between the first electronic device and the second electronic device is different if the first information is different. Specifically, in the case where the first information is the function information sent by the second electronic device, the interaction process between the first electronic device and the second electronic device can be as follows: Fig.12 In the case where the first information is a screen image displayed by the second electronic device, the interaction process between the first electronic device and the second electronic device can be implemented as follows: Fig.13 The embodiment shown implements.
[0172] Combination Fig.12 In the function enabling method provided in the embodiment of the present application, the interaction process between the first electronic device and the second electronic device can be implemented through the following steps 301 to 304.
[0173] Step 301: The second electronic device sends a first notification message to the first electronic device.
[0174] Step 302: The first electronic device receives a first notification message.
[0175] In some embodiments of the present application, the above step 301 may include the following step 301a or step 301b.
[0176] Step 301a: When the movement parameter of the first electronic device meets the first preset parameter, the second electronic device sends a first notification message to the first electronic device.
[0177] Step 30ba: When the number of contacts between the first electronic device and the second electronic device reaches a preset number, the second electronic device sends a first notification message to the first electronic device.
[0178] Step 303: The first electronic device obtains first information from the first notification message.
[0179] The first notification message carries function information, and the function information can be used to indicate the first function currently enabled by the second electronic device. The first notification message can be used by the first electronic device to enable the second function of the first electronic device.
[0180] Step 304: The first electronic device enables the second function of the first electronic device based on the first information.
[0181] The first function is a function currently enabled by the second electronic device.
[0182] In some embodiments of the present application, the above step 304 can be implemented by the following steps 304a and 304b.
[0183] Step 304a: The first electronic device determines, based on the function information, that the function currently enabled by the second electronic device is the first function.
[0184] Step 304a: The first electronic device enables the second function of the first electronic device.
[0185] In some embodiments of the present application, after the above step 304, the function enabling method provided by the embodiment of the present application may further include the following steps 305 to 307.
[0186] Step 305: When the movement parameter of the first electronic device meets the second preset parameter, or when it is determined that the second electronic device has deactivated the first function, the second electronic device sends a second notification message to the first electronic device.
[0187] Step 306: The first electronic device receives a second notification message.
[0188] The second notification message may be used to notify the first electronic device to deactivate the second function.
[0189] Step 307: The first electronic device deactivates the second function.
[0190] In some embodiments of the present application, after the above step 304, the function enabling method provided by the embodiment of the present application may further include the following step 308.
[0191] Step 308: When the first electronic device determines that it is in contact with the second electronic device after the second function is enabled, the first electronic device disables the second function.
[0192] In some embodiments of the present application, the first notification message also carries synchronization information, and the synchronization information is used by the first electronic device to calibrate a clock signal of the first electronic device.
[0193] In this way, when the first electronic device is connected to the second electronic device, since the second electronic device can send a first notification message carrying function information of the first function currently enabled by the second electronic device to the first electronic device, the first electronic device can enable the second function of the first electronic device based on the function information, thereby achieving functional synchronization between the first electronic device and the second electronic device, and further improving the efficiency of enabling electronic device functions.
[0194] Combination Fig.13 In the function enabling method provided in the embodiment of the present application, the interaction process between the first electronic device and the second electronic device can be implemented through the following steps 501 and 502.
[0195] Step 501: A first electronic device captures a screen image of a second electronic device through a camera of the first electronic device to obtain first information.
[0196] The second electronic device may be an electronic device connected to the first electronic device.
[0197] Step 502: The first electronic device enables a second function of the first electronic device based on the first information.
[0198] The first function is a function currently enabled by the second electronic device.
[0199] In some embodiments of the present application, the above step 502 can be implemented by the following steps 502a and 502b.
[0200] Step 502a: The first electronic device identifies the screen of the second electronic device and determines that the function currently enabled by the second electronic device is the first function.
[0201] Step 502b: The first electronic device enables the second function of the first electronic device.
[0202] In some embodiments of the present application, after the above step 502, the function enabling method provided by the embodiment of the present application may further include the following step 503.
[0203] Step 503: The first electronic device deactivates the second function of the first electronic device when the first electronic device is disconnected from the second electronic device or the first function cannot be identified from the screen of the second electronic device.
[0204] In this way, when the first electronic device is connected to the second electronic device and the second electronic device enables the first function, since the first electronic device captures the screen image of the second electronic device and enables the second function of the first electronic device based on the screen image, the functions of the first electronic device and the second electronic device can be synchronized, thereby improving the efficiency of enabling the functions of the electronic devices.
[0205] The embodiment of the present application provides a function enabling method, and the execution subject may be a function enabling device. In the embodiment of the present application, the function enabling device provided by the embodiment of the present application is described by taking the function enabling device executing the function enabling method as an example.
[0206] Combination Fig.14The embodiment of the present application provides a function enabling device 600, which may include an acquisition module 601 and an enabling module 602. The acquisition module 601 may be used to acquire first information of a second electronic device, where the first information is any one of the following: function information sent by the second electronic device, a screen displayed by the second electronic device, and the function information may be used to indicate a first function currently enabled by the second electronic device; the enabling module 602 may be used to enable a second function of the first electronic device based on the first information acquired by the acquisition module 601, where the second function matches the first function, or the second function matches the screen displayed by the second electronic device.
[0207] In some embodiments of the present application, the above-mentioned enabling module 602 can be specifically used to determine that the function currently enabled by the second electronic device is the first function based on the above-mentioned function information or identifying the above-mentioned screen image; and enable the second function of the first electronic device.
[0208] In some embodiments of the present application, the first information is functional information sent by the second electronic device; the above-mentioned acquisition module 601 can be specifically used to receive a first notification message sent by the second electronic device, and obtain the first information from the first notification message, and the first notification message carries the functional information.
[0209] In some embodiments of the present application, the first notification message also carries synchronization information; the function enabling device 600 may also include a calibration module; the calibration module can be used to calibrate the clock signal of the first electronic device based on the synchronization information acquired by the above-mentioned acquisition module 601.
[0210] In some embodiments of the present application, the first information is a screen image displayed by the second electronic device; the acquisition module 601 can be specifically used to capture the screen image of the second electronic device through the camera of the first electronic device.
[0211] In some embodiments of the present application, the function enabling device 600 may also include a deactivation module; the deactivation module may be used to deactivate the second function of the first electronic device when a deactivation condition is met; wherein the deactivation condition may include any one of the following: receiving a second notification message, determining contact with the second electronic device after enabling the second function, failing to identify the first function from the screen of the second electronic device, and disconnecting the first electronic device from the second electronic device; the second notification message may be used to notify the first electronic device to deactivate the second function.
[0212] In the function enabling device provided in the embodiment of the present application, since the function enabling device can obtain information about the first function currently enabled by the second electronic device, the function enabling device can automatically enable the second function in the first electronic device that matches the first function currently enabled by the second electronic device based on the information. On the other hand, since the function enabling device can obtain the screen currently displayed by the second electronic device, and the screen can represent the first function currently enabled by the second electronic device, the function enabling device can enable the function in the first electronic device that matches the first function currently enabled by the second electronic device, that is, the second function, based on the screen. In this way, since the function enabling device can automatically enable the function in the first electronic device that matches the function currently enabled by the second electronic device based on the relevant information of the second electronic device, there is no need for the user to manually enable the matching functions in the first electronic device and on the second electronic device respectively, thereby improving the efficiency of enabling electronic device functions.
[0213] The function enabling device provided in the embodiment of the present application can achieve Figures 1 to 8 The various processes implemented by the method embodiment achieve the same technical effect and will not be described again here to avoid repetition.
[0214] Combination Fig.15 An embodiment of the present application provides a function enabling device 700, which may include a sending module 701; the sending module 701 may be used to send a first notification message to a first electronic device, the first notification message carries function information, and the function information may be used to indicate a first function currently enabled by a second electronic device, and the first notification message may be used by the first electronic device to enable a second function of the first electronic device that matches the first function.
[0215] In some embodiments of the present application, the above-mentioned sending module 701 can be specifically used to send a first notification message to the first electronic device when the movement parameters of the first electronic device meet the first preset parameters; or to send a first notification message to the first electronic device when the number of contacts between the first electronic device and the second electronic device reaches a preset number of times.
[0216] In some embodiments of the present application, the first notification message also carries synchronization information, and the synchronization information can be used by the first electronic device to calibrate a clock signal of the first electronic device.
[0217] In some embodiments of the present application, the sending module 701 may also be configured to send a second notification message to the first electronic device when the movement parameter of the first electronic device meets the second preset parameter or when it is determined that the second electronic device has deactivated the first function;
[0218] The second notification message may be used to notify the first electronic device to deactivate the second function.
[0219] In the function enabling device provided in the embodiment of the present application, since the function enabling device can send a first notification message to the first electronic device connected to the second electronic device, and the first notification message includes function information of the first function currently enabled by the second electronic device, the function enabling device automatically enables the second function in the first electronic device based on the function information, thereby improving the efficiency of enabling the function of the first electronic device.
[0220] The function enabling device provided in the embodiment of the present application can achieve Figures 8 to 11 The various processes implemented by the method embodiment achieve the same technical effect and will not be described again here to avoid repetition.
[0221] The function enabling device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.
[0222] The function enabling device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0223] In some embodiments of the present application, Fig.16 As shown, an embodiment of the present application also provides an electronic device 1600, including a processor 1601 and a memory 1602, wherein the memory 1602 stores programs or instructions that can be executed on the processor 1601, and when the program or instructions are executed by the processor 1601, the various steps of the above-mentioned function enabling method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
[0224] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0225] Fig.17 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0226] The electronic device 1500 includes but is not limited to: a radio frequency unit 1501, a network module 1502, an audio output unit 1503, an input unit 1504, a sensor 1505, a display unit 1506, a user input unit 1507, an interface unit 1508, a memory 1509, and a processor 1510 and other components.
[0227] Those skilled in the art will appreciate that the electronic device 1500 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.17 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0228] Among them, the processor 1510 is used to obtain first information of the second electronic device, and the first information is any one of the following: functional information sent by the second electronic device and a screen image displayed by the second electronic device, and the functional information can be used to indicate the first function currently enabled by the second electronic device; the processor 1510 is used to enable the second function of the first electronic device based on the acquired first information, and the second function matches the first function, or the second function matches the screen image displayed by the second electronic device.
[0229] In some embodiments of the present application, the processor 1510 may be specifically configured to determine that the function currently enabled on the second electronic device is the first function based on the function information or identifying the screen image; and enable the second function of the first electronic device.
[0230] In some embodiments of the present application, the first information is functional information sent by the second electronic device; the processor 1510 can be specifically used to receive a first notification message sent by the second electronic device and obtain the first information from the first notification message; the first notification message carries the functional information.
[0231] In some embodiments of the present application, the first notification message also carries synchronization information; the processor 1510 can be used to calibrate the clock signal of the first electronic device based on the acquired synchronization information.
[0232] In some embodiments of the present application, the first information is a screen image displayed by the second electronic device; the processor 1510 can be specifically configured to capture the screen image of the second electronic device through a camera of the first electronic device.
[0233] In some embodiments of the present application, the processor 1510 can be used to deactivate the second function of the first electronic device when a deactivation condition is met; wherein the deactivation condition may include any one of the following: receiving a second notification message, determining contact with the second electronic device after enabling the second function, failing to identify the first function from the screen of the second electronic device, and disconnecting the first electronic device from the second electronic device; the second notification message can be used to notify the first electronic device to deactivate the second function.
[0234] In the electronic device provided in the embodiment of the present application, since the electronic device can obtain information about the first function currently enabled by the second electronic device, the electronic device can automatically enable the second function in the first electronic device that matches the first function currently enabled by the second electronic device based on the information. On the other hand, since the electronic device can obtain the screen image currently displayed by the second electronic device, and the screen image can represent the first function currently enabled by the second electronic device, the electronic device can enable the function in the first electronic device that matches the first function currently enabled by the second electronic device, that is, the second function, based on the screen image. In this way, since the electronic device can automatically enable the function in the first electronic device that matches the function currently enabled by the second electronic device based on the relevant information of the second electronic device, there is no need for the user to manually enable the matching functions in the first electronic device and the second electronic device respectively, so the efficiency of enabling the functions of the electronic device can be improved.
[0235] Among them, the radio frequency unit 1501 can be used to send a first notification message to the first electronic device, the first notification message carries function information, and the function information can be used to indicate the first function currently enabled by the second electronic device. The first notification message can be used by the first electronic device to enable the second function of the first electronic device that matches the first function.
[0236] In some embodiments of the present application, the radio frequency unit 1501 can be specifically used to send a first notification message to the first electronic device when a movement parameter of the first electronic device meets a first preset parameter; or to send a first notification message to the first electronic device when the number of contacts between the first electronic device and the second electronic device reaches a preset number.
[0237] In some embodiments of the present application, the first notification message also carries synchronization information, and the synchronization information can be used by the first electronic device to calibrate a clock signal of the first electronic device.
[0238] In some embodiments of the present application, the radio frequency unit 1501 may also be used to send a second notification message to the first electronic device when the movement parameter of the first electronic device meets the second preset parameter or when it is determined that the second electronic device has deactivated the first function;
[0239] The second notification message may be used to notify the first electronic device to deactivate the second function.
[0240] In the electronic device provided in the embodiment of the present application, since the electronic device can send a first notification message to a first electronic device connected to a second electronic device, and the first notification message includes functional information of the first function currently enabled by the second electronic device, the electronic device automatically enables the second function in the first electronic device based on the functional information, thereby improving the efficiency of enabling the function of the first electronic device.
[0241] It should be understood that in the embodiment of the present application, the input unit 1504 may include a graphics processor (Graphics Processing Unit, GPU) 15041 and a microphone 15042, and the graphics processor 15041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1506 may include a display panel 15061, and the display panel 15061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1507 includes a touch panel 15071 and at least one of other input devices 15072. The touch panel 15071 is also called a touch screen. The touch panel 15071 may include two parts: a touch detection device and a touch controller. Other input devices 15072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0242] The memory 1509 can be used to store software programs and various data. The memory 1509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1509 may include a volatile memory or a non-volatile memory, or the memory 1509 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0243] The processor 1510 may include one or more processing units; optionally, the processor 1510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1510.
[0244] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned function enabling method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0245] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0246] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned function enabling method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0247] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0248] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned function enabling method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0249] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0250] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0251] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A function enabling method, applied to a first electronic device, characterized in that: The method comprises: Acquire first information of the second electronic device, where the first information is any one of the following: function information sent by the second electronic device, a screen image displayed by the second electronic device, and the function information is used to indicate a first function currently enabled by the second electronic device; Based on the first information, a second function of the first electronic device is enabled, the second function matches the first function, or the second function matches a screen displayed by the second electronic device.
2. The method according to claim 1, characterized in that The first information is function information sent by the second electronic device; The obtaining of first information of the second electronic device includes: receiving a first notification message sent by the second electronic device, where the first notification message carries the function information; The first information is obtained from the first notification message.
3. The method according to claim 2, characterized in that The first notification message also carries synchronization information; Before enabling the second function of the first electronic device based on the first information, the method further includes: Based on the synchronization information, a clock signal of the first electronic device is calibrated.
4. The method according to claim 1, characterized in that: The first information is a screen image displayed by the second electronic device; The obtaining of first information of the second electronic device includes: The screen image of the second electronic device is captured by the camera of the first electronic device.
5. The method according to claim 1, characterized in that The method further comprises: If the deactivation condition is met, deactivating the second function of the first electronic device; The deactivation condition includes any one of the following: receiving a second notification message, determining contact with the second electronic device after enabling the second function, failing to identify the first function from a screen of the second electronic device, or disconnection between the first electronic device and the second electronic device; The second notification message is used to notify the first electronic device to deactivate the second function.
6. A function enabling method, applied to a second electronic device, characterized in that: The method comprises: A first notification message is sent to a first electronic device, wherein the first notification message carries function information, wherein the function information is used to indicate a first function currently enabled by the second electronic device, and the first notification message is used by the first electronic device to enable a second function of the first electronic device that matches the first function.
7. The method according to claim 6, characterized in that The sending a first notification message to the first electronic device includes: When the movement parameter of the first electronic device meets the first preset parameter, sending the first notification message to the first electronic device; or, When the number of contacts between the first electronic device and the second electronic device reaches a preset number, the first notification message is sent to the first electronic device.
8. The method according to claim 6 or 7, characterized in that: The first notification message also carries synchronization information, and the synchronization information is used by the first electronic device to calibrate a clock signal of the first electronic device.
9. The method according to claim 6, characterized in that The method further comprises: When the movement parameter of the first electronic device meets the second preset parameter, or when it is determined that the second electronic device has deactivated the first function, sending a second notification message to the first electronic device; The second notification message is used to notify the first electronic device to deactivate the second function.
10. A function enabling device, characterized in that: The device comprises an acquisition module and an activation module; The acquisition module is used to acquire first information of the second electronic device, where the first information is any one of the following: function information sent by the second electronic device, and a screen image displayed by the second electronic device, where the function information is used to indicate a first function currently enabled by the second electronic device; The enabling module is used to enable a second function of the first electronic device based on the first information acquired by the acquiring module, wherein the second function matches the first function, or the second function matches a screen image displayed by the second electronic device.
11. A function enabling device, characterized in that: The device comprises a sending module; The sending module is used to send a first notification message to a first electronic device, wherein the first notification message carries function information, and the function information is used to indicate a first function currently enabled by the second electronic device, and the first notification message is used by the first electronic device to enable a second function of the first electronic device that matches the first function.
12. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the function enabling method according to any one of claims 1 to 9 are implemented.