Icon display method and electronic equipment

By setting a sign for recording the charger access status in the electronic device, the problem of the charging icon not disappearing correctly is solved, the user experience is improved, and the icon display is ensured consistent with the actual situation.

CN119071384AActive Publication Date: 2024-12-03HONOR DEVICE CO LTD

Patent Information

Application Number
CN202411001989.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-12-03
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

When existing electronic devices connect multiple external devices through the dock, the charging icon does not disappear correctly, which affects the user experience.

Method used

During the process of the external device and the charger accessing the electronic device interface through the dock, a first flag is set for recording the charger access status, and by detecting the flag, whether the charging icon is displayed when the charger is disconnected.

Benefits of technology

Make sure that the icon display is consistent with the actual situation, improve the user experience, and avoid the problem that the charging icon still displays after the charger is disconnected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071384A_ABST
    Figure CN119071384A_ABST
Patent Text Reader

Abstract

The invention provides an icon display method and electronic equipment, the electronic equipment is provided with an electronic equipment interface for accessing external equipment, and first external equipment and a charger are connected with the electronic equipment interface through a docking station. The icon display method comprises the steps that when it is detected that first external equipment and a charger are disconnected with an electronic equipment interface, a first icon is not displayed, under the condition that a first mark is detected, a charging icon is not displayed, and the first external equipment and the electronic equipment do not supply power to each other. Therefore, in the process that the first external equipment and the charger are connected into the electronic equipment interface through the docking station, the first mark used for recording the connection state of the charger is additionally arranged, so that when the first external equipment and the charger are disconnected, the charging state of the charger is recorded; the problem that the charging icon is still displayed when the charger is disconnected can be solved by detecting the first mark, so that the display condition of the icon is consistent with the actual condition, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and in particular to an icon display method and electronic device. Background Art

[0002] Electronic devices are limited by their size and hardware cost and generally do not have too many interfaces reserved. Therefore, in order to improve the compatibility of external devices, it is necessary to expand a single USB (universal serialbus) interface into multiple interfaces of multiple types through an expansion dock.

[0003] In an application scenario, the USB interface is extended with at least two interfaces, one of which is plugged into a first external device (such as an analog headset) that does not supply power to the electronic device, and the other interface is plugged into a charger. At this time, the electronic device will normally display the icon corresponding to the first external device and the charging icon, but when the first external device and the charger are unplugged, only the icon corresponding to the first external device disappears, while the charging icon does not disappear. Summary of the invention

[0004] The present application provides an icon display method and an electronic device, which can solve the icon display problem that occurs when multiple external devices connected through a docking station are disconnected.

[0005] In a first aspect, an embodiment of the present application provides an icon display method, which is applied to an electronic device, wherein the electronic device is provided with an electronic device interface for accessing an external device, and the icon display method includes: when it is detected that a first external device and a charger are disconnected from the electronic device interface, not displaying a first icon, and when a first mark is detected, not displaying a charging icon, wherein the first external device and the charger are connected to the electronic device interface through an expansion dock, the first external device and the electronic device do not supply power to each other, and the first mark is set in the process of the first external device and the charger accessing the electronic device interface through the expansion dock, and is used to record the access status of the charger.

[0006] In the technical solution of the present application, a first flag for recording the access status of the charger is additionally set during the process of the first external device and the charger being connected to the interface of the electronic device through the expansion dock. In this way, when the first external device and the charger are disconnected, the problem that the charging icon is still displayed when the charger is disconnected can be solved by detecting the first flag, so that the display of the icon is consistent with the actual situation, thereby improving the user experience.

[0007] The first external device may be an analog headset.

[0008] It should be noted that the traditional display logic of the charging icon is whether there is a valid power bus (Vbus) signal when it is inserted, and the disappearance logic is to decide whether to disappear according to the type of external device recognized by the electronic device when it is unplugged. However, no matter how many interfaces the electronic device interface expands, the electronic device can only recognize one type of external device at the same time, so the analog headset and charger are connected to the electronic device through the expansion dock, and the analog headset type is usually stored as the external device type. In this way, when the analog headset and charger are unplugged, the charger will not be able to notify the disappearance of the charging icon according to the type of external device. Under normal circumstances, the analog headset will not power the electronic device, and the electronic device will not power the analog headset, so it will not notify the disappearance of the charging icon. The above situation will cause the charging icon to be displayed on the screen of the electronic device all the time, but in fact the charger has been disconnected, which seriously affects the user experience.

[0009] Optionally, in a possible implementation of the first aspect, the icon display method further includes: when it is detected that the first external device and the charger are connected to the electronic device interface, displaying the first icon and displaying the charging icon. After the first external device is connected, the external device type can be detected to determine whether the first external device is successfully connected, and then the driver is notified to display the first icon. After the charger is connected, the Vbus signal can be detected to determine whether the charger is successfully connected, and then the charging icon is displayed.

[0010] Optionally, in another possible implementation of the first aspect, the displaying of the first icon includes: detecting and obtaining the type of the external device; and displaying the first icon when the type of the external device is a first type corresponding to the first external device.

[0011] Since there are many possibilities for external devices to be connected through the expansion dock, the following introduces several scenarios that may exist in the process of external device type detection. The first scenario is to first connect the first external device and the charger to the expansion dock, and then connect the expansion dock as a whole to the electronic device interface. At this time, due to the internal timing of the electronic device or the priority of the external device, the first type corresponding to the first external device is usually determined as the external device type; the second scenario is to first connect an empty expansion dock that is not connected to any external device to the electronic device interface, then connect the first external device to the expansion dock, and finally connect the charger to the expansion dock. At this time, the first type corresponding to the first external device that was connected first will be determined as the external device type; the third scenario is to first connect an empty expansion dock that is not connected to any external device to the electronic device interface, and then connect the charger to the expansion dock. At this time, the second type corresponding to the charger that was connected first will be determined as the external device type. If the first external device is then connected to the expansion dock, the external device type will be switched from the second type to the first type corresponding to the first external device.

