Terminal accessories, terminals and control methods

By introducing a discharge circuit and a trigger circuit into the terminal accessory, and using the CC1 pin of the Type-C interface to transmit signals to control the voltage discharge of the energy storage capacitor, the problem of the energy storage capacitor being unable to discharge in a timely manner is solved, thereby improving the safety and service life of the terminal accessory.

CN123123494APending Publication Date: 2026-11-17VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611480153.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-22
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

The energy storage capacitors in existing terminal accessories cannot discharge voltage in time, making the terminal accessories easy to be damaged and posing a safety hazard when dropped.

Method used

By introducing a discharge circuit into the terminal accessory, the CC1 pin of the Type-C interface is used to transmit signals to control the discharge circuit to discharge the voltage of the energy storage capacitor. Combined with the trigger circuit and the processor to detect voltage conditions, the energy storage capacitor can be discharged in a timely manner.

Benefits of technology

It effectively reduces the risk of damage to terminal components, improves safety performance, avoids safety accidents during drops, and extends the service life of energy storage capacitors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123123494A_ABST
    Figure CN123123494A_ABST
Patent Text Reader

Abstract

This application provides a terminal accessory, a terminal, and a control method. The terminal accessory includes a first interface, an energy storage capacitor, a discharge circuit, and a light-emitting element. A first pin of the first interface is connected to the discharge circuit, the discharge circuit is connected to the energy storage capacitor, and the energy storage capacitor is connected to the light-emitting element. When the first interface is connected to a second interface of the terminal, the first pin is used to transmit a first signal sent by the terminal. The first signal is used to control the discharge circuit to discharge the voltage of the energy storage capacitor. Thus, when the terminal accessory receives the first signal sent by the terminal, it can actively discharge the voltage of the energy storage capacitor through the discharge circuit, thereby enabling the energy storage capacitor to discharge voltage in a timely manner and reducing the possibility of damage to the terminal accessory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic technology, and in particular to a terminal accessory, a terminal, and a control method. Background Technology

[0002] With the continuous development of electronic technology, terminals are playing an increasingly important role in people's lives. While most terminals can capture images, poor lighting conditions often result in poor image display quality. To enhance image quality, external terminal accessories can be used to improve lighting conditions during image capture. However, existing terminal accessories typically store a significant amount of high-voltage electrical energy, which is usually dissipated through flashes. If the terminal accessory is subjected to external impact, the high-voltage energy can easily puncture internal components, causing damage. This demonstrates that the inability of current energy storage capacitors to promptly release voltage contributes to the vulnerability of terminal accessories to damage. Summary of the Invention

[0003] This application provides a terminal accessory, a terminal, and a control method to solve the problem that the terminal accessory is easily damaged because the current energy storage capacitor cannot discharge voltage in time.

[0004] To solve the above problems, this application is implemented as follows:

[0005] In a first aspect, embodiments of this application provide a terminal accessory, including: a first interface, an energy storage capacitor, a discharge circuit, and a light-emitting element, wherein a first pin of the first interface is connected to the discharge circuit, the discharge circuit is connected to the energy storage capacitor, and the energy storage capacitor is connected to the light-emitting element.

[0006] Wherein, when the first interface is connected to the second interface of the terminal, the first pin is used to transmit the first signal sent by the terminal;

[0007] The first signal is used to control the discharge circuit to discharge the voltage of the energy storage capacitor.

[0008] Secondly, embodiments of this application provide a terminal, including a power management integrated circuit (PMIC), a second processor, and a second interface. The PMIC is connected to the sixth and seventh pins of the second interface, and the second processor is connected to the eighth, ninth, and tenth pins of the second interface.

[0009] In the case where the second interface is connected to the first interface of the terminal accessory...

[0010] The seventh pin is connected to the third pin of the first interface;

[0011] The sixth pin is connected to the first pin of the first interface and is used to transmit a first signal to the first pin;

[0012] The eighth and ninth pins are connected to the fourth and fifth pins of the first interface, respectively, and are used to transmit the fifth signal to the fourth and fifth pins;

[0013] The tenth pin is connected to the second pin of the first interface and is used to transmit a second signal to the second pin.

[0014] Thirdly, embodiments of this application also provide a control method for a terminal accessory, applied to the terminal accessory in the first aspect, the method comprising:

[0015] When the first pin receives the first signal transmitted from the sixth pin of the second interface, the first pin transmits the first signal to the bleeder circuit, which is used to control the bleeder circuit to bleed the voltage of the energy storage capacitor.

[0016] Fourthly, embodiments of this application also provide a terminal control method, applied to the terminal in the second aspect, the method comprising:

[0017] When the seventh pin is connected to the third pin and the terminal is in the target state, the PMIC sends the first signal to the first pin through the sixth pin.

[0018] The first signal is used to control the discharge circuit in the terminal accessory to discharge the voltage of the energy storage capacitor in the terminal accessory.

[0019] Fifthly, embodiments of this application also provide a control device for a terminal accessory, the control device for the terminal accessory comprising:

[0020] The first transmitting module is used to transmit a first signal to the bleeder circuit when the first pin receives a first signal transmitted from the sixth pin of the second interface. The first signal is used to control the bleeder circuit to bleed the voltage of the energy storage capacitor.

[0021] Sixthly, embodiments of this application also provide a control device for a terminal, the control device for the terminal comprising:

[0022] The second transmitting module is used to transmit a first signal from the PMIC to the first pin through the sixth pin when the seventh pin is connected to the third pin and the terminal is in the target state.

[0023] The first signal is used to control the discharge circuit in the terminal accessory to discharge the voltage of the energy storage capacitor in the terminal accessory.

[0024] In a seventh aspect, embodiments of this application also provide a terminal accessory, including: a memory, a processor, and a program stored in the memory and executable on the processor; the processor is configured to read the program in the memory to implement the steps in the method described in the third aspect above.

[0025] Eighthly, embodiments of this application also provide a terminal, including: a memory, a processor, and a program stored in the memory and executable on the processor; the processor is configured to read the program in the memory to implement the steps in the method described in the fourth aspect above.

[0026] In a ninth aspect, embodiments of this application also provide a readable storage medium for storing a program, which, when executed by a processor, implements the steps in the method as described in the third aspect above, or implements the steps in the method as described in the fourth aspect above.

[0027] In a tenth aspect, embodiments of this application also provide a computer program product, including computer instructions that, when executed by a processor, implement the steps in the methods described in the third or fourth aspects above.

[0028] In this embodiment, since the first interface of the terminal accessory can be used to connect with the second interface of the terminal, when the first interface is connected to the second interface, the first pin can be used to transmit the first signal sent by the terminal. The first signal can be used to control the discharge circuit in the terminal accessory to discharge the voltage of the energy storage capacitor. In this way, when the terminal accessory receives the first signal sent by the terminal, it can actively discharge the voltage of the energy storage capacitor through the discharge circuit, thereby enabling the energy storage capacitor to discharge the voltage in time, thereby reducing the occurrence of damage to the terminal accessory. Attached Figure Description

[0029] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0030] Figure 1 This is one of the structural schematic diagrams of the terminal accessories and terminal provided in the embodiments of this application;

[0031] Figure 2 This is a schematic diagram showing the connection between the first interface of the terminal accessory and the second interface of the terminal provided in this application embodiment;

[0032] Figure 3 This is a second structural schematic diagram of the terminal accessories and terminal provided in the embodiments of this application;

[0033] Figure 4 This is a flowchart illustrating the control method for a terminal accessory provided in an embodiment of this application;

[0034] Figure 5 This is a schematic diagram of SBU encoding provided in an embodiment of this application;

[0035] Figure 6 This is the third structural schematic diagram of the terminal accessories and terminal provided in the embodiments of this application;

[0036] Figure 7 This is a flowchart illustrating the terminal control method provided in an embodiment of this application;

[0037] Figure 8 This is a schematic diagram of the discharge circuit provided in the embodiment of this application;

[0038] Figure 9 This is a schematic diagram of the structure of the control device for the terminal accessory provided in the embodiments of this application;

[0039] Figure 10 This is a schematic diagram of the structure of the control device for the terminal provided in the embodiments of this application;

[0040] Figure 11 This is one of the structural schematic diagrams of the terminal provided in the embodiments of this application;

[0041] Figure 12 This is the second structural schematic diagram of the terminal provided in the embodiments of this application. Detailed Implementation

[0042] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0043] The terms "first," "second," etc., used in the embodiments of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices. Additionally, the use of "and / or" in this application indicates at least one of the connected objects, such as A and / or B and / or C, representing seven possibilities: including A alone, B alone, C alone, and the presence of both A and B, both B and C, both A and C, and the presence of A, B, and C.

