Charging equipment, control method thereof and storage medium

By using a mechanical switch in the charging device in conjunction with the action of the charging cable to trigger the control of the voltage conversion module, the problems of high sensor cost and high standby power consumption are solved, achieving cost reduction and power consumption optimization, and improving user experience.

CN121602584APending Publication Date: 2026-03-03SHENZHEN GREEN CONNECTION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511640060.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-10
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

Existing charging devices use sensors such as Hall sensors, which are expensive and have high standby power consumption.

Method used

It employs a main control module, charging cable, telescopic transmission module, mechanical switch, voltage conversion module, and interface module. The mechanical switch is triggered by the rotation of the trigger structure on the winding structure to generate a level change signal. The main control module receives and controls the working state of the voltage conversion module, replacing the sensor for charging control.

Benefits of technology

It significantly reduces the manufacturing cost and standby power consumption of charging devices, and improves product reliability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121602584A_ABST
    Figure CN121602584A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of charging equipment, in particular to charging equipment, a control method thereof and a storage medium. The charging equipment comprises a main control module, a charging wire, a telescopic transmission module, a mechanical switch, a voltage conversion module and an interface module, and the voltage conversion module is connected with the main control module, the charging wire and the interface module; the telescopic transmission module comprises a rotatable winding structure and a trigger structure arranged on the winding structure, the winding structure is used for carrying out telescopic storage on the charging wire, and the trigger structure is driven by rotation of the winding structure to rotate so as to trigger the mechanical switch to generate a level change signal; and the main control module is also connected with the mechanical switch and is used for receiving the level change signal and controlling the working state of the voltage conversion module based on the level change signal. The overall manufacturing cost of the charging equipment is remarkably reduced, the mechanical switch does not need continuous power supply, and the standby power consumption of the charging equipment can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of charging equipment technology, and in particular to a charging device, its control method, and a storage medium. Background Technology

[0002] Currently, there are various charging devices on the market with retractable charging cables, such as power banks and desktop chargers. These devices are easy to store, eliminating the need for users to carry an extra charging cable; they can simply pull out the cable for convenient charging.

[0003] In related technologies, charging devices typically use Hall effect sensors or other sensors to detect the location of the device being charged, enabling automatic start or stop of charging. However, existing charging devices using Hall effect sensors or similar sensors are costly and require continuous power supply, which increases the standby power consumption of the charging device. Summary of the Invention

[0004] This invention provides a charging device, its control method, and a storage medium to solve the problems of high sensor cost and high standby power consumption in existing charging devices.

[0005] This invention discloses a charging device, including a main control module, a charging cable, a telescopic transmission module, a mechanical switch, a voltage conversion module, and an interface module, wherein... The voltage conversion module is connected to the main control module, the charging cable, and the interface module; The telescopic transmission module includes a rotatable winding structure and a trigger structure disposed on the winding structure. The winding structure is used to retract and store the charging cable. The trigger structure rotates under the rotation of the winding structure to trigger the mechanical switch to generate a level change signal. The main control module is also connected to the mechanical switch and is used to receive the level change signal and control the working state of the voltage conversion module based on the level change signal.

[0006] Optionally, the main control module includes a main control chip, the main control chip is provided with a transmission pin, the mechanical switch is a spring-loaded tactile switch, one end of the spring-loaded tactile switch is connected to the transmission pin, and the other end is connected to the ground.

[0007] Optionally, the winding structure includes a spool, a coil spring sleeved on the spool, and a turntable connected to the spool. The charging cable is wound around the spool. The coil spring provides a spring force to rotate the spool to wind up the charging cable after it is pulled out. The triggering structure is disposed on the turntable, and the mechanical switch is disposed on the rotation path of the turntable.

[0008] Optionally, the triggering structure is a protrusion disposed on the periphery of the turntable, and the mechanical switch has a trigger end disposed on the rotation path of the protrusion. When the scroll rotates and drives the turntable to rotate, the protrusion rotates with the turntable and touches the trigger end.