[0012] In addition, when the first external device is an analog headset, the first icon may be a headset icon accordingly.

[0013] Optionally, in another possible implementation of the first aspect, the above-mentioned detection obtains the type of external device, including: determining the connection status of the external device by detecting the configuration channel (CC) pin of the electronic device interface; when the connection status is that an external device is connected, identifying the type of external device by detecting the signal output by the CC pin. Among them, in the USB Type-C interface, the CC pin is used for connection and configuration between devices. That is to say, when the electronic device interface is a USB Type-C interface, the connection status of the external device can be determined by detecting whether the CC pin is valid, ensuring that the connection between the external device and the electronic device is correctly established, and also ensuring that the type of external device can be correctly identified by detecting the signal output by the CC pin.

[0014] Optionally, in another possible implementation of the first aspect, the icon display method further includes: when it is detected that the signal output by the CC pin disappears, determining that the first external device is disconnected from the electronic device interface. The electronic device determines which type of external device is disconnected by detecting a change in the CC pin output signal. Specifically, when the CC pin output signal disappears, it is determined that the first external device is disconnected according to the recorded first type (i.e., the external device type corresponding to the first external device).

[0015] Optionally, in another possible implementation of the first aspect, the icon display method further includes: when the external device type is the second type corresponding to the charger, detecting and obtaining a signal of the power bus Vbus; when there is a signal on Vbus, displaying a charging icon and setting a first flag. Unlike external devices such as analog headphones that do not supply power to the electronic device, the electronic device determines whether a connection with the charger is established by detecting whether the signal of Vbus is valid. When the external device type is the second type corresponding to the charger, according to the display logic of the charging icon, the signal of the power bus Vbus is further detected, and by detecting whether there is a signal on Vbus, if there is a signal, it means that the charger is providing power, and the charging icon will be displayed on the electronic device. If the connection of the first external device is not detected before the charger is disconnected, the charger normally does not display the charging icon according to the second type previously identified by the electronic device (i.e., the external device type corresponding to the charger).

[0016] Optionally, in another possible implementation of the first aspect, the icon display method further includes: after determining that the external device type is the second type, if it is re-detected that the first external device is connected to the electronic device interface through the expansion dock, and the charger is not disconnected from the electronic device interface, then the external device type is updated from the second type to the first type. This is the third scenario that exists in the aforementioned external device type detection process, that is, first connect an empty expansion dock that is not connected to any external device to the electronic device interface, and then connect the charger to the expansion dock. At this time, the second type corresponding to the first connected charger will be determined as the external device type. If the first external device is then connected to the expansion dock, the external device type will be switched from the second type to the first type corresponding to the first external device.

[0017] Optionally, in another possible implementation of the first aspect, the above-mentioned display of the charging icon includes: detecting a signal of Vbus; when there is a signal on Vbus, displaying the charging icon and setting a first flag. When the charger is connected to the electronic device through the expansion dock, the electronic device will detect whether there is a signal on Vbus. If there is a signal, it means that the charger is providing power, and the charging icon will be displayed on the electronic device. In addition, in order to avoid the charging icon still being displayed when the charger is subsequently unplugged, when it is determined that the charger is connected to the electronic device through the expansion dock, it is necessary to set the first flag so that when the first external device is detected and the charger is disconnected from the electronic device interface, it can be determined by detecting the first flag that the charging icon is not displayed.

[0018] In a second aspect, an embodiment of the present application provides an icon display device, which includes a unit composed of software and / or hardware for executing the icon display method of the first aspect.

[0019] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electronic device can implement any one of the methods of the first aspect described above.

[0020] In a fourth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device. The chip system includes one or more processors, and the one or more processors are used to call computer instructions to enable the electronic device to execute any one of the methods of the above-mentioned first aspect.

[0021] Optionally, the chip system also includes a memory, and the memory is electrically connected to the processor.

[0022] Optionally, the chip system may also include a communication interface.

[0023] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes instructions. When the instructions are executed on an electronic device, the electronic device can execute any one of the methods of the first aspect above.

[0024] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by an electronic device, the electronic device can implement any one of the methods of the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0026] Figure 1 It is a schematic diagram of a scenario in which an external device is connected to an electronic device through a docking station;

[0027] Figure 2 It is a flowchart of an icon display method provided in an embodiment of the present application;

[0028] Figure 3 This is a flowchart of an icon display method provided in an embodiment of the present application;

[0029] Figure 4 is a block diagram of a software system of an electronic device provided in an embodiment of the present application;

[0030] Figure 5 It is a timing interaction diagram of an icon display method provided in an embodiment of the present application;

[0031] Figure 6 It is a schematic diagram of the interface display of a traditional solution provided in the embodiment of the present application and the embodiment of the present application;

[0032] Figure 7 is a structural schematic diagram of an icon display device provided in an embodiment of the present application;

[0033] Figure 8 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0035] Reference Figure 1, is a schematic diagram of a scenario in which an external device is connected to an electronic device through a docking station. Figure 1 As shown, the electronic device is provided with a USB interface for accessing an external device (an example of an electronic device interface), the USB interface is inserted into a docking station (hub, also called a hub), and at least two interfaces are extended, at least one of the extended interfaces is adapted to the first external device (taking the first external device as an analog headset as an example, the docking station needs to include at least a 3.5mm audio interface), at least one interface is adapted to the charger, one of the interfaces is inserted into the first external device, and the other interface is inserted into the charger. The first external device is an external device that does not supply power to the electronic device. The extended interface type can be a USB TYPE-C interface, a USB TYPE-A interface, a TRS interface, an RJ45 (registered jack 45) network port, an asynchronous transmission (RS232) standard interface, an HDMI interface, and other interfaces.