[0044] It should be noted that with the continuous development of electronic technology and the increasing number of external devices paired with terminals, terminal accessories have become widely used as external devices. When terminal accessories include flash accessories, these accessories can also be collectively referred to as terminal accessories. As external devices, terminal accessories typically employ the traditional photographic equipment's strategy of charging immediately after use and maintaining a dynamic charging state. Because the energy storage capacitor in terminal accessories has a high voltage—needing to reach between 320V and 800V to fully charge—the charging time is relatively long, requiring 2-3 seconds. Therefore, after each flash, the terminal accessory must immediately and automatically recharge the energy storage capacitor and maintain a high voltage of over 300V to ensure zero latency for the next photo.

[0045] Furthermore, when the terminal and its accessories are connected, if the user directly exits the camera application (App), locks the screen, or suddenly removes the accessory from the terminal while it is fully charged, a deadly high voltage of over 300V remains in the accessory's energy storage capacitor. During daily use, accessories are susceptible to intrusion from sweat, rain, or conductive dust. Due to the extremely small pin spacing of the accessory's physical interface or magnetic contacts, the residual high voltage in the accessory's energy storage capacitor can easily break down the deteriorated creepage distance and flow backwards along the connection line between the accessory and the terminal, into the terminal's motherboard and battery. This can cause irreversible burnout and bricking of the expensive power management integrated circuit (IC) or microprocessor due to transient high voltage overload, resulting in serious property damage. Moreover, since the terminal is the most frequently used electronic product and is almost always carried, the probability of dropping both the terminal and its accessories increases, thus shortening their lifespan.

[0046] For example, since a fully charged energy storage capacitor stores high-voltage electrical energy, internal mechanical damage to the terminal and its accessories caused by a drop can instantly trigger an internal short circuit. This causes the energy storage capacitor to violently release high-voltage electrical energy in a very short time, which can easily lead to the following phenomena: the internal short circuit of the terminal accessories generates high-temperature gas, causing the casing of the terminal accessories to burst. The high-temperature arc or spark generated by the short circuit can easily burn the internal circuit board of the terminal accessories, and in severe cases, it can even cause the entire terminal accessories to catch fire. In addition, it can easily cause the pins of the terminal accessories to deform, and high-voltage electrical energy can be conducted to the inside of the terminal through the damaged point, thereby causing damage to the internal circuit of the terminal. In the case of severe damage, touching it can cause electric shock.

[0047] It is evident that, since the voltage dissipation of the energy storage capacitor in current terminal accessories typically relies solely on the normal illumination of the light-emitting elements of the interrupt accessory, the energy storage capacitor is prone to failure to discharge voltage in a timely manner, which can easily lead to damage to the terminal accessory. Furthermore, if the voltage of the energy storage capacitor cannot be dissipated quickly, a drop of the terminal accessory or terminal can easily result in a safety accident.

[0048] To address the above problems, this application proposes the following embodiments:

[0049] Please see Figure 1 , Figure 3 and Figure 6 , Figure 1 , Figure 3 and Figure 6 These are schematic diagrams of the terminal accessories and the terminal provided in the embodiments of this application. Figure 1 , Figure 3 and Figure 6 Area A1 shows a schematic diagram of the terminal's structure, and area A2 shows a schematic diagram of the terminal's accessories.

[0050] like Figure 1 , Figure 3 and Figure 6 As shown, the terminal accessories include: a first interface 10, an energy storage capacitor 20, a discharge circuit 30, and a light-emitting element 40. The first pin 11 of the first interface 10 is connected to the discharge circuit 30, the discharge circuit 30 is connected to the energy storage capacitor 20, and the energy storage capacitor 20 is connected to the light-emitting element 40.

[0051] When the first interface 10 is connected to the second interface 100 of the terminal, the first pin 11 is used to transmit the first signal sent by the terminal.

[0052] The first signal is used to control the discharge circuit 30 to discharge the voltage of the energy storage capacitor 20.

[0053] The specific type of the first interface 10 is not limited here. Optionally, the first interface 10 can be a Type-C interface, and the first pin 11 can be the Configuration Channel (CC) 1 pin of the Type-C interface. Since the first interface 10 is connected to the second interface 100 of the terminal, the second interface 100 can also be a Type-C interface. That is, the first interface 10 and the second interface 100 can be connected to each other. In this way, by multiplexing the CC1 pin of the Type-C interface to transmit the first signal, the transmission stability of the first signal is ensured. At the same time, no additional pins are needed for the first interface 10, thus reducing the manufacturing cost of the first interface 10.

[0054] It should be noted that since the first signal is used to control the discharge circuit 30 to discharge the voltage of the energy storage capacitor 20, the first signal can also be called the first discharge control signal.

[0055] The discharge circuit 30 can be understood as a circuit that discharges the voltage of the energy storage capacitor 20, and it can also be called a residual voltage discharge clamping circuit. For example, when the residual voltage discharge clamping circuit discharges the voltage of the energy storage capacitor 20, it can clamp the voltage of the energy storage capacitor 20 to a safe voltage. The specific value of the safe voltage is not limited here. For example, the safe voltage can be greater than 0. In this way, since it is not necessary to discharge the voltage of the energy storage capacitor 20 to 0, on the one hand, the safety of the energy storage capacitor 20 can be improved and its service life can be extended. On the other hand, it can be ensured that when the energy storage capacitor 20 is recharged next time, it does not need to start charging from 0, thereby shortening the charging time of the energy storage capacitor 20.

[0056] It should be noted that the specific structure of the discharge circuit is not limited here; alternatively, see [link to relevant documentation]. Figure 8 , Figure 8 The diagram below shows the structure of the discharge circuit. The working principle of the discharge circuit can be found in the following description:

[0057] The discharge circuit is connected in parallel across the positive and negative terminals of the energy storage capacitor in the terminal accessory. The positive terminal of the high-voltage bus is connected to the source of MOSFET Q1, and the negative terminal of the high-voltage bus is grounded. The gate of Q1 is connected to the high-voltage bus through a pull-up resistor R3, and is also directly connected to the cathode of the precision adjustable voltage divider reference source U2. The reference terminal of U2 is connected to the midpoint of the series voltage divider of the first voltage divider resistor R7 and the second voltage divider resistor R8. The other end of R7 is connected across the positive terminal of the high-voltage bus. The drain of the selector switch Q3 is connected to the lower end of R8, and its source is grounded. Its gate receives the enable signal (i.e., the first signal) from the terminal through a resistor R2.

[0058] When the residual voltage discharge scenario trigger is met (i.e., the terminal is in the target state), the control signal (i.e., the first signal) is continuously pulled high by the terminal's Type-C multiplexed port (i.e., the second interface), Q3 is saturated and turned on, causing the voltage divider network R7 / R8 to be forced to switch to the high-voltage bus and start sampling. Since the initial voltage of the energy storage capacitor is as high as 300V, the voltage of the voltage divider node is much greater than the inherent reference voltage inside U2. The amplifier inside U2 turns on and pulls down the gate potential of Q1, causing Q1 to enter the conducting state. The 300V high-voltage power begins to be dissipated harmlessly through the power resistor P1.

[0059] As the discharge continues, the high-voltage bus voltage drops steadily. When the bus voltage decreases to the safe voltage threshold (e.g., 26V) set by the resistance ratio of R7 and R8, the voltage at the voltage divider node simultaneously drops below the internal reference voltage of U2, causing U2 to flip instantly and hard-cut off. After U2 cuts off, the gate of Q1 loses its downward pull-up current. Driven by the pull-up resistor R3 applied to the gate, the gate-source voltage of Q1 instantly returns to zero, forcing Q1 to completely enter the cut-off state, and the discharge circuit is completely disconnected.

[0060] It should be noted that a resistor R5 can also be included in this discharge circuit, and GND is used to indicate the ground terminal.

[0061] This discharge circuit ensures that even in extreme abnormal conditions where the control signal (i.e., the first signal) is mistakenly and permanently pulled high, the underlying hardware network's hard disconnection prevents the high-voltage bus from being pulled low to a short-circuit state. The system will eventually maintain the voltage dynamically at a safe level, physically eliminating the risk of the discharge circuit itself becoming a short-circuit source. Furthermore, the next circuit startup is faster, eliminating the need to build up voltage from zero, and also extending the lifespan of the energy storage capacitor.

[0062] Since the energy storage capacitor 20 is connected to the light-emitting element 40, the energy storage capacitor 20 can discharge to the light-emitting element 40, so that the light-emitting element 40 emits light. This can enhance the light intensity of the image captured by the terminal when the terminal captures the image, thereby enhancing the display quality of the captured image. The specific type of the light-emitting element 40 is not limited here. Optionally, the light-emitting element 40 can be a xenon light-emitting element or a krypton light-emitting element, etc.

[0063] It should be noted that the number of CC pins for the Type-C interface is not limited here; optionally, see [link to relevant documentation]. Figure 1 The Type-C interface can also include a CC2 pin 15, and a second resistor 90 can be connected to the CC2 pin 15. This effectively increases the resistance of the CC2 pin 15, thereby reducing the possibility of the CC2 pin 15 being short-circuited due to insufficient resistance, thus enhancing the safety of the CC2 pin 15. The other end of the second resistor 90 is grounded.

