Electronic device flashlight flashing test method, control device and electronic device

CN122883043APending Publication Date: 2026-10-09XIAN WINGTECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510358794.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2026-10-09

AI Technical Summary

Technical Problem

然而,当打开闪光灯时,常常出现电子设备和计算机之间的数据通信断连问题,导致Google CTS闪光灯测试无法进行

Benefits of technology

[0047]综上所述,本发明之电子设备闪光灯打闪测试方法、控制装置及电子设备具有如下的有益效果:通过闪光灯充电芯片的两个供电输出端连接在一起共同为闪光灯供电,可以采用手电筒模式的供电信号实现打闪功能,从而避免了打闪时供电信号的电压过高导致必须断开过压保护芯片,解决因电压过高而中断无法进行检测的技术问题,确保电子设备的闪光灯打闪测试顺利进行。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122883043A_ABST
    Figure CN122883043A_ABST
Patent Text Reader

Abstract

The application discloses a kind of electronic equipment flashlight test methods, control device and electronic equipment, its method includes: the two power supply output ends of flashlight charging chip are connected together and commonly power supply for flashlight;Based on the received flashlight instruction, make overvoltage protection chip keep on conducting;Make battery main power supply signal and the input end of flashlight driving circuit communication;Make the two power supply output ends of flashlight charging chip all output the power supply signal of flashlight mode, and disconnect the power supply of the two power supply output ends of flashlight charging chip after flashlight lighting.The electronic equipment flashlight test method of the application, by the two power supply output ends of flashlight charging chip are connected together and commonly power supply for flashlight, and the improvement of control logic when flashing, can realize the function of flashing by the power supply signal of flashlight mode, and data transmission is not interrupted when flashing, realizes the flashing detection function of external equipment to electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic device testing, and more particularly to a method, control device, and electronic device for testing the flashing of an electronic device's flash lamp. Background Technology