[0036] Figure 1 The electronic device in the example of a mobile phone should be understood that the electronic device in the embodiment of the present application can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. Exemplary embodiments of electronic devices include but are not limited to electronic devices equipped with the MTK platform. The embodiment of the present application does not limit the specific type of electronic device.

[0037] Figure 1 The first external device in the example of an analog headset, it should be understood that the first external device in the embodiment of the present application can also be other external devices, as long as they do not supply power to each other when connected to the electronic device. For ease of understanding, the following uses an analog headset instead of the first external device for explanation. An analog headset refers to a headset that transmits audio via an analog signal. Unlike digital headsets, analog headsets directly receive analog signals from an audio source (such as a 3.5mm plug or other type of audio plug) and convert them into sound waves for the user to listen to. Analog headsets do not supply power to electronic devices, and electronic devices should not supply power to analog headsets.

[0038] Figure 1 The types of chargers can be ordinary chargers, fast charging chargers and power delivery (PD) chargers. A PD charger can be understood as a charger that uses the PD fast charging protocol.

[0039] In an application scenario, when the electronic device detects that the analog headset and the charger are connected to the USB interface (an example of the electronic device interface) through the expansion dock, the electronic device will normally display the headset icon (an example of the first icon) and the charging icon, but when the analog headset is disconnected from the charger, only the headset icon disappears, and the charging icon does not disappear. The reason for this is that the traditional display logic of the charging icon is whether there is a valid Vbus signal when inserted, and the disappearance logic is to determine whether to disappear according to the type of external device recognized by the electronic device when unplugged. However, no matter how many interfaces the electronic device interface expands, the electronic device can only recognize one type of external device at the same time, so the analog headset and the charger are connected to the electronic device through the expansion dock, and the analog headset type (an example of the first type) is usually stored as the external device type. In this way, when the analog headset and the charger are unplugged, the charger cannot notify the disappearance of the charging icon according to the type of external device. Under normal circumstances, the analog headset will not power the electronic device, and the electronic device will not power the analog headset, so it will not notify the disappearance of the charging icon. The above situation will cause the charging icon to be displayed on the screen of the electronic device all the time, but in fact the charger has been disconnected, which seriously affects the user experience.

[0040] In view of this, an embodiment of the present application provides an icon display method, which mainly sets a first flag for recording the access status of the charger during the process of the first external device and the charger being connected to the electronic device interface through the expansion dock. In this way, when the first external device and the charger are disconnected, the problem that the charging icon is still displayed when the charger is disconnected can be solved by detecting the first flag, so that the display of the icon is consistent with the actual situation, thereby improving the user experience.

[0041] Reference Figure 2 , shows a schematic diagram of a flow chart of an icon display method provided by an embodiment of the present application. Figure 2 Each step is described below.

[0042] Step 201: When it is detected that the analog earphone and the charger are connected to the interface of the electronic device, the earphone icon and the charging icon are displayed.

[0043] It should be noted that there are many types of external devices connected to the interface of the electronic device, and after different types of external devices are connected to the interface of the electronic device, the electronic device needs to start different functions. Therefore, when the external device is connected to the interface of the electronic device, the electronic device needs to identify the type of the external device. In other words, after the analog headset is connected, the type of external device can be detected to determine that the analog headset is successfully connected, and then the driver is notified to display the headset icon. Then based on the display logic of the charging icon, that is, after the charger is connected, the Vbus signal can be detected. If there is a signal, it means that the charger is providing power, and it is determined that the charger is successfully connected, and then the charging icon is displayed.

[0044] In the embodiment of the present application, since there are many possibilities for accessing an external device through a docking station, several scenarios that may exist in the process of detecting the type of the external device are introduced below.

[0045] The first scenario is to first connect the analog headphones and charger to the expansion dock, and then connect the expansion dock as a whole to the electronic device interface. At this time, due to the internal timing of the electronic device or the priority of the external device, the analog headphones type corresponding to the analog headphones is usually determined as the external device type.

[0046] The second scenario is to first connect an empty expansion dock that is not connected to any external device to the electronic device interface, then connect the analog headset to the expansion dock, and finally connect the charger to the expansion dock. At this time, the analog headset type corresponding to the analog headset connected first will be determined as the external device type.

[0047] The third scenario is to first connect an empty expansion dock that is not connected to any external device to the interface of an electronic device, and then connect the charger to the expansion dock. At this time, the charger type corresponding to the first connected charger (an example of the second type, which can be a PD charger, etc.) will be determined as the external device type. If an analog headset is then connected to the expansion dock, the external device type will be switched from the second type to the analog headset type.

[0048] In one embodiment, no matter which of the above scenarios the external device type detection process is, if the external device type detected is an analog headset type, a headset icon is displayed.

[0049] In a possible implementation, in a USB Type-C interface, the CC pin is used for connection and configuration between devices. That is, when the electronic device interface is a USB Type-C interface, the connection status of the external device can be determined by detecting whether the CC pin is valid, ensuring that the connection between the external device and the electronic device is correctly established, and the signal output by the CC pin is detected to ensure that the type of the external device can be correctly identified. That is, the connection status of the external device can be determined by first detecting the CC pin of the electronic device interface, and then when an external device is detected to be connected, the type of the external device can be identified by detecting the signal output by the CC pin.

[0050] It should be noted that the USB Type-C interface has two CC pins (CC1 and CC2). The CC pins can be used to determine the connection direction. Since USB Type-C is reversible, the CC pins can be used to identify which device is an electronic device and which device is an external device. The CC pins can also be used to negotiate PD, including charging capabilities and the direction of current flow. The CC pins can also be used for data transmission configuration and signal detection. In addition, different types of external devices have different CC pin connection methods for the USB Type-C interface, so the connection status of the external device and the type of external device can be determined by detecting the CC pins.

[0051] In one embodiment, when an external device is connected to an electronic device interface, the CC pin of the USB Type-C interface of the external device is connected to the CC pin of the electronic device interface, which will form a voltage of different values ​​at the CC pin of the electronic device interface, and this voltage will disappear when not connected. In this way, it is possible to determine whether the CC pin is valid based on the voltage value of the CC pin of the electronic device interface, thereby determining whether the external device is connected effectively. Further, the type of the external device can be determined by the voltage value of the CC pin.

[0052] In another embodiment, the USB Type-C interface will perform resistance detection through the CC pin when connected, and the external device will apply a specific resistance value (such as 5.1kΩ or 10kΩ) to the CC pin. The electronic device can determine the connection status and the type of external device by measuring the resistance value of the CC pin.

[0053] In another embodiment, in certain scenarios, the external device will send a specific signal (such as a pulse signal) through the CC pin to confirm the connection, and the electronic device can detect these signals to determine whether the CC pin is valid and determine the type of the external device.

[0054] In another embodiment, a PD controller may be used to monitor the state of the CC pin. The PD controller may have built-in monitoring and management functions for the CC pin. Real-time monitoring of the CC pin state is achieved through the state register of the controller.

[0055] In another embodiment, the USB Type-C protocol usually implements a state machine to manage the connection state, which may include the validity of the CC pin. The current connection state can be determined through the state transition of the state machine.

[0056] In the embodiment of the present application, the electronic device can also determine which type of external device is disconnected by detecting the change of the CC pin output signal. Specifically, if the type of external device identified when the analog headset and charger were connected was an analog headset, then when the CC pin output signal disappears, it can be determined that the analog headset is disconnected based on the recorded analog headset type.

[0057] It should be noted that if no intervention is made during the process of analog headphones and chargers being connected through the expansion dock, then when the connection is disconnected, the charger cannot notify the disappearance of the charging icon according to the type of external device, resulting in the charging icon being displayed on the electronic device screen all the time. Therefore, in the embodiment of the present application, the Vbus signal can be first detected to determine that the charger has been connected, and then the charging icon is displayed and the first flag is set, and the first flag is used to record the connection status of the charger.

[0058] Step 202: When it is detected that the analog headset and the charger are disconnected from the electronic device interface, the headset icon corresponding to the analog headset is not displayed; and when the first mark is detected, the charging icon corresponding to the charger is not displayed.

[0059] In an embodiment of the present application, by additionally setting a first flag for recording the access status of the charger during the process of the analog headset and the charger being connected to the interface of the electronic device through the expansion dock, when the analog headset and the charger are disconnected, the problem of the charging icon still being displayed when the charger is disconnected can be solved by detecting the first flag, so that the display of the icon is consistent with the actual situation, thereby improving the user experience.

[0060] In one embodiment, the first flag may be an Audio with Vbus flag, which indicates that when the external device type is an analog headset, a Vbus signal is detected, that is, both the analog headset and the charger are connected to the electronic device. When the analog headset is detected to be disconnected, it is further determined whether the Audio with Vbus flag is recorded. If so, it indicates that the charger is also disconnected, and the notification does not display the charging icon.

[0061] The above embodiment introduces a processing method when the external device type is an analog headset type. The following further introduces another embodiment, that is, the detected external device type is the second type corresponding to the charger.

[0062] In one embodiment, unlike external devices such as analog headphones that do not supply power to the electronic device, the electronic device determines whether it has established a connection with the charger by detecting whether the signal of Vbus is valid. When the external device type is the second type corresponding to the charger, according to the display logic of the charging icon, the signal of the power bus Vbus is further detected, and by detecting whether there is a signal on Vbus, if there is a signal, it means that the charger is providing power, and the charging icon will be displayed on the electronic device. That is to say, when the external device type is the second type corresponding to the charger, the signal of the power bus Vbus is detected; when there is a signal on Vbus, the charging icon is displayed and the first flag is set.

[0063] If the connection of the analog headset is not detected before the charger is disconnected, the charger does not need to detect the first mark, and can directly not display the charging icon according to the second type previously identified by the electronic device (i.e., the external device type corresponding to the charger). Of course, the step of detecting the first mark can also be added to reduce the possibility of icon display errors.

[0064] In one embodiment, after determining that the external device type is the second type, if it is re-detected that the analog headset is connected to the electronic device interface through the expansion dock, and the charger is not disconnected from the electronic device interface, the external device type is updated from the second type to the first type. This is also the third scenario that exists in the aforementioned external device type detection process, that is, first connect an empty expansion dock that is not connected to any external device to the electronic device interface, and then connect the charger to the expansion dock. At this time, the second type corresponding to the charger that was first connected will be determined as the external device type. If the analog headset is also connected to the expansion dock, the external device type will be switched from the second type to the analog headset type. When the external device type is switched to the analog headset type, the subsequent steps are the same as those described in the aforementioned embodiment, and will not be repeated here.

[0065] An icon display method provided in the above embodiment of the present application is applied to an electronic device, the electronic device is provided with an electronic device interface for accessing an external device, and the first external device and the charger are connected to the electronic device interface through an expansion dock, and the above icon display method includes: when it is detected that the first external device and the charger are disconnected from the electronic device interface, the first icon is not displayed, and when the first mark is detected, the charging icon is not displayed, wherein the first external device and the electronic device do not supply power to each other, and the first mark is set in the process of the first external device and the charger accessing the electronic device interface through the expansion dock, and is used to record the access status of the charger. Therefore, by additionally setting the first mark for recording the access status of the charger in the process of the first external device and the charger accessing the electronic device interface through the expansion dock, when the first external device and the charger are disconnected, the problem of the charging icon still being displayed when the charger is disconnected can be solved by detecting the first mark, so that the display of the icon is consistent with the actual situation, and the user experience is improved.