[0064] In this embodiment, since the first interface 10 of the terminal accessory can be used to connect with the second interface 100 of the terminal, when the first interface 10 is connected to the second interface 100, the first pin can be used to transmit the first signal sent by the terminal. The first signal can be used to control the discharge circuit 30 in the terminal accessory to discharge the voltage of the energy storage capacitor 20. In this way, when the terminal accessory receives the first signal sent by the terminal, it can actively discharge the voltage of the energy storage capacitor 20 through the discharge circuit 30, thereby enabling the energy storage capacitor 20 to discharge the voltage in time, thereby reducing the occurrence of damage to the terminal accessory.

[0065] In addition, the voltage of the energy storage capacitor 20 is actively discharged through the discharge circuit 30, which can quickly consume the voltage in the energy storage capacitor 20. In this way, when the terminal accessories and the terminal are dropped, safety accidents can be avoided, thus enhancing the safety performance of the terminal accessories and the terminal.

[0066] As an optional implementation, see [link to implementation details]. Figure 1 The terminal accessories also include: a trigger circuit 50, the second pin 12 of the first interface 10 is connected to the trigger circuit 50, the trigger circuit 50 is connected to the energy storage capacitor 20 and the light-emitting element 40, when the first interface 10 is connected to the second interface 100 of the terminal, the second pin 12 is used to transmit the second signal sent by the terminal, and the second signal is used to cause the energy storage capacitor 20 to discharge to the light-emitting element 40.

[0067] The second signal can also be called a lightning current or a lightning pulse signal, and the trigger circuit 50 can also be called a lightning pulse trigger circuit.

[0068] The specific type of the second pin 12 of the first interface 10 is not limited here. Optionally, when the first interface 10 is a Type-C interface, the second pin 12 can be a Sideband Use (SBU) pin of the Type-C interface, and the number of SBU pins can be at least one, for example: see Figure 1 The Type-C interface may include two SBU pins. The second pin 12 can be one of the two SBU pins and can be referred to as the SBU1 pin. The other of the two SBU pins can be referred to as the SBU2 pin 13. The second pin 12 and the SBU2 pin 13 can be connected to each other.

[0069] The trigger circuit 50 can be understood as a control circuit used to trigger the energy storage capacitor 20 to discharge to the light-emitting element 40, thereby controlling the light-emitting element 40 to emit light. For example, when the first interface 10 is connected to the second interface 100 of the terminal, the second pin 12 can transmit the second signal sent by the terminal. After receiving the second signal, the trigger circuit 50 can trigger the energy storage capacitor 20 to discharge to the light-emitting element 40, thereby controlling the light-emitting element 40 to emit light. When the trigger circuit 50 does not receive the second signal, it will not trigger the energy storage capacitor 20 to discharge to the light-emitting element 40, and the light-emitting element 40 will not emit light.

[0070] It should be noted that the light-emitting element 40 emits light to enhance the background brightness of the image captured by the terminal, thereby enhancing the display quality of the captured image. The light-emitting element 40 can also be referred to as a flash.

[0071] In this embodiment of the application, when the trigger circuit 50 receives the second signal, it can trigger the energy storage capacitor 20 to discharge to the light-emitting element 40, thereby controlling the light-emitting element 40 to emit light. This simplifies the control circuit for controlling the light-emitting element 40 to emit light and improves the reliability of the control method for controlling the light-emitting element 40 to emit light.

[0072] As an optional implementation, see [link to implementation details]. Figure 1 , Figure 3 and Figure 6 The terminal accessories also include a first processor 60, which is connected to the third pin 14 of the first interface 10 and the discharge circuit 30 respectively.

[0073] The first processor 60 is used to acquire the target voltage of the third pin 14, and sends a third signal to the discharge circuit 30 when the target voltage meets the target conditions. The third signal is used to control the discharge circuit 30 to discharge the voltage of the energy storage capacitor 20.

[0074] The first processor 60 may be a microcontroller unit (MCU).

[0075] The third signal can also be referred to as the second discharge control signal, while the first and second discharge control signals mentioned above can both be referred to as discharge control signals. For details, please refer to [link to relevant documentation]. Figure 1 , Figure 3 and Figure 6 As shown.

[0076] Optionally, see Figure 1The first processor 60 may include an analog-to-digital converter (ADC) pin 61 and a general-purpose input / output (GPIO) port 62. The ADC pin 61 may be connected to a third pin 14 and may be used to acquire the target voltage on the third pin 14. The GPIO port 62 may be connected to a discharge circuit 30 and may be used to send a second discharge control signal to the discharge circuit 30.

[0077] It should be noted that when the target voltage meets the target condition, it means that the voltage condition of the energy storage capacitor 20 is met at this time. The specific situation in which the target voltage meets the target condition is not limited here. Optionally, when the target voltage is less than or equal to the second preset threshold, it can be determined that the target voltage meets the target condition. Alternatively, when the target voltage is within a preset range, it can be determined that the target voltage meets the target condition. The preset range can refer to the range formed by the first voltage value to the second voltage value.

[0078] For example, optionally, when the first interface 10 is a Type-C interface, the third pin 14 can be the detection (DET) pin of the Type-C interface. When the target voltage of the third pin 14 is less than or equal to the second preset threshold, it may be that the connection between the first interface 10 and the second interface 100 is disconnected, that is, the terminal accessory may be unplugged from the terminal. Therefore, it can be determined that the target voltage meets the target condition.

[0079] It should be noted that the target voltage being less than or equal to the second preset threshold mainly refers to the application scenario where the connection between the second interface 100 of the terminal and the first interface 10 of the terminal accessory is disconnected. The possible reasons for the disconnection between the second interface 100 and the first interface 10 are sudden scenarios such as the terminal exiting the camera application (App), locking the screen, accidental drop, or directly unplugging the terminal accessory. In order to improve the safety protection level of the terminal accessory, the first processor 60 can send a third signal to the discharge circuit 30 to discharge the voltage of the energy storage capacitor 20.

[0080] In this embodiment, the first processor 60 obtains the target voltage of the third pin 14, and when the target voltage meets the target conditions, the first processor 60 can send a third signal to the discharge circuit 30 to control the discharge circuit 30 to discharge the voltage of the energy storage capacitor 20. In this way, the energy storage capacitor 20 can also discharge the voltage in a timely manner, thereby reducing the occurrence of damage to terminal accessories. At the same time, it further increases the diversity and flexibility of the way to control the discharge circuit 30 to discharge the voltage of the energy storage capacitor 20.

[0081] As an optional implementation, see [link to implementation details]. Figure 1 The third pin 14 is also connected to the first resistor 80.

[0082] One end of the first resistor 80 can be connected to the third pin 14, while the other end of the first resistor 80 can be grounded.

[0083] The specific models and specifications of the first resistor 80 and the second resistor 90 are not limited here. Optionally, both the first resistor 80 and the second resistor 90 can be pull-down (RD) resistors. For the purpose of distinction, the first resistor 80 can be called the RD resistor and the second resistor 90 can be called the RD2 resistor.

[0084] Optionally, since the third pin 14 is connected to the first resistor 80, when the first interface 10 is connected to the second interface 100, the seventh pin 102 of the second interface 100 will be connected to the third pin 14 of the first interface 10. This will result in a target voltage value (i.e., the voltage division of the first resistor 80) on the third pin 14. If the first interface 10 is disconnected from the second interface 100, the voltage division of the first resistor 80 will decrease, and the target voltage value will drop. At this time, the first processor 60 can determine that the first interface 10 is disconnected from the second interface 100 by the drop in the target voltage value, which is equivalent to determining that the terminal and the terminal accessory are disconnected. At this time, it is necessary to release the voltage of the energy storage capacitor 20, so a third signal is sent to the discharge circuit 30 to release the voltage of the energy storage capacitor 20.

[0085] That is, when the terminal and terminal accessories are disconnected, the first interface 10 will disconnect from the second interface 100. At this time, since the connection between the seventh pin 102 and the third pin 14 is broken, the target voltage of the third pin 14 changes. The first processor 60 detects the change in the target voltage and knows that the terminal and terminal accessories are disconnected. At this time, the voltage of the energy storage capacitor 20 needs to be discharged to avoid danger.

[0086] In this embodiment of the application, since a first resistor 80 is connected to the third pin 14, the resistance on the third pin 14 is increased, thereby reducing the occurrence of the third pin 14 being short-circuited due to insufficient resistance, thus enhancing the safety of the third pin 14.

[0087] As an optional implementation, see [link to implementation details]. Figure 1 , Figure 3 and Figure 6 The first processor 60 is also connected to the energy storage capacitor 20, and the first processor 60 is used to obtain the voltage value of the energy storage capacitor 20.

