CN108549292A - Control method, device and the computer readable storage medium of anti-tripping control box - Google Patents

Control method, device and the computer readable storage medium of anti-tripping control box Download PDF

Info

Publication number
CN108549292A
CN108549292A CN201810478534.3A CN201810478534A CN108549292A CN 108549292 A CN108549292 A CN 108549292A CN 201810478534 A CN201810478534 A CN 201810478534A CN 108549292 A CN108549292 A CN 108549292A
Authority
CN
China
Prior art keywords
control box
tripping
tripping control
electromagnetic interference
flag bit
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
CN201810478534.3A
Other languages
Chinese (zh)
Other versions
CN108549292B (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.)
Midea Group Co Ltd
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
Guangdong Midea Refrigeration Equipment 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 Midea Group Co Ltd, Guangdong Midea Refrigeration Equipment Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201810478534.3A priority Critical patent/CN108549292B/en
Publication of CN108549292A publication Critical patent/CN108549292A/en
Application granted granted Critical
Publication of CN108549292B publication Critical patent/CN108549292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Abstract

The invention discloses a kind of control methods of anti-tripping control box, include the following steps:Obtain the monitoring variable being arranged in the main control chip of anti-tripping control box;Judge the anti-tripping control box whether by electromagnetic interference according to the monitoring variable;When the anti-tripping control box is by electromagnetic interference, controls the anti-tripping control box and restarted.The invention also discloses a kind of control devices and computer readable storage medium of anti-tripping control box.Whether the logical monitoring variable of the present invention judges anti-tripping control box by electromagnetic interference, and then anti-tripping control box is executed when electromagnetic interference and restarts action, to realize jamproof purpose.

Description

Control method, device and the computer readable storage medium of anti-tripping control box
Technical field
The present invention relates to technical field of electric appliances more particularly to a kind of control method, device and the calculating of anti-tripping control box Machine readable storage medium storing program for executing.
Background technology
With the development of power technology, people have been enter into the electric appliance epoch, but still have some countries at present, Since generation technology is undeveloped and/or generation assets are deficient, cause supply of electric power limited.Therefore in these countries, control The electric power of electric department's limitation each household family, to ensure the electrical stability of power grid.Therefore, when household electricity is beyond limitation When power, control switch trip of rationing the power supply, domestic electric appliances is caused to power off comprehensively.
In the prior art, anti-tripping control box is usually set up in domestic electric network, anti-tripping control box detects total current, And the power of household electrical appliance is adjusted according to total current, to avoid there is a situation where above-mentioned comprehensive power-off.But due to above-mentioned anti- Dropout control box will be commonly mounted in the switch box of home electrical input with equipment such as ammeter, air switches, lead to cabling Coiling is complicated, when passing through forceful electric power, causes electromagnetic environment in anti-tripping control box very poor, and there are very strong electromagnetic interferences, anti- When the main control chip of dropout control box is by electromagnetic interference, cause anti-tripping control box main control chip operation disorderly.
Invention content
The main purpose of the present invention is to provide a kind of control method of anti-tripping control box, device and computer-readable deposit Storage media, it is intended to solve the main control chip of anti-breaking photoelectric control box when by electromagnetic interference, the skill for causing main control chip operation disorderly Art problem.
To achieve the above object, the present invention provides a kind of control method of anti-tripping control box, the anti-tripping control box Control method include the following steps:
Obtain the monitoring variable being arranged in the main control chip of anti-tripping control box;
Judge the anti-tripping control box whether by electromagnetic interference according to the monitoring variable;
When the anti-tripping control box is by electromagnetic interference, controls the anti-tripping control box and restarted.
Preferably, it before the step of monitoring variable being arranged in the main control chip for obtaining anti-tripping control box, also wraps It includes:
When the anti-tripping control box starts, the predetermined test value is initialized as the initial value.
Preferably, the monitoring variable includes predetermined test value, and the predetermined test value is stored in the anti-tripping control In the random access memory of box, and in the predetermined test value and initial value difference, judge that the predetermined test value changes.
Preferably, the monitoring variable includes predetermined test value, and the predetermined test value is stored in the anti-tripping control In the random access memory of box, and in the predetermined test value and initial value difference, judge the anti-tripping control box by electromagnetism Interference.
Preferably, multiple predetermined test values are preserved in the random access memory, at least one default inspection When measured value changes, judge the anticreep control box by electromagnetic interference.
Preferably, which is characterized in that the storage address interval of the predetermined test value is arranged.
Preferably, the monitoring variable includes flag bit, and the flag bit is set to the anti-tripping control box main program In principal function and/or subcenter at, the principal function is executed in the main program and/or when the subcenter, to institute It states flag bit and carries out set operation, and when detecting the non-set of flag bit, judge the anti-tripping control box by electromagnetic interference.
Preferably, it is described according to the monitoring variable judge the anti-tripping control box whether by the step of electromagnetic interference it Afterwards, further include:
If the flag bit state is set, sends clearing to the WatchDog Timer of the anti-tripping control box and refer to It enables, and is non-SM set mode by the mark position.
Preferably, described the anti-tripping control box to be judged according to the monitoring variable whether the step of electromagnetic interference is wrapped It includes:
When the time interval for detecting flag bit is less than prefixed time interval, obtains and execute the period less than the preset time Interval the principal function and/or the corresponding flag bit of the subcenter, judge the flag bit whether set, to determine Anti-tripping control box is stated whether by electromagnetic interference;
When the time interval for detecting flag bit is more than prefixed time interval, it is greater than or equal to according to the execution period described pre- If the principal function and/or the corresponding flag bit of the subcenter of time interval, judge the flag bit whether set, with Determine the anti-tripping control box whether by electromagnetic interference.
In addition, to achieve the above object, the present invention also provides a kind of control device of anti-tripping control box, feature exists In the control device of the anti-tripping control box includes:It memory, processor and is stored on the memory and can be described The reset routine run on processor realizes anti-tripping control as described above when the reset routine is executed by the processor The step of control method of box.
In addition, to achieve the above object, the present invention also provides a kind of computer readable storage mediums, which is characterized in that institute It states and is stored with reset routine on computer readable storage medium, realized when the reset routine is executed by processor as described above The step of control method of anti-tripping control box.
Control method, device and the computer-readable storage medium for a kind of anti-tripping control box that the embodiment of the present invention proposes Matter, the monitoring variable being arranged in the main control chip by obtaining anti-tripping control box, and then institute is judged according to the monitoring variable Anti-tripping control box is stated whether by electromagnetic interference, when the anti-tripping control box is by electromagnetic interference, controls the anti-tripping control Box processed is restarted.Since the present invention judges anti-tripping control box current time whether by electromagnetic interference, so by monitoring variable It controls it when by electromagnetic interference in anti-tripping control box afterwards to be restarted so that its main control chip can be with normal operation.
Description of the drawings
Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the control method first embodiment of the anti-tripping control box of the present invention;
Fig. 3 is the flow diagram of the control method second embodiment of the anti-tripping control box of the present invention;
Fig. 4 is the flow diagram of the control method 3rd embodiment of the anti-tripping control box of the present invention;
Fig. 5 is the flow diagram of the control method fourth embodiment of the anti-tripping control box of the present invention;
Fig. 6 is the evenly arranged schematic diagram of predetermined test value storage location in random access memory;
Fig. 7 is that predetermined test value storage location in random access memory is reported to the leadship after accomplishing a task the schematic diagram of arrangement.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Obtain the monitoring variable being arranged in the main control chip of anti-tripping control box;
Judge the anti-tripping control box whether by electromagnetic interference according to the monitoring variable;
When the anti-tripping control box is by electromagnetic interference, controls the anti-tripping control box and restarted.
Since the prior art usually sets up anti-tripping control box in domestic electric network, anti-tripping control box detects total current, And the power of household electrical appliance is adjusted according to total current, to avoid there is a situation where power-off comprehensively.But due to anti-breaking electric control Box will be commonly mounted in the switch box of home electrical input with equipment such as ammeter, air switches, lead to switch box interior cabling Coiling is complicated, when passing through forceful electric power, causes electromagnetic environment in anti-tripping control box very poor, and there are very strong electromagnetic interferences, anti- When the main control chip of dropout control box is by electromagnetic interference, cause anti-tripping control box main control chip operation disorderly.
Control method, device and the computer-readable storage medium for a kind of anti-tripping control box that the embodiment of the present invention proposes Matter, the monitoring variable being arranged in the main control chip by obtaining anti-tripping control box, and then institute is judged according to the monitoring variable Anti-tripping control box is stated whether by electromagnetic interference, when the anti-tripping control box is by electromagnetic interference, controls the anti-tripping control Box processed is restarted.Since the present invention judges anti-tripping control box current time whether by electromagnetic interference, so by monitoring variable It controls it when by electromagnetic interference in anti-tripping control box afterwards to be restarted so that its main control chip can be with normal operation.
As shown in Figure 1, the terminal structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Terminal of the embodiment of the present invention can be anti-tripping control box, can also be other easily to be set by the terminal of electromagnetic interference It is standby.
As shown in Figure 1, the terminal may include:Processor 1001, such as CPU, memory 1003, communication bus 1002. Wherein, communication bus 1002 is for realizing the connection communication between these components.Optional memory 1003 may include high-speed RAM Memory can also include the memory (non-volatile memory) of stabilization, such as magnetic disk storage.Memory 1003 It can also be the storage device independently of aforementioned processor 1001.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, either combines certain components or different components arrangement.
As shown in Figure 1, as may include reset routine in a kind of memory 1003 of computer storage media.
In terminal shown in Fig. 1, processor 1001 can be used for calling the reset routine stored in memory 1003, and Execute following operation:
Obtain the monitoring variable being arranged in the main control chip of anti-tripping control box;
Judge the anti-tripping control box whether by electromagnetic interference according to the monitoring variable;
When the anti-tripping control box is by electromagnetic interference, controls the anti-tripping control box and restarted.
Further, processor 1001 can call the reset routine stored in memory 1003, also execute following operation:
When the anti-tripping control box starts, the predetermined test value is initialized as the initial value.
Further, processor 1001 can call the reset routine stored in memory 1003, also execute following operation:
If the flag bit state is set, sends clearing to the WatchDog Timer of the anti-tripping control box and refer to It enables, and is non-SM set mode by the mark position.
Further, processor 1001 can call the reset routine stored in memory 1003, also execute following operation:
When the time interval for detecting flag bit is less than prefixed time interval, obtains and execute the period less than the preset time Interval the principal function and/or the corresponding flag bit of the subcenter, judge the flag bit whether set, to determine Anti-tripping control box is stated whether by electromagnetic interference;
When the time interval for detecting flag bit is more than prefixed time interval, it is greater than or equal to according to the execution period described pre- If the principal function and/or the corresponding flag bit of the subcenter of time interval, judge the flag bit whether set, with Determine the anti-tripping control box whether by electromagnetic interference.
With reference to Fig. 2, the control method first embodiment of the anti-tripping control box of the present invention, the control of the anti-tripping control box Method includes:
Step S10 obtains the monitoring variable being arranged in the main control chip of anti-tripping control box;
In the present embodiment, above-mentioned monitoring variable can be predetermined test value, can also be flag bit.
Predetermined test value is preserved in the designated position of random access memory, the predetermined test value is opened in anti-tripping control box When dynamic, it is initialized as initial value, the initial value can be equal to 0xAA or 0x55.The predetermined test value is regular to be stored in In random access memory, two neighboring predetermined test value is spaced setting in random access memory.Storage of the predetermined test value in RAM The spatial relation for depositing position can be as shown in Figure of description 6, can also be as shown in Figure of description 7.Storage location is such as Predetermined test value shown in Figure of description 6 spatially at vertical and horizontal uniformly arrangement, that is, preserves the storage element of predetermined test value, If in same row, the column address of the storage unit is identical;The storage element of predetermined test value is preserved, if in same a line, The row address of the storage unit is identical.For example, the storage address with two storage units of a line can be respectively (0xAA01,0x0001), (0xAA01,0xAAD1).Storage location predetermined test value as shown in Figure of description 7 is spatially It arranges at the mode being tiltedly aligned.In addition, other functions of RAM, predetermined test value is spaced setting in RAM, two adjacent pre- If the storage unit between detected value can be used for storing other data.
Further, due to when anti-tripping control box is by electromagnetic interference, in anti-tripping control box RAM (random access memory) The data of storage can change, it is possible to change the anti-tripping control box of judgement by electromagnetic interference according to storage data. If in addition, the data in the RAM do not change, and processor is when reading above-mentioned predetermined test value, in the process of reading It is middle cause because of electromagnetic interference read error in data when, anti-tripping control box can also be judged by electromagnetic interference.Processor timing Read the predetermined test value stored in above-mentioned RAM.It can be 5ms or 10ms that interval is read in its timing.
Anti-tripping control box realizes that the mode of itself function is, the storage medium of anti-tripping control box is executed by processor The main program of middle preservation.In main program, when can define each main program execution, the function all inherently gone to and branch Point is respectively principal function and subcenter.Then it is corresponded in the principal function of anti-tripping control box main program and the setting of branch point source Flag bit, the flag bit carry out set, to realize basis when main program executes corresponding principal function and/or subcenter The SM set mode of the flag bit judges the corresponding function whether to perform normally of the flag bit.
Further, principal function or subcenter are divided into two classes, one kind is to repeat and be spaced shorter main letter Number and subcenter;Another kind of is that the long period can just go to primary principal function and subcenter, in program process In, set a time threshold td, tdTime setting should be less than executing time interval most in the main fulcrum that the long period just goes to The execution time interval of short subcenter, to ensure in the normal course of operation of main program, by tdAfterwards above-mentioned principal function and Main fulcrum was at least performed once.If the dog period t that feeds of shutdown dog timer (WDT, Watch Dog Timer) is less than td When, then when often executing dog feeding operation, the principal function and the corresponding mark of subcenter that the short period can repeat are detected first The SM set mode information of position;If the dog period t that feeds of shutdown dog timer is more than or equal to td, then when often executing dog feeding operation, detection The SM set mode information for the corresponding mark of function and branch point that long period can just go to
It should be noted that when above-mentioned principal function or subcenter execute, the set of above-mentioned flag bit, then the mark Position does not respond.In addition, WatchDog Timer (WatchDog Timer), is a timer circuit, general there are one inputs It cries and feeds dog (Kicking The Dog Or Service The Dog), an end RST for being output to MCU (micro-control unit), MCU exports a signal to dog end is fed at regular intervals, is reset to WDT (WatchDog Timer), if it exceeds defined Time does not feed dog, and WDT timings are more than that will provide a reset signal to MCU, and MCU is made to reset.
Whether step S20 judges the anti-tripping control box by electromagnetic interference according to the monitoring variable;
In the present embodiment, it can judge whether anti-tripping control box is done by electromagnetism according to predetermined test value and flag bit It disturbs.
According to predetermined test value to determine whether when by electromagnetic interference, the predetermined test value stored in RAM is obtained, and in acquisition The initial value for depositing the predetermined test value of middle preservation judges whether predetermined test value identical as initial value, if predetermined test value with just Initial value is identical, then judges that anti-tripping control box is currently not affected by electromagnetic interference;If predetermined test value with initially differ, judge Anti-tripping control box is currently by electromagnetic interference.
For example, when initial value is 0xAA, the predetermined test value preserved in RAM (random access memory) is obtained, is judged default Whether detected value is equal to 0xAA, when predetermined test value is equal to 0xAA, judges that anti-tripping control box is currently not affected by electromagnetic interference, Otherwise judge anti-tripping control box currently by electromagnetic interference.
It should be noted that the initial value to be initialized to predetermined test value is preserved in memory, and it is described The initial value preserved in memory will not change because of by electromagnetic interference, will not be lost because terminal powers off.
According to flag bit to determine whether when by electromagnetic interference, if the dog period t that feeds of WatchDog Timer is less than td, then often When executing dog feeding operation, whether the principal function and the corresponding flag bit of subcenter that the detection short period can repeat first are complete Portion's set, if whole set, judge that anti-tripping control box is currently not affected by electromagnetic interference, otherwise judge that anti-tripping control box is worked as It is preceding by electromagnetic interference.
Optionally, if the dog period t that feeds of WatchDog Timer is greater than or equal to td, then when often executing dog feeding operation, detection The whether whole set of the corresponding flag bit of principal function and subcenter that long period can just go to, judge if whole set Anti-tripping control box is currently not affected by electromagnetic interference, otherwise judges anti-tripping control box currently by electromagnetic interference.
It should be noted that when surely anti-tripping control box is currently not affected by electromagnetic interference, WatchDog Timer is carried out Dog action is fed, and simultaneously by the flag clear of all respective flag positions;If there is at least one flag bit there is no set, without Feed dog action.
Step S30, when the anti-tripping control box is by electromagnetic interference, the control anti-tripping control box execution restarts Make.
In the present embodiment, it when judging anti-tripping control box by electromagnetic interference, controls anti-tripping control box and is restarted.
When judging current anti-tripping control box by electromagnetic interference according to predetermined test value, main control chip directly controls main journey Sequence, which is redirected and executed, restarts function, and then controls anti-tripping control box and carry out restarting action.
When judging current anti-tripping control box by electromagnetic interference according to flag bit, WatchDog Timer is not carried out to feed dog Operation, forces WatchDog Timer to overflow, so that WatchDog Timer triggering REBOOT (restarting) is instructed, realizes that control is anti- The purpose that dropout control box is restarted.
It should be noted that whether above-mentioned judge anti-tripping control box by electromagnetic interference according to predetermined test value and flag bit Method, both can individually implement, can also implement simultaneously.Implement that best-of-breed technology effect can be reached simultaneously, the present embodiment is again It is secondary to be not construed as limiting.
In the present embodiment, monitoring variable is first obtained, then judges whether anti-tripping control box is electric according to monitoring variable Magnetic disturbance, when judge anti-tripping control box it is current by electromagnetic interference when, control anti-tripping control box and restart, anticreep has been achieved When button control box receives electromagnetic interference and causes main control chip operation disorderly, anti-tripping control box is restarted, and then promote anticreep Detain the anti-interference ability of control box.
Further, with reference to Fig. 3, the control method second embodiment of the anti-tripping control box of the present invention, the step S10 it Before, further include:
The predetermined test value is initialized as the initial value by step S40 when the anti-tripping control box starts.
In the present embodiment, when anti-tripping control box starts, the initial value preserved in memory is read, and according to described first Initial value carries out initialization operation to the predetermined test value in RAM.
Specifically, when anti-tripping control box starts, the initial value preserved in memory is read, the initial value is written In RAM, in the storage unit for storing predetermined test value;If the storage unit for storing predetermined test value is currently stored data, After then the currently stored data of the storage unit are deleted, initial value is written.
In the present embodiment, when anti-tripping control box is restarted, predetermined test value is initialized, has ensured default detection in this way Value is by the consistency before electromagnetic interference.
Further, with reference to Fig. 4, the control method 3rd embodiment of the anti-tripping control box of the present invention, the step S20 it Afterwards, further include:
Step S50 is sent out if the flag bit state is set to the WatchDog Timer of the anti-tripping control box Clear command is sent, and is non-SM set mode by the mark position.
In the present embodiment, flag bit can be set up at multiple principal functions or subcenter, when flag bit is all set to When position, current main program normal operation is judged, and then judge anti-tripping control box currently normal work and to WatchDog Timer Dog feeding operation is executed, so as to see that doorway timer is reset;Meanwhile by above-mentioned mark position be non-SM set mode so that next time holds When the corresponding principal function of row or subcenter, set operation can be carried out to it.
It should be noted that the present embodiment is not defined the number of the flag bit, flag bit is more, dry to electromagnetism The detection disturbed is sensitiveer.
In the present embodiment, it when flag bit whole set, executes dog feeding operation and (sends and reset to WatchDog Timer Instruction), have thus determined the restrictive conditions for executing dog feeding operation.
Further, with reference to Fig. 5, the control method 3rd embodiment of the anti-tripping control box of the present invention, the step S20 packets It includes:
Step S21 is obtained when the time interval for detecting flag bit is less than prefixed time interval and is executed the period less than described The principal function and/or the corresponding flag bit of the subcenter of prefixed time interval, judge the flag bit whether set, With the determination anti-tripping control box whether by electromagnetic interference;
Step S22 is more than or waits according to the execution period when the time interval for detecting flag bit is more than prefixed time interval In the principal function and/or the corresponding flag bit of the subcenter of the prefixed time interval, judge that the flag bit is No set, with the determination anti-tripping control box whether by electromagnetic interference.
In the present embodiment, when executing dog feeding operation, flag bit status information is first detected, dog is fed to determine whether to execute Operation.Therefore, the time interval for detecting flag bit is equal with the time interval of dog feeding operation is executed, that is, detects the time of flag bit Interval and the time interval for executing dog feeding operation are t.In addition, the prefixed time interval is equal to time threshold td
So in the present embodiment, if the dog period t that feeds of WatchDog Timer is less than time threshold td, then often execute and feed dog When operation, detecting the short period first, (i.e. the execution period is less than time threshold td) in the principal function that can repeat and main split The whether whole set of the corresponding flag bit of point, it is no if whole set, judge that anti-tripping control box is currently not affected by electromagnetic interference Then judge anti-tripping control box currently by electromagnetic interference.
If the dog period t that feeds of WatchDog Timer is greater than or equal to td, then when often executing dog feeding operation, the long period is detected (period is executed more than or equal to time threshold td) the corresponding flag bit of principal function and subcenter that can just go to whether Whole set judge that anti-tripping control box is currently not affected by electromagnetic interference if whole set, otherwise judge anti-tripping control box Currently by electromagnetic interference.
In the present embodiment, according to the magnitude relationship for feeding dog period and time threshold of WatchDog Timer, selection is different The principal function and/or the corresponding flag bit of subcenter for executing the period, judge anti-tripping control box whether by electromagnetic interference, in this way The watchdog system for realizing multi-layer improves anti-tripping control box reliability of operation.
In addition, the embodiment of the present invention also proposes a kind of control device of anti-tripping control box, the anti-tripping control box Control device includes:It memory, processor and is stored on the memory and what can be run on the processor restarts journey Sequence realizes the controlling party of the anti-tripping control box described in as above each embodiment when the reset routine is executed by the processor The step of method.
In addition, the embodiment of the present invention also proposes a kind of storage medium, reset routine is stored on the storage medium, it is described The step of control method of the anti-tripping control box described in as above each embodiment is realized when reset routine is executed by processor.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be anti-tripping Control box) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of control method of anti-tripping control box, which is characterized in that the control method of the anti-tripping control box include with Lower step:
Obtain the monitoring variable being arranged in the main control chip of anti-tripping control box;
Judge the anti-tripping control box whether by electromagnetic interference according to the monitoring variable;
When the anti-tripping control box is by electromagnetic interference, controls the anti-tripping control box and restarted.
2. the control method of anti-tripping control box as described in claim 1, which is characterized in that the monitoring variable includes default Detected value, the predetermined test value are stored in the random access memory of the anti-tripping control box, and in the predetermined test value When with initial value difference, judge the anti-tripping control box by electromagnetic interference.
3. the control method of anti-tripping control box as claimed in claim 2, which is characterized in that described to obtain anti-tripping control box Main control chip in be arranged monitoring variable the step of before, further include:
When the anti-tripping control box starts, the predetermined test value is initialized as the initial value.
4. the control method of anti-tripping control box as claimed in claim 2, which is characterized in that preserved in the random access memory There are multiple predetermined test values, when at least one predetermined test value changes, judges the anticreep control box quilt Electromagnetic interference.
5. the control method of anti-tripping control box as claimed in claim 2, which is characterized in that it is characterized in that, described default The storage address interval of detected value is arranged.
6. the control method of anti-tripping control box as described in claim 1, which is characterized in that the monitoring variable includes mark Position, the flag bit is set at the principal function in the anti-tripping control box main program and/or subcenter, in the main journey When sequence executes the principal function and/or the subcenter, set operation is carried out to the flag bit, and detecting flag bit When non-set, judge the anti-tripping control box by electromagnetic interference.
7. the control method of anti-tripping control box as claimed in claim 6, which is characterized in that described according to the monitoring variable Judge that the anti-tripping control box whether by after the step of electromagnetic interference, further includes:
It is non-SM set mode by the mark position if the flag bit is set.
8. the control method of anti-tripping control box as claimed in claim 6, which is characterized in that described according to the monitoring variable Judge whether the step of electromagnetic interference is included the anti-tripping control box:
When the time interval for detecting flag bit is less than prefixed time interval, obtains and execute the period less than the prefixed time interval The principal function and/or the corresponding flag bit of the subcenter, judge the flag bit whether set, it is described anti-with determination Whether dropout control box is by electromagnetic interference;
When the time interval for detecting flag bit is more than prefixed time interval, when being greater than or equal to described default according to the execution period Between the principal function that is spaced and/or the corresponding flag bit of the subcenter, judge the flag bit whether set, with determination Whether the anti-tripping control box is by electromagnetic interference.
9. a kind of control device of anti-tripping control box, which is characterized in that the control device of the anti-tripping control box includes:It deposits Reservoir, processor and it is stored in the reset routine that can be run on the memory and on the processor, the reset routine The step of the control method such as anti-tripping control box described in any item of the claim 1 to 8 is realized when being executed by the processor Suddenly.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium and restart journey Sequence realizes the control such as anti-tripping control box described in any item of the claim 1 to 8 when the reset routine is executed by processor The step of method processed.
CN201810478534.3A 2018-05-17 2018-05-17 Control method and device of anti-tripping control box and computer readable storage medium Active CN108549292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810478534.3A CN108549292B (en) 2018-05-17 2018-05-17 Control method and device of anti-tripping control box and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810478534.3A CN108549292B (en) 2018-05-17 2018-05-17 Control method and device of anti-tripping control box and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108549292A true CN108549292A (en) 2018-09-18
CN108549292B CN108549292B (en) 2021-04-09