[0066] In order to facilitate understanding of the above embodiment, a specific example is used below to illustrate the execution steps of an electronic device when a docking station is inserted and unplugged.

[0067] Reference Figure 3 , shows an example flow chart of an icon display method provided in an embodiment of the present application. Figure 3 (a) is a flow chart showing the process of docking station access. Figure 3 (b) is a schematic diagram of the process when the expansion dock is unplugged. Figure 3 The steps shown are introduced.

[0068] Step 311, the expansion dock is inserted.

[0069] It should be noted that in the implementation Figure 3 Before the process shown, the simulated earphone and charger have been connected to the expansion dock, which corresponds to the first scenario of the expansion dock connection in the above implementation. In this case, the simulated earphone and charger are simultaneously connected to the electronic device through the expansion dock.

[0070] Step 312, detecting whether the signal output by the CC pin is valid.

[0071] Specifically, whether the signal output by the CC pin is valid can be determined by detecting the voltage, resistance, specific signal (such as a pulse signal), PD controller, and state machine state of the CC pin.

[0072] If it is determined that the signal output by the CC pin is valid, step 313 is executed; if it is determined that the signal output by the CC pin is invalid, step 315 is executed.

[0073] For example, when an external device is connected to an electronic device interface, the CC pin of the USB Type-C interface of the external device is connected to the CC pin of the electronic device interface, which will form a voltage of different values ​​at the CC pin of the electronic device interface. When not connected, this voltage disappears. In this way, based on the voltage value of the CC pin of the electronic device interface, it can be determined whether the CC pin is valid, thereby determining whether the external device is connected effectively. Furthermore, the type of external device can be determined by the voltage value of the CC pin.

[0074] Step 313: Identify the CC type (an example of an external device type) based on the signal output by the CC pin, and notify the driver to prepare the corresponding function.

[0075] As mentioned above, the CC type can also be determined by detecting the voltage, resistance, etc. at the CC pin. Then the driver is notified to prepare the corresponding function. Assuming that the external device type is identified as a charger, the driver will activate the charging function and adjust the charging current and voltage.

[0076] In this embodiment, the type of the analog earphone is identified.

[0077] Step 314, the notification displays the earphone icon.

[0078] If the external device type detected is an analog headset type, it is determined that the analog headset is successfully connected, and a headset icon is displayed.

[0079] Step 315, check whether Vbus is valid.

[0080] The traditional display logic of the charging icon is whether there is a valid Vbus signal when plugged in, and the disappearance logic is to determine whether to disappear according to the type of external device recognized by the electronic device when unplugged. Therefore, by detecting whether Vbus is valid, it can be determined whether the charger is successfully connected. If Vbus is detected to be valid, step 316 is executed; if not, step 317 is executed to end the process.

[0081] Step 316, record the Audio with Vbu status.

[0082] Among them, Audio with Vbus is used to indicate that when the identified external device type is an analog headset, a Vbus signal is detected, that is, both the analog headset and the charger are connected to the electronic device.

[0083] Step 317, end.

[0084] The above steps are for when the expansion dock is connected. The following steps are for when the expansion dock is unplugged.

[0085] Step 321, unplug the expansion dock.

[0086] Step 322, detecting whether the signal outputted by the CC pin disappears.

[0087] In this embodiment, if the signal output from the CC pin disappears, step 323 is executed; if not, the process returns to step 322.

[0088] Step 323, notifying the driver according to the CC type recorded during insertion.

[0089] Among them, the analog earphone type is identified in step 313. If the CC pin output signal disappears, it can be determined that the disconnected analog earphone is the analog earphone according to the recorded analog earphone type. At this time, the driver can be notified to turn off the corresponding function.

[0090] Step 324, notify that the headset icon is not displayed.

[0091] When it is determined that the analog headset is disconnected from the electronic device interface, the notification does not display the headset icon.

[0092] Step 325, determine whether there is an Audio with Vbus state.

[0093] In this embodiment, if the Audio with Vbus status is detected, it means that the charger has been connected to the electronic device through the docking station, so it is necessary to notify that the charging icon is not displayed when the charger is unplugged, that is, execute step 326; if the Audio with Vbus status is not detected, it means that the charger is plugged in, then execute step 327 and end the process.

[0094] Step 326, notify that the charging icon is not displayed.

[0095] Step 327, end.

[0096] Therefore, by additionally setting an Audio with Vbus flag for recording the access status of the charger when the analog headset and the charger are connected to the electronic device through the expansion dock, when the analog headset and the charger are disconnected, the problem that the charging icon is still displayed when the charger is disconnected can be solved by detecting the Audio with Vbus flag, so that the display of the charging icon is consistent with the actual situation, thereby improving the user experience.

[0097] In some embodiments, the above icon display method can be applied to include Figure 4 On electronic devices with the software system shown, see Figure 4The layered architecture of electronic devices divides software into several layers, each with clear roles and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system layer, and the kernel layer.

[0098] The application layer can include a series of application packages. Figure 4 As shown, the application package may include third-party applications, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0099] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 4 As shown, the application framework layer may include a system user interface (SystemUI). SystemUI may be used to construct a display interface, which may be composed of one or more views, such as a view for displaying a headphone icon, a view for displaying a charging icon, a view for displaying text, and a view for displaying a picture. SystemUI includes visual controls, such as controls for displaying text, controls for displaying pictures, and the like.

[0100] In addition, the application framework layer can also include a window manager, a content provider, a phone manager, a resource manager, a notification manager, etc. The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make these data accessible to applications. These data may include video, images, audio, dialed and received calls, browsing history and bookmarks, phone books, etc. The phone manager is used to provide communication functions for electronic devices, such as call status management (including connected, hung up, etc.). The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of an icon or scroll bar text, such as a notification of an application running in the background. The notification manager can also be a notification that appears on the screen in the form of a dialog window, such as a text message prompt in the status bar, a prompt sound, vibration of the electronic device, flashing indicator light, etc.