[0088] The specific way the first processor 60 is connected to the energy storage capacitor 20 is not limited here. Optionally, the first processor 60 can be connected to the energy storage capacitor 20 through a detection sensor. In this way, the voltage value of the energy storage capacitor 20 is detected by the detection sensor, and the first processor 60 can directly obtain the voltage value of the energy storage capacitor 20 detected by the detection sensor.

[0089] Optionally, the first processor 60 can be directly connected to the energy storage capacitor 20, and the first processor 60 can integrate a voltage detection circuit, so that the first processor 60 can detect the voltage value of the energy storage capacitor 20.

[0090] In this embodiment of the application, the first processor 60 is used to obtain the voltage value of the energy storage capacitor 20. In this way, the voltage value of the energy storage capacitor 20 can be accurately detected, and based on the obtained voltage value, it can be accurately determined whether the voltage of the energy storage capacitor 20 can meet the voltage required for the light-emitting element 40 to emit light.

[0091] As an optional implementation, see [link to implementation details]. Figure 1 , Figure 3 and Figure 6 The terminal accessories also include a charging circuit 70, through which the first processor 60 is connected to the energy storage capacitor 20.

[0092] The specific type of the charging circuit 70 is not limited here. Optionally, the charging circuit 70 may be a flyback boost charging circuit.

[0093] The specific method by which the first processor 60 controls the charging circuit 70 to charge the energy storage capacitor 20 is not limited here. For example, the first processor 60 can send a charging control signal to the charging circuit 70. After receiving the charging control signal, the charging circuit 70 can charge the energy storage capacitor 20. The charging control signal can be understood as a signal output by the first processor 60 and used to control the charging circuit 70 to charge the energy storage capacitor 20.

[0094] In this embodiment, the first processor 60 is connected to the energy storage capacitor 20 through the charging circuit 70. In this way, when the voltage in the energy storage capacitor 20 is too low, the first processor 60 can control the charging circuit 70 to charge the energy storage capacitor 20 in a timely manner, thereby enhancing the charging effect of the energy storage capacitor 20.

[0095] As an optional implementation, see [link to implementation details]. Figure 1The trigger circuit 50 is connected to the energy storage capacitor 20 and the light-emitting element 40 respectively through a switch. When the first interface 10 is connected to the second interface 100, the second pin 12 is used to transmit a second signal to the trigger circuit 50. The trigger circuit 50 controls the switch to turn on based on the second signal, and the energy storage capacitor 20 discharges to the light-emitting element 40.

[0096] In this embodiment, the energy storage capacitor 20 and the light-emitting element 40 are connected by a switch, and the trigger circuit 50 is connected to the energy storage capacitor 20 and the light-emitting element 40 respectively through the aforementioned switch. In this way, when the trigger circuit 50 receives the second signal, it can directly control the switch to turn on, thereby turning on the discharge path of the energy storage capacitor 20 to the light-emitting element 40, so that the energy storage capacitor 20 can discharge to the light-emitting element 40, thus simplifying the control method of the energy storage capacitor 20 discharging to the light-emitting element 40.

[0097] As an optional implementation, see [link to implementation details]. Figure 3 The second pin 12 is connected to the trigger circuit 50 through the first processor 60. The trigger circuit 50 is connected to the energy storage capacitor 20 and the light-emitting element 40 through a switch. When the first interface 10 and the second interface 100 are connected, the second pin 12 is used to transmit a second signal to the first processor 60. The first processor 60 sends a fourth signal to the trigger circuit 50 based on the second signal. The trigger circuit 50 controls the switch to turn on based on the fourth signal, and the energy storage capacitor 20 discharges to the light-emitting element 40.

[0098] Optionally, the second signal and the fourth signal can be the same signal. That is, when the first processor 60 sends the fourth signal to the trigger circuit 50 based on the second signal, the first processor 60 simply performs a forwarding operation on the second signal.

[0099] Alternatively, the second signal and the fourth signal can be different signals, and the fourth signal can be understood as a signal generated based on the second signal. For example, both the second signal and the fourth signal are control signals used to control the energy storage capacitor 20 to discharge to the light-emitting element 40. The difference between the second signal and the fourth signal can be that the components that generate the signal are different. That is, the component that generates the second signal can be the second processor 120 of the terminal, while the component that generates the fourth signal can be the first processor 60 mentioned above. At the same time, in order to make the fourth signal more compatible with the switch, when the first processor 60 generates the fourth signal based on the second signal, it can also add the corresponding parameter information of the switch to the generated fourth signal. The corresponding parameter information can include information such as identification. In this way, the control of the switch based on the fourth signal can be more accurate.

[0100] In this embodiment of the application, when a first processor 60 is included, the first processor 60 can send a fourth signal to the trigger circuit 50 based on the received second signal. The trigger circuit 50 controls the switch to turn on based on the fourth signal so that the energy storage capacitor 20 discharges to the light-emitting element 40. In this way, the diversity and flexibility of the way to control the light-emitting element 40 to emit light can be increased.

[0101] As an optional implementation, see [link to implementation details]. Figure 1 The first interface 10 also includes a fourth pin 16 and a fifth pin 17, which are respectively connected to the first processor 60. When the first interface 10 is connected to the second interface 100 of the terminal, the fourth pin 16 and the fifth pin 17 are used to transmit a fifth signal sent by the terminal. The first processor 60 controls the charging circuit 70 to charge the energy storage capacitor 20 based on the fifth signal. The fourth pin 16 and the fifth pin 17 are also used to transmit a sixth signal sent by the first processor 60 to the terminal. The sixth signal indicates that the voltage value of the energy storage capacitor 20 is greater than or equal to a first preset threshold.

[0102] When the first interface 10 is a Type-C interface, the fourth pin 16 can be a data positive (DP) pin, and the fifth pin 17 can be a data negative (DM) pin. The fourth pin 16 and the first processor 60 form a first sub-channel, and the fifth pin 17 and the first processor 60 form a second sub-channel. The channel formed by the first sub-channel and the second sub-channel can be called a Universal Serial Bus (USB) 2 channel.

[0103] Since the signals transmitted through the USB 2.0 channel are typically differential signals, the fifth and sixth signals can also be differential signals. As the receiver of the differential signal only considers the difference between the signals transmitted through the first and second sub-channels, it can suppress the interference noise experienced by the fifth and sixth signals during transmission. At the same time, it can also reduce the intensity of external electromagnetic radiation of the fifth and sixth signals during transmission. Furthermore, differential signals have the characteristic of high-speed transmission, thus improving the transmission speed of the fifth and sixth signals.

[0104] In this embodiment, by reusing the fourth pin 16 and the fifth pin 17 for transmitting the fifth signal and the sixth signal, the transmission stability of the fifth signal and the sixth signal is guaranteed, and the transmission speed of the fifth signal and the sixth signal is improved. At the same time, there is no need to add additional pins to the first interface 10 to transmit the fifth signal and the sixth signal, thereby reducing the manufacturing cost of the first interface 10.

[0105] As an optional implementation, see [link to implementation details]. Figure 1 , Figure 3 and Figure 6 This application embodiment also provides a terminal, including a power management integrated circuit (PMIC) 110, a second processor 120, and a second interface 100. The PMIC 110 is connected to the sixth pin 101 and the seventh pin 102 of the second interface 100, and the second processor 120 is connected to the eighth pin 103, the ninth pin 104, and the tenth pin 105 of the second interface 100.

[0106] In the case where the second interface 100 is connected to the first interface 10 of the terminal accessory...

[0107] The seventh pin 102 is connected to the third pin 14 of the first interface 10;

[0108] The sixth pin 101 is connected to the first pin 11 of the first interface 10 and is used to transmit a first signal to the first pin 11;

[0109] The eighth pin 103 and the ninth pin 104 are connected to the fourth pin 16 and the fifth pin 17 of the first interface 10, respectively, and are used to transmit the fifth signal to the fourth pin 16 and the fifth pin 17.

[0110] The tenth pin 105 is connected to the second pin 12 of the first interface 10 and is used to transmit a second signal to the second pin 12.

[0111] The second processor 120 can be an application processor (AP).

[0112] When the second interface 100 is a Type-C interface, the sixth pin 101 can be the CC1 pin of the Type-C interface, and the seventh pin 102 can be the DET pin of the Type-C interface. The CC1 pin can be understood as being used to detect the insertion and connection direction of the peripheral device and the type of the peripheral device. Optionally, the aforementioned terminal accessory can be a flash accessory, and the terminal can be a mobile phone. The PMIC 110 can also be provided with a button battery backup power pin (Voltage Coin Cell, VCOIN) pin 111. The VCOIN pin 111 is connected to the mobile phone system power supply voltage (Voltage Phone Power, VPH) 112. The aforementioned VPH 112 can be understood as the battery voltage of the mobile phone. The DET pin can be understood as being used to detect whether a terminal accessory is inserted into the second interface 100 of the terminal. When the DET pin detects that a terminal accessory is inserted, the aforementioned VPH 112 can be turned on to supply power to the CC pin. Specifically, the aforementioned VPH 112 can be used to supply power to the VCOIN pin 111, and then the VCOIN pin 111 can be used to supply power to the CC pin.

