CN112887438A - Energy controller, system image file downloading method and file downloading system - Google Patents

Energy controller, system image file downloading method and file downloading system Download PDF

Info

Publication number
CN112887438A
CN112887438A CN202110469933.5A CN202110469933A CN112887438A CN 112887438 A CN112887438 A CN 112887438A CN 202110469933 A CN202110469933 A CN 202110469933A CN 112887438 A CN112887438 A CN 112887438A
Authority
CN
China
Prior art keywords
signal
control module
core board
resistor
bluetooth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110469933.5A
Other languages
Chinese (zh)
Other versions
CN112887438B (en
Inventor
杜延磊
张金磊
吴国华
朱建国
刘涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Winline Technology Co Ltd
Original Assignee
Shenzhen Winline Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Winline Technology Co Ltd filed Critical Shenzhen Winline Technology Co Ltd
Priority to CN202110469933.5A priority Critical patent/CN112887438B/en
Publication of CN112887438A publication Critical patent/CN112887438A/en
Application granted granted Critical
Publication of CN112887438B publication Critical patent/CN112887438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the application provides an energy controller, a system image file downloading method and a file downloading system, wherein the energy controller comprises a core board, a Bluetooth module, a power supply control module, a first control module and a second control module, wherein the core board comprises a starting end; after the energy controller is powered on, the core board sends a dog feeding signal to the power supply control module through the first control module, and after the Bluetooth module is successfully paired with the Bluetooth palm computer, the Bluetooth palm computer sets the Bluetooth module as a program downloading mode; the Bluetooth module receives a program downloading command sent by the Bluetooth palm machine, outputs a first signal to the first control module, and outputs a second signal to the second control module; the first signal and the second signal sent by the Bluetooth module are used for controlling the first control module and the second control module, so that the core board enters a downloading state, and the core board downloads the system image file from the electronic equipment. The operation complexity of downloading the system image file by the energy controller can be reduced.

Description

Energy controller, system image file downloading method and file downloading system
Technical Field
The application relates to the technical field of energy, in particular to an energy controller, a system image file downloading method and a file downloading system.
Background
In order to realize energy internet, integrate resources and improve energy utilization efficiency, an Energy Controller (ECU) is an important component of an energy data acquisition system as a next-generation terminal product mainly pushed by a national power grid company.
At present, in order to unify a system platform, energy controllers of various manufacturers use the same set of system image files, if products from factories of the manufacturers have problems or the system image files need to be updated, the working procedures of pulling out a functional module of the energy controller, destroying a lead seal of the energy controller, detaching a shell of the energy controller, downloading the system image files by an operating program and the like need to be performed, and the operation complexity is high.
Disclosure of Invention
The embodiment of the application provides an energy controller, a system image file downloading method and a file downloading system, which can reduce the operation complexity of the energy controller for downloading the system image file.
A first aspect of an embodiment of the present application provides an energy controller, including a core board, a bluetooth module, a power control module, a first control module, and a second control module, where the core board includes a start-up end;
after the energy controller is powered on, the core board sends a dog feeding signal to the power supply control module through the first control module, and after the Bluetooth module is successfully paired with a Bluetooth palm machine, the Bluetooth palm machine sets the Bluetooth module to be in a program downloading mode;
the Bluetooth module receives a program downloading command sent by the Bluetooth palm machine, outputs a first signal to the first control module, and outputs a second signal to the second control module; the first signal comprises a first square wave signal and a square wave high-level alternating signal, the duration of the first square wave signal is a first duration, and the first square wave signal is before the square wave high-level alternating signal; the second signal comprises a second square wave signal and a high level signal, the duration of the second square wave signal is a second duration, and the second square wave signal is before the high level signal; the second duration is greater than the first duration;
the first control module is used for controlling the core board to stop sending the dog feeding signal to the power supply control module within the first duration according to the first signal, and the first control module is used for controlling the core board to replace the core board to send the dog feeding signal to the power supply control module after entering a downloading state according to the square wave high level alternating signal;
the second control module is configured to control the start-up end of the core board to be at a low level within the second duration according to the second square wave signal, and the second control module is configured to control the start-up end of the core board to be at a high level after the core board enters a download state according to the high level signal;
under the condition that the power supply control module detects that the dog feeding signal is not received within a third time period, the power supply control module controls a direct-current power supply to stop supplying power to the core board within a fourth time period so as to enable the core board to be powered down within the fourth time period; the sum of the third time length and the fourth time length is less than the first time length;
in the process from power failure to power up of the core board, if the core board detects that the starting end continues to have a low level, the core board enters a downloading state, and system image files are downloaded from the electronic equipment.
Optionally, the bluetooth module includes a wave generating circuit, a first pin and a second pin, and the first control module includes a first control circuit, a first control end, a first input end and a first output end; the second control module comprises a second control circuit, a second control end and a second output end; the core board further comprises a power supply input end and a third output end; the power supply control module comprises a monitoring chip and a first switching tube;
the first pin is connected with the first control end, the second pin is connected with the second control end, the first input end is connected with the third output end, the first output end is connected with the input end of the monitoring chip, the reset end of the monitoring chip is connected with the control end of the first switch tube, the first end of the first switch tube is connected with the positive electrode of the direct-current power supply, the second end of the first switch tube is connected with the power supply input end, and the second output end is connected with the starting end.
Optionally, the first control circuit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a first capacitor, a second capacitor, a first diode, a second switching tube, and a third switching tube;
the first end of the first resistor is connected with the third output end, the second end of the first resistor is connected with the first end of the second resistor, the first end of the second switch tube and the input end of the monitoring chip, the second end of the second resistor is connected with the anode of the bluetooth power supply, the control end of the second switch tube is connected with the first end of the third resistor, the second end of the third resistor is connected with the first end of the fourth resistor, the first end of the first capacitor and the cathode of the first diode, the anode of the first diode is connected with the cathode of the second diode and the first end of the second capacitor, the second end of the second capacitor is connected with the first end of the eighth resistor, the second end of the eighth resistor is connected with the first end of the fifth resistor and the first end of the third switch tube, and the second end of the third switch tube is connected with the first end of the sixth resistor and the anode of the bluetooth power supply, a second end of the sixth resistor is connected with a control end of the third switching tube and a first end of the seventh resistor, and a second end of the seventh resistor is connected with the first pin; the second end of the second switch tube, the second end of the fourth resistor, the second end of the first capacitor, the anode of the second diode, and the second end of the fifth resistor are grounded.
Optionally, the first control circuit includes a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a fourteenth resistor, a fifteenth resistor, a third capacitor, a fourth capacitor, a third diode, a fourth switching tube, and a fifth switching tube;
a first end of the ninth resistor is connected to the start end and a first end of the fourth switch tube, a second end of the ninth resistor is connected to the anode of the bluetooth power supply, a control end of the fourth switch tube is connected to the first end of the tenth resistor, a second end of the tenth resistor is connected to the first end of the eleventh resistor, the first end of the third capacitor and the cathode of the third diode, the anode of the third diode is connected to the cathode of the fourth diode and the first end of the fourth capacitor, the second end of the fourth capacitor is connected to the first end of the fifteenth resistor, the second end of the fifteenth resistor is connected to the first ends of the twelfth resistor and the fifth switch tube, the second end of the fifth switch tube is connected to the first end of the thirteenth resistor and the anode of the bluetooth power supply, and the second end of the thirteenth resistor is connected to the control end of the fifth switch tube and the control end of the fourteenth resistor A second end of the fourteenth resistor is connected with the second pin; a second end of the fourth switching tube, a second end of the eleventh resistor, a second end of the third capacitor, an anode of the fourth diode, and a second end of the twelfth resistor are grounded.
Optionally, after the system image file is downloaded, the bluetooth module receives a request sent by the bluetooth palm computer to exit the download mode, and the bluetooth module switches from the program download mode to a normal operating mode.
Optionally, in the normal operating mode, the bluetooth module outputs a high level to the first control module and the second control module.
Optionally, the core board further includes a universal serial bus USB interface;
and when the core board enters a downloading state, the core board downloads the system image file from the electronic equipment through the USB interface.
A second aspect of the embodiments of the present application provides a method for downloading a system image file, where the method is applied to an energy controller, where the energy controller includes a core board, a bluetooth module, a power control module, a first control module, and a second control module, and the core board includes a start-up end; the method comprises the following steps:
after the energy controller is powered on, the core board sends a dog feeding signal to the power supply control module through the first control module;
after the Bluetooth module is successfully paired with the Bluetooth palm machine, the Bluetooth palm machine sets the Bluetooth module to be in a program downloading mode;
the Bluetooth module receives a program downloading command sent by the Bluetooth palm machine, outputs a first signal to the first control module, and outputs a second signal to the second control module; the first signal comprises a first square wave signal and a square wave high-level alternating signal, the duration of the first square wave signal is a first duration, and the first square wave signal is before the square wave high-level alternating signal; the second signal comprises a second square wave signal and a high level signal, the duration of the second square wave signal is a second duration, and the second square wave signal is before the high level signal; the second duration is greater than the first duration;
the first control module controls the core board to stop sending the dog feeding signals to the power supply control module within the first duration according to the first signal, and the first control module controls the core board to replace the core board to send the dog feeding signals to the power supply control module after entering a downloading state according to the square wave high level alternating signal;
the second control module controls the starting end of the core board to be at a low level within the second duration according to the second square wave signal, and controls the starting end of the core board to be at a high level after the core board enters a downloading state according to the high level signal;
under the condition that the power supply control module detects that the dog feeding signal is not received within a third time period, the power supply control module controls a direct-current power supply to stop supplying power to the core board within a fourth time period so as to enable the core board to be powered down within the fourth time period; the sum of the third time length and the fourth time length is less than the first time length;
in the process from power failure to power up of the core board, if the core board detects that the starting end continues to have a low level, the core board enters a downloading state, and system image files are downloaded from the electronic equipment.
Optionally, the method further includes:
and after the system image file is downloaded, the Bluetooth module receives a request for quitting the downloading mode sent by the Bluetooth palm computer, and the Bluetooth module is switched from the program downloading mode to a normal working mode.
A third aspect of the embodiments of the present application provides a file downloading system, including an energy controller, a bluetooth palm device, and an electronic device, where the energy controller includes a core board, a bluetooth module, a power control module, a first control module, and a second control module, and the core board includes a start end;
after the energy controller is powered on, the core board sends a dog feeding signal to the power supply control module through the first control module, and after the Bluetooth module is successfully paired with the Bluetooth palm machine, the Bluetooth palm machine sets the Bluetooth module to be in a program downloading mode;
the Bluetooth module receives a program downloading command sent by the Bluetooth palm machine, outputs a first signal to the first control module, and outputs a second signal to the second control module; the first signal comprises a first square wave signal and a square wave high-level alternating signal, the duration of the first square wave signal is a first duration, and the first square wave signal is before the square wave high-level alternating signal; the second signal comprises a second square wave signal and a high level signal, the duration of the second square wave signal is a second duration, and the second square wave signal is before the high level signal; the second duration is greater than the first duration;
the first control module is used for controlling the core board to stop sending the dog feeding signal to the power supply control module within the first duration according to the first signal, and the first control module is used for controlling the core board to replace the core board to send the dog feeding signal to the power supply control module after entering a downloading state according to the square wave high level alternating signal;
the second control module is configured to control the start-up end of the core board to be at a low level within the second duration according to the second square wave signal, and the second control module is configured to control the start-up end of the core board to be at a high level after the core board enters a download state according to the high level signal;
under the condition that the power supply control module detects that the dog feeding signal is not received within a third time period, the power supply control module controls a direct-current power supply to stop supplying power to the core board within a fourth time period so as to enable the core board to be powered down within the fourth time period; the sum of the third time length and the fourth time length is less than the first time length;
in the process from power failure to power up of the core board, if the core board detects that the starting end continues to have a low level, the core board enters a downloading state, and system image files are downloaded from the electronic equipment.
According to the energy controller in the embodiment of the application, the Bluetooth module is redesigned, the first control module and the second control module are newly added, and the first signal and the second signal sent by the Bluetooth module are used for controlling the first control module and the second control module, so that the core board enters a downloading state, and the core board downloads the system image file from the electronic equipment. The system image file is required to be updated when the energy controller goes wrong after leaving the factory, the functional module of the energy controller is not required to be pulled down, the lead seal of the energy controller is not required to be damaged, the shell of the energy controller is not required to be detached, the operation complexity of the energy controller for downloading the system image file can be reduced, and the cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic operation flow diagram of downloading a system image file by a conventional energy controller according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of an energy controller provided in an embodiment of the present application;
FIG. 3 is a schematic waveform diagram of a first signal and a second signal provided in the practice of the present application;
FIG. 4 is a schematic structural diagram of another energy controller provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a first control circuit and a second control circuit provided in an embodiment of the present application;
fig. 6 is a schematic flowchart of a method for downloading a system image file according to an embodiment of the present application;
fig. 7 is a schematic diagram of a specific downloading process provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a file downloading system according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, system, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
An energy source controller (ECU) is generally installed in a public or private transformer area, can realize flexible access of metering and sensing equipment on a client side and a power distribution side, and has the functions of data acquisition, intelligent charge control, clock synchronization, accurate metering, ordered charging, energy utilization management, loop state inspection, household variable relation identification, power failure event reporting and the like. The terminal product is an important component of an energy data acquisition system and is taken as a next generation terminal product which is mainly pushed by a national power grid company. If the system image file needs to be downloaded after leaving the factory, the current operation is complex, and a possible downloading operation flow is shown in fig. 1. Fig. 1 is a schematic diagram illustrating an operation flow of downloading a system image file by a conventional energy controller according to an embodiment of the present disclosure. Firstly, detaching 5 functional modules; secondly, breaking the lead seal and removing the screw; and thirdly, disassembling the shell and operating the program downloading process. Therefore, if a product which leaves the factory has a problem or needs to update a system image file, the working procedures of pulling out a functional module, destroying a lead seal, removing a shell and the like are needed, and the rework cost is high.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an energy controller according to an embodiment of the present disclosure. As shown in fig. 2, the energy controller 100 includes a core board 10, a bluetooth module 20, a power control module 30, a first control module 40, and a second control module 50, where the core board 10 includes a start terminal 11;
after the energy controller 100 is powered on, the core board 10 sends a dog feeding signal to the power supply control module 30 through the first control module 40, and after the bluetooth module 20 is successfully paired with a bluetooth palm, the bluetooth palm sets the bluetooth module 20 to be in a program downloading mode;
the bluetooth module 20 receives a program downloading command sent by the bluetooth palm device, the bluetooth module 20 outputs a first signal to the first control module 40, and the bluetooth module 20 outputs a second signal to the second control module 50; the first signal comprises a first square wave signal and a square wave high-level alternating signal, the duration of the first square wave signal is a first duration, and the first square wave signal is before the square wave high-level alternating signal; the second signal comprises a second square wave signal and a high level signal, the duration of the second square wave signal is a second duration, and the second square wave signal is before the high level signal; the second duration is greater than the first duration;
the first control module 40 is configured to control the core board 10 to stop sending the dog feeding signal to the power control module 30 within the first duration according to the first signal, and the first control module 40 is configured to control the core board 10 to send the dog feeding signal to the power control module 30 instead of the core board 10 after entering a download state according to the square wave high level alternating signal;
the second control module 50 is configured to control the start-up terminal 11 of the core board 10 to be at a low level within the second duration according to the second square wave signal, and the second control module 50 is configured to control the start-up terminal 11 of the core board 10 to be at a high level after entering a download state according to the high level signal;
under the condition that the power supply control module 30 detects that the dog feeding signal is not received within a third time period, the power supply control module 30 controls a direct-current power supply to stop supplying power to the core board 10 within a fourth time period, so that the core board 10 is powered down within the fourth time period; the sum of the third time length and the fourth time length is less than the first time length;
in the process from power down to power up of the core board 10, if it is detected that the start terminal 11 continues to have a low level, the core board 10 enters a downloading state, and downloads a system image file from the electronic device.
In this application embodiment, DC power supply can supply power to nuclear core plate through power control module group.
Optionally, the energy control module may include a dc power module, and the dc power module may provide dc power. For example, the DC power module may include a DC/DC (direct current/direct current) power module. The voltage of the dc power supply may be 5V.
Optionally, the energy control module may further include an alternating current-direct current (AC-DC) power module, where the AC-DC power module may convert AC power into DC power, and the AC-DC power module may provide DC power.
The power supply control module is used for controlling whether the direct current power supply is allowed to supply power to the core board. When the power supply is powered on, the power supply control module allows the direct-current power supply to supply power to the core board, and after the power supply is powered on, the core board can send a dog feeding signal to the power supply control module through the first control module. The power supply control module also allows the direct current power supply to supply power to the core board under the condition that the dog feeding signal is received. The dog feeding signal may comprise a periodic high-low level alternating signal, for example, a high level signal every 100 ms. When the power control module presets and does not receive in the time length and feeds dog signal, power control module control DC power supply stops to nuclear core plate power supply, and nuclear core plate falls the electricity this moment, then a period of time (for example, 200 ms) back, power control module control DC power supply is to nuclear core plate power supply, and nuclear core plate is gone up the electricity again.
The core board is an electronic main board for packaging and encapsulating the core functions. The core board can integrate the processor, the storage device and the pins, and is connected with the matched bottom board through the pins, so that a system chip in the energy field is realized. The enable pins of the core board are also referred to as boot pins. The core board enters a downloading state when the set conditions are met. Wherein the setting conditions include: in the process from power down to power up of the core board, the starting end is continuously at a low level.
The Bluetooth module is a module with a Bluetooth communication function and a wave sending function. The bluetooth module of this application embodiment has increased the function of sending out a wave with on general bluetooth module's basis, can generate square wave, sine wave, triangle wave etc. and contain the wave form of high level and low level in a cycle.
The bluetooth module can carry out the bluetooth with the bluetooth palm and pair. Specifically, after the energy controller is powered on, a program related to the Bluetooth module runs, and the Bluetooth palm machine can send a pairing request and is paired with the Bluetooth module through encryption authentication. The bluetooth palm machine may be a product developed by national grid company.
In a possible scenario, when the energy controller needs to download the system image file, a user may open a power switch of the energy controller, and may connect the USB interface of the energy controller with the electronic device. Then the user operates on the Bluetooth palm machine, the Bluetooth palm machine sends a pairing request, after the pairing is successful, a program downloading command is sent to the Bluetooth module through the Bluetooth palm machine, and the core board is controlled to enter a downloading state through a square wave signal sent by the Bluetooth module.
The Bluetooth module can work in a normal working mode or a program downloading mode. Under normal operating mode, bluetooth palm passes through the bluetooth communication with the energy controller, when switching over to program download mode from normal operating mode, and the bluetooth palm sends the program download order to the bluetooth module, and the bluetooth module controls nuclear core plate power down respectively through first pin and second pin and resets and the boot pin is in the low level to the bluetooth module enters into program download mode, and nuclear core plate entering download state this moment follows electronic equipment and downloads system mirror image file.
The Bluetooth module can simultaneously output a first signal to the first control module and a second signal to the second control module after receiving a program downloading command sent by the Bluetooth palm machine. Whether first control module receives the control of the first signal of bluetooth module output to decide nuclear core plate to send the dog feeding signal to power control module group, whether the control that second control module received the second signal of bluetooth module output decides the start-up end of nuclear core plate is the high level or the low level.
In the embodiment of the present application, a voltage higher than 0.7V may be regarded as a high level, and a voltage lower than 0.3V may be regarded as a low level. For example, the high level may be defined as 3.3V and the low level may be defined as 0V.
In an embodiment of the present application, the first signal includes a first square wave signal and a square wave high level alternating signal, a duration of the first square wave signal is a first duration, and the first square wave signal precedes the square wave high level alternating signal. That is, the first signal comes out first of all as a first square wave signal and then as a square wave high-level alternating signal. The second signal comprises a second square wave signal and a high level signal, the duration of the second square wave signal is a second duration, and the second square wave signal is before the high level signal. That is, the second square wave signal comes out first in the second signal, and then the high level signal comes out.
The square wave high-level alternating signal may be a signal in which a square wave signal and a high-level signal alternately appear, and may be a periodic signal.
The first square wave signal enables the dog feeding signal to be pulled low, and the core board stops sending the dog feeding signal to the power management module. The square wave high-level alternating signals can replace a dog feeding function of the core board in the downloading process, and replace the core board to send dog feeding signals to the power management module. The second square wave signal causes the start-up terminal of the core board to be low. The high level signal in the second signal can ensure that the start end is at a high level within the duration of the high level signal, so that the problem that the core board enters a downloading state again in the downloading process to cause the downloading failure of the system image file can be avoided.
Under the condition that the power supply control module detects that the dog feeding signal is not received in the third time period, the power supply control module controls the direct-current power supply to stop supplying power to the core board in the fourth time period, so that the core board is powered off in the fourth time period. The power supply control module can control the direct-current power supply to recover the power supply of the core board after the fourth time period, so that the core board is powered on again.
The conditions for the core board to enter the download state are as follows: the start-up terminal continues low during the process from power-down to power-up of the core board. And setting the sum of the third time length and the fourth time length to be less than the first time length, and enabling the core board to realize the process from power failure to power up in the duration of the first square wave signal. The first duration may be further limited to be less than a sum of twice the third duration and the fourth duration on the basis that the sum of the third duration and the fourth duration is less than the first duration. The problem that the core board fails to download the system image file due to the fact that the core board does not feed the dog to the power management module for a long time in the downloading process and then is powered off again to enter the downloading state can be avoided.
The duration (the second duration) of the second square wave signal is set to be greater than the duration (the first duration) of the first square wave signal, so that the fact that the starting end can continue to have a low level in the process from power failure to power on of the core board can be guaranteed, and the core board can smoothly enter a downloading state. The second duration may be further limited to less than a sum of twice the third duration and the fourth duration based on the second duration being greater than the first duration. The problem that the core board fails to download the system image file due to the fact that the core board does not feed the dog to the power management module for a long time in the downloading process and then is powered off again to enter the downloading state can be avoided.
Because the bluetooth module probably exports continuous high level or low level under the abnormal conditions, send square wave signal through the bluetooth module and control nuclear core plate and get into the download state for even bluetooth module exports high level or low level under the abnormal conditions, bluetooth module exports high level or low level and can not let nuclear core plate get into the download state, can not cause the influence to the download of nuclear core plate yet. It is thus clear that send square wave signal through designing the bluetooth module and control nuclear core plate and get into the download state, can prevent that the bluetooth module from causing the influence to the download of nuclear core plate under the unusual condition, improve the stability of nuclear core plate download.
According to the energy controller in the embodiment of the application, the Bluetooth module is redesigned, the first control module and the second control module are newly added, and the first signal and the second signal sent by the Bluetooth module are used for controlling the first control module and the second control module, so that the core board enters a downloading state, and the core board downloads the system image file from the electronic equipment. The system image file is required to be updated when the energy controller goes wrong after leaving the factory, the functional module of the energy controller is not required to be pulled down, the lead seal of the energy controller is not required to be damaged, the shell of the energy controller is not required to be detached, the operation complexity of the energy controller for downloading the system image file can be reduced, and the cost is reduced.
The energy controller of the embodiment of the application can use a modular design scheme, a display processing module, a power supply collection module, a function module and the like are separated from the whole machine, each module forms an independent function set, a core board serves as a core processing unit and is welded on the display processing module, and the core board can adopt 32-bit embedded hardware of national network unified quad-core ARM Cortex-A7. The program is composed of a system image file and an application APP, wherein the system image file and the application APP can be downloaded from electronic equipment to a memory of the core board through an external USB interface to be stored, and the application APP can be realized through a USB flash disk or remote upgrading and the like. The USB interface is used as a master device (host) USB in the normal operating mode and as a slave device USB in the program downloading mode.
Referring to fig. 3, fig. 3 is a schematic waveform diagram of a first signal and a second signal according to an embodiment of the present disclosure. As shown in fig. 3, the first signal includes a first square wave signal and a square wave high level alternating signal, the duration of the first square wave signal is a first duration, and the first square wave signal precedes the square wave high level alternating signal. The second signal comprises a second square wave signal and a high level signal, the duration of the second square wave signal is a second duration, the second square wave signal is before the high level signal, and the second duration is greater than the first duration. The first square wave signal and the second square wave signal in fig. 3 are simple examples, and do not indicate that the first square wave signal includes only a signal of two cycles, nor that the second square wave signal includes only a signal of three cycles. In fig. 3, the square wave high-level alternating signal is exemplified by a square wave with a high level preceding and a square wave following, or the square wave with a high level preceding and a square wave preceding, and the embodiment of the present application is not limited.
Optionally, please refer to fig. 4, where fig. 4 is a schematic structural diagram of another energy controller provided in the embodiment of the present application. Fig. 4 is further optimized based on fig. 2, as shown in fig. 4, the bluetooth module 20 includes a wave generating circuit 23, a first pin 21 and a second pin 22, and the first control module 40 includes a first control circuit 41, a first control terminal 42, a first input terminal 43 and a first output terminal 44; the second control module 50 comprises a second control circuit 51, a second control terminal 52 and a second output terminal 53; the core board 10 further includes a power input terminal 12 and a third output terminal 13; the power control module 30 comprises a monitoring chip 31 and a first switching tube Q1; the wave generation circuit 23 may generate the first signal and the second signal described above.
The first pin 21 is connected to the first control terminal 42, the second pin 22 is connected to the second control terminal 52, the first input terminal 43 is connected to the third output terminal 13, the first output terminal is connected to the input terminal of the monitoring chip, the Reset terminal (Reset) of the monitoring chip is connected to the control terminal of the first switch tube Q1, the first terminal of the first switch tube Q1 is connected to the positive electrode of the dc power supply, the second terminal of the first switch tube Q1 is connected to the power input terminal 12, and the second output terminal 53 is connected to the start terminal 11.
Optionally, the power control module 30 may further include a sixteenth resistor, which is not shown in fig. 4. The sixteenth resistor may be connected between the reset terminal of the monitoring chip and the first terminal of the first switching tube, and the sixteenth resistor may serve as a pull-up resistor.
Wherein, the first pin and the second pin can be GPIO pins.
The monitoring chip may be a watchdog chip, and an input terminal of the watchdog chip may be a watchdog input (WDI). The Reset terminal of the watchdog chip may be Reset. The watchdog chip may include a watchdog timer (WDT) configured to count whether a duration in which the dog feeding signal is not received reaches a third duration. Specifically, when it is detected that the dog feeding signal is not received, the watchdog timer starts timing, the timing time is set to be a third time length, when the third time length is reached, a Reset terminal (Reset) of the watchdog monitoring chip is triggered to send a turn-off signal of a fourth time length to the first switch tube, Reset operation is executed, so that the first switch tube is disconnected within the fourth time length, and the direct-current power supply stops supplying power to the core board within the fourth time length. The first switch tube can be a triode, a field effect tube and the like. For example, if the first switch tube is an NMOS tube, the turn-off signal may be at a low level, and the turn-on signal may be at a high level. If the first switch tube is a PMOS tube and the control terminal can be a gate of an NMOS tube, the turn-off signal can be at a high level and the turn-on signal can be at a low level. If the switching tube is an MOS tube, the control end may be a gate of the MOS tube, and the first end and the second end of the first switching tube are a source and a drain of the MOS tube, respectively. If the switch tube is a triode, the control end can be the base electrode of the triode, and the first end and the second end of the first switch tube are the collector electrode and the emitter electrode of the triode respectively. The first switch tube in fig. 4 takes a PMOS tube as an example.
Optionally, referring to fig. 5, fig. 5 is a schematic structural diagram of a first control circuit and a second control circuit provided in the embodiment of the present application. Fig. 5 is further optimized based on fig. 4, and as shown in fig. 5, the first control circuit includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a first capacitor C1, a second capacitor C2, a first diode D1, a second diode D2, a second switch tube Q2, and a third switch tube Q3;
a first end of the first resistor R1 is connected to the third output end, a second end of the first resistor R1 is connected to a first end of the second resistor R2, a first end of the second switch Q2 and an input end of the monitoring chip, a second end of the second resistor R2 is connected to an anode of the bluetooth power supply, a control end of the second switch Q2 is connected to a first end of the third resistor R3, a second end of the third resistor R3 is connected to a first end of the fourth resistor R4, a first end of the first capacitor C1 and a cathode of the first diode D1, an anode of the first diode D1 is connected to a cathode of the second diode D2 and a first end of the second capacitor C2, a second end of the second capacitor C2 is connected to a first end of the eighth resistor R8, a second end of the eighth resistor R8 is connected to a first end of the fifth resistor R5 and a first end of the first switch Q3, a second end of the third switching tube Q3 is connected to a first end of the sixth resistor R6 and the positive electrode of the bluetooth power supply, a second end of the sixth resistor R6 is connected to a control end of the third switching tube Q3 and a first end of the seventh resistor R7, and a second end of the seventh resistor R7 is connected to the first pin; a second terminal of the second switch transistor Q2, a second terminal of the fourth resistor R4, a second terminal of the first capacitor C1, an anode of the second diode D2, and a second terminal of the fifth resistor R5 are grounded.
In the embodiment of the present application, the first pin and the second pin are GPIO pins, the first pin is GPIO1, and the second pin is GPIO 2. The monitoring chip takes a watchdog chip as an example.
The bluetooth power supply may be the power supply voltage of the bluetooth module, which is generally a 3.3V dc voltage. The voltage of the dc voltage (typically 5V) supplying the core board is different from the voltage of the bluetooth power supply.
The first capacitor C1 and the second capacitor C2 are nonpolar capacitors, and the sixth resistor R6 and the seventh resistor R7 form a voltage division circuit. The resistances of the sixth resistor R6 and the seventh resistor R7 may satisfy the following condition: vcc R6/(R6 + R7) =0.7V, where Vcc may be the voltage of the bluetooth power supply and Vcc may be equal to 3.3V. 0.7 is the conduction voltage of the transistor.
The voltage at the second end of the sixth resistor R6 is used to control whether the third switching tube Q3 is turned on or off. If the second switch Q2 is an NPN transistor and the third switch Q3 is a PNP transistor, the conduction conditions of the second switch Q2 and the third switch Q3 are as follows: the emitter is forward biased. If the first pin is low level, the third switch tube Q3 is turned on, the bluetooth power supply can charge the first capacitor C1 and the second capacitor C2, at this time, the second switch tube Q2 is turned on, and the feeding dog signal is pulled low. If the first pin is at a high level, the third switching tube Q3 is turned off (the voltage of the emitter of the PNP triode may be less than the voltage of the base and cannot satisfy the conduction condition of the emitter being biased positively), the bluetooth power supply cannot charge the first capacitor C1 and the second capacitor C2, at this time, the second switching tube Q2 is turned off (the voltage difference between the voltage of the base and the emitter of the NPN triode is close to 0 and cannot be greater than 0.7V and cannot satisfy the conduction condition of the emitter being biased positively), and the dog feeding signal is not affected by the first control circuit.
The first pin outputs a first square wave signal (square wave with a certain frequency), the principle of the first control circuit mainly applies the blocking and energy storage effects of the capacitor, the square wave output by the first pin charges the first capacitor C1 at the rear end through the second capacitor C2 (blocking capacitor), when the voltage of the first capacitor C1 reaches a certain voltage value above 0.7V, the second switch tube Q2 is in saturated conduction, the dog feeding time of the low-level control watchdog chip is output, and therefore power-down reset of the core board is achieved. The second capacitor C2 is a dc blocking capacitor, and if the first pin outputs a continuous high level signal or low level signal (i.e., dc signal), the high level signal or low level signal is isolated by the second capacitor C2 and cannot reach the first capacitor C1, and the second switch Q2 is turned off.
In fig. 5, the second switching tube Q2 is an NPN transistor as an example, the third switching tube Q3 is a PNP transistor as an example, the control terminal of the second switching tube Q2 is a base electrode of the NPN transistor, the first terminal of the second switching tube Q2 is a collector electrode of the NPN transistor, and the second terminal of the second switching tube Q2 is an emitter electrode of the NPN transistor. The control end of the third switching tube Q3 is the base of a PNP triode, the first end of the third switching tube Q3 is the collector of the PNP triode, and the second end of the third switching tube Q3 is the emitter of the PNP triode.
As shown in fig. 5, the second control circuit includes a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, a thirteenth resistor R13, a fourteenth resistor R14, a fifteenth resistor R15, a third capacitor C3, a fourth capacitor C4, a third diode D3, a fourth diode D4, a fourth switch Q4, and a fifth switch Q5;
a first terminal of the ninth resistor R9 is connected to the start terminal and a first terminal of the fourth switch Q4, a second terminal of the ninth resistor R9 is connected to the positive terminal of the bluetooth power source, a control terminal of the fourth switch Q4 is connected to a first terminal of the tenth resistor R10, a second terminal of the tenth resistor R10 is connected to the first terminal of the eleventh resistor R11, the first terminal of the third capacitor C3 and the negative terminal of the third diode D3, a positive terminal of the third diode D3 is connected to the negative terminal of the fourth diode D4 and the first terminal of the fourth capacitor C4, a second terminal of the fourth capacitor C4 is connected to the first terminal of the fifteenth resistor R15, a second terminal of the fifteenth resistor R15 is connected to the first terminal of the twelfth resistor R12 and the first terminal of the fifth switch Q5, and a second terminal of the fifth switch Q5 is connected to the positive terminal of the thirteenth resistor R13 and the positive terminal of the bluetooth power source, a second end of the thirteenth resistor R13 is connected to the control end of the fifth switch Q5 and a first end of the fourteenth resistor R14, and a second end of the fourteenth resistor R14 is connected to the second pin; a second end of the fourth switching tube Q4, a second end of the eleventh resistor R11, a second end of the third capacitor C3, an anode of the fourth diode D4, and a second end of the twelfth resistor R12 are grounded.
The first pin and the second pin in fig. 5 are illustrated by taking GPIO pins as an example, and the monitoring chip is a watchdog-opening chip as an example.
In the embodiment of the present application, the third capacitor C3 and the fourth capacitor C4 are non-polar capacitors, and the thirteenth resistor R13 and the fourteenth resistor R14 form a voltage divider circuit. The resistance values of the thirteenth resistor R13 and the fourteenth resistor R14 may satisfy the following condition: vcc R13/(R14 + R13) =0.7V, where Vcc may be a power supply voltage of the bluetooth module, Vcc may be equal to 3.3V, and 0.7 is a conduction voltage of the transistor.
The voltage at the second end of the thirteenth resistor R13 is used to control whether the fifth switch Q5 is turned on or not. If the fourth switching tube Q4 is an NPN transistor and the fifth switching tube Q5 is a PNP transistor, the conditions for conducting the fourth switching tube Q4 and the fifth switching tube Q5 are as follows: the emitter is forward biased. If the second pin is at low level, the fifth switch tube Q5 is turned on, the bluetooth power supply can charge the third capacitor C3 and the fourth capacitor C4, at this time, the fourth switch tube Q4 is turned on, and the level of the start terminal is pulled low to be at low level. If the second pin is at a high level, the fifth switching tube Q5 is turned off (the voltage of the emitter of the PNP triode may be less than the voltage of the base and cannot satisfy the conduction condition of the emitter being biased positively), the bluetooth power supply cannot charge the third capacitor C3 and the fourth capacitor C4, at this time, the fourth switching tube Q4 is turned off (the voltage difference between the base voltage and the emitter of the NPN triode is close to 0 and cannot be greater than 0.7V and cannot satisfy the conduction condition of the emitter being biased positively), and the level of the start-up end is influenced by the bluetooth power supply connected to the ninth resistor R9 and is at a high level.
The second pin outputs a second square wave signal, and the frequency of the second square wave signal may be the same as the frequency of the first square wave signal. Similar to the first control circuit, the principle of the second control circuit mainly applies the blocking and energy storage functions of the capacitor, square waves output by the second pin charge a third capacitor C3 at the rear end through a fourth capacitor C4 (blocking capacitor), and when the voltage of a third capacitor C3 reaches a certain voltage value above 0.7V, the fourth switch tube Q4 is in saturated conduction to output low level to control the dog feeding time of the watchdog chip, so that the core board is reset when power is lost. The fourth capacitor C4 is a dc blocking capacitor, and if the second pin outputs a continuous high level signal or low level signal (i.e., dc signal), the high level signal or low level signal is isolated by the fourth capacitor C4 and cannot reach the third capacitor C3, and the fourth switch Q4 is turned off.
In fig. 5, the fourth switching tube Q4 takes an NPN transistor as an example, the fifth switching tube Q5 takes a PNP transistor as an example, the control terminal of the fourth switching tube Q4 is a base electrode of the NPN transistor, the first terminal of the fourth switching tube Q4 is a collector electrode of the NPN transistor, and the second terminal of the fourth switching tube Q4 is an emitter electrode of the NPN transistor. The control end of the fifth switching tube Q5 is the base of the PNP triode, the first end of the fifth switching tube Q5 is the collector of the PNP triode, and the second end of the fifth switching tube Q5 is the emitter of the PNP triode.
Optionally, after the system image file is downloaded, the bluetooth module receives a request sent by the bluetooth palm computer to exit the download mode, and the bluetooth module switches from the program download mode to a normal operating mode.
In a possible embodiment, after the user sees the notification that the downloading is completed displayed on the display screen of the electronic device or the energy controller, the user can operate on the bluetooth palm machine to make the bluetooth palm machine send a request for exiting the downloading mode, and the bluetooth module is switched from the program downloading mode to the normal operating mode to realize the normal operation of the bluetooth module.
Wherein, under the normal operating mode, the bluetooth module outputs the high level to first control module with second control module maintains the high level of the start end of nuclear core plate to not cause the influence to the dog feeding signal of nuclear core plate to power supply control module output.
Optionally, as shown in fig. 4, the core board further includes a universal serial bus USB interface 14; when the core board enters the downloading state, the core board downloads a system image file from the electronic device through the USB interface 14.
The core board is connected with the electronic equipment through a USB download power line, and the USB download power line has a diode reverse current prevention function. Specifically, a diode with a backflow prevention function can be added in the USB download power line.
Referring to fig. 6, fig. 6 is a schematic flowchart of a method for downloading a system image file according to an embodiment of the present application, where the method may be applied to the energy controller shown in fig. 2, 4, or 5, where the energy controller includes a core board, a bluetooth module, a power control module, a first control module, and a second control module, where the core board includes a start terminal; the method comprises the following steps:
601, after the energy controller is powered on, the core board sends a dog feeding signal to the power supply control module through the first control module;
602, after the bluetooth module is successfully paired with the bluetooth palm, the bluetooth palm sets the bluetooth module as a program downloading mode;
603, the bluetooth module receives a program downloading command sent by the bluetooth palm machine, outputs a first signal to the first control module, and outputs a second signal to the second control module;
the first signal comprises a first square wave signal and a square wave high-level alternating signal, the duration of the first square wave signal is a first duration, and the first square wave signal is before the square wave high-level alternating signal; the second signal comprises a second square wave signal and a high level signal, the duration of the second square wave signal is a second duration, and the second square wave signal is before the high level signal; the second duration is greater than the first duration;
604, the first control module controls the core board to stop sending dog feeding signals to the power supply control module within a first time length according to the first signals, and the first control module controls the core board to replace the core board to send the dog feeding signals to the power supply control module after entering a downloading state according to square wave high level alternating signals;
605, the second control module controls the start-up end of the core board to be at a low level within a second duration according to the second square wave signal, and the second control module controls the start-up end of the core board to be at a high level after the core board enters a download state according to the high level signal;
606, under the condition that the power supply control module detects that the dog feeding signal is not received within the third duration, the power supply control module controls the direct-current power supply to stop supplying power to the core board within the fourth duration so as to enable the core board to be powered off within the fourth duration; the sum of the third time length and the fourth time length is less than the first time length;
607, in the process from power down to power up of the core board, if it is detected that the start end continues to have a low level, the core board enters a downloading state, and downloads the system image file from the electronic device.
Optionally, the method shown in fig. 6 further includes the following steps:
after the system image file is downloaded, the Bluetooth module receives a request for quitting the downloading mode sent by the Bluetooth palm machine, and the Bluetooth module is switched into a normal working mode from the program downloading mode.
For the specific implementation of the method in the embodiment of the present application, reference may be made to the embodiment of the apparatus shown in fig. 2, which is not described herein again.
In the embodiment of the application, through the redesigned bluetooth module of the energy controller and the newly added first control module and second control module, the first control module and the second control module are controlled by the first signal and the second signal sent by the bluetooth module, so that the core board enters a downloading state, and the core board downloads the system image file from the electronic device. The system image file is required to be updated when the energy controller goes wrong after leaving the factory, the functional module of the energy controller is not required to be pulled down, the lead seal of the energy controller is not required to be damaged, the shell of the energy controller is not required to be detached, the operation complexity of the energy controller for downloading the system image file can be reduced, and the cost is reduced.
Referring to fig. 7, fig. 7 is a schematic diagram of a specific downloading process according to an embodiment of the present application. As shown in fig. 7, the download process may include the following steps.
(1) After the power is on, the Bluetooth palm machine is paired with the energy controller Bluetooth module, and the Bluetooth module is set to be in a program downloading mode;
(2) the Bluetooth modules GPIO1 and GPIO2 output square wave frequency from high level at the same time;
(3) the GPIO1 outputs square waves for 2400ms (first square wave signal) to ensure that watchdog reset enables the power-down reset of the core board, then the periodic square waves and high-level alternate output (square wave high-level alternate signal) is entered, the time interval is 100ms, and the square waves are used for replacing the dog feeding function of the core board in system image file downloading;
(4) the GPIO2 outputs a high level (second square wave signal) after the square wave is output for 3000ms, the boot is changed from a low level to a high level, the core board enters a downloading state, and the process must ensure that the core board enters a power-on state from power failure when the boot is at the low level;
(5) and after the system image file is downloaded, the palm computer sends a quit downloading mode to the Bluetooth module, the Bluetooth module is switched to a normal working mode, the Bluetooth GPIO1 and GPIO2 pins keep outputting high level, and the downloading mode is ended.
Wherein, the watchdog chip detects that the watchdog chip does not receive the condition of feeding the dog signal within 1.6 seconds, and the reset end of the watchdog chip resets within 200ms, lets nuclear core plate power down, and nuclear core plate is electrified again after 200 ms.
In the embodiment of the present application, the first duration is 2400ms, the second duration is 3000ms, the third duration is 1.6 seconds, and the fourth duration is 200 ms.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a file downloading system according to an embodiment of the present application. As shown in fig. 8, the file downloading system 1000 includes an energy controller 100, a bluetooth palm 200, and an electronic device 300, where the energy controller 100 includes a core board 10, a bluetooth module 20, a power control module 30, a first control module 40, and a second control module 50, and the core board 10 includes a boot terminal 11;
after the energy controller 100 is powered on, the core board 10 sends a dog feeding signal to the power supply control module 30 through the first control module 40, and after the bluetooth module 20 is successfully paired with a bluetooth palm, the bluetooth palm sets the bluetooth module 20 to be in a program downloading mode;
the bluetooth module 20 receives a program downloading command sent by the bluetooth palm device, the bluetooth module 20 outputs a first signal to the first control module 40, and the bluetooth module 20 outputs a second signal to the second control module 50; the first signal comprises a first square wave signal and a square wave high-level alternating signal, the duration of the first square wave signal is a first duration, and the first square wave signal is before the square wave high-level alternating signal; the second signal comprises a second square wave signal and a high level signal, the duration of the second square wave signal is a second duration, and the second square wave signal is before the high level signal; the second duration is greater than the first duration;
the first control module 40 is configured to control the core board 10 to stop sending the dog feeding signal to the power control module 30 within the first duration according to the first signal, and the first control module 40 is configured to control the core board 10 to send the dog feeding signal to the power control module 30 instead of the core board 10 after entering a download state according to the square wave high level alternating signal;
the second control module 50 is configured to control the start-up terminal 11 of the core board 10 to be at a low level within the second duration according to the second square wave signal, and the second control module 50 is configured to control the start-up terminal 11 of the core board 10 to be at a high level after entering a download state according to the high level signal;
under the condition that the power supply control module 30 detects that the dog feeding signal is not received within a third time period, the power supply control module 30 controls a direct-current power supply to stop supplying power to the core board 10 within a fourth time period, so that the core board 10 is powered down within the fourth time period; the sum of the third time length and the fourth time length is less than the first time length;
in the process from power down to power up of the core board 10, if it is detected that the start terminal 11 continues to have a low level, the core board 10 enters a downloading state, and downloads a system image file from the electronic device.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.

Claims (10)

1. An energy controller is characterized by comprising a core board, a Bluetooth module, a power supply control module, a first control module and a second control module, wherein the core board comprises a starting end;
after the energy controller is powered on, the core board sends a dog feeding signal to the power supply control module through the first control module, and after the Bluetooth module is successfully paired with a Bluetooth palm machine, the Bluetooth palm machine sets the Bluetooth module to be in a program downloading mode;
the Bluetooth module receives a program downloading command sent by the Bluetooth palm machine, outputs a first signal to the first control module, and outputs a second signal to the second control module; the first signal comprises a first square wave signal and a square wave high-level alternating signal, the duration of the first square wave signal is a first duration, and the first square wave signal is before the square wave high-level alternating signal; the second signal comprises a second square wave signal and a high level signal, the duration of the second square wave signal is a second duration, and the second square wave signal is before the high level signal; the second duration is greater than the first duration;
the first control module is used for controlling the core board to stop sending the dog feeding signal to the power supply control module within the first duration according to the first signal, and the first control module is used for controlling the core board to replace the core board to send the dog feeding signal to the power supply control module after entering a downloading state according to the square wave high level alternating signal;
the second control module is configured to control the start-up end of the core board to be at a low level within the second duration according to the second square wave signal, and the second control module is configured to control the start-up end of the core board to be at a high level after the core board enters a download state according to the high level signal;
under the condition that the power supply control module detects that the dog feeding signal is not received within a third time period, the power supply control module controls a direct-current power supply to stop supplying power to the core board within a fourth time period so as to enable the core board to be powered down within the fourth time period; the sum of the third time length and the fourth time length is less than the first time length;
in the process from power failure to power up of the core board, if the core board detects that the starting end continues to have a low level, the core board enters a downloading state, and system image files are downloaded from the electronic equipment.
2. The power controller of claim 1, wherein the bluetooth module comprises a wave generating circuit, a first pin and a second pin, and the first control module comprises a first control circuit, a first control terminal, a first input terminal and a first output terminal; the second control module comprises a second control circuit, a second control end and a second output end; the core board further comprises a power supply input end and a third output end; the power supply control module comprises a monitoring chip and a first switching tube;
the first pin is connected with the first control end, the second pin is connected with the second control end, the first input end is connected with the third output end, the first output end is connected with the input end of the monitoring chip, the reset end of the monitoring chip is connected with the control end of the first switch tube, the first end of the first switch tube is connected with the positive electrode of the direct-current power supply, the second end of the first switch tube is connected with the power supply input end, and the second output end is connected with the starting end.
3. The energy controller according to claim 2, wherein the first control circuit comprises a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a first capacitor, a second capacitor, a first diode, a second switch tube and a third switch tube;
the first end of the first resistor is connected with the third output end, the second end of the first resistor is connected with the first end of the second resistor, the first end of the second switch tube and the input end of the monitoring chip, the second end of the second resistor is connected with the anode of the bluetooth power supply, the control end of the second switch tube is connected with the first end of the third resistor, the second end of the third resistor is connected with the first end of the fourth resistor, the first end of the first capacitor and the cathode of the first diode, the anode of the first diode is connected with the cathode of the second diode and the first end of the second capacitor, the second end of the second capacitor is connected with the first end of the eighth resistor, the second end of the eighth resistor is connected with the first end of the fifth resistor and the first end of the third switch tube, and the second end of the third switch tube is connected with the first end of the sixth resistor and the anode of the bluetooth power supply, a second end of the sixth resistor is connected with a control end of the third switching tube and a first end of the seventh resistor, and a second end of the seventh resistor is connected with the first pin; the second end of the second switch tube, the second end of the fourth resistor, the second end of the first capacitor, the anode of the second diode, and the second end of the fifth resistor are grounded.
4. The energy controller according to claim 3, wherein the first control circuit comprises a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a fourteenth resistor, a fifteenth resistor, a third capacitor, a fourth capacitor, a third diode, a fourth switch tube and a fifth switch tube;
a first end of the ninth resistor is connected to the start end and a first end of the fourth switch tube, a second end of the ninth resistor is connected to the anode of the bluetooth power supply, a control end of the fourth switch tube is connected to the first end of the tenth resistor, a second end of the tenth resistor is connected to the first end of the eleventh resistor, the first end of the third capacitor and the cathode of the third diode, the anode of the third diode is connected to the cathode of the fourth diode and the first end of the fourth capacitor, the second end of the fourth capacitor is connected to the first end of the fifteenth resistor, the second end of the fifteenth resistor is connected to the first ends of the twelfth resistor and the fifth switch tube, the second end of the fifth switch tube is connected to the first end of the thirteenth resistor and the anode of the bluetooth power supply, and the second end of the thirteenth resistor is connected to the control end of the fifth switch tube and the control end of the fourteenth resistor A second end of the fourteenth resistor is connected with the second pin; a second end of the fourth switching tube, a second end of the eleventh resistor, a second end of the third capacitor, an anode of the fourth diode, and a second end of the twelfth resistor are grounded.
5. The energy controller according to any one of claims 1 to 4, wherein after the system image file is downloaded, the Bluetooth module receives a request for exiting the download mode sent by the Bluetooth palm device, and the Bluetooth module switches from the program download mode to a normal operation mode.
6. The energy controller of claim 5, wherein in the normal operating mode, the Bluetooth module outputs a high level to the first control module and the second control module.
7. The energy controller of claim 1, wherein the core board further comprises a Universal Serial Bus (USB) interface;
and when the core board enters a downloading state, the core board downloads the system image file from the electronic equipment through the USB interface.
8. The system image file downloading method is applied to an energy controller, the energy controller comprises a core board, a Bluetooth module, a power supply control module, a first control module and a second control module, and the core board comprises a starting end; the method comprises the following steps:
after the energy controller is powered on, the core board sends a dog feeding signal to the power supply control module through the first control module;
after the Bluetooth module is successfully paired with the Bluetooth palm machine, the Bluetooth palm machine sets the Bluetooth module to be in a program downloading mode;
the Bluetooth module receives a program downloading command sent by the Bluetooth palm machine, outputs a first signal to the first control module, and outputs a second signal to the second control module; the first signal comprises a first square wave signal and a square wave high-level alternating signal, the duration of the first square wave signal is a first duration, and the first square wave signal is before the square wave high-level alternating signal; the second signal comprises a second square wave signal and a high level signal, the duration of the second square wave signal is a second duration, and the second square wave signal is before the high level signal; the second duration is greater than the first duration;
the first control module controls the core board to stop sending the dog feeding signals to the power supply control module within the first duration according to the first signal, and the first control module controls the core board to replace the core board to send the dog feeding signals to the power supply control module after entering a downloading state according to the square wave high level alternating signal;
the second control module controls the starting end of the core board to be at a low level within the second duration according to the second square wave signal, and controls the starting end of the core board to be at a high level after the core board enters a downloading state according to the high level signal;
under the condition that the power supply control module detects that the dog feeding signal is not received within a third time period, the power supply control module controls a direct-current power supply to stop supplying power to the core board within a fourth time period so as to enable the core board to be powered down within the fourth time period; the sum of the third time length and the fourth time length is less than the first time length;
in the process from power failure to power up of the core board, if the core board detects that the starting end continues to have a low level, the core board enters a downloading state, and system image files are downloaded from the electronic equipment.
9. The method of claim 8, further comprising:
and after the system image file is downloaded, the Bluetooth module receives a request for quitting the downloading mode sent by the Bluetooth palm computer, and the Bluetooth module is switched from the program downloading mode to a normal working mode.
10. A file downloading system is characterized by comprising an energy controller, a Bluetooth palm machine and electronic equipment, wherein the energy controller comprises a core board, a Bluetooth module, a power supply control module, a first control module and a second control module, and the core board comprises a starting end;
after the energy controller is powered on, the core board sends a dog feeding signal to the power supply control module through the first control module, and after the Bluetooth module is successfully paired with the Bluetooth palm machine, the Bluetooth palm machine sets the Bluetooth module to be in a program downloading mode;
the Bluetooth module receives a program downloading command sent by the Bluetooth palm machine, outputs a first signal to the first control module, and outputs a second signal to the second control module; the first signal comprises a first square wave signal and a square wave high-level alternating signal, the duration of the first square wave signal is a first duration, and the first square wave signal is before the square wave high-level alternating signal; the second signal comprises a second square wave signal and a high level signal, the duration of the second square wave signal is a second duration, and the second square wave signal is before the high level signal; the second duration is greater than the first duration;
the first control module is used for controlling the core board to stop sending the dog feeding signal to the power supply control module within the first duration according to the first signal, and the first control module is used for controlling the core board to replace the core board to send the dog feeding signal to the power supply control module after entering a downloading state according to the square wave high level alternating signal;
the second control module is configured to control the start-up end of the core board to be at a low level within the second duration according to the second square wave signal, and the second control module is configured to control the start-up end of the core board to be at a high level after the core board enters a download state according to the high level signal;
under the condition that the power supply control module detects that the dog feeding signal is not received within a third time period, the power supply control module controls a direct-current power supply to stop supplying power to the core board within a fourth time period so as to enable the core board to be powered down within the fourth time period; the sum of the third time length and the fourth time length is less than the first time length;
in the process from power failure to power up of the core board, if the core board detects that the starting end continues to have a low level, the core board enters a downloading state, and system image files are downloaded from the electronic equipment.
CN202110469933.5A 2021-04-29 2021-04-29 Energy controller, system image file downloading method and file downloading system Active CN112887438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110469933.5A CN112887438B (en) 2021-04-29 2021-04-29 Energy controller, system image file downloading method and file downloading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110469933.5A CN112887438B (en) 2021-04-29 2021-04-29 Energy controller, system image file downloading method and file downloading system

Publications (2)

Publication Number Publication Date
CN112887438A true CN112887438A (en) 2021-06-01
CN112887438B CN112887438B (en) 2021-07-13

Family

ID=76040260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110469933.5A Active CN112887438B (en) 2021-04-29 2021-04-29 Energy controller, system image file downloading method and file downloading system

Country Status (1)

Country Link
CN (1) CN112887438B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4685023A (en) * 1986-11-14 1987-08-04 General Motors Corporation Power latch circuit for computer self deactivation
CN101936234A (en) * 2010-07-22 2011-01-05 中国船舶重工集团公司第七一一研究所 Control unit for controlling IP (Intellectual Property) core by integrating multiple engines
CN103488104A (en) * 2013-10-08 2014-01-01 国家海洋技术中心 Monitoring reset system
CN104020705A (en) * 2014-06-23 2014-09-03 苏州塔可盛电子科技有限公司 Power monitoring circuit with resetting function
CN107656484A (en) * 2017-11-15 2018-02-02 巢湖学院 A kind of safe setting circuit of hardware watchdog
CN111190762A (en) * 2020-01-05 2020-05-22 上海汉枫电子科技有限公司 Automatic resetting and state keeping device and method of intelligent household equipment and application
CN112084057A (en) * 2020-09-03 2020-12-15 青岛海信电子产业控股股份有限公司 Hardware watchdog system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4685023A (en) * 1986-11-14 1987-08-04 General Motors Corporation Power latch circuit for computer self deactivation
CN101936234A (en) * 2010-07-22 2011-01-05 中国船舶重工集团公司第七一一研究所 Control unit for controlling IP (Intellectual Property) core by integrating multiple engines
CN103488104A (en) * 2013-10-08 2014-01-01 国家海洋技术中心 Monitoring reset system
CN104020705A (en) * 2014-06-23 2014-09-03 苏州塔可盛电子科技有限公司 Power monitoring circuit with resetting function
CN107656484A (en) * 2017-11-15 2018-02-02 巢湖学院 A kind of safe setting circuit of hardware watchdog
CN111190762A (en) * 2020-01-05 2020-05-22 上海汉枫电子科技有限公司 Automatic resetting and state keeping device and method of intelligent household equipment and application
CN112084057A (en) * 2020-09-03 2020-12-15 青岛海信电子产业控股股份有限公司 Hardware watchdog system

Also Published As

Publication number Publication date
CN112887438B (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN202872406U (en) Interface multiplexing circuit and mobile terminal
CN105223858B (en) The switching on and shutting down control circuit of a kind of electronic equipment
CN106874149B (en) Hardware watchdog logic circuit
JP6246186B2 (en) Programmable electrical control device
CN108123519A (en) Power supply transfer equipment and its control method, device and electric power system
US20120331312A1 (en) Usb charging circuit for a computer
CN204009457U (en) On/off circuit based on PMU and electronic equipment
CN105204601B (en) A kind of system electrification automatic boot circuit and its starting-up method
CN112887438B (en) Energy controller, system image file downloading method and file downloading system
CN112433890B (en) Reset circuit, chip and electronic product
CN111711436A (en) Power-off and reset circuit and intelligent central control
CN105897240A (en) Single-button soft on-off circuit with hardware forced power-off function
CN210616556U (en) Starting control device of manipulator
CN218547453U (en) Reset control circuit and intelligence lock based on watchdog chip
CN216670679U (en) Reset circuit and electronic equipment
CN101751102A (en) Starting-up signal generating device
CN107809229B (en) Multi-key combined hardware reset circuit and electronic product
EP4258088A1 (en) Stylus
EP2763273A1 (en) Connecting auxiliary battery charger IC to mobile chipset
CN113193631B (en) Power supply control device, power supply control method, storage medium, and electronic device
CN113467333B (en) Startup control circuit and startup control method
CN115622189A (en) Power supply control circuit and beauty instrument
CN101398799A (en) Computer, hot pluggable device and startup method of hot pluggable device
US10181684B1 (en) Power connector
CN113054967A (en) Control circuit and method for startup and shutdown

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant