Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of monitoring method of controller, device, control chips, controlDevice and air-conditioning, the service life to solve the problems, such as controller in the prior art are lower.
In order to achieve the above object, the present invention provides a kind of monitoring method of controller, comprising:
Obtain the operation information that object is specified in controller;
According to the operation information, detect whether the specified object breaks down;
If the specified object breaks down, stop powering to the specified object.
The present invention also provides a kind of monitoring devices of controller, comprising:
Module is obtained, for obtaining the operation information for specifying object in controller;
Detection module, for detecting whether the specified object breaks down according to the operation information;
Control module stops powering to the specified object if breaking down for the specified object.
The present invention also provides a kind of control chips, including processor and memory;
The processor is connected with the memory;
The memory, for storing computer program, the computer program is at least used to store control described aboveThe monitoring method of device processed;
The processor, for calling and executing the computer program.
The present invention also provides a kind of controllers, which is characterized in that is provided with control chip described above.
The present invention also provides a kind of air-conditionings, are provided with controller described above.
Monitoring method, device, control chip, controller and the air-conditioning of controller of the invention, by obtaining in controllerThe operation information of specified object;According to the operation information, detect whether the specified object breaks down;If described specified pairAs breaking down, stops powering to the specified object, realize and effective monitoring is carried out to controller, to find to control in timeInterference and failure in device processed, avoid controller and are unable to run, or even phenomena such as damage.Using technical side of the inventionCase can be improved the service life of controller.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, technical solution of the present invention will be carried out belowDetailed description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.BaseEmbodiment in the present invention, those of ordinary skill in the art are obtained all without making creative workOther embodiment belongs to the range that the present invention is protected.
Fig. 1 is the flow chart of the monitoring method embodiment of controller of the invention, as shown in Figure 1, the control of the present embodimentThe monitoring method of device can specifically include following steps:
100, the operation information that object is specified in controller is obtained;
For example, controller is mainly by multiple function control chips, Master control chip and the corresponding periphery electricity of each chipRoad is constituted, and in the present embodiment, the outer of an auxiliary control chip and the auxiliary control chip can additionally be arranged for controllerEnclose circuit.And it is used as specified object for function control chip, Master control chip and the peripheral circuit of key etc. in controller,Wherein function control chip, Master control chip can be defined as objective chip, and crucial peripheral circuit can be defined as specified electricityRoad.In this way obtain controller in specify object operation information when, the circuit parameter of available specified circuit, as voltage,Electric current etc., the also working condition of available objective chip, such as the electriferous state and the first off-position of objective chip.
101, according to the operation information for specifying object, detect whether specified object breaks down;
During a specific implementation, if specified object is specified circuit, the circuit parameter of specified circuit can detecteWhether match with preset fault parameter;If circuit parameter matches with fault parameter, determine that specified circuit is sent outRaw failure.
Specifically, corresponding voltage threshold or current threshold can be arranged as fault for specified circuit to joinNumber, in the controller course of work, if detecting, the voltage of specified circuit is greater than voltage threshold, alternatively, the electric current of specified circuitGreater than current threshold, then it is assumed that circuit parameter matches with fault parameter, and there are over-voltage or overcurrent are existing for the specified circuitAs causing the interference to controller, and detect that the specified circuit breaks down.
It should be noted that power-off is powered on and may be burnt repeatedly when overvoltage or overcurrent occurs due to specified circuitTherefore component for specified circuit, when overvoltage or overcurrent occurs, can directly determine that the specified circuit is sent outRaw failure, by statistical overvoltage or the number of overcurrent, determines whether the specified circuit occurs event after powering on repeatedlyBarrier.
During a specific implementation, if specified object is objective chip, target can be controlled according to preset conditionChip switches between the first off-position and electriferous state, and following operation: statistics target is executed in handoff procedureChip enters the number of the first off-position;Whether the number that detection enters the first off-position reaches preset threshold;If intoThe number of first off-position reaches preset threshold, determines that objective chip breaks down.For example, into time of the first off-positionNumber preferably 3 times.In practical applications since the number of objective chip may be to be multiple, the present embodiment can be directed to different meshDifferent numbers is arranged in mark chip.
Specifically, when objective chip in the energized state, if the duration that objective chip returns to the first response signal reaches theOne preset duration can fix tentatively as objective chip exception, and control objective chip and switch to the first off-position, still, at this timeIt may be not due to caused by objective chip breaks down, it may be possible to since objective chip race is waited indefinitely caused by situation, usuallyIn the case of, when objective chip runs dead, objective chip can be powered off, and re-power and can be objective chip recovery use, becauseThis, under the first off-position, if the power-off duration of objective chip reaches the second preset duration, control objective chip switches to bandElectricity condition, and whether the duration that detection objective chip returns to the first response signal again reaches the first preset duration, if throughAfter crossing repeatedly power-off power on operation, the duration that objective chip returns to the first response signal reaches the first preset duration, at this point, canTo determine that the situation is caused by breaking down as objective chip, and it can determine that objective chip breaks down.
If 102, object is specified to break down, stop powering to specified object.
In the present embodiment, however, it is determined that specified object breaks down, in order to avoid the corresponding electric elements of specified object damage,Current embodiment require that stopping powering to specified object, so as to find that controller breaks down in time, and control is effectively protectedDevice processed, so that the service life is longer for controller.For example, this electricity between object and power supply can be specified with force disconnectRoad, so that power supply can not power to supply object.
It should be noted that in the periphery of controller setting auxiliary control chip and the auxiliary control chip in the present embodimentCircuit realizes the monitoring to controller, is only one of a variety of implementations, the present embodiment is not restricted to other realization sidesFormula, for example, it can be not provided with the auxiliary control chip, but for the corresponding periphery electricity of the existing control chip setting of controllerThe monitoring to control is completed by the existing control chip of controller, for example, being completed by the Master control chip of controller to control in roadMonitoring.
The monitoring method of the controller of the present embodiment specifies the operation information of object by obtaining in controller;According to instituteOperation information is stated, detects whether the specified object breaks down;If the specified object breaks down, stop to described specifiedObject power supply realizes and avoids controlling to find the failure in controller in time to controller progress effective monitoringPhenomena such as device damages.Using technical solution of the present invention, the service life of controller can be improved.
In practical applications, since exception may also occur in auxiliary control chip itself, cause it to objective chip orThe detection of given line is judged by accident, and the operation of controller is influenced, and therefore, in the present embodiment, can also utilize objective chip pairAuxiliary control chip is detected, and testing principle can be identical as the principle whether detection objective chip breaks down, in detailAbove-mentioned related record is please referred to, when such objective chip detects that auxiliary control chip breaks down, core can be controlled to auxiliaryPiece sends cut-offing instruction, it is disconnected to can switch to second after receiving the cut-offing instruction of objective chip for such auxiliary control chipElectricity condition.
During a specific implementation, controller is repaired in order to facilitate maintenance personnel, it can be in the present embodimentThe fault message of specified object is generated, and exports the fault message wherein, the fault message is preferably in the form of fault codeOutput.Specifically, for specified circuit, the corresponding Fisrt fault information of specified circuit can be generated;Export Fisrt faultInformation.For objective chip, corresponding second fault message of objective chip can be generated;Export the second fault message.
For example, distinctive mark position can be arranged for each specified circuit in the present embodiment, Fisrt fault information can be takenWith corresponding distinctive mark position.Corresponding mark can be set for the function of each objective chip, it can in the second fault messageTo carry the mark of response.In this way, maintenance personnel can be quickly found out corresponding fault bit by distinctive mark position or markIt sets, to repair.
It should be noted that in the present embodiment fault message can be exported by auxiliary control chip, there can also be auxiliary to controlAfter coremaking piece is sent to main control chip, which is exported by main control chip.
Fig. 2 is the structural schematic diagram of the monitoring device embodiment one of controller of the invention, as shown in Fig. 2, the present embodimentThe monitoring device of controller include obtaining module 10, detection module 11 and control module 12.
Module 10 is obtained, for obtaining the operation information for specifying object in controller;
For example, specified object includes specified circuit and objective chip.Obtain the circuit of the available specified circuit of module 10Parameter can also obtain the working condition of objective chip, and wherein the working condition of objective chip includes electriferous state and the first power-offState.
Detection module 11, for detecting whether specified object breaks down according to the operation information for specifying object;
For example, detection module 11 can detecte whether circuit parameter matches with preset fault parameter;If circuitParameter matches with fault parameter, determines that specified circuit breaks down.Target core can also be controlled according to preset conditionPiece switches between the first off-position and electriferous state, for example, in the energized state, if objective chip returns to the first soundThe duration of induction signal reaches the first preset duration, and control objective chip switches to the first off-position;Under the first off-position,If the power-off duration of objective chip reaches the second preset duration, control objective chip switches to electriferous state.Objective chip isTime of objective chip into the first off-position can be counted during switching between one off-position and electriferous stateNumber;Whether detection number reaches preset threshold;If number reaches preset threshold, determine that objective chip breaks down.
Control module 12 stops powering to specified object if breaking down for specified object.
The monitoring device of the controller of the present embodiment specifies the operation information of object by obtaining in controller;According to instituteOperation information is stated, detects whether the specified object breaks down;If the specified object breaks down, stop to described specifiedObject power supply realizes and avoids controlling to find the failure in controller in time to controller progress effective monitoringPhenomena such as device damages.Using technical solution of the present invention, the service life of controller can be improved.
Fig. 3 is the structural schematic diagram of the monitoring device embodiment two of controller of the invention, as shown in figure 3, the present embodimentController monitoring device embodiment shown in Fig. 2 on the basis of, further can also include receiving module 13, generation module14 and output module 15.
Receiving module 13, for receiving the cut-offing instruction of objective chip, to switch to the second off-position.
Generation module 14, for generating the corresponding fault message of specified object;
Output module 15, for exporting fault message.
Fig. 4 is the structural schematic diagram of control chip embodiment of the invention, as shown in figure 4, the control chip of the present embodimentIncluding processor 20 and memory 21;
Processor 20 is connected with memory 21;
Memory 21, for storing computer program, computer program at least is used to store the controller of above-described embodimentMonitoring method;
Processor 20, for calling and executing computer program.
The present invention also provides a kind of controller, which is provided with the control chip of above-described embodiment.
The present invention also provides a kind of air-conditioning, which is arranged the controller of above-described embodiment.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this methodEmbodiment in be described in detail, no detailed explanation will be given here.
It is understood that same or similar part can mutually refer in the various embodiments described above, in some embodimentsUnspecified content may refer to the same or similar content in other embodiments.
It should be noted that in the description of the present invention, term " first ", " second " etc. are used for description purposes only, withoutIt can be interpreted as indication or suggestion relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple "Refer at least two.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includesIt is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portionPoint, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitableSequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the inventionEmbodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentionedIn embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storageOr firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardwareAny one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signalDiscrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), sceneProgrammable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carriesIt suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage mediumIn matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing moduleIt is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mouldBlock both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such asFruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computerIn read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically showThe description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or examplePoint is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are notCentainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be anyOne or more embodiment or examples in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is exampleProperty, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentionedEmbodiment is changed, modifies, replacement and variant.