[0113] It should be noted that the second interface 100 may also include a CC2 pin, which, along with the CC1 pin (i.e., the sixth pin 101), is located at opposite ends of the second interface 100. By analyzing the connections between the CC1 pin (i.e., the sixth pin 101) and the CC2 pin and the CC1 pin (i.e., the first pin 11) and CC2 pin (i.e., the CC2 pin 15) in the first interface 10, the insertion direction of the first interface 10 and the second interface 100 can be accurately determined. For example: See... Figure 2 , Figure 2 The line shown in Figure B1 is a schematic diagram of the reverse insertion connection of the first interface 10 and the second interface 100, and the line shown in Figure B2 is a schematic diagram of the normal insertion connection of the first interface 10 and the second interface 100.

[0114] For example, if the current source for VPH112 is configured to be 180uA, and the CC1 pin (i.e., pin 101) of the second interface 100 detects the presence of resistor Rd2 in the first interface 10, meaning the CC1 pin (i.e., pin 101) of the second interface 100 is connected to the CC2 pin (i.e., pin 15) of the first interface 10, then the detected voltage is 180uA*5.1kΩ≈900mV (both are preset values, and specific values ​​can be selectively set). In this case, it is considered that a terminal accessory has been inserted into the second interface 100. If the PMIC110 determines that there is voltage on the CC1 pin (i.e., pin 11) of the first interface 10 at the CC1 pin (i.e., pin 101) of the second interface 100, then it is considered that the second interface 100 and the first interface 10 are reversed (i.e.,...). Figure 2As shown in line B1, the current source corresponding to the CC2 pin in the second interface 100 that is not connected to the first interface 10 can be turned off, and the voltage can be set to 0V. Conversely, as shown in line B1, the current source corresponding to the CC2 pin in the second interface 100 that is not connected to the first interface 10 can be turned off, and the voltage can be set to 0V. Figure 2 As shown in line B2, the second interface 100 and the first interface 10 are connected in the correct orientation.

[0115] In this embodiment, the terminal can reuse the sixth pin 101 of the second interface 100 to transmit a first signal to the first pin 11 of the first interface 10 of the terminal accessory, thereby controlling the discharge circuit 30 to discharge the voltage of the energy storage capacitor 20 in a timely manner and enhancing the discharge effect of the energy storage capacitor 20; the terminal can reuse the eighth pin 103 and the ninth pin 104 of the second interface 100 to transmit a fifth signal to the fourth pin 16 and the fifth pin 17 of the first interface 10 of the terminal accessory, thereby controlling the energy storage capacitor 20 of the terminal accessory to charge; the terminal can reuse the tenth pin of the second interface 100... Pin 105 transmits a second signal to pin 12 of the first interface 10 of the terminal accessory, which causes the energy storage capacitor 20 to discharge to the light-emitting element 40, thereby causing the light-emitting element 40 to emit light and thus enhancing the light intensity of the image captured by the terminal. In this way, the terminal's control over the terminal accessory can be enhanced. At the same time, by reusing the aforementioned pins of the second interface 100 without adding additional pins to the second interface 100, the control of the relevant functions of the terminal accessory can be realized, reducing the manufacturing cost of the second interface 100 and improving the utilization rate of the aforementioned pins of the second interface 100.

[0116] See Figure 4 This application also provides a control method for a terminal accessory, applied to the terminal accessory in the above embodiments. The specific structure of the terminal accessory can be found in the corresponding descriptions in the above embodiments, and will not be repeated here. The method includes:

[0117] Step 401: When the first pin receives the first signal transmitted from the sixth pin of the second interface, the first pin transmits the first signal to the discharge circuit. The first signal is used to control the discharge circuit to discharge the voltage of the energy storage capacitor.

[0118] The first pin can be the CC1 pin of the Type-C interface. By reusing the CC1 pin of the Type-C interface to transmit the first signal, the transmission stability of the first signal is ensured. At the same time, there is no need to add an extra pin to the first interface, which reduces the manufacturing cost of the first interface.

[0119] In this embodiment, a first signal is transmitted to the discharge circuit through the first pin to cause the discharge circuit to discharge the voltage of the energy storage capacitor. In this way, the voltage of the energy storage capacitor can be actively and timely discharged by the discharge circuit, thereby reducing the occurrence of damage to the terminal accessories and enhancing the safety of the terminal accessories.

[0120] As an optional implementation, the terminal accessory further includes a first processor, which is connected to the third pin of the first interface and the discharge circuit respectively. The method further includes:

[0121] The first processor acquires the target voltage of the third pin, and sends a third signal to the bleeder circuit when the target voltage meets the target condition. The third signal is used to control the bleeder circuit to bleed the voltage of the energy storage capacitor.

[0122] The first processor, the third pin, and the target voltage meeting the target conditions can all be found in the relevant descriptions in the above embodiments, and will not be repeated here.

[0123] In this embodiment, the first processor obtains the target voltage of the third pin, and when the target voltage meets the target condition, the first processor can send a third signal to the discharge circuit to control the discharge circuit to discharge the voltage of the energy storage capacitor. In this way, the energy storage capacitor can also discharge the voltage in a timely manner, thereby reducing the occurrence of damage to terminal accessories. At the same time, it further increases the diversity and flexibility of the way to control the discharge circuit to discharge the voltage of the energy storage capacitor.

[0124] As an optional implementation, the terminal accessory also includes a trigger circuit, with the second pin of the first interface connected to the trigger circuit. The trigger circuit is connected to the energy storage capacitor and the light-emitting element respectively via switches. The method further includes:

[0125] When the second pin receives the second signal transmitted from the tenth pin of the terminal's second interface, the second pin transmits the second signal to the trigger circuit. The trigger circuit controls the switch to turn on based on the second signal, and the energy storage capacitor discharges to the light-emitting element.

[0126] In this embodiment, when the trigger circuit receives the second signal, it can trigger the energy storage capacitor to discharge to the light-emitting element, thereby controlling the light-emitting element to emit light. This simplifies the control circuit for controlling the light-emitting element and improves the reliability of the control method for controlling the light-emitting element to emit light.

[0127] As an optional implementation, the method further includes:

[0128] When the fourth and fifth pins of the first interface receive the fifth signal transmitted from the eighth and ninth pins of the second interface, the first processor of the terminal accessory controls the charging circuit of the terminal accessory to charge the energy storage capacitor of the terminal accessory based on the fifth signal.

[0129] When it is determined that the voltage value of the energy storage capacitor is greater than or equal to the first preset threshold, the first processor sends a sixth signal to the eighth and ninth pins through the fourth and fifth pins. The sixth signal is used to indicate that the voltage value of the energy storage capacitor is greater than or equal to the first preset threshold.

[0130] In this embodiment, the fourth and fifth pins can be reused for transmitting both the fifth and sixth signals, thereby further improving the utilization rate of the fourth and fifth pins.

[0131] As an optional implementation, see [link to implementation details]. Figure 7 This application also provides a terminal control method, applied to the aforementioned terminal. The specific structure of the terminal can be found in the corresponding descriptions in the above embodiments, and will not be repeated here. The method includes:

[0132] Step 701: When the second interface is connected to the first interface and the terminal is in the target state, the PMIC sends a first signal to the first pin through the sixth pin.

[0133] The first signal is used to control the discharge circuit in the terminal accessory to discharge the voltage of the energy storage capacitor in the terminal accessory.

[0134] Optionally, the seventh pin of the second interface can be the DET pin. The DET pin can be used to detect whether a terminal accessory is inserted into the second interface. When a terminal accessory is detected, the pull-up voltage on the seventh pin of the second interface can be in a normally open state. The normally open state can be understood as a constantly high state (i.e., a high level state for a long time), rather than a pulse state. At the same time, the pull-down voltage (i.e., RD ​​voltage) detected by the DET pin (i.e., the third pin 14) in the first interface can be divided to produce a lower target voltage. The specific value of the lower target voltage is not limited here. For example, the lower target voltage can be 200mV.

[0135] Optionally, the terminal being in the target state can be understood as the terminal being in a state of preparing to send a first signal to the terminal accessory, and the first signal is used to control the discharge circuit in the terminal accessory to discharge the voltage of the energy storage capacitor in the terminal accessory.

[0136] It should be noted that the specific content of the target state is not limited here. Optionally, the target state may include at least one of the following:

[0137] The terminal's battery level is lower than the first preset battery level;

[0138] The battery level of the terminal accessory is lower than the second preset battery level;

[0139] The temperature value detected by the temperature sensor inside the terminal is higher than the first preset temperature value;

[0140] The temperature sensor inside the terminal accessory detects a temperature value that is higher than the second preset temperature value;

[0141] The camera application on the device is closed or running in the background;

[0142] The terminal switches to non-flash mode;

[0143] The device is in a locked, standby, or sleep state;