[0009] Optionally, the telescopic transmission module further includes a base and an upper cover that engages with the base, forming a receiving space between the base and the upper cover. The winding structure and the triggering structure are disposed in the receiving space, and a limiting member for limiting the rotation of the turntable is installed on the inner wall of the upper cover.

[0010] Optionally, the limiting component includes a limiting body rotatably connected to the upper cover, the limiting body being provided with a limiting post, and the turntable having a limiting groove on the side facing the upper cover that cooperates with the limiting post for limiting.

[0011] Optionally, the charging device further includes a display module connected to the main control module, and the main control module is further used to control the working state of the display module based on the level change signal.

[0012] The present invention also discloses a control method for a charging device, wherein the control method is applied to the charging device as described in any of the preceding claims, and the control method includes: When the winding structure rotates to retract and store the charging cable, it drives the trigger structure to rotate. The rotation of the trigger structure triggers the mechanical switch to generate a level change signal; The main control module controls the operating state of the voltage conversion module based on the level change signal.

[0013] Optionally, the charging device further includes a display module, and the control method of the charging device further includes the following steps: The main control module detects and acquires the pulse signal formed by the level change signal, and counts and times the pulse signal; The main control module controls the working state of the display module and / or the voltage conversion module based on the counting and timing results.

[0014] The present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the method described in any of the preceding claims.

[0015] The beneficial effects of the charging device, its control method, and storage medium provided in this invention are as follows: By setting up a main control module, a charging cable, a telescopic transmission module, a mechanical switch, a voltage conversion module, and an interface module, the winding structure of the telescopic transmission module can retract and store the charging cable. The rotation of the trigger structure on the winding structure triggers the mechanical switch to generate a level change signal. The main control module receives the level change signal and controls the working state of the voltage conversion module based on the level change signal. Compared with the prior art, this application uses a mechanical switch combined with the movement of the charging cable to replace the more expensive sensor to trigger the control of the voltage conversion module. This not only significantly reduces the overall manufacturing cost of the charging device, but also the mechanical switch does not require continuous power supply, which can effectively reduce the standby power consumption of the charging device. Attached Figure Description

[0016] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. In the accompanying drawings: Figure 1 This is a structural block diagram of the charging device according to an embodiment of the present invention; Figure 2 This is a circuit diagram of the main control module according to an embodiment of the present invention; Figure 3 This is a circuit diagram of the charging cable according to an embodiment of the present invention; Figure 4 This is a circuit diagram of the first power management circuit according to an embodiment of the present invention; Figure 5 This is a circuit diagram of the USB-A interface according to an embodiment of the present invention; Figure 6 This is a three-dimensional structural diagram of the telescopic transmission module and the charging cable (the connector of the charging cable is omitted) according to an embodiment of the present invention; Figure 7 This is a partially exploded structural diagram of the telescopic transmission module and the charging cable (the connector of the charging cable is omitted) according to an embodiment of the present invention; Figure 8 This is an exploded structural diagram of the telescopic transmission module and the charging cable (the connector of the charging cable is omitted) according to an embodiment of the present invention; Figure 9 This is a flowchart illustrating the control method of the charging device according to an embodiment of the present invention; Figure 10 This is a structural block diagram of a computer storage medium according to an embodiment of the present invention.

[0017] The labels for the attached figures are as follows: 110. Main control module; U1. Main control chip; 120. Charging cable; 130. Telescopic transmission module; 131. Winding structure; 1311. Reel; 1312. Coil spring; 1313. Turntable; 1313a. Limiting groove; 132. Triggering structure; 1321. Protrusion; 133. Base; 134. Top cover; 1341. Limiting component; 13411. Limiting body; 13412. Limiting post; 140. Mechanical switch; 141. Trigger terminal; 150. Voltage conversion module; 151. First power management circuit; U2. Power management chip; Q1. First switching transistor; Q2. Second switching transistor; Q3. Third switching transistor; Q4. Fourth switching transistor; L1. Inductor; 160. Interface module; J1. USB-A interface; 170. Display module; 180. Battery; 200. Computer-readable storage medium; 210. Computer program. Detailed Implementation