[0002] Android CTS certification (Compatibility Test Suite, Google's compatibility certification) is crucial for smartphones and other electronic devices. It ensures that these devices can correctly run all Android-based applications, avoiding crashes and other issues caused by system incompatibility. Only devices that have passed Android CTS certification are allowed to use the Google Play app store, which is especially important for the sale of these devices in overseas markets.

[0003] During the flash testing process for Android CTS certification, the electronic device needs to be connected to a computer via a data cable for testing. However, when the flash is turned on, data communication between the electronic device and the computer often drops, preventing the Google CTS flash test from proceeding. Summary of the Invention

[0004] One of the objectives of this invention is to provide a method for testing the flash of an electronic device, which enables the electronic device using this method to avoid disconnection from external testing equipment during the flash testing process.

[0005] To achieve the above objectives, the present invention provides a method for testing the flash of an electronic device. The method involves controlling the flash charging chip of the electronic device to perform a flash test. The two power output terminals of the flash charging chip are connected together to power the flash, and the flash charging chip is connected to the Type-C interface of the electronic device through an overvoltage protection chip. The method includes the following steps:

[0006] Based on the received flash command, the overvoltage protection chip remains on.

[0007] Enables the power module of the electronic device to provide the main battery power supply signal to the flashlight mode power supply pin of the flash charging chip;

[0008] Connect the flashlight mode power supply pin of the flash charging chip to the input terminal of its internal flash driver circuit, and disconnect the flash mode power supply pin of the flash charging chip from the input terminal of its internal flash driver circuit.

[0009] This enables both power output terminals of the flash charging chip to output a power signal in flashlight mode.

[0010] The flash effect is achieved by disconnecting the power supply to the two power output terminals of the flash charging chip after the flash is turned on.

[0011] Furthermore, the main battery power supply signal is generated directly from the battery voltage; when the electronic device receives the flash test command, it also performs the following steps:

[0012] The power module disconnects the output of its battery boost circuit, which is used to boost the battery main power supply signal to generate a battery boost power supply signal; and / or

[0013] Disconnect the USB power supply pin of the flash charging chip from the power module of the electronic device.

[0014] Furthermore, the sum of the currents output from the two power supply output terminals of the flash charging chip in flashlight mode meets the current requirements when the flash is in flash mode; when the flash is in flashlight mode, one power supply output terminal of the flash charging chip outputs a power supply signal in flashlight mode, while the other power supply output terminal stops outputting a power supply signal.

[0015] Another objective of this invention is to provide a control device for testing the flash of an electronic device's flash lamp, which provides control logic to prevent the electronic device from losing connection with external testing equipment during the flash lamp testing process.

[0016] To achieve the above objectives, the present invention also provides a flash test control device for electronic devices, comprising:

[0017] The first control unit is used to send an overvoltage control signal to keep the overvoltage protection chip on after receiving the flash command, and to send a first on / off control signal to disconnect the USB power supply pin of the flash charging chip from the power module of the electronic device.

[0018] The second control unit is used to send a first power supply control signal after receiving a flash command to enable the power module to provide the main power supply signal of the battery to the flashlight mode power supply pin of the flash charging chip; and to send a second power supply control signal to enable the power module to disconnect the output of its battery boost circuit.

[0019] The third control unit is used to send a second on / off control signal after receiving the flash command to disconnect the flash mode power supply pin of the flash charging chip from the input terminal of its internal flash drive circuit, and to send a third on / off control signal to connect the flashlight mode power supply pin of the flash charging chip to the input terminal of its internal flash drive circuit.

[0020] The fourth control unit is used to send a fourth on / off control signal and a fifth on / off control signal after receiving a flash command, so that the two power supply output terminals of the flash charging chip are connected to the two output terminals of the internal flash driver circuit respectively; and to disconnect the two power supply output terminals of the flash charging chip from the two output terminals of the internal flash driver circuit after the flash is lit.

[0021] Another objective of this invention is to provide an electronic device that can avoid disconnection from external testing equipment during flash lamp testing.

[0022] To achieve the above objectives, the present invention also provides an electronic device, comprising:

[0023] flash;

[0024] Type-C interface;

[0025] A processor chip used for data transmission with external devices;

[0026] The power module is used to provide the main battery power supply signal as the power supply signal for the flash charging chip during flash testing and when the flash is in flashlight mode.

[0027] The flash charging chip provides the corresponding drive current to the flash during flash testing and when the flash is in flashlight mode; and

[0028] An overvoltage protection chip is used to connect the USB power supply pin of the flash charging chip and the power supply pin of the type-c interface. The control terminal of the overvoltage protection chip is electrically connected to the overvoltage control pin of the flash charging chip.

[0029] The first and second power supply output pins of the flash charging chip are both electrically connected to the flash. During the flash test, the flash charging chip keeps the overvoltage protection chip on and supplies power through the main battery power supply signal connected to its flashlight mode power supply pin, and causes both its first and second power supply output pins to output flashlight mode power supply signals.

[0030] Furthermore, the flash charging chip includes a first MOSFET, the source of which is electrically connected to the USB power supply pin of the flash charging chip, and the drain of which is used to output a power supply signal to the power module; the gate of the first MOSFET is connected to a first on / off control signal, and the overvoltage control pin of the flash charging chip is used to output an overvoltage control signal. During the flash flashing test, the overvoltage control signal keeps the overvoltage protection chip on, and the first on / off control signal turns off the first MOSFET.

[0031] Furthermore, the flash charging chip includes:

[0032] The drain of the second MOSFET is electrically connected to the flash mode power supply pin of the flash charging chip, and the gate of the second MOSFET is connected to the second on / off control signal.

[0033] The third MOS transistor, the source of which is electrically connected to the flashlight mode power supply pin of the flash charging chip, and the gate of which is connected to the third on / off control signal;

[0034] A flash driver circuit has an input terminal, a control terminal, a first output terminal, and a second output terminal. The source of the second MOSFET and the drain of the third MOSFET are both electrically connected to the input terminal of the flash driver circuit. The control terminal of the flash driver circuit is connected to a flash mode control signal.

[0035] The fourth MOSFET, the source of which is electrically connected to the first power supply output pin of the flash charging chip, the gate of which is connected to the fourth on / off control signal, and the drain of which is electrically connected to the first output terminal of the flash driving circuit; and

[0036] The fifth MOS transistor has its source electrically connected to the second power supply output pin of the flash charging chip, its gate connected to the fifth on / off control signal, and its drain electrically connected to the second output terminal of the flash driving circuit.

[0037] During the flash test, the second on / off control signal turns off the second MOSFET, the third on / off control signal turns on the third MOSFET, the fourth on / off control signal turns on the fourth MOSFET, and the fifth on / off control signal turns on the fifth MOSFET. The flash mode control signal causes both the first and second output terminals of the flash drive circuit to output flashlight mode drive current. When the flash is turned on, the fourth on / off control signal turns off the fourth MOSFET, and the fifth on / off control signal turns off the fifth MOSFET.

[0038] Furthermore, when in flashlight mode, the fourth on / off control signal turns on the fourth MOSFET, and the fifth on / off control signal turns off the fifth MOSFET; or

[0039] The fourth on / off control signal turns off the fourth MOSFET, and the fifth on / off control signal turns on the fifth MOSFET.

[0040] Furthermore, the power module includes:

[0041] The power management circuit outputs a positive battery voltage signal as the main power supply signal for the battery and provides power to the flashlight mode power supply pin of the flash charging chip; and

[0042] The battery boost circuit is used to boost the main power supply signal of the battery to obtain a boost power supply signal for the battery, and then provide it to the flash mode power supply pin of the flash charging chip.

[0043] When the flash unit is performing a flash test, the power management circuit outputs the main power supply signal for the battery, and the battery boost circuit cuts off the output of the boost power supply signal for the battery.

[0044] Furthermore, the electronic device also includes:

[0045] The USB switch chip is used to switch the data transmission channels of the processor chip; and

[0046] The voltage divider circuit is used to divide the voltage connected to the USB power supply pin of the flash charging chip and then provide it to the control terminal of the USB switching chip.

[0047] In summary, the flash testing method, control device, and electronic device of the present invention have the following beneficial effects: by connecting the two power supply output terminals of the flash charging chip together to supply power to the flash, the flashing function can be achieved using a flashlight mode power supply signal, thereby avoiding the need to disconnect the overvoltage protection chip due to excessively high voltage during flashing, solving the technical problem of interruption and inability to perform testing due to excessive voltage, and ensuring the smooth conduct of flash testing of electronic devices. Attached Figure Description

[0048] Figure 1 This is a schematic diagram of the connection between an electronic device and a testing device according to one embodiment of the present invention.

[0049] Figure 2 This is a connection block diagram of the internal structure of an electronic device related to flash lamp testing in the prior art.

[0050] Figure 3 This is a flowchart of one embodiment of the electronic device flash test method of the present invention.

[0051] Figure 4 This is a schematic diagram of the internal structure of the electronic device related to the flash lamp test in one embodiment of the present invention.

[0052] Figure 5 This is a structural block diagram of one embodiment of the electronic device flash lamp flashing test control device of the present invention.

[0053] Figure 6 This is a circuit diagram of the relevant circuit structure in the power management circuit of one embodiment of the present invention.

[0054] Figure 7 This is a circuit diagram of the relevant circuit structure in the flash charging chip according to one embodiment of the present invention. Detailed Implementation

[0055] The following description, in conjunction with the accompanying drawings and specific embodiments, will further explain the electronic device flashing test method, control device, and electronic device described in this invention. However, this explanation does not constitute an improper limitation on the technical solution of this invention.

[0056] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating the connection between the electronic device under test and the testing equipment according to one embodiment of the present invention. The testing equipment is typically configured as a computer 900 (such as a desktop computer, laptop computer, etc.). The computer 900 has a built-in functional module (such as an application) for performing Android CTS certification testing on the electronic device under test 100 (hereinafter referred to as electronic device 100). Electronic device 100 is an Android electronic device (a portable Android device with the Android system installed), such as an Android phone, Android tablet, etc. Electronic device 100 has a built-in camera, which, in addition to its image capture function, also functions as a lighting (flashlight) to provide illumination for the user when needed. When testing electronic device 100, the type-c interface 110 of electronic device 100 is connected to the USB interface 910 of computer 900 via a type-c data cable 800, thereby enabling data transmission between electronic device 100 and computer 900, and allowing computer 900 to perform Android CTS certification testing on electronic device 100.

[0057] Please see Figure 2 , Figure 2 This is a block diagram of the internal structure of an electronic device 100 related to flash lamp testing in the prior art. The power supply pin VBUS of the Type-C interface 110 of the electronic device 100 is used to receive a +5V power supply from the USB interface 910 of the computer 900. This power supply is then sent to the USB power supply pin VBUS of the flash lamp charging chip 120 via the overvoltage protection chip OVP as the power supply VBUS_IN. The power supply VBUS_IN provides the power supply signal PMID to the electronic device 100. The detection pins CC1 and CC2 of the Type-C interface 110 are used for disconnection detection to determine whether the Type-C interface 110 is disconnected from external devices such as the computer 900.

[0058] The first data pin D+ and the second data pin D- of the Type-C interface 110 are used for data transmission with the computer 900. It is connected to the processor chip 140 via a USB switch chip 150, which has two channels. The power supply VBUS_IN is also connected to the control pin SEL of the USB switch chip 150 via a voltage divider circuit 160, serving as the control signal for the USB switch chip 150. When the control pin SEL of the USB switch chip 150 is high, its first channel is connected to the processor chip 140 for data transmission between the computer 900 and the electronic device 100. When the control pin SEL of the USB switch chip 150 is low, its second channel is connected to the processor chip 140 for the computer 900 to detect bugs in the electronic device 100.

[0059] In addition to the USB power supply pin VBUS, the flash charging chip 120 also has a flashlight mode power supply pin TORCH_VDD for inputting power signals in flashlight mode and a flash mode power supply pin FLASH_VDD for inputting power signals in flashing mode. Since the flash LED requires a large current to flash, a higher voltage power supply is required. However, the power supply VBUS_IN is only +5V, and the voltage of the power supply signal PMID obtained from VBUS_IN is insufficient to generate the drive current for flashing tests. Therefore, in current technology, when the flash LED flashes, the main battery power supply signal VPH-PWR obtained from the battery voltage of the electronic device 100 is boosted in reverse to obtain a higher voltage power supply signal PMID_BUCK, which powers the flash mode power supply pin FLASH_VDD of the flash charging chip 120 to make the flash LED flash (in flashlight mode, the main battery power supply signal VPH-PWR powers the TORCH_VDD pin of the flash charging chip 120 to light up the flash LED). At this time, because the voltage of the power supply signal PM ID_BUCK is significantly higher than +5V, in order to prevent the reverse voltage input to the computer 900 from burning out the USB interface 910, the overvoltage control pin ACDRV of the flash charging chip 120 will output a control signal to disconnect the overvoltage protection chip OVP, thereby protecting the USB interface 910 of the computer 900. This will cause the power supply VBUS_IN to be disconnected (i.e., the power supply VBUS_IN will become 0V). Since the electronic device 100 cannot detect the power supply VBUS_IN, it will assume that the type-c interface 110 is not connected to the computer 900 or other external devices, thus triggering a connection failure detection, resulting in an interruption of data transmission between the electronic device 100 and the computer 900, and also interrupting the computer 900's detection of the electronic device 100. In addition, after the power supply VBUS_IN is disconnected, the signal connected to the control pin SEL of the USB switch chip 150 will become low, thereby switching its second channel to connect to the processor chip 140. The electronic device 100 enters a bug detection mode, which will also cause a data transmission interruption.

[0060] Those skilled in the art will understand that Figure 2This explanation uses an electronic device 100 with a USB switch chip 150 as an example. When the electronic device 100 does not have a USB switch chip 150, the first data pin U+ of the processor chip 140 is directly electrically connected to the first data pin U+ of the Type-C interface, and the second data pin U- of the processor chip 140 is directly electrically connected to the second data pin U- of the Type-C interface. In this case, although data transmission will not be interrupted due to the switching of the data transmission channel, a connection drop detection will be triggered during flashing, and this connection drop detection will still cause data transmission interruption.

[0061] Please see Figure 3 and Figure 4 , Figure 3 This is a flowchart of one embodiment of the electronic device flash test method of the present invention. Figure 4 This is a schematic diagram of the internal structure of an electronic device related to flash lamp testing in one embodiment of the present invention. To avoid the above-mentioned problems, this embodiment improves the existing flash control method. In this text, combined with... Figure 3 and Figure 4 This document provides an illustrative example of a flash testing method for electronic devices to more clearly demonstrate the flash testing procedure. It should be understood that although the following will... Figure 3 and Figure 4 The specific embodiment shown is described in detail as an example, but is not intended to limit the scope of the present invention's electronic device flash test method. Apart from the steps necessary to solve the technical problem of the present invention, the remaining steps can be considered non-essential steps. These non-essential steps can be replaced by other steps with the same or similar functions in other embodiments, or they may not be needed in other embodiments.

[0062] Figure 3 and Figure 4 In the illustrated embodiment, the electronic device flash testing method performs a flash test on the electronic device 100 based on the control of the flash charging chip 120 of the electronic device 100. Before the flash test, the hardware connection is improved, specifically including the following steps:

[0063] SA, connect the two power output terminals of the flash charging chip 120 (i.e. Figure 4 The first power output pin (LED1) and the second power output pin (LED2) of the flash charging chip 120 are connected together to power the flash LED. Then, according to the improved flash testing software control logic, the following steps are executed based on the received flash command:

[0064] S10. Keep the overvoltage protection chip OVP on (the flash charging chip 120 is connected to the type-c interface 110 through the overvoltage protection chip OVP; in the prior art, the overvoltage protection chip OVP is disconnected when the flashing light is flashing). Keeping the overvoltage protection chip OVP on ensures that the power supply VBUS_IN is not cut off, thus preventing the connection drop detection from being triggered and avoiding data transmission interruption due to the connection drop detection. In addition, for the electronic device 100 with the USB switch chip 150, by keeping the power supply VBUS_IN on, the power supply VBUS_IN can also be divided by the voltage divider circuit 160 and input to the control terminal pin SEL of the USB switch chip 150 with a high level, thereby connecting its first channel to the processor chip 140, maintaining data transmission between the computer 900 and the electronic device 100, so that the Android CTS certification test of the electronic device 100 by the computer 900 is not interrupted during the flashing detection.

[0065] S20. The power module 130 of the electronic device 100 provides the main battery power supply signal VPH_PWR to the flashlight mode power supply pin TORCH_VDD of the flash charging chip 120 (in the prior art, this is provided by the power supply signal PM ID_BUCK to the flash mode power supply pin FLASH_VDD of the flash charging chip 120). The main battery power supply signal VPH_PWR is directly generated by the battery voltage, so it will not exceed 5V, thus preventing the USB interface 910 of the computer 900 from being burned out while the overvoltage protection chip OVP remains on. Of course, at this time, the USB power supply pin VBUS of the flash charging chip 120 can also be disconnected from the power module 130 of the electronic device 100, disconnecting the internal USB power supply input of the flash charging chip 120 to further avoid risks. In addition, since the power supply signal PMID_BUCK is no longer needed when the FLASH LED flashes, the power module 130 can also disconnect the output of its battery boost circuit 132, which is used to boost the battery main power supply signal VPH_PWR to generate the battery boost power supply signal PMID_BUCK.

[0066] S30: Connect the flashlight mode power supply pin TORCH_VDD of the flash charging chip 120 to the input terminal of its internal flash driver circuit 122, and disconnect the flash mode power supply pin FLASH_VDD of the flash charging chip 120 from the input terminal of its internal flash driver circuit 122 (in the prior art, during flashing, the flashlight mode power supply pin TORCH_VDD is disconnected from the input terminal of its internal flash driver circuit 122, while the flash mode power supply pin FLASH_VDD of the flash charging chip 120 is connected to the input terminal of its internal flash driver circuit 122). Thus, the main battery power supply signal VPH_PWR is used as the power supply signal for the flash driver circuit 122 when the flash LED is flashing.

[0067] S40. Both power supply output terminals of the flash charging chip 120 output flashlight mode power supply signals, so that the two power supply signals are connected in parallel to jointly power the flash LED. The sum of the flashlight mode currents output by the two power supply output terminals of the flash charging chip 120 needs to meet the current requirements when the flash is on to ensure normal flashing. The flash driver circuit 122 has two operating modes. In flashing mode, the flash driver circuit 122 generally generates a 1500mA drive current to the power supply output terminal. In flashlight mode, the flash driver circuit 122 generally generates a 500mA drive current to the power supply output terminal. In this embodiment, by connecting the two power supply output terminals of the flash charging chip 120 together and simultaneously outputting a 500mA drive current (i.e., the flashlight mode power supply signal), the parallel connection results in a 1000mA drive current for the flash LED. Although this current is lower than the normal 1500mA drive current when flashing, the difference is small, and testing has shown that it meets the flashing requirements. In addition, to avoid excessive driving current output to the flash LED when it is in flashlight mode, the flash charging chip 120 will only output a power supply signal from one of its power supply output terminals in flashlight mode, while the other power supply output terminal will stop outputting a power supply signal, thus not changing the magnitude of the driving current in flashlight mode.

[0068] S50: After the flash LED is lit, the power supply to the two power output terminals of the flash charging chip 120 is disconnected to achieve the flashing effect. Since the power supply signal in flashlight mode is continuous, in order to achieve the flashing effect, the power supply time is also controlled so that the flash LED lights up and then quickly turns off to achieve the flashing effect.

[0069] It should be noted that there is no necessary order to the steps S10 to S50 above. Without affecting the final result, the order of the steps can be arbitrarily adjusted, or multiple steps can be executed simultaneously.

[0070] In summary, the flash testing method for electronic devices of the present invention has the following beneficial effects: By connecting the first power output pin LED1 and the second power output pin LED2 of the flash charging chip 120 together, the two driving currents are connected in parallel to jointly power the flash LED. The flashing function can be achieved using a flashlight mode power supply signal, thereby avoiding the need to disconnect the overvoltage protection chip OVP due to excessively high voltage of the power supply signal during flashing. This avoids the interruption of data transmission and the inability to perform detection due to the disconnection of the overvoltage protection chip OVP, and the interruption of data transmission and the inability to perform detection due to the disconnection of the power supply VBUS_IN causing the USB switch chip 150 to switch to the second channel. Thus, the flashing detection function of the electronic device 100 by external devices such as the computer 900 is realized.

[0071] Please see Figure 5 , Figure 5 This is a structural block diagram of one embodiment of the electronic device flash lamp flashing test control device of the present invention. Figure 5 In the illustrated embodiment, the electronic device flash lamp flashing test control device includes a first control unit 710, a second control unit 720, a third control unit 730, and a fourth control unit 740. The first control unit 710, upon receiving a flashing command, sends an output overvoltage control signal to keep the overvoltage protection chip OVP on, and sends a first on / off control signal SEL1 to disconnect the USB power supply pin VBUS1 of the flash lamp charging chip 120 from the power module 130 of the electronic device 100.

[0072] The second control unit 720 is configured to, upon receiving a flash command, issue a first power supply control signal to enable the power module 130 to provide the main battery power supply signal VPH_PWR to the flashlight mode power supply pin TORCH_VDD of the flash charging chip 120; and issue a second power supply control signal to enable the power module 130 to disconnect the output of its battery boost circuit. The third control unit 730 is configured to, upon receiving a flash command, issue a second on / off control signal SEL2 to disconnect the flash mode power supply pin FLASH_VDD of the flash charging chip 120 from the input terminal of its internal flash driver circuit 122; and issue a third on / off control signal SEL3 to connect the flashlight mode power supply pin TORCH_VDD of the flash charging chip 120 to the input terminal of its internal flash driver circuit 122. The fourth control unit 740 is used to send a fourth on / off control signal SEL4 and a fifth on / off control signal SEL5 after receiving a flash command, so that the two power supply output terminals of the flash charging chip 120 are connected to the two output terminals of its internal flash driver circuit 122 respectively; and disconnects the connection between the two power supply output terminals of the flash charging chip 120 and the two output terminals of its internal flash driver circuit 122 after the flash LED is lit.

[0073] In summary, the electronic device flash lamp flashing test control device of the present invention has the following beneficial effects: by improving the control logic of flash detection through the control signal output by the flash lamp flashing test control device, it can avoid the interruption of data transmission caused by flashing and the inability to perform detection, and realize the flash detection function of electronic device 100 by external devices such as computer 900.

[0074] Please continue reading Figure 4 , Figure 4 This is a schematic diagram of the internal structure of the electronic device related to the flash lamp test in one embodiment of the present invention. Figure 4 In the illustrated embodiment, the electronic device 100 includes a FLASH LED, a Type-C interface 110, a power module 130, a FLASH charging chip 120, an overvoltage protection chip (OVP), a processor chip 140, a USB switch chip 150, and a voltage divider circuit 160. The processor chip 140 is used for data transmission with external devices such as a computer 900; of course, the processor chip 140 is also used for internal data processing within the electronic device 100.

[0075] The USB switch chip 150 is used to switch the data transmission channels of the processor chip 140. The USB switch chip 150 can be a DIO5000QN10 chip. The data pins of the processor chip 140 are electrically connected to the data pins of the type-c interface 110 through the USB switch chip 150. Specifically, the first data pin D+ of the USB switch chip 150 is electrically connected to the first data pin D+ of the type-c interface 110, and the second data pin D- of the USB switch chip 150 is electrically connected to the second data pin D- of the type-c interface 110. The first channel first data pin D1+ of the USB switch chip 150 is electrically connected to the first data pin D+ of the processor chip 140, and the first channel second data pin D1- of the USB switch chip 150 is electrically connected to the second data pin D- of the processor chip 140. The second channel first data pin D2+ of the USB switch chip 150 is electrically connected to the first serial data pin RX of the processor chip 140, and the second channel second data pin D2- of the USB switch chip 150 is electrically connected to the second serial data pin TX of the processor chip 140.

[0076] The voltage divider circuit 160 is used to divide the voltage connected to the USB power supply pin VBUS of the flash charging chip 120 and then provide it to the control terminal of the USB switching chip 150. The voltage divider circuit 160 includes a first resistor R1 and a second resistor R2. The first end of the first resistor R1 is connected to the power supply VBUS_IN, and the second end is electrically connected to the control terminal pin SEL of the USB switching chip 150 and the first end of the second resistor R2. The second end of the second resistor R2 is grounded.

[0077] When the power supply VBUS_IN is +5V, a high-level signal is input to the control pin SEL of the USB switch chip 150 after voltage division by the first resistor R1 and the second resistor R2. This connects the first data pin D+ of the USB switch chip 150 to its first channel first data pin D1+, and the second data pin D- of the USB switch chip 150 to its first channel second data pin D1-. At this time, the electronic device 100 can transmit data with the computer 900 through its Type-C interface 110.

[0078] When the power supply VBUS_IN is disconnected, the control pin SEL of the USB switch chip 150 is grounded through the second resistor R2, meaning the control pin SEL of the USB switch chip 150 is at a low level. This connects the first data pin D+ of the USB switch chip 150 to its second channel first data pin D2+, and the second data pin D- of the USB switch chip 150 to its second channel second data pin D2-. At this time, the data transmission channel between the electronic device 100 and the computer 900 is disconnected.

[0079] The power module 130 provides the main battery power supply signal VPH_PWR as the power supply signal for the flash charging chip 120 during flash testing and when the FLASH LED is in flashlight mode. The power module 130 includes a power management circuit and a battery boost circuit. The power management circuit outputs the battery positive voltage signal VBAT as the main battery power supply signal VPH_PWR and provides it to the flashlight mode power supply pin TORCH_VDD of the flash charging chip 120. The battery boost circuit boosts the main battery power supply signal VPH_PWR to obtain the boosted battery power supply signal PMID_BUCK and provides it to the flash mode power supply pin FLASH_VDD of the flash charging chip 120.

[0080] Please see Figure 6 , Figure 6 This is a circuit diagram of the relevant circuit structure in the power management circuit of one embodiment of the present invention. The power management circuit shown includes a first control unit 131 and an eighth MOSFET M8. Under normal circumstances, the first control unit 131 keeps the eighth MOSFET M8 in the on state, thereby directly obtaining the battery main power supply signal VPH_PWR through the battery positive voltage VBAT. The battery boost circuit includes a second control unit 132, a first inductor L1, a first capacitor C1, a second capacitor C2, a sixth MOSFET M6, and a seventh MOSFET M7. In the present technology, when the FLASH LED flashes, the second control unit 132 controls the on and off states of the sixth MOSFET M6 and the seventh MOSFET M7 to enable the battery boost circuit to work and output the battery boost power supply signal PMID_BUCK. In this improved embodiment, when the FLASH LED flashes during the flash test, the power management circuit outputs the battery main power supply signal VPH_PWR, and the second control unit 132 disables the battery boost circuit, cutting off the output of the battery boost power supply signal PMID_BUCK, thus only outputting the battery main power supply signal VPH_PWR.

[0081] The overvoltage protection chip OVP is used to connect the USB power supply pin VBUS of the flash charging chip 120 and the power supply pin VBUS of the Type-C interface. Under normal circumstances, the overvoltage protection chip OVP is mainly used for overvoltage protection. The control terminal of the overvoltage protection chip OVP is electrically connected to the overvoltage control pin ACDRV of the flash charging chip 120, allowing the overvoltage protection chip OVP to be disconnected via a control signal even when necessary, in non-overvoltage situations. The overvoltage protection chip OVP can use an SSM3K35MFV type MOSFET.

[0082] The flash charging chip 120 provides corresponding drive current to the flash during flash testing and when the flash LED is in flashlight mode. The flash charging chip 120 can be an SC6607 chip. The first power output pin LED1 and the second power output pin LED2 of the flash charging chip 120 are both electrically connected to the flash. During flash testing, the flash charging chip 120 keeps the overvoltage protection chip OVP on, supplies power through the battery main power supply signal VPH_PWR connected to its flashlight mode power supply pin TORCH_VDD, and causes both its first power output pin LED1 and the second power output pin LED2 to output flashlight mode power signals.

[0083] Please see Figure 7 , Figure 7 This is a circuit diagram of the relevant circuit structure in a flash charging chip according to an embodiment of the present invention. The flash charging chip 120 shown includes a first MOSFET M1, a second MOSFET M2, a third MOSFET M3, a fourth MOSFET M4, a fifth MOSFET M5, and a flash driving circuit 122. Of course, the flash charging chip 120 also includes other necessary circuit structures, but since they are not relevant to this embodiment, they will not be described in detail here.

[0084] The source of the first MOSFET M1 is electrically connected to the USB power supply pin VBUS of the flash charging chip 120, and the drain of the first MOSFET M1 is used to output the power supply signal PM ID to the power module 130. The gate of the first MOSFET M1 is connected to the first on / off control signal SEL1, and the overvoltage control pin ACDRV of the flash charging chip 120 is used to output the overvoltage control signal. During the flash test, the overvoltage control signal keeps the overvoltage protection chip OVP on, and the first on / off control signal SEL1 turns off the first MOSFET M1.

[0085] The drain of the second MOSFET M2 is electrically connected to the flash mode power supply pin FLASH_VDD of the flash charging chip 120, and the gate of the second MOSFET M2 is connected to the second on / off control signal SEL2. The source of the third MOSFET M3 is electrically connected to the flashlight mode power supply pin TORCH_VDD of the flash charging chip 120, and the gate of the third MOSFET M3 is connected to the third on / off control signal SEL3. The flash driving circuit 122 has an input terminal, a control terminal, a first output terminal, and a second output terminal. The source of the second MOSFET M2 and the drain of the third MOSFET M3 are both electrically connected to the input terminal of the flash driving circuit 122, and the control terminal of the flash driving circuit 122 is connected to the flash mode control signal. The source of the fourth MOSFET M4 is electrically connected to the first power supply output pin LED1 of the flash charging chip 120, the gate of the fourth MOSFET M4 is connected to the fourth on / off control signal SEL4, and the drain of the fourth MOSFET M4 is electrically connected to the first output terminal of the flash driving circuit 122. The source of the fifth MOS transistor M5 is electrically connected to the second power supply output pin LED2 of the flash charging chip 120, the gate of the fifth MOS transistor M5 is connected to the fifth on / off control signal SEL5, and the drain of the fifth MOS transistor M5 is electrically connected to the second output terminal of the flash driving circuit 122.

[0086] The flash charging chip 120 may further include a drive control unit 121 and a flash control unit 123. The first on / off control signal SEL1 and the overvoltage control signal can be output by the drive control unit 121, and the second on / off control signal SEL2, the third on / off control signal SEL3, the fourth on / off control signal SEL4, the fifth on / off control signal SEL5 and the flash mode control signal can be provided by the flash control unit 123.

[0087] During the flash test, the second on / off control signal SEL2 turns off the second MOSFET, the third on / off control signal SEL3 turns on the third MOSFET, the fourth on / off control signal SEL4 turns on the fourth MOSFET, and the fifth on / off control signal SEL5 turns on the fifth MOSFET. The flash mode control signal causes both the first power output pin LED1 and the second power output pin LED2 of the flash drive circuit 122 to output flashlight mode drive current, illuminating the flash LED. After the flash LED is lit, the fourth on / off control signal SEL4 turns off the fourth MOSFET M4, and the fifth on / off control signal SEL5 turns off the fifth MOSFET M5, causing the flash LED to light up and then quickly turn off, achieving the flashing effect.

[0088] To ensure the flash LED maintains a constant 500mA in flashlight mode, when in flashlight mode, the fourth on / off control signal SEL4 turns on the fourth MOSFET M4, and the fifth on / off control signal SEL5 turns off the fifth MOSFET, so that only the first power supply output pin LED1 of the flash driver circuit 122 outputs drive current. Alternatively, the fourth on / off control signal SEL4 can turn off the fourth MOSFET M4, and the fifth on / off control signal SEL5 can turn on the fifth MOSFET M5, so that only the second power supply output pin LED2 of the flash driver circuit 122 outputs drive current.

[0089] In summary, the electronic device of the present invention has the following beneficial effects: by connecting the first power supply output pin LED1 and the second power supply output pin LED2 of the flash charging chip 120 in parallel to power the flash LED, the flashing function can be achieved by using a flashlight mode power supply signal. This avoids the interruption of data transmission and inability to perform detection caused by the disconnection of the overvoltage protection chip OVP, and the interruption of data transmission and inability to perform detection caused by the disconnection of the power supply VBUS_IN causing the USB switch chip 150 to switch to the second channel. This realizes the flashing detection function of the electronic device 100 by external devices such as computer 900.

[0090] It should be noted that the prior art portion of the protection scope of this invention is not limited to the embodiments given in this application. All prior art that does not contradict the solution of this invention, including but not limited to prior patent documents, prior publications, prior public uses, etc., can be included in the protection scope of this invention.

[0091] Furthermore, the combination of the technical features in this case is not limited to the combination methods described in the claims of this case or the combination methods described in the specific embodiments. All technical features described in this case can be freely combined or combined in any way, unless they contradict each other.

[0092] It should also be noted that the embodiments listed above are merely specific embodiments of the present invention. Obviously, the present invention is not limited to the above embodiments, and similar changes or modifications made thereto are those that can be directly derived or easily conceived by those skilled in the art from the content disclosed in the present invention, and should all fall within the protection scope of the present invention.

Claims

1. A method for testing the flashing of an electronic device's flashlight, characterized in that, The flash firing test of an electronic device is performed based on the control of the flash charging chip. The two power output terminals of the flash charging chip are connected together to power the flash, and the flash charging chip is connected to the electronic device's Type-C interface via an overvoltage protection chip. The method includes the following steps: Based on the received flash command, the overvoltage protection chip remains on. Enables the power module of the electronic device to provide the main battery power supply signal to the flashlight mode power supply pin of the flash charging chip; Connect the flashlight mode power supply pin of the flash charging chip to the input terminal of its internal flash driver circuit, and disconnect the flash mode power supply pin of the flash charging chip from the input terminal of its internal flash driver circuit. This enables both power output terminals of the flash charging chip to output a power signal in flashlight mode. The flash effect is achieved by disconnecting the power supply to the two power output terminals of the flash charging chip after the flash is turned on.

2. The method for testing the flashing of an electronic device's flashlight as described in claim 1, characterized in that, The main power supply signal for the battery is generated directly from the battery voltage; after the electronic device receives the flash test command, it also performs the following steps: The power module disconnects the output of its battery boost circuit, which is used to boost the battery main power supply signal to generate a battery boost power supply signal; and / or Disconnect the USB power supply pin of the flash charging chip from the power module of the electronic device.

3. The method for testing the flashing of an electronic device's flashlight as described in claim 1, characterized in that, The sum of the currents output from the two power supply output terminals of the flash charging chip in flashlight mode meets the current requirements when the flash is on. When the flash is in flashlight mode, one power output terminal of the flash charging chip outputs a power supply signal in flashlight mode, while the other power output terminal stops outputting a power supply signal.

4. A flash control device for testing the flashing of an electronic device's flashlight, characterized in that, include: The first control unit is used to send an overvoltage control signal to keep the overvoltage protection chip on after receiving the flash command, and to send a first on / off control signal to disconnect the USB power supply pin of the flash charging chip from the power module of the electronic device. The second control unit is used to send a first power supply control signal after receiving the flash command, so that the power module provides the main power supply signal of the battery to the flash mode power supply pin of the flash charging chip. And send a second power supply control signal to disconnect the output of the power module's battery boost circuit; The third control unit is used to send a second on / off control signal after receiving the flash command to disconnect the flash mode power supply pin of the flash charging chip from the input terminal of its internal flash drive circuit, and to send a third on / off control signal to connect the flashlight mode power supply pin of the flash charging chip to the input terminal of its internal flash drive circuit. The fourth control unit is used to send a fourth on / off control signal and a fifth on / off control signal after receiving a flash command, so that the two power supply output terminals of the flash charging chip are connected to the two output terminals of the internal flash driver circuit respectively; and to disconnect the two power supply output terminals of the flash charging chip from the two output terminals of the internal flash driver circuit after the flash is lit.

5. An electronic device, characterized in that, include: flash; Type-C interface; A processor chip used for data transmission with external devices; The power module is used to provide the main battery power supply signal as the power supply signal for the flash charging chip during flash testing and when the flash is in flashlight mode. The flash charging chip is used to provide the corresponding driving current to the flash during flash testing and when the flash is in flashlight mode. as well as An overvoltage protection chip is used to connect the USB power supply pin of the flash charging chip and the power supply pin of the type-c interface. The control terminal of the overvoltage protection chip is electrically connected to the overvoltage control pin of the flash charging chip. The first and second power supply output pins of the flash charging chip are both electrically connected to the flash. During the flash test, the flash charging chip keeps the overvoltage protection chip on and supplies power through the main battery power supply signal connected to its flashlight mode power supply pin, and causes both its first and second power supply output pins to output flashlight mode power supply signals.

6. The electronic device as claimed in claim 5, characterized in that, The flash charging chip includes a first MOSFET. The source of the first MOSFET is electrically connected to the USB power supply pin of the flash charging chip, and the drain of the first MOSFET is used to output a power supply signal to the power module. The gate of the first MOSFET is connected to a first on / off control signal. The overvoltage control pin of the flash charging chip is used to output an overvoltage control signal. During the flash flashing test, the overvoltage control signal keeps the overvoltage protection chip on, and the first on / off control signal turns off the first MOSFET.

7. The electronic device as claimed in claim 5, characterized in that, The flash charging chip includes: The drain of the second MOSFET is electrically connected to the flash mode power supply pin of the flash charging chip, and the gate of the second MOSFET is connected to the second on / off control signal. The third MOS transistor, the source of which is electrically connected to the flashlight mode power supply pin of the flash charging chip, and the gate of which is connected to the third on / off control signal; A flash driver circuit has an input terminal, a control terminal, a first output terminal, and a second output terminal. The source of the second MOSFET and the drain of the third MOSFET are both electrically connected to the input terminal of the flash driver circuit. The control terminal of the flash driver circuit is connected to a flash mode control signal. The fourth MOSFET, the source of which is electrically connected to the first power supply output pin of the flash charging chip, the gate of which is connected to the fourth on / off control signal, and the drain of which is electrically connected to the first output terminal of the flash driving circuit; and The fifth MOS transistor has its source electrically connected to the second power supply output pin of the flash charging chip, its gate connected to the fifth on / off control signal, and its drain electrically connected to the second output terminal of the flash driving circuit. During the flash test, the second on / off control signal turns off the second MOSFET, the third on / off control signal turns on the third MOSFET, the fourth on / off control signal turns on the fourth MOSFET, and the fifth on / off control signal turns on the fifth MOSFET. The flash mode control signal causes both the first and second output terminals of the flash drive circuit to output flashlight mode drive current. When the flash is turned on, the fourth on / off control signal turns off the fourth MOSFET, and the fifth on / off control signal turns off the fifth MOSFET.

8. The electronic device as claimed in claim 7, characterized in that, When in flashlight mode, the fourth on / off control signal turns on the fourth MOSFET, and the fifth on / off control signal turns off the fifth MOSFET; or The fourth on / off control signal turns off the fourth MOSFET, and the fifth on / off control signal turns on the fifth MOSFET.

9. The electronic device as claimed in claim 5, characterized in that, The power module includes: The power management circuit outputs a positive battery voltage signal as the main power supply signal for the battery and provides power to the flashlight mode power supply pin of the flash charging chip; and The battery boost circuit is used to boost the main power supply signal of the battery to obtain a boost power supply signal for the battery, and then provide it to the flash mode power supply pin of the flash charging chip. When the flash unit is performing a flash test, the power management circuit outputs the main power supply signal for the battery, and the battery boost circuit cuts off the output of the boost power supply signal for the battery.

10. The electronic device as claimed in claim 5, characterized in that, The electronic device also includes: The USB switch chip is used to switch the data transmission channels of the processor chip; and The voltage divider circuit is used to divide the voltage connected to the USB power supply pin of the flash charging chip and then provide it to the control terminal of the USB switching chip.