[0144] The light-emitting element of the terminal accessory is in a ready state, but does not emit light during the target time period;

[0145] The wireless communication connection between the terminal and its accessories is lost;

[0146] The terminal's Hall sensor detected that the magnetic attraction between the terminal accessory and the terminal had been broken;

[0147] The terminal's photosensor detected that the terminal was in a stowed state;

[0148] The terminal's attitude sensor detected that the terminal was in a falling state.

[0149] Among them, the temperature sensor can be a thermistor; non-flash mode can be understood as a mode in which no flash or terminal accessory is needed when acquiring images; the light-emitting element being in a ready state can be understood as: the light-emitting element is in a ready-to-light state, that is, all preparations for light emission have been completed; wireless communication connection can be understood as Bluetooth connection, etc.; magnetic attraction between terminal accessory and terminal can be understood as: when the first interface of the terminal accessory is connected to the second interface of the terminal, it can be connected by magnetic attraction; or, in addition to connecting through the first interface and the second interface, the terminal accessory and the terminal can also be connected by magnetic attraction.

[0150] In addition, the storage state can be understood as the terminal being stored in a bag, and the attitude sensor can include at least one of the following: gyroscope and accelerometer, while the drop state can include transient mechanical drop, etc.

[0151] In this embodiment of the application, the PMIC sends a first signal to the first pin of the first interface through the sixth pin of the second interface. In this way, the first signal can control the discharge circuit to discharge the voltage of the energy storage capacitor, thereby discharging the voltage of the energy storage capacitor in a timely manner.

[0152] Optionally, the first signal includes a high-level pulse signal. That is, when the first interface receives a low-level pulse signal, the bleeder circuit will not discharge the energy storage capacitor in the terminal accessory. Only when the first interface receives a high-level pulse signal will the bleeder circuit discharge the energy storage capacitor in the terminal accessory.

[0153] It should be noted that the terminal accessory can be a portable, hot-swappable device. When used in conjunction with the terminal, the accessory should emit light synchronously when the user clicks the shooting control on the terminal. In related technologies, the terminal accessory and the terminal typically connect via wireless communication such as Bluetooth, and transmit the light-emitting control signal wirelessly. However, wireless communication introduces unpredictable software protocol delays during transmission, making it difficult for the terminal accessory to achieve microsecond-level precise synchronization with the physical shutter of the terminal's underlying camera. Furthermore, the transmission of light-emitting control signals via Bluetooth or other wireless communication methods is susceptible to interference from other antennas on the terminal, resulting in unstable transmission and uncontrollable delays.

[0154] As an optional implementation, the method further includes:

[0155] When the second interface is connected to the first interface and the second processor determines that the terminal is in the target shooting mode, the second processor controls the shooting control control on the terminal to be disabled. In addition, the second processor sends a fifth signal to the fourth and fifth pins through the eighth and ninth pins. The fifth signal is used to control the energy storage capacitor in the terminal accessory to charge.

[0156] When the terminal accessory receives the sixth signal via the fourth and fifth pins on the eighth and ninth pins, the shooting control control on the second processor control terminal is in an available state. The sixth signal is used to indicate that the voltage value of the energy storage capacitor is greater than or equal to the first preset threshold.

[0157] Upon receiving a first input to the shooting control control, the second processor controls the camera module of the terminal to capture an image, and the second processor sends a second signal to the second pin of the terminal accessory through the tenth pin of the second interface. The second signal is used to cause the energy storage capacitor of the terminal accessory to discharge to the light-emitting element of the terminal accessory.

[0158] Among them, see Figure 6 , Figure 6 C1 in the diagram represents the transmission path corresponding to the first signal, while C2 represents the transmission path corresponding to the third signal.

[0159] The seventh pin of the second interface of the terminal is connected to the third pin of the first interface of the terminal accessory. This can be understood as the seventh pin of the second interface of the terminal and the third pin of the first interface of the terminal accessory being able to make direct contact, thus ensuring a stable connection between the seventh pin of the second interface and the third pin of the first interface of the terminal accessory.

[0160] Among them, the target shooting mode can also be called the flash photography mode or flash shooting mode. That is, when the terminal is in the target shooting mode, the terminal accessories need to be used for supplementary lighting during the image acquisition process.

[0161] The channel formed between pins 8 and 9 and the second processor is similar in principle to the channel formed between pins 4 and 5 and the first processor. This channel can also be called a Universal Serial Bus (USB) channel. The USB channel can be used to transmit the fifth and sixth signals, which have low latency requirements. The channel corresponding to pin 10, and the channel corresponding to pin 2, can be used to transmit the second signal, which has extremely high latency requirements. This ensures that the interval between the moment the terminal's camera module captures an image and the moment the light-emitting element in the terminal accessory emits light is within a preset range, thus synchronizing the image capture by the terminal's camera module with the light-emitting element's emission, thereby enhancing the display quality of the captured image.

[0162] In this embodiment, the second processor can send a fifth signal to the fourth and fifth pins of the terminal accessory via the eighth and ninth pins. The fifth signal can control the energy storage capacitor in the terminal accessory to charge. When the second processor receives a sixth signal, which indicates that the voltage value of the energy storage capacitor is greater than or equal to a first preset threshold, i.e., the voltage of the energy storage capacitor meets the supplementary lighting requirements for the terminal to capture images, the second processor can control the shooting control control on the terminal to be in an available state. Upon receiving a first input to the shooting control control, the second processor can control the camera module of the terminal to capture images. The second processor can also send a second signal to the terminal accessory, which controls the light-emitting element of the terminal accessory to emit light. The interval between the time when the camera module captures images and the time when the light-emitting element of the terminal accessory emits light is within a preset range, i.e., the image capture and the light-emitting element can be synchronized. This can enhance the lighting conditions of the captured images, thereby further enhancing the display quality of the final captured images.

[0163] To further illustrate the above embodiments, a specific embodiment will be used as an example below.

[0164] For example, the flash photography mode (i.e. target shooting mode) of the terminal's camera interface is usually grayed out (i.e. disabled). After the terminal accessory is inserted into the terminal (i.e. the second interface is connected to the first interface), communication is carried out through the USB2 channel (i.e. the channel formed by the eighth and ninth pins and the second processor, and the channel formed by the fourth and fifth pins and the first processor). When the terminal accurately recognizes the terminal accessory, the flash photography mode of the camera interface is set to the selectable mode.

[0165] The user opens the camera application (App) on the terminal and switches to flash photography mode (i.e., the terminal is in target shooting mode). The terminal sends the charging packet (i.e., the packet corresponding to the fifth signal) of the energy storage capacitor to the first processor of the terminal accessory via the USB2 channel. After parsing, the first processor controls the charging path to start charging the energy storage capacitor. At this time, the shutter button (i.e., the shooting control) is grayed out. The flash can only be triggered after the energy storage capacitor 20 is fully charged, which takes about 3 seconds. Only then can the shutter button be clicked.

[0166] After the ADC of the first processor detects that the voltage of the energy storage capacitor reaches 320V (that is, the voltage value of the energy storage capacitor is greater than or equal to the first preset threshold), the first processor sends a packet (that is, the packet corresponding to the sixth signal) to the second processor of the terminal through the USB2 channel. After receiving the packet, the second processor parses it and finds that the voltage of the capacitor meets the requirements. The camera interface of the terminal sets the photo button (that is, the shooting control) to a clickable state (that is, it is in an available state). At the same time, it can display a prompt message indicating that "the terminal accessories are ready". The prompt message may include at least one of the following: icons, text and other information.

[0167] When the user presses the camera button on the terminal (i.e., receives the first input for the shooting control), the terminal's second processor directly drives the SBU pin (i.e., the tenth pin of the second interface), which is multiplexed as the light-emitting trigger line, to output a high-level narrow pulse (i.e., the second signal) within the microseconds of the camera module's hardware shutter opening. This pulse reaches the peripheral trigger terminal (i.e., the trigger circuit of the terminal accessory) without delay, instantly breaking down the light-emitting element to achieve light emission, thus completing the microsecond-level precision hard synchronization of shutter and light emission.

[0168] As an optional implementation, the second signal includes a high-level pulse signal or a low-level pulse signal, and the light-emitting duration of the light-emitting element of the terminal accessory corresponds to the duration of the high-level pulse signal or the low-level pulse signal; or,

[0169] The fifth signal includes a first control signal for controlling the charging circuit of the terminal accessory to charge the energy storage capacitor of the terminal accessory, and a first duration signal for indicating the light emission duration of the light-emitting element of the terminal accessory; the second signal includes a trigger signal for triggering the light emission of the light-emitting element of the terminal accessory; or,

[0170] The second signal includes a second duration signal for indicating the duration of light emission of the light-emitting element of the terminal accessory, and a second control signal for controlling the light emission of the light-emitting element of the terminal accessory.