[0018] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings.

[0019] This invention provides a charging device, such as... Figures 1 to 3 As shown, the charging device includes a main control module 110, a charging cable 120, a telescopic transmission module 130, a mechanical switch 140, a voltage conversion module 150, and an interface module 160.

[0020] The voltage conversion module 150 is connected to the main control module 110, the charging cable 120, and the interface module 160. The voltage conversion module 150 can transmit electrical energy through the interface module 160.

[0021] The telescopic transmission module 130 includes a rotatable winding structure 131 and a trigger structure 132 disposed on the winding structure 131. The winding structure 131 is used to retract and store the charging cable 120. The trigger structure 132 rotates under the rotation of the winding structure 131 to trigger the mechanical switch 140 to generate a level change signal. When the charging cable 120 is needed to charge the device, the user can pull out the charging cable 120. When there is no need to charge, the winding structure 131 can retract and store the charging cable 120, reducing the possibility of the charging cable 120 becoming tangled.

[0022] The main control module 110 is also connected to the mechanical switch 140 to receive level change signals and control the working state of the voltage conversion module 150 based on the level change signals.

[0023] The charging device of this application embodiment includes a main control module 110, a charging cable 120, a telescopic transmission module 130, a mechanical switch 140, a voltage conversion module 150, and an interface module 160. The winding structure 131 of the telescopic transmission module 130 can retract and store the charging cable 120. The rotation of the trigger structure 132 on the winding structure 131 triggers the mechanical switch 140 to generate a level change signal. The main control module 110 receives the level change signal and controls the working state of the voltage conversion module 150 based on the level change signal. Compared with the prior art, this application uses a mechanical switch 140 combined with the movement of the charging cable 120 to replace the more expensive sensor to trigger the control of the voltage conversion module 150. This not only significantly reduces the overall manufacturing cost of the charging device, but also the mechanical switch 140 does not require continuous power supply, which can effectively reduce the standby power consumption of the charging device.

[0024] Typically, when a user pulls or pulls the charging cable 120, it indicates a need for charging. This application utilizes a trigger structure 132 on the winding structure 131 to trigger a mechanical switch 140, generating a level change signal. This converts the circular motion of the charging cable 120 into an electrical pulse signal, replacing a traditional sensor to trigger control of the voltage conversion module 150. This enables interaction based on the extension / retraction state and pulling / pulling action of the charging cable 120. In the power-off state, the main control module 110 only maintains interrupt monitoring functionality on some transmission pins, resulting in extremely low power consumption, meeting the energy-saving requirements of charging equipment.

[0025] Among them, the mechanical switch 140 has strong anti-interference ability, stable signal, and is not easily affected by the internal electromagnetic environment of the charging device, thus having high reliability. Furthermore, the level change signal based on the mechanical switch 140 can generate a variety of control functions (such as power on, power off, mode switching, and trigger animation), significantly enhancing the product's fun and user experience.

[0026] In an optional embodiment of this application, reference is made to Figures 1 to 3 The main control module 110 includes a main control chip U1, which has a transmission pin. The mechanical switch 140 is a spring-loaded tactile switch, with one end connected to the transmission pin and the other end connected to ground. This forms a simple circuit between the main control chip U1 and the mechanical switch 140. When the mechanical switch 140 is not triggered, the transmission pin is kept high by the internal pull-up resistor of the main control chip U1. When the mechanical switch 140 is triggered, the switch closes, the transmission pin is pulled low to ground, generating a "high→low" level signal for the main control chip U1 to recognize. The transmission pin of the main control chip U1 can be one of its I / O ports. Therefore, the control triggering circuit of the voltage conversion module 150 implemented in this application is very simple, low-cost, and only consumes a small current through the internal pull-up resistor of the main control chip U1, reducing standby power consumption. It is compatible with most main control chip U1 GPIO pull-up configurations, requiring no special pins, thus improving the versatility of the solution.

