Equipment interaction method, electronic equipment and storage medium
The method enables effective management and control of third-party earphones by identifying and integrating them within an electronic device's interface, enhancing user experience through detailed management and control options.
Patent Information
- Application Number
- CN202410033354.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-08
- Publication Date
- 2025-07-15
AI Technical Summary
Existing technologies limit the management and integration of third-party earphones with electronic devices, failing to provide a seamless user experience due to lack of compatibility and inability to manage different brands of earphones effectively.
An electronic device method that identifies and manages third-party earphones by establishing a connection through a non-customized protocol, displaying a popup window with device information, and allowing users to add and manage these earphones within a dedicated app interface.
Enhances user experience by providing detailed management and control over third-party earphones, including battery level, audio settings, and functionality, improving compatibility and usability across different brands.
Smart Images

Figure CN120321330A_ABST
Abstract
Description
Technical Field
[0001] The application relates to the technical field of terminals, and in particular to a device interaction method, an electronic device, and a storage medium. Background Art
[0002] During the use of terminal devices, audio output is often required. In relatively noisy or public places, using the external speaker mode for audio output often brings a not-so-good sound experience to users, or is likely to affect the rest or work of others. Therefore, using headphones for audio output is a commonly used audio output mode.
[0003] Traditional headphones are generally divided into headphones of the same brand as the terminal device or headphones of different brands.
[0004] Currently, when a terminal device connects to headphones of different brands, it can only use the headphones of different brands as audio output devices and cannot manage the headphones of different brands, which greatly limits the use of headphones of different brands and is not convenient for users to understand the usage status of headphones of different brands. Summary of the Invention
[0005] The embodiments of the present application provide a device interaction method, an electronic device, and a storage medium, which can manage third-party headphones connected to a terminal device and improve the user experience.
[0006] To achieve the above object, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, the embodiments of the present application provide a device interaction method,
[0008] applied to a first electronic device, including: establishing a connection between the first electronic device and a second electronic device, where the second electronic device is connected to the first electronic device through a non-custom connection protocol when connecting; the first electronic device obtaining device information of the second electronic device; the first electronic device determining whether the second electronic device is an electronic device of a specified type according to the device information of the second electronic device; and in the case where the second electronic device is an electronic device of a specified type, the first electronic device displaying a first pop-up window corresponding to the second electronic device.
[0009] Wherein, the first pop-up window is as Figure 8 shown by the first pop-up window 800 in
[0010] Based on the technical solution provided by the embodiments of the present application, when the first electronic device is communicatively connected to the second electronic device, the first electronic device obtains the device information of the second electronic device; the first electronic device determines whether the second electronic device is an electronic device of a specified type according to the device information of the second electronic device; when the second electronic device is an electronic device of a specified type, the first electronic device displays a first pop-up window corresponding to the second electronic device, and the first electronic device can use the first pop-up window to prompt that the second electronic device is connected, for example, a third-party earphone is connected. The management of the second electronic device is realized, thereby providing a better user experience for the user.
[0011] In a possible implementation manner of the first aspect, the first electronic device determines whether the second electronic device is an electronic device of a specified type according to the device information of the second electronic device, including: the first electronic device determines that the second electronic device is communicatively connected to the first electronic device for the first time; the first electronic device obtains the service information of the second electronic device; in response to the service information of the second electronic device including the identifier corresponding to the audio head-mounted device and the service information of the second electronic device including the power information of the second electronic device, the first electronic device determines that the second electronic device is an electronic device of a specified type; in response to the service information of the second electronic device not including the identifier corresponding to the audio head-mounted device, the first electronic device determines that the second electronic device is not an electronic device of a specified type.
[0012] Based on the above implementation manner, it is possible to determine that the second electronic device is communicatively connected to the first electronic device for the first time; obtain the service information of the second electronic device; in response to the service information of the second electronic device including the first identifier corresponding to the audio head-mounted device and the service information of the second electronic device including the power information of the second electronic device, the first electronic device determines that the second electronic device is an electronic device of a specified type; in response to the service information of the second electronic device not including the first identifier, the first electronic device determines that the second electronic device is not an electronic device of a specified type, so as to determine whether the second electronic device belongs to the specified type of electronic device by obtaining the service information and power information of the second electronic device, and thus it is possible to effectively determine whether the first pop-up window needs to be popped up.
[0013] In a possible implementation manner of the first aspect, the first electronic device determines whether the second electronic device is an electronic device of a specified type according to the device information of the second electronic device, further including: in response to the service information of the second electronic device including the first identifier and the device name of the second electronic device being within the preset white list, the first electronic device determines that the second electronic device is an electronic device of a specified type.
[0014] Based on the above implementation method, it is possible to determine the first communication connection between the second electronic device and the first electronic device; obtain the service information of the second electronic device; in response to the service information of the second electronic device including the identifier corresponding to the audio head-mounted device and the device name of the second electronic device being within the preset whitelist, the first electronic device determines that the second electronic device is an electronic device of a specified type, so as to determine whether the second electronic device belongs to the specified type of electronic device through the service information and device name of the second electronic device, and thus it is possible to effectively determine whether it is necessary to pop up the first pop-up window.
[0015] In a possible implementation manner of the first aspect, the first pop-up window includes: an icon of the second electronic device. The first electronic device displays the first pop-up window corresponding to the second electronic device, including: the first electronic device obtains the second identifier of the second electronic device; the first electronic device obtains the icon corresponding to the second identifier as the icon of the second electronic device; the first electronic device generates the first pop-up window according to the icon of the second electronic device and displays the first pop-up window.
[0016] Among them, the icon of the second electronic device is as Figure 8 shown in the icon 801.
[0017] Based on the above implementation method, before generating the first pop-up window corresponding to the second electronic device, the first electronic device can obtain the second identifier of the second electronic device; the first electronic device obtains the icon corresponding to the second identifier as the icon of the second electronic device; the first electronic device generates the first pop-up window corresponding to the second electronic device according to the icon of the second electronic device. Thus, the icon displayed in the first pop-up window can correspond to the second electronic device, bringing a better user experience to the user.
[0018] In a possible implementation manner of the first aspect, the first pop-up window includes a first control. The method further includes: determining the first communication connection between the second electronic device and the first electronic device; in response to an operation on the first control, the first electronic device displays the first interface of the second electronic device. The first interface includes a second control and is used to add the second electronic device to the device management space of the first electronic device; in response to an operation on the second control, the first electronic device adds the third identifier of the second electronic device to the first list. The first list is the list of the first account, and the first account is the account logged in to the device management space.
[0019] Among them, the first control is as Figure 8 shown in the first control 804. The first interface is as Figure 9 shown in the first interface 900. The second control is as Figure 9 shown in the second control 901.
[0020] Based on the above implementation method, when a third-party headset is communicatively connected to an electronic device, the first electronic device can prompt the access of a second electronic device through a first pop-up window. Moreover, since the first pop-up window includes a first control, after the user operates on the first control, the first electronic device can display a first interface. After the user operates on a second control, the third identifier of the second electronic device can be added to a first list. Through the above method, when the second electronic device communicates with the first electronic device for the first time, an association between the second electronic device and the Honor Smart Space application is established, so that the second electronic device can be managed through the Honor Smart Space application.
[0021] In a possible implementation manner of the first aspect, after the first electronic device adds the third identifier of the second electronic device to the first list in response to the user's operation on the second control, the method further includes: the first electronic device displays a second pop-up window; the second pop-up window includes a third control and a prompt message indicating that the second electronic device has been successfully added to the device management space; in response to an operation on the third control, the first electronic device displays a second interface, and the second interface includes device detail information of the second electronic device.
[0022] Wherein, the second pop-up window is as shown in the second pop-up window 1004 in Figure 10 and Figure 11 The third control is as shown in the third control 1002 in Figure 10 and Figure 11 The second interface is as shown in the second interface 1200 in Figure 12 and Figure 13
[0023] Based on the above implementation method, after the user operates on the second control of the management interface and the electronic device adds the third identifier of the second electronic device to the first list, the second pop-up window can be displayed. The first list is a list of the first account, and the first account is the account logged in to the device management space. The second pop-up window includes a third control for triggering the display of the second interface. In response to an operation on the third control, the first electronic device can display the second interface, enabling the user to manage the second electronic device through the second interface and understand the usage situation of the second electronic device. For example, the user can understand the battery information of the second electronic device, thus providing a better user experience.
[0024] In a possible implementation manner of the first aspect, the first pop-up window includes a first control, and the method further includes: determining that the second electronic device is not communicating with the first electronic device for the first time; in response to an operation on the first control, the first electronic device displays a second interface, and the second interface includes device detail information of the second electronic device.
[0025] Based on the above implementation, in the case where the second electronic device communicates with the first electronic device for non-first time, in response to an operation on the first control, the second interface is directly displayed, and the user can directly access the second interface to manage the second electronic device, thus simply and quickly realizing the management of the second electronic device.
[0026] In a possible implementation manner of the first aspect, the device detail information includes at least one of the following or a combination thereof: the power information of the second electronic device, the connection status of the second electronic device, the current sound effect and selectable sound effects of the second electronic device, the current sound quality and selectable sound qualities of the second electronic device, the setting entry for the function recommended for the second electronic device, where the function includes performing a preset operation when a preset trigger condition is triggered.
[0027] Based on the above implementation, in the second interface, displaying the power information of the second electronic device allows the user to know whether the power of the second electronic device is sufficient to support subsequent use. Displaying the connection status of the second electronic device in the second interface allows the user to know whether the second electronic device has communicated with the first electronic device. Displaying the current sound effect and selectable sound effects of the second electronic device in the second interface can meet the user's need to change the sound effect of the earphone. Displaying the current sound quality and selectable sound qualities of the second electronic device in the second interface can meet the user's need to change the sound quality of the earphone. Displaying the setting entry for the function recommended for the second electronic device in the second interface can meet the user's need to set functions for the second electronic device.
[0028] In a possible implementation manner of the first aspect, in the case where the second electronic device communicates with the first electronic device for non-first time, the device detail information further includes: the function of the current second electronic device set historically.
[0029] Based on the above implementation, in the second interface, it further includes the function of the current second electronic device set historically, so that the user can access the functions set for the current second electronic device at any time when needed, and can also delete or change these functions.
[0030] In a possible implementation manner of the first aspect, before the first electronic device establishes a connection with the second electronic device, the method further includes: the first electronic device determines that it has received the connection broadcast information of the second electronic device; the first electronic device obtains the fourth identifier of the second electronic device from the connection broadcast information; the first electronic device determines that it is a non-first connection with the second electronic device according to the fourth identifier; the first electronic device displays a third pop-up window, and the third pop-up window includes a fourth control; in response to an operation on the fourth control, the first electronic device connects to the second electronic device.
[0031] Based on the above implementation manner, after the first electronic device determines that it has received the connection broadcast information of the second electronic device which is not the first connection, it can prompt the user through the second pop-up window that there is a second electronic device that can be connected currently. Since the fourth control for triggering the connection to the second electronic device is included on the second pop-up window, in response to the operation on the fourth control, the first electronic device can establish a communication connection with the second electronic device. The first electronic device asks for the user's opinion before establishing a communication connection with the second electronic device, which can make the operation of the first electronic device better meet the user's needs and provide a better user experience for the user.
[0032] In a possible implementation manner of the first aspect, the device interaction method provided by the embodiments of the present application further includes: in response to an access operation on the setting entry for the function recommended for the second electronic device, display a third interface; the third interface includes a tenth control and / or an eleventh control; in the case where the third interface includes the tenth control, in response to the operation on the tenth control, the first electronic device sets a trigger condition; in the case where the third interface includes the eleventh control, in response to the operation on the eleventh control, the first electronic device sets an executable operation.
[0033] Among them, the third interface is as Figure 14 shown in the third interface 1400 in
[0034] Based on the above implementation manner, the first electronic device can set a trigger condition in response to the operation on the tenth control in the third interface. The first electronic device can also set an executable operation in response to the operation on the eleventh control in the third interface. In the case where the first electronic device detects that the trigger condition is satisfied, executing the executable operation corresponding to the satisfied trigger condition can meet the user's requirements for the functions of the second electronic device.
[0035] In a possible implementation manner of the first aspect, in the case where the MAC address of the second electronic device has been added to the account of the Honor Smart Space application, the device interaction method provided by the embodiments of the present application further includes: in response to an operation of accessing the device management space, display an eighth interface, and the eighth interface includes a thirteenth control for triggering the display of the second interface; in response to the operation on the thirteenth control, display the second interface.
[0036] Among them, the eighth interface is as Figure 19 shown in the eighth interface 1900 in
[0037] Based on the above implementation manner, when the first electronic device accesses the Honor Smart Space application, the thirteenth control for triggering the display of the second interface can be displayed on the eighth interface presented by the Honor Smart Space application. When the user operates on the thirteenth control, the second interface can be displayed, enabling the user to access the second interface and manage the second electronic device. In this way, after the user closes the second interface, the second interface can still be found by accessing the Honor Smart Space application.
[0038] In a possible implementation manner of the first aspect, when the MAC address of the second electronic device has been added to the account of the Honor Smart Space application and the second electronic device is not the only currently connected audio device of the first electronic device, the device interaction method provided by the embodiments of the present application further includes: in response to an operation of accessing the device management space, displaying an eighth interface, where the eighth interface includes a fourteenth control for triggering the display of a third interface; in response to an operation on the fourteenth control, displaying a third interface, where the third interface is used to manage all currently connected audio devices of the first electronic device, and the third interface includes a fifteenth control for triggering the display of the second interface; in response to an operation on the fifteenth control, displaying the second interface.
[0039] Based on the above implementation manner, when the first electronic device is also connected to other electronic devices of the same device type as the second electronic device, the entry for accessing the second interface can be set on the third interface, where the third interface is used to manage all currently connected audio devices of the first electronic device. In a second aspect, the present application provides an electronic device, which includes a display screen, a memory, and one or more processors; the display screen, the memory are coupled to the processor; wherein, the memory stores computer program code, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device is caused to execute the device interaction method provided in the first aspect and any of its possible design manners.
[0040] In a third aspect, the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions run on an electronic device, the electronic device is caused to execute the device interaction method provided in the first aspect and any of its possible design manners.
[0041] In a fourth aspect, the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device is caused to execute the device interaction method provided in the first aspect and any of its possible design manners.
[0042] It can be understood that the beneficial effects that can be achieved by the technical solutions provided in the second aspect to the fourth aspect above can refer to the beneficial effects in the first aspect and any of its possible design manners, and will not be elaborated here. Brief Description of the Drawings
[0043] Figure 1 Schematic diagram of a third-party headphone connection interface provided by an embodiment of the present application;
[0044] Figure 2 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application;
[0045] Figure 3 Schematic diagram of the layered architecture of the software system of an electronic device provided by an embodiment of the present application;
[0046] Figure 4 Flowchart of a device interaction method provided by an embodiment of the present application;
[0047] Figure 5 Schematic diagram of a settings interface provided by an embodiment of the present application;
[0048] Figure 6 Schematic diagram of a Bluetooth settings interface provided by an embodiment of the present application;
[0049] Figure 7 Another schematic diagram of a Bluetooth settings interface provided by an embodiment of the present application;
[0050] Figure 8 Schematic diagram of a first pop-up window interface provided by an embodiment of the present application;
[0051] Figure 9 Schematic diagram of a first interface provided by an embodiment of the present application;
[0052] Figure 10 Schematic diagram of a second pop-up window interface provided by an embodiment of the present application;
[0053] Figure 11 Another schematic diagram of a second pop-up window interface provided by an embodiment of the present application;
[0054] Figure 12 Schematic diagram of a second interface provided by an embodiment of the present application;
[0055] Figure 13 Another schematic diagram of a second interface provided by an embodiment of the present application;
[0056] Figure 14 Schematic diagram of a third interface provided by an embodiment of the present application;
[0057] Figure 15 Schematic diagram of a fourth interface provided by an embodiment of the present application;
[0058] Figure 16 Schematic diagram of a fifth interface provided by an embodiment of the present application;
[0059] Figure 17 Schematic diagram of a sixth interface provided by an embodiment of the present application;
[0060] Figure 18 Schematic diagram of a seventh interface provided by an embodiment of the present application;
[0061] Figure 19 Schematic diagram of an eighth interface provided by an embodiment of the present application;
[0062] Figure 20 Schematic diagram of a ninth interface provided by an embodiment of the present application;
[0063] Figure 21 Schematic diagram of another device interaction method flow provided by an embodiment of the present application;
[0064] Figure 22 Schematic diagram of the structure of a multi-device collaboration device provided by an embodiment of the present application. Detailed implementation manners
[0065] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the specification and appended claims of the present application, the singular forms "a", "an", "the", "above", "said", "this" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that " / " means "or", for example, A / B can mean A or B; "and / or" in the text is only a description of the relationship between associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone.
[0066] Referring to "embodiments" in the present application means that specific features, structures or characteristics described in connection with the embodiments can be included in at least one embodiment of the present application. The phrase appears in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art understand explicitly and implicitly that the embodiments described in the present application can be combined with other embodiments.
[0067] The terms "first" and "second" in the following embodiments of the present application are only for descriptive purposes, and cannot be construed as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise stated, the meaning of "a plurality" is two or more.
[0068] For the convenience of describing the technical solution of the application, some concepts involved in the present application will be described first below.
[0069] Bluetooth device: Bluetooth technology is an open global specification for wireless data and voice communication. It is a special short-range wireless technology connection based on low-cost short-range wireless connection to establish a communication environment for fixed and mobile devices. A Bluetooth device is a device that supports Bluetooth technology and can be connected to other devices that support Bluetooth technology through Bluetooth technology.
[0070] The technical solution provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0071] The technical solution provided by the present application can be applied to an electronic device with an image display function, for example, a first electronic device. In some embodiments, the electronic device may be a mobile phone, a tablet computer, a handheld computer, a personal computer (PC), an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device, and / or a smart city device, etc. The specific type of the electronic device is not particularly limited in the embodiments of the present application.
[0072] The communication connection involved in this application includes the communication connection between a second electronic device and a first electronic device. The second electronic device includes a third-party headset. The third-party headset is a headset with a different ecosystem from the first electronic device. When the third-party headset is connected to the first electronic device, it is not connected through a customized connection protocol. Generally, when the first electronic device and the headset are in the same ecosystem, the headset in the same ecosystem is connected to the first electronic device through a customized connection protocol, and the third-party headset is connected to the first electronic device through a non-customized protocol. Taking Bluetooth connection as an example, the electronic device is connected to the headset in the same ecosystem through a customized Bluetooth protocol. When connected, the Bluetooth broadcast data format sent by the headset in the same ecosystem is the Bluetooth broadcast data format customized by the headset and the first electronic device manufacturer. The Bluetooth broadcast data of the headset in the same ecosystem usually includes information related to the functions customized by the headset and the first electronic device manufacturer. The first electronic device is connected to the third-party headset through a non-customized Bluetooth protocol. The non-customized Bluetooth protocol is usually the standard Bluetooth protocol. The Bluetooth broadcast data format sent by the third-party headset is the standard Bluetooth broadcast data format.
[0073] As Figure 1 shown, in the traditional connection method between the third-party headset and the first electronic device, taking the Bluetooth connection method as an example, after the first electronic device receives the Bluetooth broadcast information sent by the third-party headset, it cannot directly connect to the third-party headset. Instead, the user needs to open the settings interface, find Bluetooth in the settings interface, click on the Bluetooth interface, and select the third-party headset device to be connected in the Bluetooth interface for pairing and connection. After the third-party headset is successfully connected, the display in the Bluetooth interface is as Figure 1 shown. The audio device therein is the successfully connected third-party headset. After the first electronic device receives the Bluetooth broadcast information sent by the headset in the same ecosystem, it can directly connect to the third-party headset without the user opening the settings interface. Moreover, after the headset in the same ecosystem is connected to the first electronic device, the first electronic device will pop up a window, so that the first electronic device can respond to the operations on the window to manage the headset in the same ecosystem. After the third-party headset is connected to the first electronic device, the first electronic device will not pop up a window, and the first electronic device cannot manage the third-party headset. The third-party headset can only perform simple audio output.
[0074] In order to manage the third-party headset and improve the user experience, this application provides a device interaction method, an electronic device, and a storage medium.
[0075] Exemplarily, taking the electronic device as a mobile phone Figure 2 shows a schematic structural diagram of an electronic device provided by an embodiment of this application.
[0076] Referring to Figure 2As shown in the figure, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a display screen 193, a subscriber identification module (SIM) card interface 194, and a camera 195, etc. Among them, the sensor module 180 may include a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0077] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0078] The controller may be the nerve center and command center of the electronic device. The controller may generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0079] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory may save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0080] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0081] The charging management module 140 is configured to receive a charging input from a power supply device (such as a charger, laptop power supply, etc.). Among them, the charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 can receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 can receive the wireless charging input through the wireless charging coil of the electronic device.
[0082] While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141. Among them, the battery 142 can specifically be composed of multiple batteries connected in series. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
[0083] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives the inputs from the battery 142 and / or the charging management module 140 and powers the processor 110, the internal memory 121, the display screen 193, the camera 195, the wireless communication module 160, etc. The power management module 141 can also be used to monitor parameters such as the voltage, current, battery cycle count, battery health status (leakage, impedance) of the battery. In some other embodiments, the power management module 141 can also be disposed in the processor 110.
[0084] The external memory interface 120 can be used to connect to an external non-volatile memory to implement the storage capacity expansion of the electronic device. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, files such as music and videos are saved in the external non-volatile memory.
[0085] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory can be directly read and written by the processor 110, and can be used to store the operating system or executable programs of other running programs (such as machine instructions), and can also be used to store data of users and application programs. The non-volatile memory can also store executable programs and store data of users and application programs, and can be pre-loaded into the random access memory for the processor 110 to directly read and write. In the embodiment of the present application, a diffusion model can be stored in the internal memory 121. The internal memory 121 can also store a related model that can convert an image into a noise image and a text identifier, or can also store noise images and text identifiers corresponding to multiple images.
[0086] The touch sensor is also called a "touch control device". The touch sensor can be disposed on the display screen 193, and the touch sensor and the display screen 193 form a touch screen, also called a "touch control screen". The touch sensor is used to monitor touch operations acting thereon or nearby. The touch sensor can transmit the monitored touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 193. In other embodiments, the touch sensor can also be disposed on the surface of the electronic device at a different position from the display screen 193.
[0087] The pressure sensor is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor can be disposed on the display screen 193. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. When a touch operation acts on the display screen 193, the electronic device monitors the intensity of the touch operation according to the pressure sensor. The electronic device can also calculate the position of the touch according to the monitoring signal of the pressure sensor. In some embodiments, touch operations with the same touch position but different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, the instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
[0088] In some embodiments, the electronic device may include one or N cameras 195, where N is a positive integer greater than 1. In the embodiments of the present application, the types of the cameras 195 can be distinguished according to the hardware configuration and the physical location. For example, the camera disposed on the side of the display screen 193 of the electronic device can be called a front camera, and the camera disposed on the back cover of the electronic device can be called a rear camera; for another example, the camera with a short focal length and a large viewing angle can be called a wide-angle camera, and the camera with a long focal length and a small viewing angle can be called a normal camera. Among them, the length of the focal length and the size of the viewing angle are relative concepts without specific parameter limitations. Therefore, the wide-angle camera and the normal camera are also relative concepts, and can be specifically distinguished according to physical parameters such as the focal length and the viewing angle.
[0089] The electronic device realizes the display function through the GPU, the display screen 193, and the application processor, etc. The GPU is a microprocessor for image editing, and is connected to the display screen 193 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change the display information.
[0090] The electronic device can realize the shooting function through the ISP, the camera 195, the video codec, the GPU, the display screen 193, and the application processor, etc. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change the display information. In the embodiments of the present application, in the frame drawing process of each image frame, the functions of the GPU are used to make the finally displayed picture obtain better display effects and performance.
[0091] The ISP is used to process the data fed back by the camera 195. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize parameters such as the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be disposed in the camera 195. The camera 195 is used to capture static images or videos.
[0092] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0093] The display screen 193 is used to display images, videos, etc. The display screen 193 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a Microled, a Micro-oled, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include one or N display screens 193, where N is a positive integer greater than 1.
[0094] In the embodiments of the present application, the display screen 193 can be used to display the interface of the electronic device (for example, the desktop, the lock screen interface, etc.), and display the images stored in the electronic device (for example, wallpapers, photos, etc.) or the images captured by any one or more cameras 195 in this interface.
[0095] The wireless communication function of the electronic device can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem, and the baseband processor, etc.
[0096] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas.
[0097] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc. applied to the electronic device. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna 1 and radiate it out. In some embodiments, at least some functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 can be disposed in the same device.
[0098] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 193. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and be disposed in the same device as the mobile communication module 150 or other functional modules.
[0099] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive the signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
[0100] The SIM card interface 194 is used to connect to the SIM card. The SIM card can be inserted into or removed from the SIM card interface 194 to achieve contact and separation from the electronic device. The electronic device may support one or more SIM card interfaces. The SIM card interface 194 may support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 194 at the same time. The SIM card interface 194 may also be compatible with external memory cards. The electronic device interacts with the network through the SIM card to implement functions such as calls and data communication. One SIM card corresponds to one user number.
[0101] It can be understood that the interface connection relationships among the modules illustrated in the embodiments of the present invention are only illustrative descriptions and do not constitute a structural limitation on the electronic device. In some other embodiments of the present application, the electronic device may also adopt different interface connection manners in the above embodiments, or a combination of multiple interface connection manners.
[0102] Of course, it can be understood that the above Figure 2 is only an exemplary description when the form of the electronic device is a mobile phone. When the electronic device is in other device forms such as a tablet computer, a handheld computer, a PC, a PDA, a wearable device (such as a smart watch, a smart bracelet), etc., the structure of the electronic device may include fewer structures than those Figure 1 shown, or may include more structures than those Figure 1 shown, which is not limited herein.
[0103] It can be understood that generally, in addition to the support of hardware, the implementation of the functions of the electronic device also requires the cooperation of software. The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of the present application, taking the system of the layered architecture as an example, the software structure of the electronic device is illustratively described.
[0104] Figure 3 FIG. is a schematic diagram of the layered architecture of the software system of the electronic device provided in the embodiments of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces (such as APIs).
[0105] In some examples, referring to Figure 3 shown, in the embodiments of the present application, the software of the electronic device is divided into five layers, from top to bottom, which are the application layer, the framework layer (or the application framework layer), the system library and Android runtime, the HAL layer (hardware abstraction layer), and the driver layer (or the kernel layer). Among them, the system library and Android runtime can also be called the native framework layer or the native layer.
[0106] Among them, the application layer may include a series of applications. Such as Figure 3As shown in the figure, the application layer may include applications (APPs) such as camera, gallery, calendar, map, WLAN, Bluetooth, music, video, short message, call, navigation, instant messaging, wallpaper, Honor Smart Space, and Auto Discovery. Among them, the Honor Smart Space application is an application for aggregating and managing external devices connected to the electronic device, and the Auto Discovery application is an application for discovering external devices. The Honor Smart Space application can also be referred to as the device management space application. The Honor Smart Space application can be an application pre-installed by the manufacturer of the electronic device for the electronic device, or an application installed by the user after downloading from the application store when using the electronic device. The Auto Discovery application can be a system application, such as an application pre-installed by the manufacturer of the electronic device for the electronic device. In some examples, the Auto Discovery application may not display an icon on the main screen of the electronic device.
[0107] The framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions or services. For example, the application framework layer may include an activity manager, a window manager, a content provider, an audio service, a view system, a phone manager, a resource manager, a notification manager, a package manager, etc., and the embodiments of the present application do not make any restrictions on this.
[0108] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0109] The content provider is used to store and obtain data, and make this data accessible to applications. These data can include videos, images, audio, incoming and outgoing calls, browsing history and bookmarks, phone book, etc.
[0110] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a short message notification icon may include a view for displaying text and a view for displaying pictures.
[0111] The phone manager is used to provide the communication function of the electronic device. For example, the phone manager can manage the call status of the call application (including initiation, connection, disconnection, etc.).
[0112] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc.
[0113] The notification manager enables an application to display notification information in the status bar. It can be used to convey messages of the notification type, and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to inform that a download is completed, a message reminder, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a graph or a scroll bar text, such as the notification of a background-running application, or a notification that appears in the form of a dialog window on the screen. For example, it can prompt text information in the status bar, emit a prompt sound, vibrate the electronic device, blink the indicator light, etc.
[0114] The package manager is used to manage application packages in the system. It allows applications to obtain detailed information about installed applications and their services, permissions, etc. The package manager is also used to manage events such as the installation, uninstallation, and upgrade of applications.
[0115] The system libraries can include multiple functional modules. For example: surface manager, Media Libraries, OpenGL ES, SGL, etc. The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The Media Libraries support the playback and recording of multiple common audio and video formats, as well as static image files, etc. The Media Libraries can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. OpenGLES is used to implement three-dimensional graphics drawing, image rendering, synthesis, and layer processing, etc. SGL is a drawing engine for 2D drawing. Android runtime includes core libraries and the ART virtual machine. Android runtime is responsible for the scheduling and management of the Android system. The core libraries contain two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core libraries of Android. The application layer and the application framework layer run in the ART virtual machine. The ART virtual machine executes the Java files of the application layer and the application framework layer as binary files. The ART virtual machine is used to perform functions such as the management of object life cycles, stack management, thread management, security and exception management, and garbage collection.
[0116] The HAL layer is an interface layer located between the operating system kernel and the hardware circuit, aiming to abstract the hardware. It hides the hardware interface details of a specific platform, provides a virtual hardware platform for the operating system, making it hardware-independent and portable across multiple platforms. The HAL layer provides a standard interface to display the device hardware functions to a higher-level Java API framework (i.e., the framework layer). The HAL layer contains multiple library modules, and each module implements an interface for a specific type of hardware component. For example: the audio HAL audio module, the bluetooth HAL bluetooth module, the camera HAL camera module (which can also be called the camera HAL or the camera hardware abstraction module), and the sensors HAL sensor module (or called the Isensor service, the sensor service).
[0117] The kernel layer is the layer between the hardware and the software. The kernel layer at least includes a display driver, a camera driver, an audio driver, a sensor driver, a battery driver, etc., which are not limited in this application. Among them, the sensor driver can specifically include the drivers for each sensor included in the electronic device, such as the ambient light sensor driver. Exemplarily, the ambient light sensor driver can send the detection data of the ambient light sensor to the sensing module in a timely manner in response to an indication or instruction from the sensor module to obtain the detection data.
[0118] The technical solutions provided in the embodiments of this application can all be implemented in the first electronic device with the above-mentioned hardware architecture or software architecture.
[0119] The embodiments of this application mainly solve the problem of being unable to manage third-party headphones.
[0120] The method flow of the embodiments of this application is as Figure 4 shown. Among them, both the automatic discovery application and the Honor Smart Space application are installed on the first electronic device. The method flow mainly includes the following steps:
[0121] S401. The third-party headphone is communicatively connected to the first electronic device.
[0122] When the third-party headphone is communicatively connected to the first electronic device, the first electronic device can identify the third-party headphone as an external device, and then determine the identity of the third-party headphone after the communication connection.
[0123] Among them, the third-party headphone can be communicatively connected to the first electronic device in various ways. For example, it can be connected via Bluetooth or via Near Field Communication (NFC).
[0124] Taking Bluetooth connection as an example, when a third-party headset is in a searchable state, it will send a Bluetooth broadcast signal so that other nearby devices can detect and establish a connection.
[0125] After the first electronic device turns on the Bluetooth function in the settings interface, it will actively search for nearby Bluetooth devices, including the third-party headset. By receiving the Bluetooth broadcast sent by the third-party headset, the first electronic device can find the third-party headset and send a connection request to the third-party headset. After receiving the connection request, the third-party headset will perform verification and handshake protocol processing and send a connection response signal to the first electronic device. After receiving the connection response signal, the first electronic device and the third-party headset will negotiate the communication frequency through the information in the connection response signal. The two parties will negotiate which frequency to use for communication to ensure that both parties can transmit data on the same frequency. During the connection establishment process, an authorization and authentication process is also required between the first electronic device and the third-party headset to ensure the security of the connection. The authorization and authentication process can include methods such as Personal Identification Number (PIN) verification and digital certificate authentication to ensure the security and legality of the connection.
[0126] After the connection is successful, data transmission can be carried out between the first electronic device and the third-party headset.
[0127] The Bluetooth broadcast sent by the third-party headset can include the following information:
[0128] Device name: The name of the third-party headset, usually a set of characters or numbers preset by the manufacturer.
[0129] Device class: Indicates the type of device to which the third-party headset belongs, such as audio device, mouse, keyboard, etc.
[0130] Service information: Describes the services supported by the third-party headset so that the first electronic device can understand what interaction operations it can perform with the third-party headset, such as AUDIO_VIDIO_WEARABLE_HEADSET or AUDIO_VIDIO_HEADPHONES.
[0131] Bluetooth version: Indicates the Bluetooth specification version followed by the Bluetooth headset.
[0132] Other parameters: May also include additional information such as the MAC address and signal strength of the Bluetooth headset.
[0133] The above information will be encoded into a set of broadcast packet data and sent out through the Bluetooth module. When the nearby first electronic device searches for this broadcast packet, it can parse out this information. After the first electronic device receives the broadcast packet data sent by the third-party earphone, it can save the broadcast packet data in the driver layer.
[0134] After the first electronic device establishes a connection with the third-party earphone, the Bluetooth driver in the driver layer of the first electronic device can send the broadcast packet data to the Android native interface through an Access Control List (ACL) broadcast.
[0135] In some embodiments, in the case where the third-party earphone establishes a connection with the first electronic device for the first time, if the first electronic device has pre-stored the whitelist of the Bluetooth broadcast data format of the third-party earphone, it can determine that the Bluetooth broadcast data format of the third-party earphone belongs to the whitelist of the Bluetooth broadcast data format through comparison, and then automatically connect to the third-party earphone. If the first electronic device has not pre-stored the whitelist of the Bluetooth broadcast data format of the third-party earphone, or determines that the Bluetooth broadcast data format of the third-party earphone does not belong to the whitelist of the Bluetooth broadcast data format through comparison, the user can open the Figure 5 settings interface 100 as shown. The settings interface 100 includes a fifth control 101 for performing Bluetooth settings. In response to the trigger operation of the user on the fifth control 101, the first electronic device displays the Figure 6 Bluetooth settings interface 200 as shown. In the Figure 6 Bluetooth settings interface 200 as shown, it includes a device name label 202 and a sixth control 201. The device name label 202 displays the name of the first electronic device. The text on the sixth control 201 may include the name and model of the third-party earphone. The sixth control 201 is displayed in the available device options. In response to the operation of the user on the sixth control 201, the first electronic device communicates and connects with the third-party earphone. After the communication connection, the first electronic device can display the Figure 7 Bluetooth settings interface 300 as shown. The Bluetooth settings interface 300 includes a list 301 of paired devices. Among them, the third-party earphone has been added to the list 301 of paired devices.
[0136] S402. Determine whether the third-party earphone communicates and connects with the first electronic device for the first time. In the case where the third-party earphone communicates and connects with the first electronic device for the first time, execute step S403. In the case where the third-party earphone does not communicate and connect with the first electronic device for the first time, execute step S413.
[0137] In some embodiments, taking the connection via Bluetooth as an example, the first electronic device will save the MAC address information of the previously connected Bluetooth devices. For example, the MAC addresses of the previously connected Bluetooth devices are saved in the list of connected devices. Then, after the first electronic device establishes a communication connection with the third-party headset, the first electronic device can check whether the MAC address of the third-party headset exists in the list of connected devices. If not, the first electronic device can determine that the third-party headset is connected for the first time. If it exists, the first electronic device can determine that the third-party headset is not connected for the first time.
[0138] S403. When the third-party headset is first connected to the first electronic device for communication, the automatic discovery application obtains the service information of the third-party headset.
[0139] In some embodiments, the automatic discovery application obtains the service information of the third-party headset by accessing the Android native interface. In some embodiments, the service information of the third-party headset can be obtained by accessing the Android native interface bluetoothClass.getDeviceClass().
[0140] S404. The automatic discovery application determines whether the third-party headset is an audio head-mounted device according to the service information of the third-party headset.
[0141] In some embodiments, the automatic discovery application can determine whether the obtained service information includes a first identifier. Here, the first identifier can be AUDIO_VIDIO_WEARABLE_HEADSET or AUDIO_VIDIO_HEADPHONES, and determine whether the third-party headset is an audio head-mounted device by whether the first identifier exists.
[0142] If the obtained service information includes the two services AUDIO_VIDIO_WEARABLE_HEADSET or AUDIO_VIDIO_HEADPHONES, it jumps to S405.
[0143] If the obtained service information does not include the two services AUDIO_VIDIO_WEARABLE_HEADSET or AUDIO_VIDIO_HEADPHONES, the process ends.
[0144] S405. The automatic discovery application obtains the device name of the third-party headset.
[0145] In some embodiments, after the automatic discovery application determines that the third-party headset is an audio head-mounted device, it can obtain the device name of the third-party headset.
[0146] In some embodiments, the automatic discovery application can obtain the name information of the third-party earphone by accessing the Android native interface. Exemplarily, the automatic discovery application can access the getName interface in the BluetoothDevice.java class to obtain the device name of the third-party earphone.
[0147] S406. The automatic discovery application determines whether the device name of the third-party earphone exists in a preset whitelist.
[0148] If the device name of the third-party earphone exists in the preset whitelist, S409 is executed. If the device name of the third-party earphone does not exist in the preset whitelist, S407 is executed.
[0149] The preset whitelist is a whitelist preset by the first electronic device for third-party earphones with known brands and names. In this way, after the first electronic device obtains the name information of the third-party earphone and finds the obtained name information in the preset whitelist, it can be determined that the external device is an earphone of a known brand.
[0150] Exemplarily, the automatic discovery application can determine the communication connection between the third-party earphone and the first electronic device according to whether the device name of the third-party earphone exists in the preset whitelist. If the device name of the third-party earphone exists in the preset whitelist, it can be determined that the third-party earphone is an earphone of a known brand. If the device name of the third-party earphone does not exist in the preset whitelist, other methods are needed to determine the identity of the third-party earphone. For example, S407 is used to determine the identity of the third-party earphone.
[0151] S407. The automatic discovery application obtains the battery level information of the third-party earphone.
[0152] In some embodiments, the automatic discovery application can obtain the battery level information of the third-party earphone by accessing the Android native interface. In some embodiments, the automatic discovery application can access the getBatteryLevel interface in the BluetoothDevice.java class to obtain the battery level information of the third-party earphone.
[0153] S408. The automatic discovery application determines whether it can obtain the battery level information of the third-party earphone.
[0154] Exemplarily, the automatic discovery application can also determine the communication connection between the third-party earphone and the first electronic device according to whether it can obtain the battery level information of the third-party earphone. If it can obtain the battery level information of the third-party earphone, it is determined that the third-party earphone is in communication connection with the first electronic device. If it cannot obtain the battery level information of the third-party earphone, it is determined that the third-party earphone is not in communication connection with the first electronic device.
[0155] Some third-party earphones of certain brands do not provide power information to the first electronic device. Therefore, when the automatic discovery application of the first electronic device accesses the Android native interface, it will not obtain the power information.
[0156] If the power information of the third-party earphone can be obtained, S409 is executed. If the power information of the third-party earphone cannot be obtained, the process ends.
[0157] In some embodiments, after the automatic discovery application determines that the third-party earphone is an audio head-mounted device, it can first obtain the name information of the third-party earphone. After obtaining the name information of the third-party earphone and determining that the name of the third-party earphone does not belong to the white list of third-party earphones, it then obtains the power information of the third-party earphone. In other embodiments, the automatic discovery application can directly obtain the power information of the third-party earphone after determining that the third-party earphone is an audio head-mounted device. If the power information of the third-party earphone is obtained, it can be determined that the device communicatively connected to the first electronic device is the third-party earphone, and S409 is executed. In the case where the power information of the third-party earphone cannot be obtained, the name information of the third-party earphone is obtained again. If the name information of the third-party earphone is in the preset white list, it is determined that the earphone communicatively connected to the first electronic device is an earphone of a known brand, and step S409 is executed. If the name information of the third-party earphone is not in the preset white list, the process ends.
[0158] S409: The automatic discovery application pops up the first pop-up window.
[0159] In some embodiments, as Figure 8 shown, the first pop-up window interface 400 includes the first pop-up window 800. The first pop-up window 800 includes the icon 8012 of the earphone and the icon 8011 of the earphone case, the power information 802, the name and model information 803 of the third-party earphone, and the first control 804. Among them, the name and model information 803 of the third-party earphone is the name and model information of the third-party earphone read by the first electronic device. The first control 804 can be displayed at the lower part of the first pop-up window 800. Here, the first control 804 is used to trigger the display of the management interface. Exemplarily, the first control 804 can include text such as "Experience Now". For prominent display, a background with a color different from that of the connection success interface can be used under the text so that users can quickly notice the "Experience Now" text. In response to an operation on the first control 804, the first electronic device can display the first interface to guide the user to further manage the third-party earphone. Correspondingly, a seventh control 805 for triggering the closing of the first pop-up window 800 can also be displayed on the first pop-up window 800. In response to the user clicking the seventh control 805, the first electronic device can close the first pop-up window 800. In some embodiments, the seventh control 805 can be text such as "Got it".
[0160] After determining that the third-party headset is communicatively connected to the first electronic device, the first electronic device may assign a second identifier to the third-party headset. The second identifier may be a Model ID. In Figure 8 In the displayed first pop-up window interface 400, the icon 801 may be bound to the Model ID. For third-party headsets, a unified Model ID is set, and the icon 801 of the headset in the first pop-up window interface 400 is also the same icon. Correspondingly, for self-developed headsets, different Model IDs may be assigned respectively, and the icon 801 of the headset in the first pop-up window interface 400 is a different icon.
[0161] In some embodiments, the first electronic device may also assign different Model IDs to the third-party headset according to the headset type, and different Model IDs correspond to different icons. The icons may include the icon 8012 of the headset and the icon 8011 of the headset case. Furthermore, in Figure 8 In the displayed first pop-up window interface 400, the icons 801 of different headset types may be different.
[0162] When the first electronic device displays the first pop-up window interface 400, it may search for the icon corresponding to the Model ID of the headset of a different ecosystem, generate the icon 801 in the first pop-up window interface 400 according to the found icon, and display it.
[0163] S410. The Honor Smart Space application responds to the operation on the first control 804 of the first pop-up window interface and displays the first interface of the third-party headset.
[0164] For a third-party headset that is communicatively connected to the first electronic device for the first time, the user needs to be guided to add the third-party headset to the Honor Smart Space application first. Therefore, in some embodiments, when the user performs an operation on the first control 804, the displayed first interface may be the Figure 9 First interface 900 of the third-party headset as shown. The first interface 900 of the third-party headset includes a second control 901, an eighth label 902, and a ninth label 903. The second control 901 includes text such as "Add". In response to the operation on the second control 901, the first electronic device may add the third identifier of the third-party headset to the first list. The third identifier may be a Media Access Control (MAC) address. The first list is a list of the first account, and the first account is the account logged in to the Honor Smart Space. The eighth label 902 includes the words "There are audio devices to add", and the ninth label 902 includes the words "Manage audio devices".
[0165] Based on the above implementation, when a third-party headset is first connected to the first electronic device for communication, after the first electronic device displays the first pop-up interface 400, in response to the operation on the first control 804, the first electronic device displays the first interface 900 of the third-party headset, and the first interface 900 includes a second control 901. In response to the operation on the second control 901, the first electronic device can add the MAC address of the third-party headset to the first list. In the above manner, when the third-party headset is first connected to the first electronic device for communication, the MAC address of the third-party headset is added to the first list. In this way, the third-party headset can be managed in the Honor Smart Space application later.
[0166] S411. The Honor Smart Space application responds to the operation on the second control 901, adds the MAC address of the third-party headset to the device management space account, and displays a second pop-up window indicating that the addition is complete.
[0167] In some embodiments, after the user operates the second control 901, the MAC address of the third-party headset can be added to the first list, and the second pop-up window can be displayed. In some embodiments, when only the MAC address of the third-party headset is added to the first list, the second pop-up window can be displayed as follows: Figure 10 The second pop-up window 1004 in the second pop-up window interface 1000 shown. The second pop-up window 1004 includes the first label 1001, the third control 1002, and the eighth control 1003. The first label 1001 includes the words "Added successfully, you can access the device on the application homepage". In some embodiments, the third control 1002 can be displayed at the bottom of the second pop-up window 1004. Among them, the third control 1002 can include the words "Experience now", and in response to the operation acting on the third control 1002, the first electronic device can display the second interface. In some embodiments, on the second pop-up window 1004, for example, at the bottom of the second pop-up window 1004, the eighth control 1003 for closing the second pop-up window interface 1000 can also be set. In response to the user clicking the operation of the eighth control 1003, the first electronic device closes the second pop-up window interface 1000. The text on the example eighth control 1003 can include "I know".
[0168] In some implementations, when the MAC addresses of multiple audio devices are added to the first list, the second pop-up window may be displayed as follows: Figure 11The second pop-up window 1004 shown. On the second pop-up window 1004, there are included a second label 1101, a third control 1002, and a ninth control 1103. The second label may include the text "Addition successful. Aggregated as an audio device on the application home page", the second label 1101. In some embodiments, on the second pop-up window 1004, for example, at the lower part of the second pop-up window 1000, a third control 1002 of the second interface of the third-party earphone may also be displayed. Among them, the third control 1002 may include the text "Experience immediately". Responding to an operation on the third control 1002 can trigger the display of the second interface. In some embodiments, on the second pop-up window 1000, for example, at the lower part of the second pop-up window 1004, a ninth control 1103 of the second pop-up window 1004 may also be set. Responding to an operation on the ninth control 1103, the first electronic device closes the second pop-up window interface 1000. By way of example, the ninth control 1103 includes the text "I got it".
[0169] Based on the above implementation, after the user operates on the second control 901 of the first interface 900, the first electronic device displays a second pop-up window indicating that the addition is completed after adding the MAC address of the third-party earphone to the first list. Thereby, the user can be informed that the action of adding the MAC address of the third-party earphone to the first list has been completed, bringing a better user experience to the user. And, the second pop-up window includes a third control 1002 for triggering the display of the second management interface of the third-party earphone. In response to the user's operation on the third control 1002, the first electronic device can display the second interface of the third-party earphone, enabling the user to manage the third-party earphone through the second interface and understand the usage situation of the third-party earphone. For example, understand the battery information of the third-party earphone. Thereby, a better user experience is given to the user.
[0170] S412. The Honor Smart Space application responds to an operation on the third control 1002 and displays the second interface of the third-party earphone.
[0171] In some embodiments, after the user triggers the third control 1002, it may be displayed as Figure 12The second interface 1200 shown. On the second interface 1200, there are included a third label 1201, a fourth label 1202, a first entry 1203, a tenth label 1208, and an eleventh label 1209. The third label 1201 is used to display the connection status of different ecological earphones, including the text "Connected". In some embodiments, the fourth label 1202 displays the battery information of the third-party earphones. The first entry 1203 is used to access the currently selectable sound effect information of the third-party earphones. For the third-party earphones, it may not be possible to call the sound effects of the third-party earphones for selection. Therefore, in some embodiments, the selectable sound effects of the first electronic device can be provided for the user to select, and after the user makes a selection, it is played through the third-party earphones. The tenth label 1208 is used to display the type and name information of different ecological earphones, and the eleventh label 1209 displays the earphone picture information.
[0172] In some embodiments, in response to an operation on the third control 1002, the first electronic device displays as Figure 13 shown the second interface 1200. On the second interface 1200, selectable sound quality information can also be displayed for the user to select the sound quality according to their preferences. In some embodiments, on the second interface 1200, there may also be included a second entry 1204 and a fifth label 1205 for accessing the functions recommended for the third-party earphones. The fifth label 1205 includes text, and below the fifth label 1205, the second entry 1204 is displayed. The second entry 1204 includes the functions recommended for the third-party earphones. Here, the functions can be operations that can be executed when a set trigger condition is triggered. For example, the function of reminding to drink water on time after wearing the earphones, the function of reminding to take medicine on time after wearing the earphones, the function of playing music with a set player after wearing the earphones, and the function of giving an alarm reminder after detecting a set condition after wearing the earphones. Among them, the trigger condition is related to the earphones, or the executable operation is related to the earphones, or both the trigger condition and the executable operation are related to the earphones. The trigger condition related to the earphones can be that the earphones are communicatively connected to the first electronic device. The executable operation related to the earphones can be playing music through the earphones or playing a reminder through the earphones. In some embodiments, on the second interface 1200, there may also be included a third entry 1206 for accessing the functions previously set by the user for the third-party earphones. For example, if the function of playing music with a set player after wearing the earphones was previously set for the third-party earphones, then on the second interface 1200, there may be a sixth label 1207 with the words "My Scene" on it, and below the sixth label 1207, the third entry 1206 can be displayed. For example, if the user previously set the function of playing music with a set player after wearing the earphones for the third-party earphones. The relevant icon of the function of playing music with a set player after wearing the earphones can be displayed on the third entry 1206.
[0173] In some embodiments, in response to a user's operation of clicking on the third entry 1206, a third interface for setting functions may be displayed. As Figure 14 shown, in the third interface 1400, it may include a tenth control 1401 for setting a trigger condition, an eleventh control 1402 for setting an executable operation, a twelfth control 1403 for creating a function, as well as a twelfth label 1404, a thirteenth label 1405, and a fourteenth label 1406. Among them, the twelfth label 1404 includes the text "headphone function", the thirteenth label 1405 includes the label "when the following occurs", and the fifteenth label includes the text "executable operation". As Figure 15 shown, in response to a user's operation on the tenth control 1401, the first electronic device may operate to display a fourth interface 1500 as Figure 15 shown. The fourth interface 1500 includes a first setting box 1501 for setting a trigger condition. In response to the selection that the user can make on the elements displayed in the first setting box 1501, the first electronic device may set the trigger condition. As Figure 16 shown, in response to a user's operation on the eleventh control 1402, the first electronic device may operate to display a fifth interface 1600. The fifth interface 1600 includes a second setting box 1601. In response to the selection that the user makes on the options displayed in the second setting box 1601, the first electronic device may set the executable operation. The trigger condition here may be that the headphone is communicatively connected to the first electronic device or a set time. The executable operation here may be to play a reminder through the headphone or play music through a set player. After both the trigger condition and the corresponding executable operation are set, when the first electronic device detects that the trigger condition is met, it may execute the corresponding executable operation. For example, the set trigger condition and the corresponding executable operation are "when the headphone is communicatively connected to the first electronic device, then play music using the set player". Then, when the first electronic device detects that a third-party headphone is communicatively connected to the first electronic device, it can play music using the set player.
[0174] S413. Automatically discover that when the third-party headphone is communicatively connected to the first electronic device for the non-first time, a first pop-up window interface 400 is popped up.
[0175] In some embodiments, the first pop-up window interface 400 may be as Figure 8 shown. The first control 804 in the first pop-up window interface 400 is used to trigger the display of the second interface 1200.
[0176] S414. The Honor Smart Space application responds to the operation of the first control 804 on the first pop-up interface 400 and displays the second interface 1200 of the third-party headset.
[0177] When the third-party headset is not connected for the first time, when the user triggers the first control 804 on the first pop-up interface 400, the second interface 1200 of the third-party headset is directly displayed.
[0178] In some implementations, if the user closes the second interface 1200 of the third-party headset and wants to access the second interface 1200 of the third-party headset again, the user can access the second interface 1200 of the third-party headset in the following manner: Figure 17 The sixth interface 1700 shown in FIG. 1 accesses the Honor Smart Space application. The sixth interface 1700 displays the control center of the first electronic device, which can be displayed in response to the user's pull-down operation on the top right side of the first electronic device. Among them, the entrance of the Honor Smart Space application can be displayed as follows: Figure 17 In some implementations, the entrance to the Honor Smart Space application can also be set as follows: Figure 18 The application icon 1801 of the Honor Smart Space application on the seventh interface 1800 is shown. In response to the user clicking the application icon 1801, the first electronic device displays the interface of the application management space application. In some embodiments, the Honor Smart Space application can also be triggered to open by a voice command. For example, when the first electronic device receives a voice command such as "Please open the device management space", the Honor Smart Space application can be opened. In some embodiments, the Honor Smart Space application can also be opened in response to some gesture commands, such as a sliding gesture. When the first electronic device detects that the user makes a sliding gesture in front of the screen of the first electronic device, the first electronic device can open the Honor Smart Space application.
[0179] The second interface 1200 of the third-party headset can be accessed through the Honor Smart Space application. In some embodiments, a thirteenth control that triggers the display of the second interface 1200 of the third-party headset can be set in the interface of the Honor Smart Space application. In response to the user's operation on the thirteenth control, the second interface 1200 of the third-party headset is displayed. The main interface of the device management space can be as follows: Figure 19The eleven - interface 1900 shown includes a thirteenth control 1901, a fifteenth label 1902, a fourth entry 1903, a fifth entry 1904, a sixteenth label 1905, and a switch bar 1906. On the thirteenth control 1901, an image of the earphone, the name and model of the earphone, and the battery level of the earphone can be displayed. In response to a user's operation on the thirteenth control 1901, for example, when the user clicks on the thirteenth control 1901, the first electronic device can display a second interface 1200 of a third - party earphone. The thirteenth control 1901 is displayed below the sixteenth label 1905, and the sixteenth label 1905 includes the text "All Devices". The fifteenth label 1902 is displayed in the upper - left corner of the ninth interface 1900, and the fifteenth label 1902 includes the text "My Home". The fourth entry 1903 is an entry for accessing frequently - used devices, which can include the icons and names of frequently - used devices. And in response to an operation on the icon and name of any frequently - used device, the first electronic device can display the interface of the corresponding frequently - used device. There can be multiple fourth entries 1903, corresponding to different frequently - used devices respectively. The fifth entry 1904 is an entry for accessing frequently - used functions, which can include the icons and names of frequently - used functions, and in response to an operation on the icon and name of any frequently - used function, the first electronic device can call the corresponding external device to execute the corresponding function. There can be multiple fifth entries 1904, corresponding to different frequently - used functions respectively. The switch bar 1906 is used to display different interfaces of the device - management control application, where icons of different interfaces are shown, and the first electronic device can perform interface switching in response to an operation on the icons of different interfaces.
[0180] In some embodiments, when the third - party earphone is not the only audio device connected to the first electronic device, a fourteenth control for triggering the display of a third interface can be set in the interface of the Honor Smart Space application, where the third interface is used to manage audio devices. When the user performs an operation on the fourteenth control, the third interface is displayed. Among them, the b - th control can be displayed below the text "All Devices". The fourteenth control can include the text "Audio Devices". In response to an operation performed by the user on the b - th control, for example, when the user clicks on the fourteenth control, the third interface can be displayed. On the third interface, a fifteenth control for triggering the display of the second interface 1200 of the third - party earphone is set. On the fifteenth control, an image of the earphone, the name and model of the earphone, and the battery level of the earphone can be set. In response to an operation performed by the user on the fifteenth control, for example, when the user clicks on the fifteenth control, the first electronic device can display the second interface 1200 of the third - party earphone.
[0181] In some embodiments, if the user clicks the seventh control 805 when the first pop-up interface 400 is displayed on the first electronic device, the first electronic device will directly end the process, and the MAC address of the third-party headset will not be added to the account of the Honor Smart Space application. However, when the interface of the Honor Smart Space application is displayed, the ninth interface 2000 as shown in Figure 20 will be shown. In the ninth interface 2000, there are a seventh label 2001, a fourteenth control 2002, and a fifteenth control 2003. The seventh label 2001 includes the words "A device is discovered. Do you want to connect?", the fourteenth control 2002 includes the word "Ignore", and the fifteenth control 2003 includes the words "Go to add". In response to the user's operation of clicking the fourteenth control 2002, the first electronic device does not add the MAC address of the third-party headset to the first list. In response to the user's operation of clicking the fifteenth control 2003, the first electronic device adds the MAC address of the third-party headset to the first list. The ninth interface 2000 may also include the elements on the eighth interface 1900. The ninth interface 2000 may also include a fifteenth label 1902, a fourth entry 1903, a fifth entry 1904, a sixteenth label 1905, and a switch bar 1906. The seventh label 2001, the fourteenth control 2002, and the fifteenth control 2003 are usually set between the fifteenth label 1902 and the fourth entry 1903.
[0182] As Figure 21 shown, the present application also provides a device interaction method applied to the first electronic device. The device interaction method includes:
[0183] S2101. The first electronic device establishes a connection with the second electronic device. When the second electronic device connects to the first electronic device, it connects through a non-custom connection protocol;
[0184] wherein the second electronic device is the third-party headset.
[0185] S2102. The first electronic device obtains the device information of the second electronic device;
[0186] In the case where the first electronic device and the second electronic device are connected for the first time, S2102 can be executed with reference to step S403, step S405, and step S407.
[0187] In the case where the first electronic device and the second electronic device are not connected for the first time, the device information of the second electronic device can be the Model ID of the second electronic device.
[0188] S2103. The first electronic device determines whether the second electronic device is a specified type of electronic device according to the device information of the second electronic device;
[0189] When the first electronic device and the second electronic device are connected for non - the first time, the first electronic device determines that the device type of the second electronic device is a third - party headset according to the Model ID of the second electronic device.
[0190] In a possible implementation, when the first electronic device and the second electronic device are connected for the first time, the first electronic device determines whether the second electronic device is an electronic device of a specified type according to the device information of the second electronic device, including: determining that the first communication connection between the second electronic device and the first electronic device is established; obtaining the service information of the second electronic device; in response to the service information of the second electronic device including the identifier corresponding to the audio headset device and the service information of the second electronic device including the power information of the second electronic device, the first electronic device determines that the second electronic device is an electronic device of a specified type; in response to the service information of the second electronic device not including the identifier corresponding to the audio headset device, the first electronic device determines that the second electronic device is not an electronic device of a specified type.
[0191] Based on the above implementation, it can be determined that the first communication connection between the second electronic device and the first electronic device is established; obtain the service information of the second electronic device; in response to the service information of the second electronic device including the identifier corresponding to the audio headset device and the service information of the second electronic device including the power information of the second electronic device, the first electronic device determines that the second electronic device is an electronic device of a specified type; in response to the service information of the second electronic device not including the identifier corresponding to the audio headset device, the first electronic device determines that the second electronic device is not an electronic device of a specified type. Thus, by obtaining the service information and power information of the second electronic device, it is determined whether the second electronic device belongs to the specified type of electronic device, and thus it can be effectively determined whether the first pop - up window 800 needs to be popped up.
[0192] In a possible implementation, when the first electronic device and the second electronic device are connected for the first time, the first electronic device determines whether the second electronic device is an electronic device of a specified type according to the device information of the second electronic device, and further includes: in response to the service information of the second electronic device including the identifier corresponding to the audio headset device and the device name of the second electronic device being within the preset whitelist, the first electronic device determines that the second electronic device is an electronic device of a specified type.
[0193] Based on the above implementation, it is possible to determine the first communication connection between the second electronic device and the first electronic device; obtain the service information of the second electronic device; in response to the service information of the second electronic device including the identifier corresponding to the audio head-mounted device and the device name of the second electronic device being within the preset whitelist, the first electronic device determines that the second electronic device is an electronic device of a specified type, so as to determine whether the second electronic device belongs to the electronic device of the specified type through the service information and the device name of the second electronic device, and thus it is possible to effectively determine whether it is necessary to pop up the first pop-up window 800.
[0194] S2103 can be executed with reference to steps S404, S406, and S408.
[0195] S2104. When the second electronic device is an electronic device of a specified type, the first electronic device displays the first pop-up window 800 corresponding to the second electronic device.
[0196] In a possible implementation, the first pop-up window 800 includes: an icon of the second electronic device. The first electronic device displays the first pop-up window 800 corresponding to the second electronic device, including: the first electronic device obtains the Model ID of the second electronic device; the first electronic device obtains the icon corresponding to the Model ID as the icon of the second electronic device; the first electronic device generates the first pop-up window 800 corresponding to the second electronic device according to the icon of the second electronic device and displays it.
[0197] Among them, the icon of the second electronic device is as Figure 8 shown by the icon 801 in
[0198] Based on the above implementation, before generating the first pop-up window 800 corresponding to the second electronic device, the first electronic device can obtain the Model ID of the second electronic device; the first electronic device obtains the icon corresponding to the Model ID as the icon of the second electronic device; the first electronic device generates the first pop-up window corresponding to the second electronic device according to the icon of the second electronic device. Thus, the icon displayed in the first pop-up window 800 can correspond to the second electronic device, bringing a better user experience to the user.
[0199] S2104 can be executed with reference to step S409.
[0200] Based on the technical solution provided by the embodiments of the present application, when the first electronic device is communicatively connected to the second electronic device, the first electronic device obtains the device information of the second electronic device; the first electronic device determines whether the second electronic device is an electronic device of a specified type according to the device information of the second electronic device; when the second electronic device is an electronic device of a specified type, the first electronic device displays a first pop-up window corresponding to the second electronic device, and the first electronic device can use the first pop-up window 800 to prompt that there is a second electronic device, such as a third-party earphone being connected. This realizes the management of the second electronic device, thereby providing a better user experience for the user.
[0201] When the third-party earphone is communicatively connected to the electronic device, the first electronic device can use the first pop-up window 800 to prompt that there is a second electronic device being connected. Moreover, since the first pop-up window 800 includes a first control 804, after the user operates on the first control, the first electronic device can display a management interface. In response to the operation on the management interface, the first electronic device can perform management actions on the second electronic device. This facilitates the user to manage the second electronic device through the management interface, thereby providing a better user experience for the user.
[0202] When the second electronic device is first communicatively connected to the first electronic device, after the electronic device displays the first pop-up window 800, in response to the operation on the first control 804, it displays a first interface 900 of the second electronic device. The first interface 900 includes a second control 901 for triggering the addition of the MAC address of the second electronic device to the first list. Then, after the user operates on the second control 901, the MAC address of the second electronic device can be added to the first list. Through the above method, when the second electronic device is first communicatively connected to the first electronic device, the second electronic device is associated with the Honor Smart Space application, so that the second electronic device can be managed through the Honor Smart Space application.
[0203] After the user operates on the second control 901 of the first interface 900, the electronic device adds the MAC address of the second electronic device to the first list and displays a second pop-up window 1000. The second pop-up window 1000 includes a third control 1001 for triggering the display of a second interface 1200. In response to the operation on the third control 1001, the first electronic device can display the second interface 1200, enabling the user to manage the second electronic device through the second interface 1200 and understand the usage situation of the second electronic device. For example, understand the battery information of the second electronic device, thereby giving the user a better user experience.
[0204] In the case where the second electronic device communicates with the first electronic device for the non - first time, in response to an operation on the first control 804, the second interface 1200 is directly displayed, and the user can directly access the second interface 1200 to manage the second electronic device, thus simply and quickly realizing the management of the second electronic device.
[0205] In the second interface 1200, the power information of the second electronic device is displayed, which allows the user to know whether the power of the second electronic device is sufficient to support subsequent use. In the second interface 1200, the connection status of the second electronic device is displayed, which allows the user to know whether the second electronic device has been communicatively connected to the first electronic device. In the second interface 1200, the current sound effect and selectable sound effects of the second electronic device are displayed, which can meet the user's need to change the sound effect of the earphone. In the second interface 1200, the current sound quality and selectable sound qualities of the second electronic device are displayed, which can meet the user's need to change the sound quality of the earphone. In the second interface 1200, the setting entry for the function recommended for the second electronic device is displayed, which can meet the user's need to set functions for the second electronic device.
[0206] In the second interface 1200, it also includes the functions of the current second electronic device set historically, so that the user can access the functions previously set for the current second electronic device at any time when needed, and can also delete or change these functions.
[0207] In a possible implementation manner, before the first electronic device establishes a connection with the second electronic device, the method further includes: the first electronic device determines that it has received the connection broadcast information of the second electronic device; the first electronic device obtains the fourth identifier of the second electronic device from the connection broadcast information; the first electronic device determines that it is a non - first connection with the second electronic device according to the fourth identifier; the first electronic device displays the third pop - up window corresponding to the second electronic device, and the fourth control is included on the third pop - up window; in response to an operation on the fourth control, the first electronic device connects to the second electronic device.
[0208] Among them, the fourth identifier may be a MAC address. The first electronic device will save the MAC address information of the previously connected Bluetooth devices. For example, the MAC addresses of the previously connected Bluetooth devices are saved in the connected device list. Then, after the first electronic device establishes a communication connection with the third - party earphone, the first electronic device can check whether the MAC address of the third - party earphone exists in the connected device list. If it does not exist, the first electronic device can determine that the third - party earphone is a first - time connection. If it exists, the first electronic device can determine that the third - party earphone is a non - first connection.
[0209] After determining that it has received the connection broadcast information of the second electronic device which is not the first connection, the first electronic device can prompt the user through a third pop-up window that there is a second electronic device available for connection. Since a fourth control for triggering the connection to the second electronic device is included on the third pop-up window, in response to an operation on the fourth control, the first electronic device can establish a communication connection with the second electronic device. The first electronic device asks for the user's opinion before establishing a communication connection with the second electronic device, which can make the operation of the first electronic device better meet the user's needs and provide a better user experience for the user.
[0210] It can be understood that, in order to implement the above functions, the above-mentioned electronic device includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, combining the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of this application.
[0211] Figure 22 It is a schematic structural diagram of a multi-device collaboration device provided by an embodiment of this application. In one embodiment, the electronic device can implement the corresponding functions through the Figure 22 hardware device shown. As Figure 22 shown, the multi-device collaboration device can include: a display screen 1001, a memory 1002, a processor 1003, and a communication module 1004. The above-mentioned components can be connected through one or more communication buses 1005.
[0212] In one embodiment, the display screen 1001 can include a display panel 10011 and a touch sensor 10012. Among them, the display panel 10011 is used to display images, and the touch sensor 10012 can transmit the detected touch operation to the application processor to determine the type of touch event and provide a visual output related to the touch operation through the display panel 10011. The processor 1003 can include one or more processing units. For example: the processor 1003 can include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor, etc. Among them, different processing units can be independent devices or integrated in one or more processors. The memory 1002 is coupled to the processor 1003 and is used to store various software programs and / or multiple groups of instructions. The memory 1002 can include volatile memory and / or non-volatile memory.
[0213] When the software program and / or multiple sets of instructions in the memory 1002 are executed by the processor 1003, the method steps in the embodiments of the present application are executed.
[0214] The embodiments of the present application further provide an electronic device, which includes a display screen, a memory, and one or more processors; the display screen, the memory are coupled to the processor; wherein, computer program code is stored in the memory, and the computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device is enabled to execute the device interaction method provided in the first aspect and any possible design thereof.
[0215] The embodiments of the present application further provide a computer-readable storage medium, which includes computer instructions. When the computer instructions run on an electronic device, the electronic device is enabled to execute the device interaction method provided in the foregoing embodiments.
[0216] The embodiments of the present application further provide a computer program product, which includes executable instructions. When the computer program product runs on an electronic device, the electronic device is enabled to execute the device interaction method provided in the foregoing embodiments.
[0217] Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and conciseness of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0218] In several embodiments provided by the present application, it should be understood that the disclosed device / equipment and method can be implemented in other ways. For example, the device / equipment embodiments described above are merely illustrative. For example, the division of the module or unit is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in electrical, mechanical or other forms.
[0219] The unit described as a separated component may or may not be physically separated. The component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0220] In addition, in each embodiment of the present application, each functional unit can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0221] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0222] The above content is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A device interaction method, characterized in that, The method is applied to a first electronic device, and the method includes: The first electronic device establishes a connection with a second electronic device. When the second electronic device connects to the first electronic device, it connects through a non-custom connection protocol. The first electronic device obtains device information of the second electronic device. The first electronic device determines whether the second electronic device is a specified type of electronic device according to the device information of the second electronic device. When the second electronic device is the specified type of electronic device, the first electronic device displays a first pop-up window corresponding to the second electronic device.
2. The method according to claim 1, wherein The first electronic device determines whether the second electronic device is a specified type of electronic device according to the device information of the second electronic device, including: The first electronic device determines that the second electronic device establishes a first communication connection with the first electronic device. The first electronic device obtains service information of the second electronic device. In response to the service information of the second electronic device including a first identifier corresponding to an audio head-mounted device and the service information of the second electronic device including the battery information of the second electronic device, the first electronic device determines that the second electronic device is a specified type of electronic device. In response to the first identifier, the first electronic device determines that the second electronic device is not a specified type of electronic device.
3. The method according to claim 2, wherein The first electronic device determines whether the second electronic device is a specified type of electronic device according to the device information of the second electronic device, further including: In response to the first identifier and the device name of the second electronic device being within a preset whitelist, the first electronic device determines that the second electronic device is a specified type of electronic device.
4. The method according to claim 1, wherein The first pop-up window includes: an icon of the second electronic device. The first electronic device displays the first pop-up window corresponding to the second electronic device, including: The first electronic device obtains a second identifier of the second electronic device. The first electronic device obtains the icon corresponding to the second identifier as the icon of the second electronic device. The first electronic device generates the first pop-up window according to the icon of the second electronic device and displays the first pop-up window.
5. The method according to claim 1, wherein The first pop-up window includes a first control, and the method further includes: Determine that the second electronic device establishes a first communication connection with the first electronic device. In response to an operation on the first control, the first electronic device displays a first interface of the second electronic device. The first interface includes a second control, and the first interface is used to add the second electronic device to the device management space of the first electronic device. In response to an operation on the second control, the first electronic device adds a third identifier of the second electronic device to a first list. The first list is a list of a first account, and the first account is the account logged in to the device management space.
6. The method according to claim 5, wherein After the first electronic device adds the third identifier of the second electronic device to the first list in response to the user's operation on the second control, the method further includes: The first electronic device displays a second pop-up window. The second pop-up window includes a third control and a prompt message indicating that the second electronic device has been successfully added to the device management space; In response to an operation on the third control, the first electronic device displays the second interface, which includes device details information of the second electronic device.
7. The method according to claim 1, wherein The first pop-up window includes a first control, and the method further includes: Determining that the second electronic device and the first electronic device are not communicating for the first time; In response to an operation on the first control, the first electronic device displays a second interface, which includes device details information of the second electronic device.
8. The method according to claim 6 or 7, characterized in that, The device details information includes at least one of the following or a combination thereof: Battery information of the second electronic device, connection status of the second electronic device, current sound effects and selectable sound effects of the second electronic device, current sound quality and selectable sound quality of the second electronic device, a setting entry for a function recommended for the second electronic device, where the function includes performing a preset operation when a preset trigger condition is triggered.
9. The method according to claim 8, wherein In the case where the second electronic device is not communicating with the first electronic device for the first time, the device details information further includes: Functions of the current second electronic device set historically.
10. The method according to claim 1, wherein Before the first electronic device establishes a connection with the second electronic device, the method further includes: The first electronic device determines that it has received connection broadcast information from the second electronic device; The first electronic device obtains a fourth identifier of the second electronic device from the connection broadcast information; The first electronic device determines that it is not connecting to the second electronic device for the first time based on the fourth identifier; The first electronic device displays a third pop-up window corresponding to the second electronic device, and the third pop-up window includes a fourth control; In response to an operation on the fourth control, the first electronic device connects to the second electronic device.
11. An electronic device, characterized in that, Including: A display screen, a memory, and one or more processors; the display screen and the memory are coupled to the processor; wherein, computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device performs the device interaction method according to any one of claims 1-10.
12. A computer-readable storage medium, characterized in that, Including computer instructions, and when the computer instructions run on an electronic device, the electronic device performs the device interaction method according to any one of claims 1-10.