[0171] The method for determining the light emission duration corresponding to the first duration signal is not limited here. Optionally, the light emission duration corresponding to the first duration signal can be selected on the terminal's camera interface based on user input. For example, the light emission duration can be 1 / 1 or 1 / 64 seconds.

[0172] Since the second signal includes a second duration signal, when both the second and third pins are SBU pins, the second duration signal can be defined using SBU encoding. After receiving the SBU encoding, the first processor of the terminal accessory can convert it to obtain the light emission duration. For example: see [link to relevant documentation]. Figure 5 , Figure 5 The diagram shows the SBU encoding. The light emission duration corresponding to SBU encoding 101 is 1 / 1 second, the light emission duration corresponding to SBU encoding 100 is 1 / 8 second, the light emission duration corresponding to SBU encoding 111 is 1 / 32 second, and the light emission duration corresponding to SBU encoding 110 is 1 / 64 second.

[0173] In this embodiment of the application, when the second signal includes a high-level pulse signal or a low-level pulse signal, and the light-emitting duration of the terminal accessory corresponds to the duration of the high-level pulse signal or the low-level pulse signal, the light-emitting duration of the terminal accessory can be determined simply by considering the duration of the high-level pulse signal or the low-level pulse signal, thus simplifying the method for determining the light-emitting duration of the terminal accessory.

[0174] When the fifth signal includes a first duration signal for indicating the duration of light emission of the terminal accessory, and the second signal includes a trigger signal for triggering the terminal accessory to emit light, the first duration signal for indicating the duration of light emission can be sent to the first processor along with the fifth signal, while the trigger signal for triggering the terminal accessory to emit light can be sent to the first processor along with the second signal. In other words, the second signal does not need to include the duration of light emission, but only the trigger signal, thereby increasing the diversity and flexibility of the method of sending the duration of light emission.

[0175] When the second signal includes a second duration signal for representing the duration of light emission of the terminal accessory, that is, the duration of light emission is not transmitted through the USB2 channel, but through the light emission trigger signal line, and the first processor needs to convert the SBU code to obtain the duration of light emission, the accuracy of the determined duration of light emission is increased.

[0176] As an optional implementation, after the second processor sends a second signal to the second pin of the terminal accessory via the tenth pin of the second interface, the method further includes:

[0177] When the second processor receives the seventh signal sent by the terminal accessory, the second processor switches the shooting control control from an available state to a disabled state based on the seventh signal. The seventh signal is used to indicate that the light-emitting element of the terminal accessory has completed emitting light.

[0178] When the second processor receives the eighth signal sent by the terminal accessory, the second processor switches the shooting control control from the disabled state to the enabled state based on the eighth signal. The eighth signal is used to indicate that the voltage value of the energy storage capacitor is greater than or equal to the first preset threshold.

[0179] In this embodiment, after the light-emitting element of the terminal accessory completes to emit light, since the voltage value in the energy storage capacitor is less than or equal to the first preset threshold, the voltage of the energy storage capacitor is insufficient to support the light-emitting element to emit light. Therefore, the shooting control control can be disabled, and the energy storage capacitor needs to be charged. When the voltage value of the energy storage capacitor is greater than or equal to the first preset threshold, that is, after the second processor receives the eighth signal, it indicates that the voltage of the energy storage capacitor is sufficient to support the light-emitting element to emit light. At this time, the state of the shooting control control can be switched from the disabled state to the enabled state. In this way, the light-emitting effect of the terminal accessory can be better.

[0180] See Figure 9 , Figure 9 This is a structural diagram of the control device for the terminal accessory provided in this application embodiment. This control device is applied to the aforementioned terminal accessory, such as... Figure 9 As shown, the control device 900 of the terminal accessory includes:

[0181] The first transmitting module 901 is used to transmit a first signal to the bleeder circuit when the first pin receives a first signal transmitted from the sixth pin of the second interface. The first signal is used to control the bleeder circuit to bleed the voltage of the energy storage capacitor.

[0182] As an optional implementation, the terminal accessory also includes a first processor, which is connected to the third pin of the first interface and the discharge circuit respectively. The control device 900 of the terminal accessory also includes:

[0183] The third transmitting module is used by the first processor to obtain the target voltage of the third pin, and to send a third signal to the bleeder circuit when the target voltage meets the target condition. The third signal is used to control the bleeder circuit to bleed the voltage of the energy storage capacitor.

[0184] As an optional implementation, the terminal accessory also includes a trigger circuit, with the second pin of the first interface connected to the trigger circuit. The trigger circuit is connected to the energy storage capacitor and the light-emitting element respectively via a switch. The control device 900 of the terminal accessory also includes:

[0185] The first transmission module is used to transmit a second signal to a trigger circuit when the second pin receives a second signal transmitted from the tenth pin of the second interface of the terminal. The trigger circuit controls the switch to turn on based on the second signal, and the energy storage capacitor discharges to the light-emitting element.

[0186] As an optional implementation, the terminal accessory also includes a trigger circuit. The second pin of the first interface is connected to the trigger circuit via a first processor. The trigger circuit is connected to the energy storage capacitor and the light-emitting element via switches. The control device 900 of the terminal accessory also includes:

[0187] The second transmission module is used to transmit a second signal to the first processor when the second pin receives a second signal transmitted from the tenth pin of the second interface of the terminal. The first processor sends a fourth signal to the trigger circuit based on the second signal. The trigger circuit controls the switch to turn on based on the fourth signal, and the energy storage capacitor discharges to the light-emitting element.

[0188] As an optional implementation, the control device 900 of the terminal accessory further includes:

[0189] The first control module is used to control the charging circuit of the terminal accessory to charge the energy storage capacitor of the terminal accessory based on the fifth signal when the fourth and fifth pins of the first interface receive the fifth signal transmitted by the eighth and ninth pins of the second interface.

[0190] The fourth transmitting module is used to send a sixth signal to the eighth and ninth pins through the fourth and fifth pins when the voltage value of the energy storage capacitor is determined to be greater than or equal to the first preset threshold. The sixth signal is used to indicate that the voltage value of the energy storage capacitor is greater than or equal to the first preset threshold.

[0191] See Figure 10 , Figure 10 This is a structural diagram of the control device for the terminal provided in the embodiments of this application, such as... Figure 10 As shown, the terminal control device 1000 includes:

[0192] When the second transmitting module 1001 is connected to the first interface and the terminal is in the target state, the PMIC sends a first signal to the first pin through the sixth pin.

[0193] The first signal is used to control the discharge circuit in the terminal accessory to discharge the voltage of the energy storage capacitor in the terminal accessory.

[0194] As an optional implementation, the terminal control device 1000 further includes:

[0195] The fifth transmitting module is used to disable the shooting control controls on the terminal when the second interface is connected to the first interface and the second processor determines that the terminal is in the target shooting mode. The second processor also sends a fifth signal to the fourth and fifth pins through the eighth and ninth pins. The fifth signal is used to control the energy storage capacitor in the terminal accessory to charge.

[0196] The second control module is used to enable the shooting control control on the terminal to be in an available state when the terminal accessory sends a sixth signal through the fourth and fifth pins on the eighth and ninth pins. The sixth signal is used to indicate that the voltage value of the energy storage capacitor is greater than or equal to the first preset threshold.

[0197] The third control module is used to control the camera module of the terminal to capture images when the second processor receives the first input to the shooting control control, and the second processor sends a second signal to the second pin of the terminal accessory through the tenth pin of the second interface. The second signal is used to cause the energy storage capacitor of the terminal accessory to discharge to the light-emitting element of the terminal accessory.

[0198] The control device for the terminal accessory and the control device for the terminal in the embodiments of this application can be a device, or it can be a component, integrated circuit, or chip in the terminal. The device can be a mobile terminal or a non-mobile terminal. For example, a mobile terminal can be a mobile phone, tablet computer, laptop computer, handheld computer, vehicle terminal, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., and a non-mobile terminal can be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. The embodiments of this application do not make specific limitations.

[0199] The control device for the terminal accessory and the control device for the terminal in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0200] The control device for the terminal accessory and the control device for the terminal provided in this application embodiment can respectively achieve… Figure 4 and Figure 7 The various processes implemented in the method embodiments are not described in detail here to avoid repetition.

[0201] Optional, see Figure 11 This application also provides a terminal, including a processor 1102, a memory 1101, and a program or instructions stored in the memory 1101 and executable on the processor 1102. When the program or instructions are executed by the processor 1102, they implement the above-mentioned... Figure 7 The various processes of the method embodiments shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0202] It should be noted that the terminals in this application embodiment include the aforementioned mobile terminals and non-mobile terminals.

[0203] See Figure 12 , Figure 12 A schematic diagram of the hardware structure of a terminal to implement the various embodiments of this application.

[0204] The terminal 1200 includes, but is not limited to, the following components: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensor 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, and processor 1210.

[0205] Those skilled in the art will understand that the terminal 1200 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1210 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 12 The terminal structure shown does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0206] The processor 1210 is used to: when the seventh pin is connected to the third pin and the terminal is in the target state, the PMIC sends a first signal to the first pin through the sixth pin;