[0027] In an optional embodiment of this application, reference is made to Figure 1 , Figure 2 , Figures 6 to 8 The winding structure 131 includes a spool 1311, a coil spring 1312 sleeved on the spool 1311, and a turntable 1313 connected to the spool 1311. The charging cable 120 is wound on the spool 1311. The coil spring 1312 is used to provide elastic force to rotate the spool 1311 to wind up the charging cable 120 after the charging cable 120 is pulled out. The trigger structure 132 is provided on the turntable 1313, and the mechanical switch 140 is provided on the rotation path of the turntable 1313.

[0028] Specifically, the winding structure 131 has a core of a spool 1311, a coil spring 1312 sleeved on the spool 1311, a turntable 1313 connected to the spool 1311, a charging cable 120 wound around the spool 1311, a trigger structure 132 set on the turntable 1313, and a mechanical switch 140 located on the rotation path of the turntable 1313, forming a linkage chain of "pulling the cable - rotating the spool 1311 - moving the turntable 1313 - triggering the mechanical switch 140". The coil spring 1312 stores energy when the charging cable 120 is pulled out, and releases its elasticity when released to drive the spool 1311 to rotate, realizing automatic winding of the charging cable 120 without manual adjustment, improving ease of use. The trigger structure 132 rotates synchronously with the turntable 1313. The rotation path of the turntable 1313 is fixed, and the mechanical switch 140 is precisely positioned on the rotation path of the turntable 1313. When the charging cable 120 is pulled out or retracted, the trigger structure 132 must contact the mechanical switch 140 to avoid trigger failure and ensure high reliability. When the user pulls the charging cable 120, the reel 1311 rotates, the turntable 1313 moves, and the trigger structure 132 triggers the mechanical switch 140 to switch on and off. The main control chip U1 receives the level change signal to control the operation of the voltage conversion module 150.

[0029] Further reference Figure 1 , Figure 2 , Figures 6 to 8 The trigger structure 132 is a protrusion 1321 disposed on the periphery of the turntable 1313. The mechanical switch 140 has a trigger end 141, which is disposed on the rotation path of the protrusion 1321. When the scroll 1311 rotates and drives the turntable 1313 to rotate, the protrusion 1321 rotates with the turntable 1313 and touches the trigger end 141.

[0030] Specifically, the protrusion 1321 is a physical structure on the turntable 1313. As the turntable 1313 rotates, it directly contacts the trigger end 141 of the mechanical switch 140. The timing of contacting the trigger end 141 is synchronized with the pulling or retracting action of the charging cable 120. Triggering is achieved through physical contact, avoiding signal interference and ensuring accurate triggering with each cable pull or retraction. During assembly, the operator only needs to install the trigger end 141 of the mechanical switch 140 along the rotation path of the protrusion 1321, making assembly simple.

[0031] In an optional embodiment of this application, reference is made to Figure 1 , Figure 2 , Figures 6 to 8 The telescopic transmission module 130 also includes a base 133 and an upper cover 134 that is fastened to the base 133. An accommodating space is formed between the base 133 and the upper cover 134. The winding structure 131 and the triggering structure 132 are disposed in the accommodating space. A limiting member 1341 for limiting the rotation of the turntable 1313 is installed on the inner wall of the upper cover 134.

[0032] Specifically, the base 133 and the top cover 134 provide a fixed mounting position and space for the winding structure 131 and the trigger structure 132, preventing the spool 1311 from shifting and the coil spring 1312 from loosening, allowing the components to work together more smoothly and reducing winding jams caused by chaotic layout. The limiting component 1341 can limit the rotation of the turntable 1313, preventing the turntable 1313 from rotating excessively when the charging cable 120 is pulled out, which would cause the coil spring 1312 to break due to overload, or prevent the turntable 1313 from excessively resetting during winding, which would cause component collisions, thus extending the service life.