Family

ID=63495174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810478534.3A Active CN108549292B (en) 2018-05-17 2018-05-17 Control method and device of anti-tripping control box and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108549292B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956611A (en) * 2005-10-28 2007-05-02 乐金电子(天津)电器有限公司 Variance filter method of push-button scanning program of microwave oven
JP4726585B2 (en) * 2005-09-16 2011-07-20 株式会社リコー EMI reduction operation test circuit, EMI reduction operation test method, semiconductor device, and electronic apparatus
US20110285885A1 (en) * 2006-12-01 2011-11-24 Youliza, Gehts B.V. Limited Liability Company Imaging system for creating an image of an object
CN103414332A (en) * 2013-08-30 2013-11-27 深圳市英威腾电气股份有限公司 Fault detection and control circuit, method and system for power supply chip
CN104184905A (en) * 2014-09-11 2014-12-03 三星电子(中国)研发中心 Electrostatic disturbance processing method of mobile terminal and mobile terminal
CN107193555A (en) * 2017-05-04 2017-09-22 广州视源电子科技股份有限公司 The method for restarting and device of electric equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4726585B2 (en) * 2005-09-16 2011-07-20 株式会社リコー EMI reduction operation test circuit, EMI reduction operation test method, semiconductor device, and electronic apparatus
CN1956611A (en) * 2005-10-28 2007-05-02 乐金电子(天津)电器有限公司 Variance filter method of push-button scanning program of microwave oven
US20110285885A1 (en) * 2006-12-01 2011-11-24 Youliza, Gehts B.V. Limited Liability Company Imaging system for creating an image of an object
CN103414332A (en) * 2013-08-30 2013-11-27 深圳市英威腾电气股份有限公司 Fault detection and control circuit, method and system for power supply chip
CN104184905A (en) * 2014-09-11 2014-12-03 三星电子(中国)研发中心 Electrostatic disturbance processing method of mobile terminal and mobile terminal
CN107193555A (en) * 2017-05-04 2017-09-22 广州视源电子科技股份有限公司 The method for restarting and device of electric equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张晓勇等: "《嵌入式通信系统》", 31 December 2017, 中国铁道出版社 *
杜军: "基于STC89C52 的有梭织布机控制器的设计", 《微型机与应用》 *
董振等: "《机械CAD/CAM及CNC技术实验教程》", 31 December 2014, 华中科技大学出版社 *