[0207] The first signal is used to control the discharge circuit in the terminal accessory to discharge the voltage of the energy storage capacitor in the terminal accessory.

[0208] As an optional implementation, the processor 1210 is also used for:

[0209] When the seventh pin is connected to the third pin and the second processor determines that the terminal is in the target shooting mode, the second processor controls the shooting control control on the terminal to be disabled. The second processor sends a fifth signal to the fourth pin and the fifth pin through the eighth pin and the ninth pin. The fifth signal is used to control the energy storage capacitor in the terminal accessory to charge.

[0210] When the terminal accessory receives the sixth signal via the fourth and fifth pins on the eighth and ninth pins, the shooting control control on the second processor control terminal is in an available state. The sixth signal is used to indicate that the voltage value of the energy storage capacitor is greater than or equal to the first preset threshold.

[0211] Upon receiving a first input to the shooting control control, the second processor controls the camera module of the terminal to capture an image, and the second processor sends a second signal to the second pin of the terminal accessory through the tenth pin of the second interface. The second signal is used to cause the energy storage capacitor of the terminal accessory to discharge to the light-emitting element of the terminal accessory.

[0212] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the control method embodiment of the terminal described above and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0213] The processor mentioned above is the processor in the terminal of the above embodiments. The readable storage medium mentioned above includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.

[0214] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the control method embodiment of the terminal and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0215] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0216] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0217] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods disclosed in the various embodiments of this application.

[0218] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the scope of protection of this application.

Claims

1. A terminal accessory, characterized in that, include: The system comprises a first interface, an energy storage capacitor, a discharge circuit, and a light-emitting element. The first pin of the first interface is connected to the discharge circuit, the discharge circuit is connected to the energy storage capacitor, and the energy storage capacitor is connected to the light-emitting element. Wherein, when the first interface is connected to the second interface of the terminal, the first pin is used to transmit the first signal sent by the terminal; The first signal is used to control the discharge circuit to discharge the voltage of the energy storage capacitor.

2. The terminal accessory according to claim 1, characterized in that, Also includes: A trigger circuit is provided, wherein the second pin of the first interface is connected to the trigger circuit, and the trigger circuit is connected to the energy storage capacitor and the light-emitting element. When the first interface is connected to the second interface, the second pin is used to transmit a second signal sent by the terminal, and the second signal is used to cause the energy storage capacitor to discharge to the light-emitting element.

3. The terminal accessory according to claim 2, characterized in that, It also includes a first processor, which is connected to the third pin of the first interface and the discharge circuit respectively; The first processor is used to acquire the target voltage of the third pin, and when the target voltage meets the target condition, it sends a third signal to the discharge circuit. The third signal is used to control the discharge circuit to discharge the voltage of the energy storage capacitor.

4. The terminal accessory according to claim 3, characterized in that, The third pin is also connected to the first resistor.

5. The terminal accessory according to claim 3, characterized in that, The first processor is also connected to the energy storage capacitor, and the first processor is also used to obtain the voltage value of the energy storage capacitor.

6. The terminal accessory according to claim 3, characterized in that, It also includes a charging circuit, through which the first processor is connected to the energy storage capacitor.

7. The terminal accessory according to any one of claims 2 to 6, characterized in that, The trigger circuit is connected to the energy storage capacitor and the light-emitting element respectively via a switch. When the first interface and the second interface are connected, the second pin is used to transmit the second signal to the trigger circuit. The trigger circuit controls the switch to turn on based on the second signal, and the energy storage capacitor discharges to the light-emitting element.

8. The terminal accessory according to any one of claims 3 to 6, characterized in that, The second pin is connected to the trigger circuit through the first processor. The trigger circuit is connected to the energy storage capacitor and the light-emitting element through a switch. When the first interface and the second interface are connected, the second pin is used to transmit the second signal to the first processor. The first processor sends a fourth signal to the trigger circuit based on the second signal. The trigger circuit controls the switch to turn on based on the fourth signal, and the energy storage capacitor discharges to the light-emitting element.

9. The terminal accessory according to claim 6, characterized in that, The first interface further includes a fourth pin and a fifth pin, which are respectively connected to the first processor. When the first interface is connected to the second interface, the fourth pin and the fifth pin are used to transmit a fifth signal sent by the terminal, and the first processor controls the charging circuit to charge the energy storage capacitor based on the fifth signal. Also, the fourth pin and the fifth pin are used to transmit a sixth signal sent by the first processor to the terminal, and the sixth signal is used to indicate that the voltage value of the energy storage capacitor is greater than or equal to a first preset threshold.

10. A terminal, characterized in that, It includes a power management integrated circuit (PMIC), a second processor, and a second interface. The PMIC is connected to the sixth and seventh pins of the second interface, and the second processor is connected to the eighth, ninth, and tenth pins of the second interface. In the case where the second interface is connected to the first interface of the terminal accessory, The seventh pin is connected to the third pin of the first interface; The sixth pin is connected to the first pin of the first interface and is used to transmit a first signal to the first pin; The eighth pin and the ninth pin are respectively connected to the fourth pin and the fifth pin of the first interface, and are used to transmit the fifth signal to the fourth pin and the fifth pin; The tenth pin is connected to the second pin of the first interface and is used to transmit a second signal to the second pin.

11. A control method for a terminal accessory, characterized in that, The method, applied to the terminal accessory according to any one of claims 1 to 9, comprises: When the first pin receives the first signal transmitted from the sixth pin of the second interface, the first pin transmits the first signal to the discharge circuit, and the first signal is used to control the discharge circuit to discharge the voltage of the energy storage capacitor.

12. The method according to claim 11, characterized in that, The terminal accessory further includes a first processor, which is connected to the third pin of the first interface and the discharge circuit respectively. The method further includes: The first processor acquires the target voltage of the third pin, and sends a third signal to the discharge circuit when the target voltage meets the target condition. The third signal is used to control the discharge circuit to discharge the voltage of the energy storage capacitor.

13. The method according to claim 11, characterized in that, The terminal accessory further includes a trigger circuit, with a second pin of the first interface connected to the trigger circuit. The trigger circuit is connected to the energy storage capacitor and the light-emitting element via switches. The method further includes: When the second pin receives the second signal transmitted from the tenth pin of the terminal's second interface, the second pin transmits the second signal to the trigger circuit, and the trigger circuit controls the switch to turn on based on the second signal, and the energy storage capacitor discharges to the light-emitting element.

14. The method according to claim 12, characterized in that, The terminal accessory further includes a trigger circuit, wherein the second pin of the first interface is connected to the trigger circuit via the first processor, and the trigger circuit is connected to the energy storage capacitor and the light-emitting element respectively via switches. The method further includes: When the second pin receives the second signal transmitted from the tenth pin of the terminal's second interface, the second pin transmits the second signal to the first processor. The first processor sends a fourth signal to the trigger circuit based on the second signal. The trigger circuit controls the switch to turn on based on the fourth signal, and the energy storage capacitor discharges to the light-emitting element.

15. The method according to claim 11, characterized in that, The method further includes: When the fourth and fifth pins of the first interface receive the fifth signal transmitted from the eighth and ninth pins of the second interface, the first processor of the terminal accessory controls the charging circuit of the terminal accessory to charge the energy storage capacitor of the terminal accessory based on the fifth signal. If the voltage value of the energy storage capacitor is determined to be greater than or equal to a first preset threshold, the first processor sends a sixth signal to the eighth and ninth pins through the fourth and fifth pins. The sixth signal is used to indicate that the voltage value of the energy storage capacitor is greater than or equal to the first preset threshold.

16. A method for controlling a terminal, characterized in that, Applied to the terminal of claim 10, the method includes: When the second interface is connected to the first interface and the terminal is in the target state, the PMIC sends a first signal to the first pin through the sixth pin; The first signal is used to control the discharge circuit in the terminal accessory to discharge the voltage of the energy storage capacitor in the terminal accessory.

17. The method according to claim 16, characterized in that, The method further includes: When the second interface is connected to the first interface and the second processor determines that the terminal is in target shooting mode, the second processor controls the shooting control control on the terminal to be disabled, and the second processor sends a fifth signal to the fourth pin and the fifth pin through the eighth pin and the ninth pin, the fifth signal being used to control the energy storage capacitor in the terminal accessory to charge; When the eighth and ninth pins receive the sixth signal sent by the terminal accessory through the fourth and fifth pins, the second processor controls the shooting control control on the terminal to be in an available state, and the sixth signal is used to indicate that the voltage value of the energy storage capacitor is greater than or equal to a first preset threshold. Upon receiving a first input to the shooting control control, the second processor controls the camera module of the terminal to capture an image, and the second processor sends a second signal to the second pin of the terminal accessory through the tenth pin of the second interface. The second signal is used to cause the energy storage capacitor of the terminal accessory to discharge to the light-emitting element of the terminal accessory.