[0033] For details, please refer to Figure 8 The limiting component 1341 includes a limiting body 13411 rotatably connected to the upper cover 134. The limiting body 13411 is provided with a limiting post 13412. The turntable 1313 is provided with a limiting groove 1313a on the side facing the upper cover 134, which cooperates with the limiting post 13412 for limiting. By providing the limiting groove 1313a on the turntable 1313, the limiting groove 1313a provides a clear sliding path for the limiting post 13412. The two ends of the limiting groove 1313a directly limit the maximum rotation angle of the turntable 1313, preventing the charging cable 120 from being "over-pulled out or over-wound", and preventing the coil spring 1312 from being overloaded or components from colliding. In addition, the limiting body 13411 can be finely adjusted as the turntable 1313 rotates, and the limiting post 13412 makes rolling / sliding contact when sliding in the limiting groove 1313a, reducing hard friction, avoiding jamming during limiting, ensuring smooth pulling / retracting of the charging cable 120, and improving the user's operating feel.

[0034] In an optional embodiment of this application, reference is made to Figure 1 and Figure 2The charging device also includes a display module 170 connected to the main control module 110, and the main control module 110 is also used to control the working state of the display module 170 based on the level change signal.

[0035] Specifically, the display module 170 can be used to display the charging status, working mode, animations, etc. of the charging device. The display module 170 is triggered by the level change signal generated by the mechanical switch 140, turning on the display when the charging device is working and turning it off when in standby mode, further reducing the standby power consumption of the charging device. In addition, the main control module 110 can count, time-detect, and time the pulses of the level change signal generated by the mechanical switch 140 being pressed, identify the pulling action of the charging cable 120 (such as rapid pulling or regular pulling), and control the voltage conversion module 150 and the display module 170 to be turned on, enhancing the product's appeal and improving the user experience. Furthermore, the display module 170 being triggered by the mechanical switch 140 also facilitates troubleshooting. If the display is abnormal (such as not lighting up after pulling the cable), it can indicate a fault in the trigger structure 132 or the main control module 110; if the display is constantly lit, it can indicate that the mechanical switch 140 has not reset, helping users quickly locate the problem and reduce maintenance costs. In an optional embodiment of this application, reference is made to Figure 1 , Figure 4 and Figure 5 The interface module 160 includes a USB-A interface J1 and at least one Type-C interface, both of which are connected to the voltage conversion module 150.

[0036] By configuring a USB-A port J1 and at least one Type-C port, the voltage conversion module 150 converts electrical energy and outputs it through both interfaces, offering high charging compatibility. The USB-A port J1 is a traditional mainstream interface, compatible with most older devices (such as older mobile phones, headphones, and power banks); the Type-C port is the current mainstream and future trend interface, compatible with newer mobile phones, tablets, laptops, and other devices. The dual interfaces cover both new and old devices, preventing users from being unable to use the device due to interface incompatibility. The Type-C port supports higher power transmission (such as 60W and 100W), meeting the charging needs of high-power devices such as laptops; the USB-A port J1 primarily supports standard power (such as 10W and 18W), adapting to low-power devices. The dual interfaces cater to different power charging scenarios. Users can flexibly choose the corresponding interface according to the charging needs of different devices, satisfying diverse charging scenarios. In an optional embodiment of this application, reference is made to Figure 1The charging device also includes a battery 180, and a voltage conversion module 150 includes a first power management circuit 151 and a second power management circuit corresponding to the Type-C interface. The voltage input terminals of the first power management circuit 151 and the second power management circuit are both connected to the battery 180. The voltage output terminal of the first power management circuit 151 is connected to the USB-A interface J1, and the voltage output terminal of the second power management circuit is connected to the Type-C interface.

