Electronic device and device control method and device
By setting a DC power supply pin and a load switch for the wireless charging chip, an independent DC power supply circuit is provided, which solves the problem that the wireless charging chip cannot rewrite the firmware when it is not working, and improves the convenience and user experience of firmware rewriting.
Patent Information
- Application Number
- CN201910810149.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-02-27
AI Technical Summary
Existing wireless charging chips cannot be rewritten when not in use, which affects the convenience of firmware modification and upgrade.
An electronic device is designed, including a wireless charging chip, a main control module, a load switch and a power module. By setting a DC power supply pin in the wireless charging chip, and when the load switch receives a turn-on command, the power module is connected. The DC power supply circuit between the module and the DC power supply pin provides independent power supply for the firmware memory and enables firmware rewriting.
When the wireless charging chip is not working, the firmware can be modified and upgraded, which improves the convenience of firmware rewriting and user experience.
Smart Images

Figure CN112445505B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic technology, and in particular to electronic equipment and a method and apparatus for controlling the equipment. Background Art
[0002] In the related art, electronic devices including wireless charging functions, such as mobile phones, realize corresponding functions through the firmware program in the wireless charging chip. However, since the firmware cannot be rewritten when the wireless charging chip is working normally; when the wireless charging chip is not in use, the wireless charging chip has no power supply, and therefore the firmware cannot be rewritten for the purpose of modification or upgrading. Therefore, how to improve the convenience of firmware rewriting of wireless charging chips has become a research hotspot in the current field. Summary of the invention
[0003] The present disclosure provides an electronic device and a device control method and apparatus to increase the convenience of firmware rewriting of a wireless charging chip and improve user experience.
[0004] According to a first aspect of the present disclosure, an electronic device is provided, the electronic device comprising: a wireless charging chip, a main control module, a load switch and a power supply module;
[0005] The wireless charging chip includes a firmware memory and a DC power supply pin electrically connected to the firmware memory;
[0006] The power output end of the load switch is conductively connected to the DC power supply pin; the power input end of the load switch is conductively connected to the power module, and the control end of the load switch is conductively connected to the main control module;
[0007] When the load switch receives a turn-on instruction issued by the main control module, the DC power supply circuit between the power supply module and the DC power supply pin is connected to provide power for rewriting the firmware of the firmware memory; the firmware memory is electrically connected to the main control module to receive the firmware rewrite instruction from the main control module.
[0008] Optionally, the wireless charging chip further includes an AC power supply coil, and the AC power supply coil is connected to the power supply module to provide power for the wireless charging operation of the wireless charging chip.
[0009] Optionally, the electronic device also includes a boost module, which is conductively connected to the power supply module and the power supply output terminal of the load switch respectively, so as to increase the voltage output by the power supply module to a preset value and then transmit it to the power supply output terminal of the load switch.
[0010] Optionally, the preset value is greater than 5 volts.
[0011] Optionally, the main control module includes a universal pin, and the control end of the load switch is conductively connected to the universal pin.
[0012] According to a second aspect of the present disclosure, a device control method is provided, which is applied to an electronic device, wherein the electronic device comprises: a wireless charging chip, a main control module, a load switch and a power supply module; the wireless charging chip comprises a firmware memory and a DC power supply pin electrically connected to the firmware memory, and the firmware memory is electrically connected to the main control module; the power output end of the load switch is conductively connected to the DC power supply pin, the power input end of the load switch is conductively connected to the power supply module, and the control end of the load switch is conductively connected to the main control module; the device control method comprises:
[0013] Sending a conduction instruction to the load switch, so that the load switch connects the DC power supply circuit between the DC power supply pin and the power supply module according to the conduction instruction;
[0014] A firmware rewrite instruction is sent to the firmware memory, so that the firmware memory rewrites the firmware according to the firmware rewrite instruction.
[0015] Optionally, before issuing a turn-on instruction to the load switch, the method further includes:
[0016] A wireless charging shutdown instruction is sent to the wireless charging chip, so that the wireless charging chip controls the wireless charging chip to stop wireless charging according to the wireless charging shutdown instruction.
[0017] According to a third aspect of the present disclosure, a device control device is provided, which is applied to an electronic device, wherein the electronic device comprises: a wireless charging chip, a main control module, a load switch and a power supply module; the wireless charging chip comprises a firmware memory and a DC power supply pin electrically connected to the firmware memory, and the firmware memory is electrically connected to the main control module; the power output end of the load switch is conductively connected to the DC power supply pin, the power input end of the load switch is conductively connected to the power supply module, and the control end of the load switch is conductively connected to the main control module; the device control device comprises:
[0018] A first control unit sends a conduction instruction to the load switch, so that the load switch connects the DC power supply circuit between the DC power supply pin and the power supply module according to the conduction instruction;
[0019] The second control unit sends a firmware rewrite instruction to the firmware memory, so that the firmware memory rewrites the firmware according to the firmware rewrite instruction.
[0020] Optionally, the device control device further includes:
[0021] The third control unit sends a wireless charging shutdown instruction to the wireless charging chip, so that the wireless charging chip controls the wireless charging chip to stop the wireless charging operation according to the wireless charging shutdown instruction.
[0022] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the device control method are implemented.
[0023] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0024] The present disclosure provides a DC power supply pin connected to a firmware memory for the wireless charging chip, and electrically connects the power output end of the load switch of the electronic device to the DC power supply pin, the power input end of the load switch is conductively connected to the power module, and the control end of the load switch is conductively connected to the main control module. When the load switch receives a conduction instruction issued by the main control module, the DC power supply circuit between the power module and the DC power supply pin is connected to supply power for firmware rewriting of the firmware memory. The above-mentioned setting provides an independent DC power supply circuit for firmware rewriting of the firmware memory of the wireless charging chip, so that the firmware memory can realize firmware rewriting based on modification or upgrade purposes when the wireless charging chip is not in operation, thereby improving the convenience of rewriting and user experience.
[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0027] Figure 1 is a structural perspective view of an electronic device in an exemplary embodiment of the present disclosure;
[0028] Figure 2 is a structural perspective view of an electronic device in another exemplary embodiment of the present disclosure;
[0029] Figure 3 is a flow chart of a device control method in an exemplary embodiment of the present disclosure;
[0030] Figure 4 It is a structural block diagram of a device control apparatus in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0032] In the related art, electronic devices including wireless charging functions, such as mobile phones, realize corresponding functions through the firmware program in the wireless charging chip. However, since the firmware cannot be rewritten when the wireless charging chip is working normally, and the wireless charging chip has no power supply when it is not in use, the firmware cannot be rewritten for the purpose of modification or upgrading, which affects the subsequent use of the wireless charging chip.
[0033] Figure 1 Schematic diagram of the structure of an electronic device in an exemplary embodiment of the present disclosure. Figure 1 As shown, the electronic device 1 includes: a wireless charging chip 11, a main control module 12, a load switch 13 and a power supply module 14. Among them, the wireless charging chip 11 includes a firmware memory 111 and a DC power supply pin 112 electrically connected to the firmware memory 111. The power output terminal 133 of the load switch 13 is conductively connected to the DC power supply pin 112, the power input terminal 131 of the load switch 13 is conductively connected to the power supply module 14, and the control terminal 132 of the load switch 13 is conductively connected to the main control module 12. When the load switch 13 receives the conduction instruction issued by the main control module 12, the DC power supply circuit between the power supply module 14 and the DC power supply pin 112 is connected to supply power for rewriting the firmware of the firmware memory 111. The firmware memory 111 is electrically connected to the main control module 12 to receive the firmware rewrite instruction from the main control module 12.
[0034] By setting a DC power supply pin 112 connected to the firmware memory 111 for the wireless charging chip 11, and making the power output terminal 133 of the load switch 13 of the electronic device 1 electrically connected to the DC power supply pin 112, the power input terminal 131 of the load switch 13 is conductively connected to the power module 14, and the control terminal 132 of the load switch 13 is conductively connected to the main control module 12. When the load switch 13 receives the conduction instruction issued by the main control module 12, the DC power supply circuit between the power module 14 and the DC power supply pin 112 is connected to supply power for the firmware rewriting of the firmware memory 111. The above setting provides an independent DC power supply circuit for the firmware rewriting of the firmware memory 111 of the wireless charging chip 11, so that the firmware memory 111 can complete the firmware rewriting in the non-working state of the wireless charging chip 11, so as to achieve the functional purposes such as modification or upgrading, and improve the convenience of rewriting. Based on the above effect, the firmware rewriting can be carried out for the problems encountered by the electronic device 1 in the subsequent use process and the optimization and upgrading requirements, so as to avoid the electronic device 1 from reducing the user experience due to the problems left over from the research and development or testing.
[0035] It should be noted that the firmware is a program written into the firmware memory 111, and the corresponding functions of the wireless charging chip 11 can be realized through the operation of the firmware. The firmware memory 111 can be a read-only memory, such as an electrically erasable programmable memory (EEPROM), which contains an MTP (multiple time programmable, a microcontroller unit that can be programmed multiple times). When the wireless charging chip 11 is in working state, the corresponding wireless charging operation is realized according to the program setting in the MTP; when the firmware memory 111 receives the rewrite instruction of the main control module 12, the program in the MTP can be re-burned according to the above rewrite instruction to achieve the purpose of modifying or upgrading the wireless charging chip 11.
[0036] In the above embodiment, the wireless charging chip 11 may further include an AC power supply coil 113, which is connected to the power module 14 to provide power for the wireless charging operation of the wireless charging chip 11. When the wireless charging chip 11 is working, it is connected to the power module 14 through the AC power supply coil 113 to obtain an AC voltage to maintain the overall wireless charging operation. Since the firmware memory 111 under AC voltage operation cannot realize firmware rewriting, the present disclosure disconnects the connection between the AC power supply coil 113 and the power module 14 when the wireless charging chip 11 needs to rewrite the firmware, and connects the DC power supply pin 112 of the wireless charging chip 11 to the DC power supply circuit between the power module 14, so as to provide an independent DC working power supply for the firmware rewriting of the firmware memory 111. On the one hand, the above setting provides an independent power supply for the firmware rewriting function of the firmware memory 111 in subsequent use, which is convenient for power supply control; on the other hand, since the independent power supply is a DC power supply, it can only be used as a power supply for firmware rewriting, so it also avoids interference with other components of the wireless charging chip 11 during the firmware rewriting process.
[0037] The power module 14 is the main power source of the electronic device 1, and is used to power the circuits on the wireless charging chip 11, the mainboard and other functional modules of the electronic device 1. Figure 2 As shown, the electronic device 1 further includes a boost module 15, which can be a boost mode power chip of a non-isolated power supply, such as a power chip TPS61253 of TI. The boost module 15 is conductively connected to the power module 14 and the power output terminal 133 of the load switch 13, respectively, to increase the voltage output by the power module 14 to a preset value and then transmit it to the power output terminal 133 of the load switch 13. The preset value is greater than 5 volts, so as to provide a stable voltage for firmware rewriting of the firmware memory 111.
[0038] It should be noted that the main control module 12 includes a general pin 121, and the control end 132 of the load switch 13 is conductively connected to the general pin 121. Among them, the general pin 121 is a GPIO (General-purpose input / output) pin, and the main control module 12 can send a turn-on instruction to the control end 132 of the load switch 13 or receive a feedback signal returned by the control end 132 through the GPIO pin. In addition, the main control module 12 can realize data transmission with the wireless charging chip 11 through the I2C communication interface. For example, when the wireless charging chip 11 is in a wireless charging working state, working data can be transmitted based on the I2C communication interface; when the wireless charging chip 11 is in a firmware rewrite state, firmware rewrite-related instructions or data can be transmitted based on the I2C communication structure.
[0039] In addition, the electronic device 1 may be a mobile phone, a vehicle-mounted terminal, a tablet computer, a medical terminal, etc., and the present disclosure does not limit this.
[0040] The present disclosure further proposes a device control method, which is applied to an electronic device, wherein the electronic device includes: a wireless charging chip, a main control module, a load switch and a power supply module. The wireless charging chip includes a firmware memory and a DC power supply pin electrically connected to the firmware memory, and the firmware memory is electrically connected to the main control module. The power output end of the load switch is conductively connected to the DC power supply pin, the power input end of the load switch is conductively connected to the power supply module, and the control end of the load switch is conductively connected to the main control module. Figure 3 FIG. 1 is a flow chart of a device control method in an exemplary embodiment of the present disclosure. Figure 3 As shown, the device control method can be implemented by the following steps:
[0041] In step S301, a conduction instruction is sent to the load switch, so that the load switch connects the DC power supply circuit between the DC power supply pin and the power supply module according to the conduction instruction;
[0042] In step S302, a firmware rewrite instruction is sent to the firmware memory, so that the firmware memory rewrites the firmware according to the firmware rewrite instruction.
[0043] When the load switch receives the on command from the main control module, the DC power supply circuit between the power module and the DC power supply pin is connected to supply power for firmware rewriting of the firmware memory. The above configuration provides an independent DC power supply circuit for firmware rewriting of the firmware memory of the wireless charging chip, so that the firmware memory can be rewritten for the purpose of modification or upgrade when the wireless charging chip is not in operation, thereby improving the convenience of rewriting and user experience.
[0044] For example, the user can give a user operation instruction for firmware rewriting through the operation interface of the electronic device. After receiving the user operation instruction, the electronic device can send a conduction instruction to the load switch, so that the load switch connects the DC power supply circuit between the DC power supply pin and the power module according to the conduction instruction, and then sends a firmware rewrite instruction to the firmware memory, so that the firmware memory rewrites the firmware according to the firmware rewrite instruction. The above process only requires the user or maintenance personnel to perform corresponding operations on the operation interface of the electronic device to achieve firmware rewriting for the wireless charging chip, which improves the convenience of upgrading or maintenance.
[0045] Furthermore, before issuing a turn-on instruction to the load switch, the method may further include:
[0046] A wireless charging shutdown instruction is sent to the wireless charging chip, so that the wireless charging chip controls the wireless charging chip to stop the wireless charging operation according to the wireless charging shutdown instruction.
[0047] Since the firmware memory under AC voltage operation cannot realize firmware rewriting, the present disclosure disconnects the connection between the AC power supply coil and the power supply module when the wireless charging chip needs to rewrite the firmware, and connects the DC power supply pin of the wireless charging chip with the DC power supply circuit between the power supply module, so as to provide an independent DC working power supply for the firmware rewriting of the firmware memory. On the one hand, the above setting provides an independent power supply for the firmware rewriting function of the firmware memory in subsequent use, which is convenient for power supply control; on the other hand, since the independent power supply is a DC power supply, it can only be used as a power supply for firmware rewriting, thus avoiding interference with other components of the wireless charging chip during the firmware rewriting process.
[0048] The present disclosure further proposes a device control device, which is applied to an electronic device, wherein the electronic device includes: a wireless charging chip, a main control module, a load switch and a power supply module. The wireless charging chip includes a firmware memory and a DC power supply pin electrically connected to the firmware memory, and the firmware memory is electrically connected to the main control module. The power output end of the load switch is conductively connected to the DC power supply pin, the power input end of the load switch is conductively connected to the power supply module, and the control end of the load switch is conductively connected to the main control module. Figure 4 is a structural block diagram of a device control apparatus in an exemplary embodiment of the present disclosure. Figure 4 As shown, the device control apparatus 40 includes a first control unit 41 and a second control unit 42. Specifically:
[0049] The first control unit 41 is configured to send a conduction instruction to the load switch, so that the load switch connects the DC power supply circuit between the DC power supply pin and the power supply module according to the conduction instruction;
[0050] The second control unit 42 is configured to send a firmware rewriting instruction to the firmware memory, so that the firmware memory rewrites the firmware according to the firmware rewriting instruction.
[0051] Furthermore, the equipment control device also includes a third control unit. Specifically:
[0052] The third control unit is configured to send a wireless charging shutdown instruction to the wireless charging chip, so that the wireless charging chip controls the wireless charging chip to stop the wireless charging operation according to the wireless charging shutdown instruction.
[0053] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0054] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0055] In an exemplary embodiment, the present disclosure further provides a non-transitory computer-readable storage medium including instructions, such as a memory including instructions, and the above instructions can be executed by a processor of a device to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0056] The present disclosure provides a DC power supply pin connected to a firmware memory for the wireless charging chip, and electrically connects the power output end of the load switch of the electronic device to the DC power supply pin, the power input end of the load switch is conductively connected to the power module, and the control end of the load switch is conductively connected to the main control module. When the load switch receives a conduction instruction issued by the main control module, the DC power supply circuit between the power module and the DC power supply pin is connected to supply power for firmware rewriting of the firmware memory. The above-mentioned setting provides an independent DC power supply circuit for firmware rewriting of the firmware memory of the wireless charging chip, so that the firmware memory can realize firmware rewriting based on modification or upgrade purposes when the wireless charging chip is not in operation, thereby improving the convenience of rewriting and user experience.
[0057] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the technical solutions disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0058] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An electronic device, characterized in that: include: Wireless charging chip, main control module, load switch and power module; The wireless charging chip includes a firmware memory and a DC power supply pin electrically connected to the firmware memory; The power output end of the load switch is conductively connected to the DC power supply pin; the power input end of the load switch is conductively connected to the power module, and the control end of the load switch is conductively connected to the main control module; When the load switch receives a turn-on instruction from the main control module, the DC power supply circuit between the power supply module and the DC power supply pin is connected to supply power for rewriting the firmware of the firmware memory; the firmware memory is electrically connected to the main control module to receive the firmware rewriting instruction from the main control module; The electronic device also includes a boost module, which is conductively connected to the power output end of the power module and the load switch respectively, so as to increase the voltage output by the power module to a preset value and then transmit it to the power output end of the load switch; the main control module includes a universal pin, and the control end of the load switch is conductively connected to the universal pin.
2. The electronic device according to claim 1, characterized in that: The wireless charging chip also includes an AC power supply coil, which is connected to the power supply module to provide power for the wireless charging operation of the wireless charging chip.
3. The electronic device according to claim 1, characterized in that: The preset value is greater than 5 volts.
4. A device control method, characterized in that: Applied to an electronic device, the electronic device comprises: a wireless charging chip, a main control module, a load switch and a power module; the wireless charging chip comprises a firmware memory and a DC power supply pin electrically connected to the firmware memory, and the firmware memory is electrically connected to the main control module; the power output end of the load switch is conductively connected to the DC power supply pin, the power input end of the load switch is conductively connected to the power module, and the control end of the load switch is conductively connected to the main control module; the electronic device also comprises a boost module, the boost module is conductively connected to the power output end of the power module and the load switch respectively, so as to increase the voltage output by the power module to a preset value and then transmit it to the power output end of the load switch; the main control module comprises a universal pin, and the control end of the load switch is conductively connected to the universal pin; the device control method comprises: Sending a conduction instruction to the load switch, so that the load switch connects the DC power supply circuit between the DC power supply pin and the power supply module according to the conduction instruction; A firmware rewrite instruction is sent to the firmware memory, so that the firmware memory rewrites the firmware according to the firmware rewrite instruction.
5. The method according to claim 4, characterized in that Before issuing a turn-on instruction to the load switch, the method further includes: A wireless charging shutdown instruction is sent to the wireless charging chip, so that the wireless charging chip controls the wireless charging chip to stop wireless charging according to the wireless charging shutdown instruction.
6. A device control device, characterized in that: Applied to electronic equipment, the electronic equipment comprises: a wireless charging chip, a main control module, a load switch and a power supply module; the wireless charging chip comprises a firmware memory and a DC power supply pin electrically connected to the firmware memory, and the firmware memory is electrically connected to the main control module; the power output end of the load switch is conductively connected to the DC power supply pin, the power input end of the load switch is conductively connected to the power supply module, and the control end of the load switch is conductively connected to the main control module; the electronic equipment also comprises a boost module, and the boost module is conductively connected to the power output end of the power supply module and the load switch respectively, so as to increase the voltage output by the power supply module to a preset value and then transmit it to the power output end of the load switch; the main control module comprises a universal pin, and the control end of the load switch is conductively connected to the universal pin; the device control device comprises: A first control unit sends a conduction instruction to the load switch, so that the load switch connects the DC power supply circuit between the DC power supply pin and the power supply module according to the conduction instruction; The second control unit sends a firmware rewrite instruction to the firmware memory, so that the firmware memory rewrites the firmware according to the firmware rewrite instruction.
7. The device according to claim 6, characterized in that Also includes: The third control unit sends a wireless charging shutdown instruction to the wireless charging chip, so that the wireless charging chip controls the wireless charging chip to stop the wireless charging operation according to the wireless charging shutdown instruction.
8. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by the processor, the steps of the method as described in any one of claims 4 to 5 are implemented.
