CN108804259A - Water power stake and the method and apparatus that program operation is detected - Google Patents
Water power stake and the method and apparatus that program operation is detected Download PDFInfo
- Publication number
- CN108804259A CN108804259A CN201810611639.1A CN201810611639A CN108804259A CN 108804259 A CN108804259 A CN 108804259A CN 201810611639 A CN201810611639 A CN 201810611639A CN 108804259 A CN108804259 A CN 108804259A
- Authority
- CN
- China
- Prior art keywords
- equipment
- program
- main equipment
- detected
- main
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/142—Reconfiguring to eliminate the error
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1438—Restarting or rejuvenating
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The method and apparatus being detected is run this application discloses a kind of water power stake and to program.Wherein, running the method being detected to the program of main equipment includes:The program operation of main equipment is detected from equipment;And main equipment is resetted in the case where judging that exception occurs in the program operation of main equipment from equipment.
Description
Technical field
This application involves intelligent terminal fields, are detected in particular to a kind of water power stake and to program operation
Method and apparatus.
Background technology
Intelligent water power stake is the water power supplying products of a intelligent stable, in order to ensure the stability of water power stake and reliable
Property, it is necessary to can automatically reset recovery when serious error occurs in program.
Product on the market is all that realize when program sideslip using the watchdog circuit of chip interior automatic is answered at present
Position, this mode only in the thorough sideslip of program so that it cannot could realize reset in the case of reset to house dog,
And it has no idea to restore when there is the logic error that can not be handled for program.That is, utilizing watchdog circuit pair
The mode that system is resetted only can just work when serious problems occurs in program, be to be timely detected
The mistake of system has severely impacted the stability and reliability of intelligent water power stake.
The mistake that cannot detect system present in for the above-mentioned prior art in time, to affect system (for example,
Intelligent water power stake) stability and reliability the problem of, currently no effective solution has been proposed.
Invention content
The embodiment of the present disclosure provides a kind of water power stake and runs the method and apparatus being detected to program, at least
The mistake existing in the prior art that cannot detect system in time is solved, to affect system (for example, intelligent water power stake)
Stability and reliability the technical issues of.
Having bluetooth low energy consumption (BLE) and the relatively independent microcontroller system of global system for mobile communications (GSM) two
In the water power stake of system, BLE equipment provides the not short-range communication energy by constraint as the slave equipment of GSM equipment for water power stake
Power.To which, the disclosure is two independently operated system this features using BLE and GSM, the mutual of two systems may be implemented
It guards, to improve the reliability of whole system.When the program operating condition of a wherein side deviates from expected, even if program does not have
Complete sideslip, when can not pass through watchdog reset, also can by another system detectio to and execute external reset operation.
To which the disclosure monitors other side's using being in communication with each other between two independently operated micro controller systems
Operating condition.Being guarded by this dual system can not only prevent the thorough sideslip of program from can not work, and can also be patrolled in program
Restored in time when collecting mistake.
According to the first aspect of the disclosure, a kind of method that the program operation to main equipment is detected, packet are provided
It includes:The program operation of main equipment is detected from equipment;And the program from equipment in the judgement main equipment is run
In the case of there is exception, the main equipment is resetted.
According to the another aspect of the disclosure, provide a kind of to running the method being detected from the program of equipment.It should
Method includes:Main equipment from the operation of the program of equipment to being detected;And main equipment is run out in judgement from the program of equipment
Now in the case of exception, to being resetted from equipment.
According to the another aspect of the disclosure, a kind of method being detected to program operation is provided, including:First sets
The standby program operation to the second equipment is detected;And first equipment occur in the program operation for judging the second equipment it is abnormal
In the case of, the second equipment is resetted.
According to the another aspect of the disclosure, a kind of water power stake is provided, includes GSM equipment and work as main equipment
For from the BLE equipment of equipment.Wherein, GSM device configurations are for realizing 2G multi-network wireless communications;And BLE device configurations are used for
Realize BLE communications.And wherein, GSM device configurations are recited above to being detected from the operation of the program of equipment for executing
Method;And BLE device configurations are used to execute the program recited above to main equipment and run the method being detected.
According to the another aspect of the disclosure, a kind of storage medium is provided.The storage medium includes the program of storage.Its
In, the method described in any of the above one is executed by processor when program is run.
According to the another aspect of the disclosure, a kind of equipment that the program operation to main equipment is detected, packet are provided
It includes:Detection module, for being detected to the program operation of main equipment;And reseting module, for the journey in judgement main equipment
In the case that exception occurs in sort run, main equipment is resetted.
According to the another aspect of the disclosure, provide a kind of to running the equipment being detected, packet from the program of equipment
It includes:Detection module, for being detected from the operation of the program of equipment;And reseting module, for the journey in judgement from equipment
In the case that exception occurs in sort run, to being resetted from equipment.
According to the another aspect of the disclosure, a kind of equipment that the program operation to main equipment is detected, packet are provided
It includes:Processor;And memory, it is connect with processor, for providing the instruction for handling following processing step for processor:To master
The program operation of equipment is detected;And judge main equipment program operation there is exception in the case of, to main equipment into
Row resets.
According to the another aspect of the disclosure, provide a kind of to running the equipment being detected, packet from the program of equipment
It includes:Processor;And memory, it is connect with processor, for providing the instruction for handling following processing step for processor:To from
The program operation of equipment is detected;And judgement from the program of equipment operation there is exception in the case of, to from equipment into
Row resets.
Embodiment of the disclosure carries out mutual detection by using independently operated main equipment and from equipment, to realize
It the monitoring of dual system and guards, and then solves the mistake existing in the prior art that cannot detect system in time, to
The technical issues of affecting the stability and reliability of system (for example, intelligent water power stake).And the disclosure utilizes two independences
The micro controller system of operation realizes a set of guardian system, pinpoints the problems and is answered by the mutual detection of two systems
Position can effectively prevent program and deviate expected operation.
Description of the drawings
Attached drawing described herein is used for providing further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please do not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:
Fig. 1 is the front view of the intelligent water power stake described in 1 in accordance with an embodiment of the present disclosure;
Fig. 2 is the schematic diagram of the GSM equipment and BLE equipment in the intelligent water power stake described in 1 in accordance with an embodiment of the present disclosure;
Fig. 3 is being detected to the program operation of main equipment described in 1 the first aspect in accordance with an embodiment of the present disclosure
Method flow chart;
Fig. 4 be in accordance with an embodiment of the present disclosure described in 1 the second aspect to being detected from the operation of the program of equipment
Method flow chart;
Fig. 5 is to run the method being detected to program described in accordance with an embodiment of the present disclosure 1 third aspect
Flow chart;
Fig. 6 is the schematic diagram of the GSM equipment in 1 and the workflow of BLE equipment in accordance with an embodiment of the present disclosure;
Fig. 7 is the signal of the equipment being detected to the program operation of main equipment described in 2 in accordance with an embodiment of the present disclosure
Figure;
Fig. 8 is the signal to the equipment being detected from the operation of the program of equipment described in 3 in accordance with an embodiment of the present disclosure
Figure;
Fig. 9 is the signal of the equipment being detected to the program operation of main equipment described in 4 in accordance with an embodiment of the present disclosure
Figure;And
Figure 10 is the signal to the equipment being detected from the operation of the program of equipment described in 5 in accordance with an embodiment of the present disclosure
Figure.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present disclosure, the technical solution in the embodiment of the present disclosure is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Below
Description only actually at least one exemplary embodiment is illustrative, is never used as to the disclosure and its application or makes
Any restrictions.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creative work premise
Lower obtained every other embodiment belongs to the range of disclosure protection.
It should be noted that term used herein above is merely to describe specific implementation mode, and be not intended to restricted root
According to the illustrative embodiments of the application.As used herein, unless the context clearly indicates otherwise, otherwise singulative
It is also intended to include plural form, additionally, it should be understood that, when in the present specification using term "comprising" and/or " packet
Include " when, indicate existing characteristics, step, operation, device, component and/or combination thereof.
Unless specifically stated otherwise, positioned opposite, the digital table of the component and step that otherwise illustrate in these embodiments
Up to the unlimited the scope of the present disclosure processed of formula and numerical value.Simultaneously, it should be appreciated that for ease of description, attached each portion shown in the drawings
The size divided not is to be drawn according to actual proportionate relationship.For technology, side known to person of ordinary skill in the relevant
Method and equipment may be not discussed in detail, but in the appropriate case, and technology, method and apparatus should be considered as authorizing specification
A part.In shown here and discussion all examples, any occurrence should be construed as merely illustrative, rather than
As limitation.Therefore, the other examples of exemplary embodiment can have different values.It should be noted that:Similar label and word
Mother indicates similar terms in following attached drawing, therefore, once it is defined in a certain Xiang Yi attached drawing, then in subsequent attached drawing
It need not be further discussed.
Embodiment 1
Fig. 1 shows a kind of front view of intelligent water power stake 100 according to the present embodiment, refering to what is shown in Fig. 1, this reality
It includes providing a user the tap 101a and 101b at water source, and provide a user electricity to apply the intelligent water power stake 100 described in example
The power outlet 102 in source.To intelligent 100 offer water and electricity consumption outdoors of water power stake.Outdoors due to intelligent water power stake 100
Offer water and electricity consumption, therefore it is required that intelligent water power stake 100 has stability and reliability, to avoid when needed cannot to
Family water and electricity supply.
Fig. 2 shows global mobile communication (GSM) equipment 110 being set in intelligent water power stake 100 and bluetooth low energy consumption
(BLE) schematic diagram of equipment 120.
Refering to what is shown in Fig. 2, being provided in intelligent water power stake 100 as the GSM equipment 110 of main equipment and as from equipment
BLE equipment 120.Wherein, GSM equipment 110 includes:Gsm communication module 113, for realizing gsm communication function;Processor 111,
It is handled for receiving the signal from gsm communication module 113, or signal is sent to gsm communication module by treated
113;And memory 112, the program instruction and storage for storing processor 111 and the relevant data of gsm communication.BLE
Equipment 120 includes:BLE communication modules 123, for realizing BLE communication functions;Processor 121 is communicated for receiving from BLE
The signal of module 123 is handled, or signal is sent to BLE communication modules 123 by treated;And memory 122, it uses
Relevant data are communicated with BLE in the program instruction of storage processor 121 and storage.
And GSM equipment 110 and BLE equipment 120 also constitute two independently operated systems.
GSM equipment 110 as main equipment is that the software and hardware system of 2G multi-network wireless communications is realized in intelligent water power stake 100
Generation claim, it is also the carrier of intelligent water power stake kernel software simultaneously, be responsible for control water power stake various functions and with service
Information exchange between device.GSM equipment 110 occupies prior status in dual-system structure than BLE equipment 120, and being can not
One side of missing.
BLE equipment 120 is to realize that generation of software and hardware system of Bluetooth wireless communication claims in intelligent water power stake, it is as from setting
It is standby to be run independently of GSM equipment 110, major function be when 2G networks are unavailable by connect with user's smart mobile phone come for
Core software system in GSM equipment provides the communication link between server.
Wherein, BLE equipment 120 provides the not short distance by constraint as the slave equipment of GSM equipment 110 for water power stake
Communication capacity.It, can to which, the disclosure is two independently operated system this features using BLE equipment 120 and GSM equipment 110
To realize mutually guarding for two systems, to improve the reliability of whole system.When the program operating condition of a wherein side deviates
When expected, even if can be arrived by another system detectio if when program does not have complete sideslip to pass through watchdog reset
And execute external reset operation.
Specifically, it refering to what is shown in Fig. 3, the first aspect as the present embodiment, provides and a kind of main equipment is examined
The method of survey, this method are run on from the device, such as this method can be by the processing of the BLE equipment 120 described in the present embodiment
Device 121 is run.Refering to what is shown in Fig. 3, this method includes:
S302:The program operation of main equipment is detected from equipment;And
S304:From equipment in the case where judging that exception occurs in the program of the operation of main equipment, main equipment is resetted.
Specifically, refering to what is shown in Fig. 2, by this present embodiment BLE equipment 120 and GSM equipment 110 be two independent fortune
Capable system, therefore GSM equipment 110 can be detected by BLE equipment 120.Specifically, being set as from the BLE of equipment
The program operation of standby 120 pairs of GSM equipment 110 as main equipment is detected.Then, judge GSM equipment in BLE equipment 120
In the case that exception occurs in 110 program operation, BLE equipment 120 resets GSM equipment 110.
To in this way, can using from equipment (such as BLE equipment 120) come to main equipment (for example, GSM is set
It is standby 110) to be detected.Due to from equipment being utilized from equipment and master relative to the independently operated equipment of main equipment
Communication between equipment is detected the program operation of main equipment.Program is transported using watchdog circuit relative to traditional
For the method that row is detected, this method can detect the operation of main equipment program before the thorough sideslip of program of main equipment
It is abnormal, to be resetted in time to main equipment.To improve the stability and reliability of whole system.
It should be noted that although the present embodiment is with the GSM equipment 110 (main equipment) and BLE equipment in charging pile 100
It is illustrated for 120 (from equipment), but the method for the present embodiment is not limited to GSM equipment 110 and BLE equipment 120 is this
In the case of master-slave equipment, as long as independently operated main equipment and from equipment, the method that may be suitable for the present embodiment.
Also, BLE equipment 120 can periodically execute the operation of the above method, to periodically be carried out to GSM equipment 110
Detection.
Optionally, running the operation being detected to the program of the main equipment from equipment includes:From equipment to main equipment
Send heartbeat signal;And in the case of from equipment not receiving the response signal of main equipment within the first predetermined time, judgement
The program operation exception of main equipment.
Specifically, in the present embodiment, as from the meeting of the BLE equipment 120 of equipment periodically to the GSM equipment as main equipment
110 send heartbeat signal, and detect the response signal of GSM equipment 110.If the program run of GSM equipment 110 is normal,
The heartbeat signal can be responded.Conversely speaking, if BLE equipment 120 is within the predetermined time after sending out heartbeat signal
(i.e. in the first predetermined time) does not still receive the response signal from the GSM equipment 110 as main equipment, then illustrates GSM
There is exception in the program operation of equipment 110, to need to reset to GSM equipment 110.
Thus in this way, it can be in real time to main equipment (i.e. GSM equipment 110) from equipment (i.e. BLE equipment 120)
Program operating condition be detected, it is whole to improve so as to rapidly detect the program exception of main equipment in time
The stability and reliability of a system.
Certainly, it should be noted that although listing the example for sending heartbeat signal from equipment to main equipment in the present embodiment
Son come illustrate from equipment how to detect main equipment program run state, it should be clear to a person skilled in the art that other
Detection method be applied equally to the technical solution of the disclosure, as long as can be detected i.e. using independently operated equipment
It can.For example, the first information of the working condition for indicating main equipment can be received from main equipment from equipment, and pass through first
Information judge main equipment program whether operation exception.
Optionally, the operation resetted to main equipment includes:The electric signal for reset is sent to main equipment.
That is, in intelligent charging spot 100 described in the present embodiment, judge when as from the BLE equipment 120 of equipment
In the case of 110 program operation exception of GSM equipment as main equipment, the telecommunications for reset can be sent to GSM equipment 110
Number.For example, the processor 121 of BLE equipment can send electric signal to the corresponding pin of the processor 111 of GSM equipment 110, from
And the processor 111 of GSM equipment 110 is made to carry out reset operation.Furthermore, it is necessary to explanation, although illustrating in the present embodiment
The example of the electric signal for reset is sent from equipment to main equipment.But, example without being limited thereto for realizing the operation of reset
It can such as be sent out to the processor 111 of the GSM equipment 110 as main equipment as the processor 121 of the BLE equipment 120 from equipment
Send reset instruction so that the processor 111 of GSM equipment 110, which executes, resets operation.It is in this way and feasible.
Optionally, this method further includes:The reset in response to the main equipment and/or initialization operation from equipment execute
The reset and/or initialization operation from equipment.
As mentioned above, in the intelligent water power stake 100 described in the present embodiment, although GSM equipment 110 and BLE equipment
120 be two independently operated systems, but GSM equipment 110 is used as main equipment, and occupation ratio BLE equipment 120 is priorly
Position, enjoys priority in terms of dual system state synchronized.Therefore, GSM equipment 110 needs after the completion of resetting and/or initializing
Direct reduction is carried out to ensure to grasp its accurate status to BLE equipment 120.
To in this way so that can determine between GSM equipment 110 and BLE equipment 120 mutual preferential
Grade, to be conducive to the more stable and efficient work of system.
Method described in the first aspect according to the present embodiment, can using from equipment (such as BLE equipment 120) come pair
Main equipment (for example, GSM equipment 110) is detected.Due to from equipment be relative to the independently operated equipment of main equipment, can
To be detected to the program operation of main equipment using the communication between equipment and main equipment.It guards the gate relative to traditional utilization
Dog circuit is come for the method that program operation is detected, this method can detect before the thorough sideslip of program of main equipment
The exception of main equipment program operation, to be resetted in time to main equipment.To improve whole system stability and can
By property.
In addition, refering to what is shown in Fig. 4, according to the second aspect of the present embodiment, provide a kind of to being transported from the program of equipment
The method that row is detected.Refering to what is shown in Fig. 4, this method includes:
S402:Main equipment from the operation of the program of equipment to being detected;And
S404:Main equipment is in the case where judgement exception occurs from the program of the operation of equipment, to being resetted from equipment.
Specifically, reference is described above, by this present embodiment BLE equipment 120 and GSM equipment 110 be two independences
The system of operation, therefore the program operation of BLE equipment 120 can be detected by GSM equipment 110.Also, as master
In the case that the judgement of GSM equipment 110 of equipment exception occurs as the program operation of the BLE equipment 120 from equipment, BLE is set
Standby 120 are resetted.
To in this way, can using main equipment (such as GSM equipment 110) come to from equipment (for example, BLE is set
It is standby 120) to be detected.Due to main equipment be relative to from the independently operated equipment of equipment, can utilize main equipment with from
Communication between equipment from the operation of the program of equipment to being detected.Program is transported using watchdog circuit relative to traditional
For the method that is detected of row, this method can detect before the thorough sideslip of program from equipment to be run from device program
It is abnormal, in time to being resetted from equipment.To improve the stability and reliability of whole system.
Optionally, main equipment includes to the operation being detected from the operation of the program of equipment:Main equipment detection is come since setting
Standby heartbeat signal;And in the case that main equipment does not receive heartbeat signal within second scheduled time, judge from equipment
Program operation exception.
Specifically, in the present embodiment, as the GSM equipment 110 of main equipment can periodic detection from as from equipment
The heartbeat signal of BLE equipment 120.If BLE equipment 120 program operation when it is normal, BLE equipment 120 can periodically to
GSM equipment 110 as main equipment sends heartbeat signal.If (i.e. the second predetermined time in the given time of GSM equipment 110
It is interior) heartbeat signal from BLE equipment 120 is not received, that just illustrates that exception occurs in the program operation of BLE equipment 120.From
And it needs to carry out reset operation to BLE equipment 120.
To in this way, main equipment (i.e. GSM equipment 110) can be in real time to from equipment (i.e. BLE equipment 120)
Program operating condition be detected, it is whole to improve so as to rapidly detect the program exception from equipment in time
The stability and reliability of a system.
Certainly, it should be noted that although listing example of the main equipment detection from the heartbeat signal of equipment in the present embodiment
Son illustrates how main equipment detects the state run from the program of equipment, it should be clear to a person skilled in the art that other
Detection method be applied equally to the technical solution of the disclosure, as long as can be detected i.e. using independently operated equipment
It can.For example, main equipment can be from the second information being used to indicate from the operating status of equipment be received from equipment, to be based on second
Whether information judges abnormal from the operation of the program of equipment.
Optionally, include to the operation resetted from equipment:To the electric signal sent from equipment for reset.
That is, in intelligent charging spot 100 described in the present embodiment, as the judgement of GSM equipment 110 for main equipment
As in the case of the 120 program operation exception of BLE equipment of equipment, the telecommunications for reset can be sent to BLE equipment 120
Number.For example, the processor 111 of GSM equipment 110 can send electric signal to the corresponding pin of the processor 121 of BLE equipment 120,
So that the processor 121 of BLE equipment 120 carries out reset operation.Furthermore, it is necessary to explanation, although being said in the present embodiment
The example that the electric signal for reset is sent from equipment to main equipment is illustrated.But it is without being limited thereto for realizing the operation of reset,
Such as the processor 111 of the GSM equipment 110 as main equipment can be to the processor 121 as the BLE equipment 120 from equipment
Send reset instruction so that the processor 121 of BLE equipment 120, which executes, resets operation.It is in this way and feasible.
Optionally, this method further includes:Main equipment carries out reset and the initialization operation of itself;And main equipment is carrying out
To being resetted from equipment after the reset of itself and initialization operation.
As mentioned above, in the intelligent water power stake 100 described in the present embodiment, although GSM equipment 110 and BLE equipment
120 be two independently operated systems, but GSM equipment 110 is used as main equipment, and occupation ratio BLE equipment 120 is priorly
Position, enjoys priority in terms of dual system state synchronized.Therefore, GSM equipment 110 needs after the completion of resetting and/or initializing
Direct reduction is carried out to ensure to grasp its accurate status to BLE equipment 120.
To in this way so that can determine between GSM equipment 110 and BLE equipment 120 mutual preferential
Grade, to be conducive to the more stable and efficient work of system.
To, the method described in the second aspect according to the present embodiment, main equipment (such as GSM equipment can be utilized
110) come to being detected from equipment (for example, BLE equipment 120).Since main equipment is set relative to from equipment is independently operated
It is standby, therefore main equipment can be utilized and from the communication between equipment to being detected from the operation of the program of equipment.Relative to tradition
Using watchdog circuit come for the method that is detected of program operation, this method can be in the thorough sideslip of program from equipment
The exception run from device program is detected before, in time to being resetted from equipment.To improve whole system
Stability and reliability.
It should be noted that although being illustrated in the present embodiment including main equipment (GSM equipment 110) and from equipment
Realize that dual system guards to ensure the stabilization of program operation and reliable example in the system of (BLE equipment 120).But this
The method of embodiment is also applied for the situation that the dual system of other forms is guarded.For example, two equipment in the system can not
Must distinguish main equipment with from equipment, as long as two equipment of paired running.It can be with to the priority of the two equipment
It is equivalent, there is no who, and whom to lead from it point.
Therefore, it refering to what is shown in Fig. 5, in terms of according to the third of the present embodiment, provides a kind of run to program and examines
The method of survey, this method include:
S502:The program operation of first the second equipment of equipment pair is detected;And
S504:First equipment carries out the second equipment in the case where judging that exception occurs in the program operation of the second equipment
It resets.
To according to the method for the present embodiment, two independently operated equipment be utilized to realize the inspection run to program
It surveys.Realize the reliability and stability of system.
In addition, referring to figs. 1 to shown in Fig. 4, according to the 4th of the present embodiment the aspect, a kind of water power stake 100 is provided.The water
Electric stake includes as the GSM equipment 110 of main equipment and as the BLE equipment 120 from equipment.Wherein, GSM equipment 110 configures
For realizing 2G multi-network wireless communications;And BLE equipment 120 is configured to realize BLE communications.And wherein, GSM equipment 110
It is configured to carry out the method described in any one in the second aspect according to the present embodiment;And BLE equipment 120 configures
For executing method described described in any one in the first aspect according to the present embodiment.
To in this way, make full use of in the intelligent water power stake 100 described in the present embodiment, GSM equipment 110
The advantage run independently of one another with BLE equipment 120 realizes the bidirectional test of two equipment, to realize intelligent water power stake 100
Dual system guard.Substantially increase the stability and reliability of intelligent water power stake 100.
Optionally, BLE equipment 120 is also configured to execute following operation:It is not available logical in GSM equipment 110
BLE communications are crossed to communicate to connect with terminal;And GSM equipment is provided to GSM equipment 110 by the communication connection of terminal and internet
Communication connection between 110 and internet.
That is, in intelligent water power stake described in the present embodiment, GSM equipment 110 be realized in intelligent water power stake 2G networks without
The equipment of line communication.As main equipment, GSM equipment 110 is the carrier of intelligent water power stake kernel software, and loser controls water power stake
Various functions and the information exchange between server.To which GSM equipment 110 accounts in dual-system structure than BLE equipment 120
There is prior status, is the side that can not be lacked.It is but not available in 2G networks, it is still desirable to ensure that GSM is set
Standby 110 and internet communication and the information exchange between server.Therefore, in this case, BLE equipment 120 can
To be provided for the core software system of GSM equipment 110 with terminal (such as the smart mobile phone of user is connect) by BLE communications and
The connection of internet, the communication link especially between server.
Therefore, in this way, intelligent water can be ensured by GSM equipment 110 and 120 two systems of BLE equipment
Communication interaction between electric stake and internet and server, so that the communication function of intelligent water power stake 100 is relatively reliable.
Meanwhile also improving the convenience that user uses.
Specifically, refering to what is shown in Fig. 6, further supplementary explanation is as follows to the intelligent water power stake 100 described in the present embodiment.
Fig. 6 show GSM equipment 110 in the intelligent water power stake 100 according to the present embodiment as main equipment and
The schematic diagram of workflow as the BLE equipment 120 from equipment.
Wherein GSM equipment 110 is provided with following functions with BLE equipment 120:External reset, other manner reset, at the beginning of system
Beginningization, periodic status detect and detect exception.
" external reset " refers to generating electric signal on chip pin by external devices to be resetted to chip.At this
In embodiment, GSM equipment 110 and BLE equipment 120 are designed to support through software on hardware to multiple outside other side's progress
Position.
" other manner reset " refers in addition to external reset, and also other manner can also reset chip, such as on
Reset, watchdog reset etc..
It is a series of soft or hard that " system initialization " refers to that GSM equipment 110 and BLE equipment 120 can all carry out after a reset
The initialization operation of part, for the running software preparatory condition of water power stake operation layer.
" periodic status detection " refers to that 120 normal operation of GSM equipment 110 and BLE equipment can regularly be led to later
Letter is to understand the operation conditions of other side.For example, BLE equipment 120 periodically can send heartbeat signal to GSM equipment 110, if pre-
It fixes time the interior response signal for not receiving GSM equipment, then BLE equipment 120 can judge GSM device program operation exceptions.
" detecting exception " refers to when GSM equipment 110 or BLE equipment 120 detect that the operation conditions of other side is incorrect
Or when beyond expected situation, external reset will be carried out to it so that it re-starts initialization operation and restores just
Normal operation.
In addition to this, GSM equipment 110 is also equipped with the function of " state synchronized ".That is, GSM equipment 110 is carrying core
One side of soft-hearted part, 120 prior status of occupation ratio BLE equipment, is enjoyed in terms of dual system state synchronized in dual system
Priority.So needing to carry out direct reduction to BLE equipment 120 after the completion of the initialization of GSM equipment 110 to ensure to grasp it accurately
State.
In addition, refering to what is shown in Fig. 2, according to the 5th of the present embodiment the aspect, a kind of storage medium 112 or 122 is provided,
The storage medium includes the program of storage, wherein is executed according to this reality by processor 111 or 121 when described program is run
Apply the method described in any one in the first aspect to third aspect of example.
To, disclosed scheme through this embodiment, solve existing in the prior art cannot detect system in time
Mistake, the technical issues of stability and reliability to affect system (for example, intelligent water power stake).
Embodiment 2
Fig. 7 shows the schematic diagram of the equipment 700 being detected to main equipment according to the embodiment of the present disclosure 2.Its
In, which can correspond to BLE equipment 120 shown in Fig. 2.Refering to what is shown in Fig. 7, the equipment 700 includes:
Detection module 710, for being detected to the program operation of main equipment;And
Reseting module 720, in the case where judging that exception occurs in the program operation of main equipment, answering main equipment
Position.
Optionally, detection module 710 includes:Signal transmitting unit, for sending heartbeat signal to main equipment;And judgement
Unit in the case of response signal for not receiving main equipment within the first predetermined time, judges the program fortune of main equipment
Row is abnormal.
Optionally, reseting module 720 further includes signal transmitting unit, for sending the telecommunications for reset to main equipment
Number.
Optionally, which further includes initialization module, is used to grasp in response to the reset and/or initialization of main equipment
Make, executes reset and/or the initialization operation of equipment 700.
To, disclosed scheme through this embodiment, solve existing in the prior art cannot detect system in time
Mistake, the technical issues of stability and reliability to affect system (for example, intelligent water power stake).
Embodiment 3
Fig. 8 show according to the embodiment of the present disclosure 3 to running the equipment 800 that is detected from the program of equipment.
The equipment 800 can correspond to GSM equipment 110 shown in Fig. 2.Refering to what is shown in Fig. 8, the equipment 800 includes:
Detection module 810, for being detected from the operation of the program of equipment;And
Reseting module 820, for judgement from the program of equipment operation there is exception in the case of, to being answered from equipment
Position.
Optionally, the detection module 810 includes:Heartbeat signal detection unit, for detecting the heartbeat since equipment
Signal;And judging unit judges the journey from equipment in the case of not receiving heartbeat signal within second scheduled time
Sort run is abnormal.
Optionally, reseting module 820 includes reset signal transmission unit, for sending the telecommunications for being used for resetting to from equipment
Number.
Optionally, equipment 800 further includes:Initialization module, the reset for carrying out equipment 800 and initialization operation;With
And second reseting module, for after the reset of equipment 800 itself and initialization operation to being resetted from equipment.
To, disclosed scheme through this embodiment, solve existing in the prior art cannot detect system in time
Mistake, the technical issues of stability and reliability to affect system (for example, intelligent water power stake).
Embodiment 4
Fig. 9 shows the equipment 900 being detected to the program operation of main equipment according to the embodiment of the present disclosure 4
Schematic diagram.The equipment 900 can correspond to the BLE equipment 120 in Fig. 2.Refering to what is shown in Fig. 9, the equipment 900 includes:Processor
910;And memory 920, it is connect with processor 910, for providing the instruction for handling following processing step for processor 910:
The program operation of main equipment is detected;And in the case where judging that exception occurs in the program operation of main equipment, master is set
It is standby to be resetted.
Optionally, running the operation being detected to the program of main equipment includes:Heartbeat signal is sent to main equipment;And
In the case of not receiving the response signal of main equipment within the first predetermined time, the program operation exception of main equipment is judged.
Optionally, the operation resetted to main equipment includes:The electric signal for reset is sent to main equipment.
Optionally, memory 920 also provides the instruction for executing following processing step:Reset in response to main equipment and/or
Initialization operation executes reset and the initialization operation of equipment 900.
To, disclosed scheme through this embodiment, solve existing in the prior art cannot detect system in time
Mistake, the technical issues of stability and reliability to affect system (for example, intelligent water power stake).
Embodiment 5
Figure 10 show according to the embodiment of the present disclosure 5 to running the equipment 1000 that is detected from the program of equipment
Schematic diagram.The equipment 1000 can correspond to the GSM equipment 110 in Fig. 1.Refering to what is shown in Fig. 10, the equipment 1000 includes:Place
Manage device 1010;And memory 1020, it is connect with processor 1010, for providing processing following processing step for processor 1010
Instruction:To being detected from the operation of the program of equipment;And in the case where there is exception from the operation of the program of equipment in judgement,
To being resetted from equipment.
Optionally, include to the operation being detected from the operation of the program of equipment:Detection carrys out the heartbeat signal since equipment;
And within second scheduled time do not receive heartbeat signal in the case of, judge from the program operation exception of equipment.
Optionally, include to the operation resetted from equipment:To the electric signal sent from equipment for reset.
Optionally, memory 1020 also provides the instruction for executing following processing step:The reset of itself of progress equipment 1000
And initialization operation;And to being resetted from equipment after the reset of equipment 1000 itself and initialization operation.
To, disclosed scheme through this embodiment, solve existing in the prior art cannot detect system in time
Mistake, the technical issues of stability and reliability to affect system (for example, intelligent water power stake).
Above-mentioned embodiment of the present disclosure serial number is for illustration only, can not represent the quality of embodiment.
In above-described embodiment of the disclosure, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, only
A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the disclosure can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the disclosure is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or network equipment etc.) execute each embodiment the method for the disclosure whole or
Part steps.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code
Medium.
The above is only the preferred embodiment of the disclosure, it is noted that for the ordinary skill people of the art
For member, under the premise of not departing from disclosure principle, several improvements and modifications can also be made, these improvements and modifications are also answered
It is considered as the protection domain of the disclosure.
Claims (10)
1. a kind of program to main equipment runs the method being detected, which is characterized in that including:
The program operation of main equipment is detected from equipment;And
It is described from equipment in the case where judging that exception occurs in the program operation of the main equipment, the main equipment is answered
Position.
2. according to the method described in claim 1, it is characterized in that, described run from equipment to the program of the main equipment carries out
The operation of detection includes:
It is described to send heartbeat signal from equipment to the main equipment;And
It is described in the case of do not receive the response signal of the main equipment within the first predetermined time from equipment, judge the master
The program operation exception of equipment.
3. according to the method described in claim 1, it is characterized in that, the operation resetted to the main equipment includes:To institute
It states main equipment and sends the electric signal for being used for reset.
4. according to the method described in claim 1, it is characterized in that, further including:
The reset and/or initialization operation from equipment in response to the main equipment, execute the reset from equipment and/or
Initialization operation.
5. a kind of to running the method being detected from the program of equipment, which is characterized in that including:
Main equipment from the operation of the program of equipment to being detected;And
In the case that the main equipment exception occurs described in judgement from the operation of the program of equipment, answered from equipment described
Position.
6. according to the method described in claim 5, it is characterized in that, the main equipment carries out described run from the program of equipment
The operation of detection includes:
The main equipment detection is from the heartbeat signal from equipment;And
In the case that the main equipment does not receive the heartbeat signal within second scheduled time, the judgement journey from equipment
Sort run is abnormal.
7. a kind of running the method being detected to program, which is characterized in that including:
The program operation of first the second equipment of equipment pair is detected;And
First equipment in the case where judging that exception occurs in the program operation of second equipment, to second equipment into
Row resets.
8. a kind of water power stake (100) includes as the GSM equipment (110) of main equipment and as the BLE equipment from equipment
(120), wherein
The GSM equipment (110) is configured to realize 2G multi-network wireless communications;And the BLE equipment (120) is configured to reality
Existing BLE communications, which is characterized in that
The GSM equipment (110) is configured to carry out the method described in any one in claim 5-6;And the BLE
Equipment (120) is configured to carry out the method described in any one in claim 1-4.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When method described in any one of 1 to 7 is required by processor perform claim.
10. a kind of program to main equipment runs the equipment (700) being detected, which is characterized in that including:
Detection module (710), for being detected to the program operation of main equipment;And
Reseting module (720), in the case where judging that exception occurs in the program operation of the main equipment, to the main equipment
It is resetted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810611639.1A CN108804259A (en) | 2018-06-14 | 2018-06-14 | Water power stake and the method and apparatus that program operation is detected |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810611639.1A CN108804259A (en) | 2018-06-14 | 2018-06-14 | Water power stake and the method and apparatus that program operation is detected |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108804259A true CN108804259A (en) | 2018-11-13 |
Family
ID=64086229
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810611639.1A Pending CN108804259A (en) | 2018-06-14 | 2018-06-14 | Water power stake and the method and apparatus that program operation is detected |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108804259A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117950472A (en) * | 2022-10-21 | 2024-04-30 | 荣耀终端有限公司 | Reset method and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1558604A (en) * | 2004-01-15 | 2004-12-29 | 烽火通信科技股份有限公司 | Method for master and backup cross connection modules protection switching |
CN102354305A (en) * | 2011-09-27 | 2012-02-15 | 青岛海信电器股份有限公司 | Serial communication system between devices and method |
CN103856381A (en) * | 2012-11-28 | 2014-06-11 | 苏州工业园区新宏博通讯科技有限公司 | Method, device and system for automatically releasing dead lock of a hot-plug I2C bus |
CN105138363A (en) * | 2015-08-21 | 2015-12-09 | 百度在线网络技术(北京)有限公司 | Automatic upgrade processing method and device of application programs |
CN107071189A (en) * | 2016-11-28 | 2017-08-18 | 深圳市潮流网络技术有限公司 | A kind of connection method of communication apparatus physical interface |
CN107580071A (en) * | 2017-09-28 | 2018-01-12 | 美的智慧家居科技有限公司 | Master-slave equipment upgrade method, device and its equipment |
CN206975829U (en) * | 2017-07-28 | 2018-02-06 | 美的智慧家居科技有限公司 | The resetting means and intelligent appliance of intelligent appliance |
-
2018
- 2018-06-14 CN CN201810611639.1A patent/CN108804259A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1558604A (en) * | 2004-01-15 | 2004-12-29 | 烽火通信科技股份有限公司 | Method for master and backup cross connection modules protection switching |
CN102354305A (en) * | 2011-09-27 | 2012-02-15 | 青岛海信电器股份有限公司 | Serial communication system between devices and method |
CN103856381A (en) * | 2012-11-28 | 2014-06-11 | 苏州工业园区新宏博通讯科技有限公司 | Method, device and system for automatically releasing dead lock of a hot-plug I2C bus |
CN105138363A (en) * | 2015-08-21 | 2015-12-09 | 百度在线网络技术(北京)有限公司 | Automatic upgrade processing method and device of application programs |
CN107071189A (en) * | 2016-11-28 | 2017-08-18 | 深圳市潮流网络技术有限公司 | A kind of connection method of communication apparatus physical interface |
CN206975829U (en) * | 2017-07-28 | 2018-02-06 | 美的智慧家居科技有限公司 | The resetting means and intelligent appliance of intelligent appliance |
CN107580071A (en) * | 2017-09-28 | 2018-01-12 | 美的智慧家居科技有限公司 | Master-slave equipment upgrade method, device and its equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117950472A (en) * | 2022-10-21 | 2024-04-30 | 荣耀终端有限公司 | Reset method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101663650B (en) | Apparatus, system, and method for adapter card failover | |
CN106211041A (en) | Communicator, communication means and information processor | |
CA2356633A1 (en) | Coordinating persistent status information with multiple file servers | |
CN102840992B (en) | Satellite-borne self-testing method based on satellite network | |
CN109271273A (en) | A kind of method, abnormal restoring equipment and storage medium that communication abnormality restores | |
CN103186440B (en) | Detect subcard method, apparatus and system in place | |
CN101707536A (en) | Fault detection method, line card and main control card | |
CN106878164A (en) | A kind of message transmitting method and device | |
CN103888299A (en) | Intelligent network monitoring system and working method thereof | |
CN103336708B (en) | The polymerization method of network interface card resource and relevant device and computer system | |
CN206481302U (en) | A kind of fibre circuit protector for preparing and carrying fine detection | |
CN106852188A (en) | Data interactive method and universal serial bus device based on USB | |
CN104427012B (en) | Port negotiation method and apparatus | |
CN108804259A (en) | Water power stake and the method and apparatus that program operation is detected | |
CN102754390A (en) | Method, network device and system for ethernet ring protection switching | |
CN106502944A (en) | The heartbeat detecting method of computer, PCIE device and PCIE device | |
CN107493330A (en) | A kind of cloud service method and Cloud Server | |
CN104104567A (en) | Networking method, control device and networking system for double communication link | |
CN109905279A (en) | Communication means and device, storage medium, electronic device | |
CN106201735A (en) | Method for message transmission and system | |
CN102917370B (en) | Method, device and system for determining corresponding near-end unit of far-end unit and far-end unit | |
CN107836085B (en) | The method for configuring route and device of non-contact application | |
CN105763366A (en) | Method and device for realizing data communication based on aggregation link | |
CN104268109A (en) | Data interface communication method and device | |
CN109995597A (en) | A kind of network equipment failure processing method and processing device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181113 |
|
RJ01 | Rejection of invention patent application after publication |