[0037] By setting up a first power management circuit 151 and a second power management circuit corresponding to the Type-C interface, both the first power management circuit 151 and the second power management circuit draw power from the battery 180, providing independent power to the corresponding USB-A interface J1 and Type-C interface, forming independent power supply links. This achieves separate control of the power supply to each interface, allowing for the output of corresponding charging power according to the power requirements of the connected device, improving the overall charging efficiency of the charging device, and preventing power overload damage to the device. Power distribution conflicts will not cause charging interruptions or sudden power drops in any device. In an optional embodiment of this application, reference is made to Figure 1 Figure 4 and Figure 5 The first power management circuit 151 includes a power management chip U2, a first switching transistor Q1, a second switching transistor Q2, a third switching transistor Q3, a fourth switching transistor Q4, and an inductor L1. The gates of the first switching transistors Q1, Q2, Q3, and Q4 are all connected to the power management chip U2. The drain of the first switching transistor Q1 is connected to the battery 180 and the power management chip U2, and its source is connected to the drain of the second switching transistor Q2. The sources of the second switching transistor Q2 and the fourth switching transistor Q4 are both grounded. The drain of the third switching transistor Q3 is connected to the USB-A interface J1 and the power management chip U2, and its source is connected to the drain of the fourth switching transistor Q4. The circuit diagram of the first power management circuit 151 is shown below. Figure 4 As shown.

[0038] Specifically, the circuit consisting of the first switch Q1, the second switch Q2, the third switch Q3, the fourth switch Q4, and the inductor L1 can realize a buck-boost topology. After drawing power from the battery 180, the power management chip U2 controls the on and off states of the first switch Q1, the second switch Q2, the third switch Q3, and the fourth switch Q4, and adjusts the on and off frequency and duty cycle of each switch in real time. Combined with the inductor L1, it realizes the conversion of electrical energy and accurately controls the output voltage to be stable at the specifications required by the USB-A interface J1, so as to avoid voltage fluctuations affecting the charging safety and efficiency of external devices.

[0039] Optionally, the first power management chip U2 can be a chip of type IP5385 or similar to control the first switch Q1, the second switch Q2, the third switch Q3, and the fourth switch Q4.

[0040] The circuit structure of the second power management circuit is the same as that of the first power management circuit 151, and will not be described in detail here.

[0041] The charging device in this application embodiment can be a power bank, desktop charger, car charger, or other charging device with a retractable charging cable 120.

[0042] This application also provides a control method for a charging device, applied to the charging device as described above. (Reference) Figures 1 to 9 The control methods for charging equipment include: S110. When the winding structure 131 rotates to retract and store the charging cable 120, it drives the trigger structure 132 to rotate. S120, The mechanical switch 140 is triggered by the rotation of the trigger structure 132 to generate a level change signal; S130, the main control module 110 controls the working state of the voltage conversion module 150 based on the level change signal.

[0043] Specifically, during the retraction and storage of the charging cable 120, the winding structure 131 rotates, thereby driving the trigger structure 132 to rotate. The trigger structure 132 triggers the mechanical switch 140 to generate a level change signal. The main control module 110 then identifies the operating state of the charging cable 120 through this level change signal, thereby controlling the working state of the voltage conversion module 150 based on the operating state of the charging cable 120. Compared with the prior art, this application uses the mechanical switch 140 combined with the operation of the charging cable 120 to replace the more expensive sensor to trigger the control of the voltage conversion module 150. This not only significantly reduces the overall manufacturing cost of the charging device, but also the mechanical switch 140 does not require continuous power supply, which can effectively reduce the standby power consumption of the charging device.

[0044] Furthermore, the charging device also includes a display module 170, and the control method for the charging device further includes the following steps: The main control module 110 detects and acquires pulse signals formed by level change signals, and counts and times the pulse signals; The main control module 110 controls the working status of the display module 170 and / or the voltage conversion module 150 based on the counting and timing results.

[0045] By counting and timing the pulse signals generated by the level change signals of the mechanical switch 140, the specific action state of the charging cable 120 can be intelligently identified, such as rapid pulling or regular pulling, and the corresponding control functions can be triggered to control the working state of the display module 170 and / or the voltage conversion module 150. For example, if the main control module 110 detects rapid pulling, it controls the power-on, that is, controls the voltage conversion module 150 and the display module 170 to work, or controls the display module 170 to display pre-set display content such as animations, or controls mode switching, etc., which can increase the user experience and improve the fun and user experience of the charging device.