Also Published As

Publication number Publication date
CN108549292B (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN103616660B (en) The testing arrangement of power down process reliability and method under intelligent electric energy meter interference environment
CN105988904A (en) Self-adaptive testing method and system
CN103680655B (en) Nuclear plant digital I&C system default value method to set up and system
CN108647140A (en) A kind of test method and test system of mobile terminal
CN103227662A (en) Safety detection method and system of electric power communication equipment based on state control
CN112052130A (en) CAN network automatic test system and test method thereof
CN108930128A (en) Control method and control device that detergent is launched automatically, washing machine
CN112713650A (en) Electric power monitoring data processing system
CN101908383A (en) Proving installation and method of testing
CN101581959B (en) Method and equipment for resetting single core in multicore chip
CN108549292A (en) Control method, device and the computer readable storage medium of anti-tripping control box
CN103890713B (en) Device and method for managing the register information in processing system
CN106249687A (en) A kind of method of backboard communication
TWI521534B (en) Integrated circuit and operation method thereof
CN105072290B (en) The screen brightness regulation method and device of a kind of terminal
CN107835454A (en) Timeout treatment method, apparatus and storage medium based on WebApp
CN101339528A (en) Computer energy supply periodic switch testing status monitoring apparatus
CN109901831A (en) The multi-platform compatibility operation method and compatibility operation device of software
CN112796075B (en) Power failure processing method and device
CN106330595A (en) Heartbeat detection method and apparatus of distributed platform
CN106326049B (en) A kind of Fault Locating Method and terminal
CN104572332B (en) The method and apparatus of processing system collapse
CN109586405B (en) Micro-grid system and communication method thereof
CN104035784B (en) A kind of equipment activation system and method
CN105204926B (en) Mobile terminal and multi-background program operation control method and system thereof

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