[0101] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0102] The system library can include multiple functional modules, such as: surface manager, media libraries, 3D graphics processing library (such as: OpenGL ES), 2D graphics engine (such as: SGL), etc. The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0103] The kernel layer is the layer between hardware and software. The kernel layer contains functional modules such as PD, USB, audio (AUDIO), and charging. Among them, PD is a protocol for managing power transmission between USB devices. PD allows power negotiation between devices to support higher power transmission and can dynamically adjust voltage and current. The USB module is responsible for managing the connection and communication of all USB devices, including data transmission, device identification, and driver loading. The AUDIO module is responsible for managing audio input and output, including audio playback, recording, and audio effect processing. The charging module is responsible for managing the charging process of the device, including battery charging status monitoring and charging strategy implementation.

[0104] In addition, the kernel layer also includes at least display driver, camera driver, sensor driver ( Figure 4 not shown).

[0105] In the above Figure 4 Based on the software architecture shown, Figure 5 A timing interaction diagram of an icon display method provided by an embodiment of the present application is shown below. Figure 5 Make an introduction.

[0106] Among them, in the implementation Figure 5 Before the process shown, the analog headset and charger have been connected to the expansion dock, which corresponds to the first scenario of the expansion dock access in the aforementioned implementation. In this case, the analog headset and charger are simultaneously connected to the electronic device through the expansion dock. Specifically, the analog headset and charger are first connected to the expansion dock, and then the expansion dock is connected to the electronic device interface as a whole. At this time, due to the internal timing of the electronic device or the priority of the external device, the analog headset type corresponding to the analog headset is usually determined as the external device type.

[0107] Below Figure 5 The steps shown are introduced.

[0108] Step 501: When the expansion dock is connected to the electronic device, the PD detects changes in the CC pin and Vbus.

[0109] Step 502: The PD reports the CC pin status to the USB module.

[0110] Step 503: The USB module indicates that the external device is AUDIO according to the CC pin.

[0111] Step 504: The USB module notifies the AUDIO module that the audio device is plugged in.

[0112] Step 505: The AUDIO module notifies the UI to display the headphone icon.

[0113] Step 506: PD reports the Vbus status to the USB module.

[0114] Step 507: The USB module indicates that there is external power supply according to Vbus.

[0115] Step 508: The USB module notifies the charging module that a charger is plugged in.

[0116] Step 509: The USB module records the Audio with Vbus flag.

[0117] Step 510: The charging module notifies the UI to display the charging icon.

[0118] It should be noted that in the above steps, when the electronic device is inserted into the docking station, the PD detects changes in the CC pin (for example, detecting changes in parameters such as the voltage, resistance, and pulse signal of the CC pin) and changes in Vbus (for example, detecting whether there is a voltage signal on the Vbus). After that, the PD reports to the USB module after obtaining the CC pin status. If the external device is determined to be AUDIO by detecting the signal at the CC pin, the USB module notifies the AUDIO module that the audio device (analog headset) is connected. Finally, the AUDIO module notifies the SystemUI to display the headset icon. In addition, after obtaining the Vbus status, the PD also reports to the USB module. If it is determined that there is a valid Vbus signal after detecting the Vbus status, that is, there is external power supply, the USB module notifies the charging module that the charging device is connected, and additionally sets the Audio with Vbus flag for recording the access status of the charger. Finally, the charging module notifies the SystemUI to display the charging icon.

[0119] It should be noted that, in addition to the first scenario, two other scenarios are described in the aforementioned embodiments. The second scenario is to first connect an empty expansion dock that is not connected to any external device to the electronic device interface, then connect the analog headset to the expansion dock, and finally connect the charger to the expansion dock. At this time, the analog headset type corresponding to the analog headset connected first will be determined as the external device type. The third scenario is to first connect an empty expansion dock that is not connected to any external device to the electronic device interface, and then connect the charger to the expansion dock. At this time, the charger type corresponding to the charger connected first will be determined as the external device type. If the analog headset is then connected to the expansion dock, the external device type will be switched from the second type to the first type corresponding to the analog headset.

[0120] It can be seen that as long as the analog headset and charger are connected to the electronic device interface through the expansion dock, the CC types finally identified are all analog headset types, which are within the scope covered by the above steps. In the second and third scenarios, Figure 5 The same process as shown applies.

[0121] Step 511, when the electronic device is unplugged from the docking station, the PD detects changes in the CC pin and Vbus.

[0122] Step 512: The PD reports the CC pin status to the USB module.

[0123] Step 513: The USB module indicates that the external device has been unplugged according to the CC pin.

[0124] Step 514: The USB module notifies the AUDIO module to unplug the audio device according to the recorded CC type being an audio device.

[0125] Step 515: The AUDIO module notifies the UI not to display the headphone icon.

[0126] Step 516: The USB module detects the existence of the Audio with Vbus flag.

[0127] Step 517: The USB module notifies the charging module to unplug the charger.

[0128] Step 518: The charging module notifies the UI not to display the charging icon.

[0129] It should be noted that when the docking station is unplugged, the PD detects changes in the CC pin (for example, detecting changes in parameters such as the voltage, resistance, and pulse signal of the CC pin) and changes in Vbus (for example, detecting whether there is a voltage signal on the Vbus). After that, the PD reports the CC pin status to the USB module. If it is detected that the signal at the CC pin disappears, it is determined that the external device has been unplugged. The USB module determines that the external device is an audio device based on the CC type recorded when the docking station is inserted, and notifies the AUDIO module that the audio device (analog headphones) is unplugged. Finally, the AUDIO module notifies SystemUI that the headphone icon is not displayed. In addition, when it is determined that the analog headphones are unplugged, the USB module detects whether there is an Audio with Vbus flag. If so, it notifies the charging module that the charger has been unplugged. Finally, the charging module notifies SystemUI that the charging icon is not displayed.