[0046] refer to Figures 1 to 10 This application also provides a computer-readable storage medium 200 storing a computer program 210. When the computer program 210 is executed by a processor, it causes the processor to perform the steps of the method described above. Detailed steps can be found above and will not be repeated here. In one embodiment, the computer-readable storage medium 200 may be a storage chip in a terminal, a hard disk, a portable hard disk, a USB flash drive, an optical disc, or other readable and writable storage tools, or it may be a server, etc.

[0047] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0048] It should be understood that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them. Those skilled in the art can modify the technical solutions described in the above embodiments, or make equivalent substitutions for some of the technical features; and all such modifications and substitutions should fall within the protection scope of the appended claims of the present invention.

Claims

1. A charging device, characterized in that, It includes a main control module, charging cable, telescopic transmission module, mechanical switch, voltage conversion module, and interface module, among which, The voltage conversion module is connected to the main control module, the charging cable, and the interface module; The telescopic transmission module includes a rotatable winding structure and a trigger structure disposed on the winding structure. The winding structure is used to retract and store the charging cable. The trigger structure rotates under the rotation of the winding structure to trigger the mechanical switch to generate a level change signal. The main control module is also connected to the mechanical switch and is used to receive the level change signal and control the working state of the voltage conversion module based on the level change signal.

2. The charging device according to claim 1, characterized in that, The main control module includes a main control chip, which has a transmission pin. The mechanical switch is a spring-loaded tactile switch, with one end connected to the transmission pin and the other end connected to ground.

3. The charging device according to claim 1, characterized in that, The winding structure includes a spool, a coil spring sleeved on the spool, and a turntable connected to the spool. The charging cable is wound on the spool. The coil spring provides elastic force to rotate the spool to wind up the charging cable after it is pulled out. The triggering structure is disposed on the turntable, and the mechanical switch is disposed on the rotation path of the turntable.

4. The charging device according to claim 3, characterized in that, The triggering structure is a protrusion disposed on the periphery of the turntable. The mechanical switch has a trigger end, which is disposed on the rotation path of the protrusion. When the scroll rotates and drives the turntable to rotate, the protrusion rotates with the turntable and touches the trigger end.

5. The charging device according to claim 3, characterized in that, The telescopic transmission module also includes a base and an upper cover that fastens to the base, forming an accommodating space between the base and the upper cover. The winding structure and the triggering structure are disposed in the accommodating space, and a limiting member for limiting the rotation of the turntable is installed on the inner wall of the upper cover.

6. The charging device according to claim 5, characterized in that, The limiting component includes a limiting body rotatably connected to the upper cover, the limiting body being provided with a limiting post, and the turntable having a limiting groove on the side facing the upper cover that cooperates with the limiting post for limiting.

7. The charging device according to any one of claims 1-6, characterized in that, The charging device also includes a display module connected to the main control module, and the main control module is further used to control the working state of the display module based on the level change signal.

8. A control method for a charging device, characterized in that, The control method for the charging device is applied to the charging device as described in any one of claims 1-7, and the control method for the charging device includes: When the winding structure rotates to retract and store the charging cable, it drives the trigger structure to rotate. The rotation of the trigger structure triggers the mechanical switch to generate a level change signal; The main control module controls the operating state of the voltage conversion module based on the level change signal.

9. The control method for the charging device according to claim 8, characterized in that, The charging device further includes a display module, and the control method of the charging device further includes the following steps: The main control module detects and acquires the pulse signal formed by the level change signal, and counts and times the pulse signal; The main control module controls the working state of the display module and / or the voltage conversion module based on the counting and timing results.

10. A computer-readable storage medium, characterized in that, The system contains a computer program that, when executed by a processor, causes the processor to perform the steps of the method as described in claim 8 or 9.