Disclosure of Invention
The invention mainly aims to provide various low-power-consumption control systems and an interaction method inside the low-power-consumption control systems so as to solve the technical problem that wireless communication and wired communication between master and slave modules of the low-power-consumption control systems of batteries in related technologies have defects.
In order to achieve the above object, according to one aspect of the present invention, there is provided a low power consumption control system. The control system comprises a host module, at least one slave module and at least one slave module, wherein the host module comprises a host battery power supply module and a host singlechip, the host module is connected with the at least one slave module through a GND line and an electric energy signal bus and is used for supplying power to the at least one slave module and controlling a load module corresponding to the at least one slave module to be turned on and off, the at least one slave module is connected in parallel, and the at least one slave module comprises a slave electric voltage conversion module, a slave electric voltage conversion module and a load module, and is connected with the GND line and the electric energy signal bus and is used for charging according to a control signal sent by the host module.
The host module further comprises a host battery power supply module, a host singlechip, a first switch unit, a second switch unit and a third diode, wherein the host battery power supply module comprises a first output end and a second output end, one end of the first output end is connected with the host battery power supply module, the other end of the first output end is connected with one end of a first resistor, the other end of the first resistor is connected with an electric energy signal bus, the host singlechip is connected with the second output end of the host battery power supply module, the first switch unit is respectively connected with the first output end of the host battery power supply module, the host singlechip and the electric energy signal bus in parallel with the first resistor, the first end of the second switch unit is connected with the electric energy signal bus, the second end of the second switch unit is connected with the host singlechip, the third end of the second switch unit is connected with a GND line, and one end of the first diode is connected with the host singlechip, and the other end of the first diode is connected with the electric energy signal bus.
The slave computer module further comprises a slave computer voltage conversion module, a slave computer single chip microcomputer, a second diode, a third switch unit and a fourth switch unit, wherein the slave computer voltage conversion module comprises an input end and an output end, the input end is connected with the electric energy signal bus and the GND line, the output end is connected with the slave computer single chip microcomputer, the slave computer single chip microcomputer is respectively connected with the slave computer voltage conversion module, the second diode, the third switch unit and the fourth switch unit, one end of the second diode is connected with the electric energy signal bus, the other end of the second diode is connected with the slave computer single chip microcomputer, the third switch unit is connected with the electric energy signal bus and the slave computer voltage conversion module, the third end of the third switch unit is connected with the GND line, the first end of the fourth switch unit is connected with the slave computer single chip microcomputer, the third end of the third switch unit is grounded, and one end of the load module is connected with the electric energy signal bus, and the other end of the load module is connected with the fourth switch unit.
In order to achieve the above object, according to one aspect of the present invention, there is provided an interaction method inside a low power consumption control system. The method comprises the steps that after the host singlechip is awakened, the host singlechip is controlled to awaken the slave singlechip, and the slave singlechip is controlled to act according to the control signal under the condition that the slave singlechip receives the control signal.
The slave microcomputer single-chip microcomputer is used for waking up the slave microcomputer single-chip microcomputer, and the slave microcomputer single-chip microcomputer is used for sending a wake-up pulse signal to the electric energy signal bus through the second switch unit.
Further, under the condition that the signal is a data reading signal, the slave microcomputer single-chip microcomputer acts according to the signal under the condition that the slave microcomputer single-chip microcomputer receives the signal, the slave microcomputer single-chip microcomputer acts according to the signal, the slave microcomputer single-chip microcomputer sends a data pulse width signal to a third switch unit, the third switch unit forwards the data pulse signal to a first diode, the first diode then sends the data pulse signal to the host microcomputer single-chip microcomputer, and the data pulse signal carries data.
Further, under the condition that the slave microcomputer single-chip microcomputer receives the control signal, after the slave microcomputer single-chip microcomputer acts according to the signal, the method further comprises the step that the host microcomputer single-chip microcomputer and the slave microcomputer single-chip microcomputer enter respective corresponding low-power consumption modes.
Further, under the condition that the slave microcomputer single-chip microcomputer receives the control signal, before the slave microcomputer single-chip microcomputer acts according to the signal, the method further comprises the step that the host microcomputer single-chip microcomputer sends data reading pulse width modulation signals to the slave microcomputer single-chip microcomputer.
Further, before the slave microcomputer single-chip microcomputer receives the control signal and controls the slave microcomputer single-chip microcomputer to act according to the control signal, the method further comprises the steps that the slave microcomputer single-chip microcomputer judges whether the format of the received data reading pulse width modulation signal is correct or not, the slave microcomputer single-chip microcomputer acts under the condition that the format is correct, and the slave microcomputer single-chip microcomputer enters a low-power consumption mode under the condition that the format is incorrect.
Further, under the condition that the signal is a load control pulse modulation signal, the slave microcomputer single-chip microcomputer acts according to the signal under the condition that the slave microcomputer single-chip microcomputer receives the load pulse modulation signal, the slave microcomputer single-chip microcomputer processes the load pulse modulation signal to obtain a response pulse signal and sends the response pulse signal to the host microcomputer single-chip microcomputer, and under the condition that the slave microcomputer single-chip microcomputer receives the load pulse modulation signal, a fourth switch unit of the slave microcomputer single-chip microcomputer is opened, wherein under the condition that the fourth switch unit is opened, the load module is opened.
Further, after the fourth switch unit of the slave microcomputer singlechip is turned on under the condition that the slave microcomputer singlechip receives a load pulse modulation signal, the method comprises the steps that a host unit judges whether a load module is to be turned off or not, the host singlechip turns off the first switch unit to cut off a power supply of the load module under the condition that the load module is determined to be turned off, and turns off the fourth switch unit and performs a low-power consumption mode on the slave microcomputer singlechip under the condition that the slave microcomputer singlechip detects that the load module is turned off.
In order to achieve the above object, according to another aspect of the present invention, there is provided a computer readable storage medium including a stored program, wherein a device in which the computer readable storage medium is located performs an interaction method inside a low power consumption system as described above when the program is run.
In order to achieve the above object, according to another aspect of the present invention, there is provided a processor, wherein the processor is configured to execute a program, and wherein the program executes the interaction method inside a low power system.
The invention adopts the following steps that the host module comprises a host battery power supply module and a host singlechip, the host module is connected with at least one slave module through a GND line and an electric energy signal bus and is used for supplying power to the at least one slave module and controlling the corresponding load module of the at least one slave module to be opened and closed, wherein the at least one slave module is connected in parallel, and comprises a slave voltage conversion module, a slave voltage conversion module and a load module, and the at least one slave module is connected with the GND line and the electric energy signal bus and is used for charging according to a control signal sent by the host module.
Detailed Description
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other. The invention will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the invention herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the present invention, there is provided a low power consumption control system.
Fig. 1 is a schematic diagram of a low power consumption control system according to an embodiment of the present invention. As shown in fig. 1, the control system includes the following:
The host module comprises a host battery power supply module and a host singlechip, and is connected with at least one slave module through a GND line and an electric energy signal bus and used for supplying power to the at least one slave module and controlling the corresponding load module of the at least one slave module to be turned on and off, wherein the at least one slave module is connected in parallel;
the at least one slave module comprises a slave voltage conversion module, a slave voltage conversion module and a load module, and is connected with the GND line and the electric energy signal bus for charging according to the control signal sent by the host module.
The application provides a low-power consumption control system, wherein the low-power consumption circuit and the low-power consumption processing method realize the functions of power supply and communication through 2 wires.
Firstly, the low-power consumption control system comprises a host module and a slave module, wherein the host module and the slave module supply power to the slave module through 2 wires, the data interaction between the host module and the slave module can be realized, and the host module can control the high-power load on the slave module, wherein a plurality of slave modules can be arranged, and a plurality of slave modules are simultaneously connected to the 2 buses in parallel. The two lines are a GND line and a power signal line, respectively.
In an alternative embodiment, the host module comprises a host battery power supply module, a host singlechip, a first switch unit, a second switch unit and a first diode, wherein the host battery power supply module comprises a first output end and a second output end, one end of the first output end is connected with the host battery power supply module, the other end of the first output end is connected with one end of a first resistor, the other end of the first resistor is connected with an electric energy signal bus, the host singlechip is connected with the second output end of the host battery power supply module, the first switch unit is connected with the first resistor in parallel with the first output end of the host battery power supply module, the host singlechip and the electric energy signal bus respectively, the first switch unit is connected with the electric energy signal bus, the second end of the first switch unit is connected with the host singlechip, the third end of the first switch unit is connected with a GND line, and one end of the first diode is connected with the host singlechip, and the other end of the first switch unit is connected with the electric energy signal bus.
The host module comprises a battery power supply module, a host singlechip, a current-limiting resistor R1 for supplying power to the slave, a high-power electric energy switch mos tube Q1 (a first switch unit) for supplying power to the slave, a main module communication receiving signal diode D1 (a first diode) and a main module communication sending signal mos tube Q2, wherein the host battery module supplies power to the slave module through an output 1 (a first output end) and supplies power to the host singlechip through an output 2, the voltage of the output 1 (the first output end) is larger than the voltage of the output 2, and the Q1 and the Q2 cannot be in an open state at the same time.
In an alternative embodiment, the slave computer module further comprises a slave computer voltage conversion module, wherein the slave computer voltage conversion module comprises an input end and an output end, the input end is connected with the electric energy signal bus and the GND line, the output end is connected with the slave computer single-chip microcomputer, the slave computer single-chip microcomputer is respectively connected with the slave computer voltage conversion module, a second diode, a third switch unit and a fourth switch unit, one end of the second diode is connected with the electric energy signal bus, the other end of the second diode is connected with the slave computer single-chip microcomputer, the third switch unit is connected with the electric energy signal bus and the slave computer voltage conversion module, the third end of the second switch unit is connected with the GND line, the fourth switch unit is connected with the slave computer single-chip microcomputer, the second end of the second switch unit is connected with the load module, the third end of the second switch unit is grounded, and the other end of the second diode is connected with the fourth switch unit.
Specifically, the slave module comprises a slave voltage conversion module, a slave singlechip, a slave module communication receiving signal diode D1 (a second diode), a slave module communication sending signal mos tube Q3 (a third switch unit), a slave load module and a slave load module control switch Q4 (a fourth switch unit). The input end of the slave computer voltage conversion module is connected with the electric energy signal bus, electric energy can be obtained on the line, then relatively high voltage on the electric energy signal bus is converted into voltage required by the singlechip, the output end of the slave computer voltage conversion module is connected with the singlechip of the slave computer, and the slave computer is powered by the singlechip of the slave computer, wherein Q1 and Q3 cannot be simultaneously in an open state.
In the above-mentioned alternative embodiment, in the alternative embodiment provided by the application, the host computer module and the slave computer module are both in a low-power-consumption working state, the host computer singlechip is powered by the host computer battery module, the Q1 is in a closed state, the host computer battery power supply module continuously provides low-power-consumption electric energy for the slave computer module through the R1 resistor and the electric energy signal line, and the host computer singlechip and the slave computer singlechip complete data interaction through pulse width modulation signals through the electric energy signal line. The host singlechip can wake up through the RTC clock of the host singlechip and also can wake up through external interrupt, and the slave singlechip can wake up through the external interrupt. The bus wire harness is reduced through the two-wire bus system, so that the bus wire harness is reduced, the construction is more convenient, and the construction cost is reduced.
Fig. 2 is a flowchart of an interaction method in a low power consumption control system according to an embodiment of the present invention. As shown in fig. 2, the interaction method includes the steps of:
S201, after the host singlechip is awakened, the host singlechip wakes up the slave singlechip;
s202, controlling the slave microcomputer single-chip microcomputer to act according to the control signal under the condition that the slave microcomputer single-chip microcomputer receives the control signal.
Above-mentioned ground, master singlechip wakes up regularly, and then establishes the communication with the slave computer through the electric energy signal bus.
In an alternative embodiment, the host singlechip wakes up the slave singlechip, and the method comprises the steps that the host singlechip outputs a wake-up pulse signal to an electric energy signal bus through a second switch unit, the electric energy signal bus forwards the wake-up pulse signal to the slave singlechip, and the slave singlechip exits from a low-power consumption mode under the condition that the slave singlechip receives the wake-up pulse signal.
In an alternative embodiment, under the condition that the signal is a data reading signal, the slave microcomputer single-chip microcomputer acts according to the signal under the condition that the slave microcomputer single-chip microcomputer receives the signal, and the method comprises the steps that the slave microcomputer single-chip microcomputer sends a data pulse width signal to a third switch unit, the third switch unit forwards a data pulse signal to a first diode, and the first diode then sends the data pulse signal to the host microcomputer single-chip microcomputer, wherein the data pulse signal carries data.
In an alternative embodiment, the method further comprises the step that the host singlechip and the slave singlechip enter respective corresponding low-power consumption modes after the slave singlechip acts according to the signal under the condition that the slave singlechip receives the control signal.
In an alternative embodiment, the method further comprises the step that the host singlechip sends a data reading pulse width modulation signal to the slave singlechip before the slave singlechip acts according to the signal under the condition that the slave singlechip receives the control signal.
In an alternative embodiment, before the slave microcomputer single-chip microcomputer receives the control signal and controls the slave microcomputer single-chip microcomputer to act according to the control signal, the method further comprises the steps that the slave microcomputer single-chip microcomputer judges whether the format of the received data reading pulse width modulation signal is correct or not, the slave microcomputer single-chip microcomputer acts under the condition that the format is correct, and the slave microcomputer single-chip microcomputer enters a low power consumption mode under the condition that the format is incorrect.
Specifically, when the timing time of the host singlechip is up by the RTC clock of the host singlechip, a pulse width modulation signal is output to the electric energy signal bus through Q2, then the electric energy signal bus is transmitted to the slave module, then the signal is transmitted to the interrupt input pin of the slave singlechip through D2, the slave is awakened by an external interrupt signal, the low-power consumption mode is exited, then the host singlechip sends a data reading pulse width modulation signal to the slave singlechip, the slave replies the data pulse width modulation signal through Q3, the host singlechip receives the signal returned by the slave through D1, and both the host singlechip and the slave singlechip enter the low-power consumption mode, and the process Q1 is always in a closed state.
Therefore, the slave responds to the request of the host module in real time, the response speed is high, and the slave is always in a low-power consumption mode when no request is made, so that the power consumption is reduced as much as possible.
Meanwhile, when the sensor signal of the slave microcomputer module wakes up the slave microcomputer singlechip, the slave microcomputer singlechip outputs a communication request pulse width modulation signal to the electric energy signal bus through Q3 when the slave microcomputer singlechip needs to communicate with the host microcomputer singlechip, then transmits the communication request pulse width modulation signal to the host microcomputer module, then transmits the signal to an interrupt input pin of the host microcomputer singlechip through D1, wakes up the host by an external interrupt signal, exits from a low-power consumption mode, then transmits data to the slave microcomputer singlechip again to read the pulse width modulation signal, and the slave microcomputer replies the data pulse width modulation signal through Q3, and then receives a signal returned by the slave microcomputer through D1. The process Q1 is always in the off state. Therefore, the host module can respond to the request of the machine in real time, the response speed is high, and the real-time performance of the low-power consumption control system is higher.
The application also provides another alternative embodiment, specifically as shown in fig. 3, fig. 3 is a flow chart of a second interaction method in the low power consumption control system.
By the method, the data interaction speed between the master and slave machine modules is high, and the real-time performance of reducing the power consumption of the control system is higher.
In an alternative embodiment, under the condition that the signal is a load control pulse modulation signal, the slave singlechip acts according to the signal under the condition that the slave singlechip receives the signal, the method comprises the steps that under the condition that the slave singlechip receives the load pulse modulation signal, the slave singlechip processes the load pulse modulation signal to obtain a response pulse signal and sends the response pulse signal to the host singlechip, and under the condition that the slave singlechip receives the load pulse modulation signal, a fourth switch unit of the slave singlechip is opened, wherein under the condition that the fourth switch unit is opened, the load module is opened.
In an alternative embodiment, after a slave microcomputer singlechip receives a load pulse modulation signal and a fourth switch unit of the slave microcomputer singlechip is turned on, the method comprises the steps of judging whether a load module is to be turned off or not by a host unit, turning off the first switch unit by the host singlechip to cut off a power supply of the load module under the condition that the load module is determined to be turned off, turning off the fourth switch unit under the condition that the slave microcomputer singlechip detects that the load module is turned off, and performing a low-power consumption mode by the slave microcomputer singlechip.
The application also provides a technical scheme that the host module controls the load module of the slave module through the electric energy signal bus.
Specifically, under special conditions, when the load module of the slave computer needs to be started, the host computer singlechip firstly outputs a pulse width modulation signal to the electric energy signal bus through Q2, then transmits the pulse width modulation signal to the slave computer module, then transmits the signal to the interrupt input pin of the slave computer singlechip through D2, the slave computer singlechip is immediately awakened after receiving an external interrupt signal, exits from a low-power consumption mode, then transmits a load control pulse width modulation signal to the slave computer singlechip, the slave computer replies a control response pulse width modulation signal through Q3, and the host computer singlechip receives a signal returned by the slave computer through D1. Then the slave singlechip turns on the slave load module control switch Q4, and the host singlechip turns on the Q1, so that both the Q2 and the Q3 are in a closed state, and the load module is turned on. When the slave computer load module needs to be closed, the host computer singlechip firstly closes Q1, the slave computer singlechip detects a low-level signal through D2, and the slave computer singlechip also closes Q4 at the moment, so that the load module is closed. The function of R1 is a current limiting function, in the case of a relatively large load being turned on.
Fig. 4 is a flowchart of a master module controlling a slave load module to be turned on according to the present application, as shown in fig. 4.
Through the interaction method in the low-power-consumption control system, the host module and the slave module realize the low-power-consumption circuit with the power supply and communication functions through double wires and the low-power-consumption processing method, and the technical scheme solves the technical blank of realizing the power supply and communication through double wires under the low-power-consumption system;
Meanwhile, the two-wire bus system provided by the application reduces bus bundles, improves the communication response speed, has lower power consumption, reduces the construction cost and improves the communication stability.
According to the interaction method in the low-power consumption control system, after the host singlechip is awakened, the host singlechip wakes up the slave singlechip, and under the condition that the slave singlechip receives a control signal, the slave singlechip is controlled to act according to the control signal, so that the technical problems that wireless communication and wired communication between the master module and the slave module of the low-power consumption control system of the battery in the related art are defective are solved, and the technical effects of improving the communication response speed, reducing the power consumption, reducing the bus harness, reducing the construction cost and improving the communication stability are achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the technical problems that the wireless communication and the wired communication between the master module and the slave module of the low-power-consumption control system of the battery in the related technology have defects are solved by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a storage medium, and a program is stored on the storage medium, and when the program is executed by a processor, the interaction method inside a low-power consumption control system is realized.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program runs to execute an interaction method inside a low-power consumption control system.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes the following steps when executing the program:
and under the condition that the slave microcomputer singlechip receives the control signal, controlling the slave microcomputer singlechip to act according to the control signal.
Optionally, the host singlechip wakes up the slave singlechip, and comprises the steps that the host singlechip outputs a wake-up pulse signal to an electric energy signal bus through a second switch unit, and the electric energy signal bus forwards the wake-up pulse signal to the slave singlechip; under the condition that the slave microcomputer single-chip microcomputer receives the wake-up pulse signal, the slave microcomputer single-chip microcomputer exits from the low-power consumption mode.
Optionally, under the condition that the signal is a data reading signal and the slave microcomputer single-chip microcomputer receives the signal, the slave microcomputer single-chip microcomputer acts according to the signal, and the slave microcomputer single-chip microcomputer acts according to the signal.
Optionally, under the condition that the slave microcomputer single-chip microcomputer receives the control signal, after the slave microcomputer single-chip microcomputer acts according to the signal, the method further comprises the step that the host microcomputer single-chip microcomputer and the slave microcomputer single-chip microcomputer enter respective corresponding low-power consumption modes.
Optionally, before the slave microcomputer single-chip microcomputer acts according to the control signal received by the slave microcomputer single-chip microcomputer, the method further comprises the step that the host microcomputer single-chip microcomputer sends data reading pulse width modulation signals to the slave microcomputer single-chip microcomputer.
Optionally, before the slave microcomputer single-chip microcomputer receives the control signal and controls the slave microcomputer single-chip microcomputer to act according to the control signal, the method further comprises the steps that the slave microcomputer single-chip microcomputer judges whether the format of the received data reading pulse width modulation signal is correct or not, the slave microcomputer single-chip microcomputer acts under the condition that the format is correct, and the slave microcomputer single-chip microcomputer enters a low-power consumption mode under the condition that the format is incorrect.
Optionally, under the condition that the signal is a load control pulse modulation signal, under the condition that the slave microcomputer single-chip microcomputer receives the signal, the slave microcomputer single-chip microcomputer acts according to the signal, and comprises that under the condition that the slave microcomputer single-chip microcomputer receives the load pulse modulation signal, the slave microcomputer single-chip microcomputer processes the load pulse modulation signal to obtain a response pulse signal and sends the response pulse signal to the host microcomputer single-chip microcomputer, under the condition that the slave microcomputer single-chip microcomputer receives the load pulse modulation signal, a fourth switch unit of the slave microcomputer single-chip microcomputer is opened, and under the condition that the fourth switch unit is opened, the load module is opened.
Optionally, after the slave microcomputer single-chip microcomputer fourth switch unit is turned on under the condition that the slave microcomputer single-chip microcomputer receives a load pulse modulation signal, the method comprises the steps that a host unit judges whether a load module is to be turned off or not, the host single-chip microcomputer turns off the first switch unit to cut off a power supply of the load module under the condition that the load module is determined to be turned off, and turns off the fourth switch unit and conducts a low-power consumption mode on the slave microcomputer single-chip microcomputer under the condition that the slave microcomputer single-chip microcomputer detects that the load module is turned off. The device herein may be a server, PC, PAD, cell phone, etc.
The invention also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of:
and under the condition that the slave microcomputer singlechip receives the control signal, controlling the slave microcomputer singlechip to act according to the control signal.
Optionally, the host singlechip wakes up the slave singlechip, and comprises the steps that the host singlechip outputs a wake-up pulse signal to an electric energy signal bus through a second switch unit, and the electric energy signal bus forwards the wake-up pulse signal to the slave singlechip; under the condition that the slave microcomputer single-chip microcomputer receives the wake-up pulse signal, the slave microcomputer single-chip microcomputer exits from the low-power consumption mode.
Optionally, under the condition that the signal is a data reading signal and the slave microcomputer single-chip microcomputer receives the signal, the slave microcomputer single-chip microcomputer acts according to the signal, and the slave microcomputer single-chip microcomputer acts according to the signal.
Optionally, under the condition that the slave microcomputer single-chip microcomputer receives the control signal, after the slave microcomputer single-chip microcomputer acts according to the signal, the method further comprises the step that the host microcomputer single-chip microcomputer and the slave microcomputer single-chip microcomputer enter respective corresponding low-power consumption modes.
Optionally, before the slave microcomputer single-chip microcomputer acts according to the control signal received by the slave microcomputer single-chip microcomputer, the method further comprises the step that the host microcomputer single-chip microcomputer sends data reading pulse width modulation signals to the slave microcomputer single-chip microcomputer.
Optionally, before the slave microcomputer single-chip microcomputer receives the control signal and controls the slave microcomputer single-chip microcomputer to act according to the control signal, the method further comprises the steps that the slave microcomputer single-chip microcomputer judges whether the format of the received data reading pulse width modulation signal is correct or not, the slave microcomputer single-chip microcomputer acts under the condition that the format is correct, and the slave microcomputer single-chip microcomputer enters a low-power consumption mode under the condition that the format is incorrect.
Optionally, under the condition that the signal is a load control pulse modulation signal, under the condition that the slave microcomputer single-chip microcomputer receives the signal, the slave microcomputer single-chip microcomputer acts according to the signal, and comprises that under the condition that the slave microcomputer single-chip microcomputer receives the load pulse modulation signal, the slave microcomputer single-chip microcomputer processes the load pulse modulation signal to obtain a response pulse signal and sends the response pulse signal to the host microcomputer single-chip microcomputer, under the condition that the slave microcomputer single-chip microcomputer receives the load pulse modulation signal, a fourth switch unit of the slave microcomputer single-chip microcomputer is opened, and under the condition that the fourth switch unit is opened, the load module is opened.
Optionally, after the slave microcomputer single-chip microcomputer fourth switch unit is turned on under the condition that the slave microcomputer single-chip microcomputer receives a load pulse modulation signal, the method comprises the steps that a host unit judges whether a load module is to be turned off or not, the host single-chip microcomputer turns off the first switch unit to cut off a power supply of the load module under the condition that the load module is determined to be turned off, and turns off the fourth switch unit and conducts a low-power consumption mode on the slave microcomputer single-chip microcomputer under the condition that the slave microcomputer single-chip microcomputer detects that the load module is turned off.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present invention and is not intended to limit the present invention. Various modifications and variations of the present invention will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are to be included in the scope of the claims of the present invention.