[0130] Therefore, by additionally setting an Audio with Vbus flag for recording the access status of the charger when the analog headset and the charger are connected to the electronic device through the expansion dock, when the analog headset and the charger are disconnected, the problem that the charging icon is still displayed when the charger is disconnected can be solved by detecting the Audio with Vbus flag, so that the display of the charging icon is consistent with the actual situation, thereby improving the user experience.

[0131] In order to make the effect of the embodiment of the present application more intuitive, Figure 6 Provide explanation.

[0132] Figure 6 A schematic diagram of the interface display of a traditional solution and an embodiment of the present application is shown. Figure 6 (a) is a schematic diagram of the interface display of the traditional solution. Figure 6 (b) is a schematic diagram of the interface display of an embodiment of the present application.

[0133] like Figure 6 As shown in (a), when the electronic device is inserted into the docking station, the headphone icon and the charging icon are displayed normally. When the docking station is unplugged, only the headphone icon disappears, but the charging icon does not disappear. The reason for this problem is that the traditional display logic of the charging icon is whether there is a valid power bus (Vbus) signal when it is inserted, and the disappearance logic is to determine whether it disappears according to the type of external device recognized by the electronic device when it is unplugged. However, no matter how many interfaces the electronic device interface expands, the electronic device can only recognize one type of external device at the same time, so the analog headset and the charger are connected to the electronic device through the docking station, and the analog headset type is usually stored as the external device type. In this way, when the analog headset and the charger are unplugged, the charger cannot notify the disappearance of the charging icon according to the type of external device. Under normal circumstances, the analog headset will not power the electronic device, and the electronic device will not power the analog headset, so it will not notify the disappearance of the charging icon. The above situation will cause the charging icon to be displayed on the screen of the electronic device all the time, but in fact the charger has been disconnected, which seriously affects the user experience.

[0134] The embodiment of the present application mainly sets a first mark for recording the access status of the charger when the first external device and the charger are connected to the electronic device interface through the expansion dock. In this way, when the first external device and the charger are disconnected, the problem of the charging icon still being displayed when the charger is disconnected can be solved by detecting the first mark, so that the display of the icon is consistent with the actual situation, improving the user experience. After adopting the solution described in the embodiment of the present application, the interface display when the expansion dock is inserted and unplugged is as follows: Figure 6 As shown in (b), when the electronic device is inserted into the expansion dock, the headphone icon and the charging icon are displayed normally. When the expansion dock is unplugged, the headphone icon and the charging icon disappear. The display of the icons is consistent with the actual situation, which can improve the user experience.

[0135] The above mainly introduces the method of the embodiment of the present application in conjunction with the accompanying drawings. It should be understood that although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence, these steps are not necessarily performed in sequence in the order shown in the figure. Unless clearly stated in this article, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the various embodiments described above may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a part of the steps or stages in other steps. The device of the embodiment of the present application is introduced below in conjunction with the accompanying drawings.

[0136] Reference Figure 7 , is a schematic diagram of the structure of an icon display device provided in an embodiment of the present application. For the sake of convenience, only the parts related to the embodiment of the present application are shown. Figure 7 As shown, the icon display device 700 includes a processing unit 701. The icon display device 700 can be integrated in any electronic device whose interface is adapted to multiple types of external devices. For another example, the icon display device 700 can also be used to execute Figure 2 , Figure 3 and Figure 4 The process shown.

[0137] The icon display device 700 can be used to execute any of the above icon display methods. For example, the processing unit 701 can be used to execute steps 201-202.

[0138] The icon display device provided in the embodiment of the present application mainly sets a first mark for recording the access status of the charger when the first external device and the charger are connected to the electronic device interface through the expansion dock. In this way, when the first external device and the charger are disconnected, the problem that the charging icon is still displayed when the charger is disconnected can be solved by detecting the first mark, so that the display of the icon is consistent with the actual situation, thereby improving the user experience.

[0139] It should be noted that the aforementioned explanation of the icon display method embodiment is also applicable to the icon display device 700 of this embodiment, and will not be repeated here.

[0140] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0141] Figure 8 Schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. Figure 8 As shown, the electronic device 800 may include a processor (central processing unit, CPU) 810, an external memory interface 820, an internal memory 821, a universal serial bus (USB) interface 830, a charging management module 840, a power management module 841, a battery 842, an antenna 1, an antenna 2, a mobile communication module 850, a wireless communication module 860, an audio module 870, a speaker 870A, a receiver 870B, a microphone 870C, an earphone interface 870D, a sensor module 880, a button 890, a motor 891, an indicator 892, a camera 893, a display screen 894, and a subscriber identification module (SIM) card interface 895, etc. Among them, the sensor module 880 may include a pressure sensor 880A, a gyroscope sensor 880B, an air pressure sensor 880C, a magnetic sensor 880D, an acceleration sensor 880E, a distance sensor 880F, a proximity light sensor 880G, a fingerprint sensor 880H, a temperature sensor 880J, a touch sensor 880K, an ambient light sensor 880L, a bone conduction sensor 880M, etc. It should be understood that the steps in the aforementioned method embodiment are executed by the processor 810 of the electronic device.

[0142] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 800. In other embodiments of the present application, the electronic device 800 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0143] For example, Figure 8 The processor 810 shown may include one or more processing units, for example, the processor 810 may include an application processor (AP), a modem processor, a graphics processor (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. Different processing units may be independent devices or integrated into one or more processors.

[0144] The controller may be the nerve center and command center of the electronic device 800. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0145] The processor 810 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 810 is a cache memory. The memory may store instructions or data that the processor 810 has just used or cyclically used. If the processor 810 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 810, and thus improves the efficiency of the system.

[0146] In some embodiments, the MIPI interface can be used to connect the processor 810 with peripheral devices such as the display screen 894 and the camera 893. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. The processor 810 and the display screen 894 communicate through the DSI interface to realize the display function of the electronic device 800.

[0147] In some embodiments, the GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. The GPIO interface can be used to connect the processor 810 with the camera 893, the display 894, the wireless communication module 860, the audio module 870, the sensor module 880, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0148] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 800. In other embodiments of the present application, the electronic device 800 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0149] The electronic device 800 implements the display function through a GPU, a display screen 894, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 894 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 810 may include one or more GPUs, which execute program instructions to generate or change display information.

[0150] The display screen 894 is used to display images, videos, etc. The display screen 894 includes a display panel. In some embodiments, the electronic device 800 may include 1 or N display screens 894, where N is a positive integer greater than 1.

[0151] The internal memory 821 can be used to store computer executable program codes, which include instructions. The processor 810 executes various functional applications and data processing of the electronic device 800 by running the instructions stored in the internal memory 821. The internal memory 821 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 800 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 821 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0152] The pressure sensor 880A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 880A can be set on the display screen 894. There are many types of pressure sensors 880A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 880A, the capacitance between the electrodes changes. The electronic device 800 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 894, the electronic device 800 detects the touch operation intensity according to the pressure sensor 880A. The electronic device 800 can also calculate the touch position according to the detection signal of the pressure sensor 880A. In some embodiments, touch operations acting on the same touch position but with 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, an 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, an instruction to create a new short message is executed.

[0153] The touch sensor 880K is also called a "touch panel". The touch sensor 880K can be set on the display screen 894, and the touch sensor 880K and the display screen 894 form a touch screen, also called a "touch screen". The touch sensor 880K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 894. In other embodiments, the touch sensor 880K can also be set on the surface of the electronic device 800, which is different from the position of the display screen 894.

[0154] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0155] The embodiment of the present application also provides an electronic device, which includes: one or more processors, a memory, and a computer program stored in the memory and executable on the one or more processors, wherein the one or more processors execute the computer program so that the electronic device can implement the steps in any of the above methods. The embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by the electronic device, the steps in each of the above method embodiments can be implemented.

[0156] The computer-readable medium may include at least: any entity or device capable of carrying computer program codes to a camera / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disk. In some jurisdictions, according to legislation and patent practice, a computer-readable medium cannot be an electric carrier signal or a telecommunication signal.

[0157] The present application embodiment provides a computer program product, which includes a computer program, and when the computer program is executed by an electronic device, the steps in the above-mentioned various method embodiments can be implemented. The computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form.

[0158] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0159] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0160] In the embodiments provided in the present application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are merely schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0161] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0162] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0163] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0164] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0165] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0166] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An icon display method, characterized in that: Applied to an electronic device, the electronic device is provided with an electronic device interface for accessing an external device, the icon display method comprises: When it is detected that the first external device and the charger are disconnected from the electronic device interface, the first icon corresponding to the first external device is not displayed, and when the first mark is detected, the charging icon corresponding to the charger is not displayed, wherein the first external device and the charger are connected to the electronic device interface through an expansion dock, and the first external device and the electronic device do not supply power to each other, and the first mark is set in the process of the first external device and the charger being connected to the electronic device interface through the expansion dock, and is used to record the access status of the charger.

2. The icon display method according to claim 1, characterized in that: The icon display method further includes: When it is detected that the first external device and the charger are connected to the electronic device interface, the first icon is displayed, and the charging icon is displayed.

3. The icon display method according to claim 2, characterized in that: The displaying the first icon comprises: Detect the type of external device; When the type of the external device is the first type corresponding to the first external device, the first icon is displayed.

4. The icon display method according to claim 3, characterized in that: The detection obtains the type of the external device, including: Determine the connection status of the external device by detecting the configuration channel CC pin of the electronic device interface; When the connection state is that an external device is connected, the type of the external device is identified by detecting the signal output by the CC pin.

5. The icon display method according to claim 4, characterized in that: The icon display method further includes: When it is detected that the signal output by the CC pin disappears, it is determined that the first external device is disconnected from the electronic device interface.

6. The icon display method according to claim 3, characterized in that: The icon display method further includes: When the type of the external device is the second type corresponding to the charger, a signal of a power bus Vbus is detected; When there is a signal on the Vbus, the charging icon is displayed and the first flag is set.

7. The icon display method according to claim 6, characterized in that: The icon display method further includes: After determining that the external device type is the second type, if it is re-detected that the first external device is connected to the electronic device interface through the docking station and the charger is not disconnected from the electronic device interface, the external device type is updated from the second type to the first type.

8. The icon display method according to claim 2, characterized in that: The displaying of the charging icon comprises: Detect and obtain a signal of a power bus Vbus; When there is a signal on the Vbus, the charging icon is displayed and the first flag is set.

9. The icon display method according to any one of claims 1 to 8, characterized in that: The first external device is an analog headset, and the first icon is a headset icon.

10. An electronic device, characterized in that: The electronic device includes: one or more processors, and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the electronic device to perform the method as claimed in any one of claims 1 to 9.

11. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, which, when executed on an electronic device, enable the electronic device to perform the method as claimed in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Mobile terminal and interface method thereof

    CN103444258A

  • Charging method and charging apparatus for electronic device

    CN105874682A

  • Processing method of access equipment and mobile terminal

    CN108268396A

  • PD fast charging management method and device and electronic equipment

    CN113922472A

  • Charging method and terminal equipment

    CN115589051A

Cited By

  • Display device and interface option display method

    CN120529126A