CN110018921A - Logout controller and electronic device - Google Patents

Logout controller and electronic device Download PDF

Info

Publication number
CN110018921A
CN110018921A CN201811617681.0A CN201811617681A CN110018921A CN 110018921 A CN110018921 A CN 110018921A CN 201811617681 A CN201811617681 A CN 201811617681A CN 110018921 A CN110018921 A CN 110018921A
Authority
CN
China
Prior art keywords
event
particular event
electronic device
logout
detection unit
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
CN201811617681.0A
Other languages
Chinese (zh)
Other versions
CN110018921B (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.)
Nuvoton Technology Corp
Original Assignee
Nuvoton Technology Corp
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 Nuvoton Technology Corp filed Critical Nuvoton Technology Corp
Publication of CN110018921A publication Critical patent/CN110018921A/en
Application granted granted Critical
Publication of CN110018921B publication Critical patent/CN110018921B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1673Details of memory controller using buffers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of logout controller and electronic device, wherein the logout controller for electronic device includes event detection unit and event recording unit.Whether the event detection unit occurs to one of lasting multiple particular events of detection.In addition, the event detection unit detects that one of the multiple particular event particular event occurs to react on, with the recording instruction of the corresponding particular event occurred of transmission to the event recording unit.The event recording unit received recording instruction to react on, not via the control of the processor of the electronic device, the instruction automatically according to the recording instruction records the event information of the corresponding particular event occurred to battery backed RAM from one or more elements in the multiple element of the electronic device.

Description

Logout controller and electronic device
Technical field
The invention relates to a kind of controllers, and in particular to a kind of logout controller and electronic device.
Background technique
When a system (electronic device/host computer/servomechanism) generates fatal error (Fatal error), It is most difficult to except wrong situation be not know when can occur, does not know to occur wherein (which element).So after incident often The affair is over and the situation has changed, and the main cause of generation does not exist already.It is existing at present to remove wrong technology, it is all using processor as core, with processing The angle of device records the use course of footprint and memory that formula is passed by by the control of processor come what is designed.If When problem or error occur for processor itself, the reason of can not recording error or relevant information are often led to.
In addition, it is general except wrong technology can only be used in development system or develop the stage of related application formula, and And processor must be cooperated to execute debugging tool (Debug Tool) software.But when a system once exploitation complete and It imports volume production to enter after market, these systems for being detached from development phase (debugging tool is no longer used) still have error May, and the mistake occurred at this time will have a direct impact on user, cause user bad to the perception of system, and Result in the reduction of working efficiency.
How this can also efficiently record the mistake of system not via the control of processor to base, cause for those skilled in the art Power solves the problems, such as.
Summary of the invention
The present invention provides a kind of logout controller and the electronic device with the logout controller, can detect The generation of particular event, and the recording instruction of the corresponding particular event is sent, not via the processing of the electronic device Device controls to record the event information of the corresponding particular event.
One embodiment of the invention provides a kind of logout controller for being suitable for electronic device.The electronic device packet Multiple element is included, wherein the multiple element includes processor.The logout controller includes event detection unit and thing Part recording unit.The event detection unit is coupled to the multiple element of the electronic device, and to lasting detection Whether one of multiple particular events occur.The event recording unit is coupled to the event detection unit.In addition, institute It states event detection unit and detects that one of the multiple particular event particular event occurs to react on, to send The recording instruction of the corresponding particular event occurred is to the event recording unit.The event recording unit is to react In the received recording instruction of institute, not via the control of the processor, automatically by the corresponding specific thing occurred The event information of part is recorded from one or more elements indicated by the recording instruction in the multiple element to battery back Memory.
One embodiment of the invention provides a kind of electronic device.The electronic device includes processor, battery back storage Device and logout controller.The logout controller is coupled to the processor and the battery backed RAM.Thing Whether part recording controller occurs to one of lasting multiple particular events of detection, wherein when the multiple particular event When generation, the processor can not normal operation.The logout controller more detects the multiple spy to react on Determine one of event particular event to occur, not via the control of the processor, automatically by corresponding institute occurred The event information for stating particular event is recorded from an element of the electronic device to the battery backed RAM
Based on above-mentioned, logout controller provided by the embodiment of the present invention, specific thing detected can be reacted on The generation of part (error event) is automatically occurred corresponding not via the control of the processor of the electronic device belonging to it The event information of the particular event is recorded from one or more elements in the multiple element of the electronic device to battery back Memory, with the processor can not normal operation in the case where, still can promptly record the letter for being relevant to particular event Breath, and understand that related personnel can by the information recorded and correct the reason of leading to particular event occurred, into And improve the overall efficiency of electronic device.
To make the foregoing features and advantages of the present invention clearer and more comprehensible, special embodiment below, and cooperate institute's accompanying drawings It is described in detail below.
Detailed description of the invention
Fig. 1 is the side of logout controller depicted in an embodiment according to the present invention and its affiliated electronic device Block schematic diagram.
Fig. 2 is the operation workflow figure of logout controller depicted in an embodiment according to the present invention.
Appended drawing reference:
10: electronic device
110: logout controller
111: event detection unit
112: event recording unit
120: battery backed RAM
130: processor
140: interrupt control unit
150: main memory
160,160 (1), 160 (2)~160 (N): peripheral device
170: system bus/busbar connector
S21, S23, S25: the operation steps of logout controller
Specific embodiment
Spirit of the invention is, when fatal error/error event of the system that detects (electronic device) occurs, by this Time point is as the time point for executing snapshot (Snapshot).Then, a variety of fatal errors occurred are respectively corresponded, until multiple Place (system/electronic device different elements) Lai Zhihang snapshot (it is fatal to correspond to this with the image in the place of taking pictures or photograph The relevant information of system/electronic device different elements described in mistake), and by image store to can fast storage deposit Reservoir.It should be noted that in order to rapidly store relevant information when the specific fatal error/error event occurs, Memory used by the present embodiment is the access speed volatile memory also high compared to general nonvolatile memory, and And (rechargeable type) battery is utilized to supply power supply, so that this volatile memory can be with long-time storage data.
Fig. 1 is the side of logout controller depicted in an embodiment according to the present invention and its affiliated electronic device Block schematic diagram.
Fig. 1 is please referred to, the electronic device 10 with logout controller 110 further includes battery backed RAM (Battery backup memory) 120, processor 130, interrupt control unit 140, main memory 150 and peripheral device 160.
In the present embodiment, the logout controller 110 includes event detection unit 111 and event recording unit 112.Generation of the event detection unit 111 to (in the background) detection particular event, and the event recording unit 112 event information to the corresponding particular event occurred of (in the background) record.Institute with logout controller 110 State electronic device can have because of the logout controller detect and record (in the background) it is corresponding occurred it is specific The function of the event information of event.It should be noted that processor 130 is not when the generation fatal error of system (electronic device) It can normally operate.
In the present embodiment, battery backed RAM 120 includes that a battery is deposited with the volatibility for being coupled to the battery Reservoir.The volatile memory be, for example, static random access memory (SRAM) or other with identical speed or higher speed The volatile memory of degree.Because the battery can provide electric power to the static random access memory, the static random The data that access memory is recorded can be saved for a long time and not disappeared because electronic device stops power supply.Work as electronic device 10 when opening electricity, and the battery can charge.In other words, the battery backed RAM 120, which also can be considered, does not need external electrical Source and can long-time storage data high speed volatile memory.The battery be, for example, rechargeable type lithium battery or other Suitable Rechargeable battery.
Processor 130 includes logger (Register) and executes the circuit units such as control, operation.Processor 130 is tool The hardware (such as chipset, processor etc.) of standby operational capability, to manage the overall operation of electronic device 10.In the present embodiment In, the central processing unit (Central Processing Unit, CPU) of processor 130, e.g. a core or multi-core, Microprocessor (micro-processor) or other programmable processing unit (Programmable processor), number Signal processor (Digital Signal Processor, DSP), programmable controller, special application integrated circuit (Application Specific Integrated Circuits, ASIC), programmable logic device (Programmable Logic Device, PLD) or other similar device.It should be noted that in the present embodiment, logout controller 110 can be Except processor 130, independently operate.
Interrupt control unit 140, the example occurred to monitoring processor 130 and each peripheral device 160 (1)~160 (N) Outer situation, and according to different exception conditions, interrupt event is generated, further to handle the exception condition.
Main memory 150 is configured to temporarily store also can be temporary from the data of processor 130 and instruction or main memory 150 Deposit the data from peripheral device 160.Main memory 150 is, for example, random access memory (random access Memory, RAM).
Peripheral device 160 includes multiple peripheral device 160 (1)~160 (N).Peripheral device 160 (1)~160 (N) It may be, for example, analog-digital converter (ADC), digital analog converter (DAC), serial peripheral interface (SPI), integrated circuit remittance The peripheries control circuit units such as stream row (I2C), and also may be, for example, electric power controller, storage device, communication device, sensing Device.
In the present embodiment, said elements 110~160 can be connected via system bus (System bus) 170 with Transmitting data/signal.
Fig. 2 is the operation workflow figure of logout controller depicted in an embodiment according to the present invention.Please join simultaneously According to Fig. 1 and Fig. 2, in the step s 21, event detection unit 111 persistently detects one of multiple particular events or multiple is No generation.One or more particular events occur if detecting, react on one or more in detected the multiple particular event (step S21 → be) occurs for a particular event, and in step S23, event detection unit 111 sends corresponding described one occurred Or the recording instruction of multiple particular events is to event recording unit.(otherwise step S21 → no), entire operation workflow re-executes Step S21, that is, event detection unit 111 detects whether a particular event with continuing for.Following with multiple examples To illustrate the detectable a variety of particular events of event detection unit 111 and corresponding detection method/standard.That is, illustrating to execute fast According to a variety of opportunity points (step S21 → S23's is eligible).
In one embodiment, event detection unit 111 (or electronic device 10) includes a counter.In the electronic device After 10 open electricity, counter keeping count since predetermined value (can be set to mode reciprocal or accumulative to count Number), wherein the counter is counted again from predetermined value when the counter is received from the more new signal of processor 130 Number, wherein the counter sends reset signal to the processor 130 with weight when the counter counts up to target value Set electronic device 10 (or processor 10).Wherein, the processor is via the event detection unit 111 by formula (programmed), the more new signal is sent to the counter, wherein the predetermined period by a predetermined period with every The time of the target value is counted up to from the predetermined value less than the counter.The counter and relevant mechanism are also It can be described as house dog (Watch dog) mechanism.
For example, it is assumed that predetermined value is 3000, and target value 0, and counter is come with the rate of every 1 millisecond of inverse 1 Predetermined value reciprocal is to target value.It is 2800 milliseconds that the predetermined period, which can for example be set (formula),.That is, every time Before counter inverse to 0, because predetermined period is less than the time (3000 milliseconds) from predetermined value inverse to target value. Therefore, under normal circumstances, counter all can be again reciprocal all the time according to the more new signal from processor 130.So And in the case where mistake occurs for some processors 130, processor 130 itself can enter endless loop or overdue and unredeemable pawn.At this point, place Reason device 130 can not send more new signal to counter, and in the case, counter can be reciprocal to target value, and sends weight Confidence number is to processor 130 with forcibly reset process device 130.In another embodiment, when counter counts up to number of targets When value, counter can send reset signal to multiple predetermined elements to enforce the multiple predetermined element.
In the present embodiment, event detection unit 111 can continue whether to send reset signal in background detection counter (that is, event detection unit 111 can continue to listen to counter).When event detection unit 111 detects that counter sends resetting letter Number when, event detection unit 111 will be considered that fatal error/overdue and unredeemable pawn/endless loop occurs for processor 130, and determine the multiple The first particular event in particular event occurs.Then, it reacts on and detects that first particular event occurs, the event inspection It surveys unit 111 and sends the first recording instruction of corresponding first particular event to the event recording unit 112.
Fig. 2 please is being returned to, in step s 25, the event recording unit 112 is not via the control of processor 130, automatically Ground is by the event information of one or more particular events described in corresponding occurred from the note in the multiple element of electronic device One or more indicated elements of record instruction are recorded to battery backed RAM.
For example, event detection unit 111 not via the control of processor 130 (that is, processor 130 can not interfere or Learn that record performed by logout controller operates), the first of corresponding first particular event is automatically generated in background Recording instruction and generated first recording instruction is sent to event recording unit 112, so that event recording unit 112 is in back One or more record operations are executed in scape according to the first recording instruction.
The content of first recording instruction includes that instruction event recording unit 112 executes following a variety of record operations One of (Snapshot operations) (the first~the 8th record operation) or combinations thereof: (1) first record operation, Specified data (event information) is replicated from processor 130 to battery backed RAM 120.Specifically, described instruction Data may include data/numerical value stored by the logger (Register) of specific processor 130.In more detail, described Logger is, for example, formula counter (Program counter, PC), stored by data/numerical value include to indicate to locate Manage the information of the device next step instruction sequence to be executed.Different according to the hardware details of par-ticular processor, formula counter can The in store instruction being performed of energy, it is also possible to next address to be executed instruction.Formula counter is in each instruction Period can automatically increase, so instruction normally can be continuously removed from logger.The logger can also be to stack Index (Stack pointer), the address of the last one PROGRAMMED REQUESTS is stored in stacking.It is one special that one, which stacks, Buffering logger, storing data from top to bottom.The address for the PROGRAMMED REQUESTS being newly entered can reside in the top stacked.Change speech It, by the multiple addresses stacked in index, it is to be understood which program processor 130 performs.It should be noted that the present invention is simultaneously It is not limited to the content that the first record operates the logger of replicated processor.Manufacturer can set corresponding difference according to demand Recording instruction come set it is corresponding first record operation destination (data for the logger to be replicated).
(2) second record operations, all data to the battery back for replicating the specified section for being stored in main memory 150 are deposited Reservoir 120.Specifically, in the second record operation, event recording unit 112 can be according to indicate to execute the second record behaviour The recording instruction of work carrys out into main memory 150 one or more memory address sections specified by the corresponding recording instruction The data (numerical value) of the memory segments is stored in battery backed RAM 120 to replicate.
(3) third record operates, in the multiple element (such as element 130,140,150,160) for replicating electronic device 10 One or more be designated the data of the logger of elements to battery backed RAM 120.Specifically, it is similar to the first record It operates, in the second record operation, event recording unit 112 can be according to the recording instruction to indicate execution third record operation Carry out into the logger of element indicated by the recording instruction to replicate data to the battery back stored by the logger to store Device 120.
(4) the 4th record operations, multiple sensing documents that multiple sensors of record electronic device 10 are sensed respectively are extremely Battery backed RAM 120.Specifically, electronic device 10 (or it includes element) can have multiple sensors, these senses Surveying device for example can sensing temperature, voltage value, current value etc..Event recording unit 112 can be according to indicate to execute the 4th note The recording instruction of record operation carrys out into sensor indicated by the recording instruction to replicate the sensing money that the sensor is sensed Expect to battery backed RAM 120.
(5) the 5th record operations, the current time of the electronic device 10 of the corresponding particular event occurred of record to battery Backup of memory 120.Specifically, to indicate to execute the 5th recording instruction for recording operation, it is intended that remembering event Record unit 112 can record the time that the corresponding particular event occurs instantly via the internal clocking of electronic device 10.
(6) the 6th record operations replicate corresponding particular event occurred in the multiple element of electronic device 10 The event log (Event log) of element is to the battery backed RAM 120.Specifically, in the 6th record operation, event Recording unit 112 can be according to indicate the recording instruction for executing the 6th record operation come member indicated by the extremely recording instruction The event day of the element instantly is replicated in part (or storage element/storage device to other event logs for storing the element) Will is to battery backed RAM 120.
(7) the 7th record operations, duplicated record instruct possessed information to battery backed RAM 120.Specifically, Event recording unit 112 can be according to the recording instruction to indicate the 7th record operation of execution, will be complete in the recording instruction Data/information that portion or part are specified directly is copied to battery backed RAM 120.For example, operating system or execution are being handled Application in device 130, can be in specific opportunity point, and transmitting, there is the record event command of specific information to control to logout Device 110, to record specific information in the battery backed RAM 120.Event detection unit 111 is receiving this record thing After part instruction, it can turn to pass this record event command to event recording unit 112 and (execute the 7th record as to event recording unit The recording instruction of operation) or generate recording instructions that the content comprising record event command records operation with other remembers to event Record unit 112.
(8) the 8th record operations replicate the information of corresponding interrupt event to battery backed RAM 120.Specifically, in Disconnected controller 140 can execute interrupt event according to detected exceptional cast.At this point, in the 8th record operation, event Recording unit 112 can record the information/data instructed in whole or in part of the interrupt event to battery backed RAM 120.
It is noted that manufacturer can set event detection unit for example, reacting on the first particular event occurred First recording instruction caused by 111 can indicate which record operation executed, or according to multiple record operations described above Particular order sequentially executes.
It should be noted that event recording unit 112 can be executed according to the instruction of different recording instructions above-mentioned one or A variety of record operations, relevant information is replicated from different places.In addition to the above-mentioned particular event corresponding to house dog mechanism, Other the detectable a variety of particular events of event detection unit 111 and corresponding detection method/standard are continued to explain below.
In one embodiment, event detection unit 111 can continue detection electronic installation 10 the multiple element it is respective Voltage value and voltage change detect that the voltage value changing value of the object component of the multiple element is greater than in advance wherein reacting on Surely change threshold value, event detection unit 111 determines that the second particular event in the multiple particular event occurs.React on inspection It measures second particular event to occur, event detection unit 111 sends the second recording instruction of corresponding second particular event extremely The event recording unit.Specifically, when event detection unit 111 detects that an element of electronic device 10 has abnormal electricity When buckling (the predetermined variation threshold value that event detection unit 111 can set corresponding different elements for different elements), Event detection unit 111 can determine that the second particular event occurs.In particular, being directed to the voltage dip (Voltage of processor 130 Drop) to crossing processor error caused by low-voltage, or the collapse of whole electronic device 10, by detecting the second particular event Whether occur, it can be immediately before mistake occurs for processor 130 by relevant information/data logging to battery backed RAM 120。
In one embodiment, event detection unit 111 can continue to listen to interrupt control unit 140, to judge the specific thing of third Whether part occurs.Specifically, when interrupt control unit 140 sends interrupt event, event detection unit 111 be can receive in this Disconnected event, and react on from the received interrupt event of interrupt control unit institute, which determines the multiple Third particular event in particular event occurs.It reacts on and detects that the third particular event occurs, event detection unit 111 The third recording instruction of the corresponding third particular event is sent to the event recording unit 112.The third recording instruction is for example It can be used to indicate that event recording unit 112 executes the 8th above-mentioned record operation (or more executing other record operations).Namely Say whether occur by detection third particular event, logout controller 110 can also be remembered while interrupt event occurs Relevant information is recorded to battery backed RAM 120.
In one embodiment, processor 130 sends record event command to event detection according to performed application Unit 111.React on the received record event command of institute, event detection unit 111 determines the in the multiple particular event Four particular events occur.It reacts on and detects that the 4th particular event occurs, it is specific that event detection unit sends the corresponding described 4th 4th recording instruction of event is to event recording unit 112.That is, logout controller 110 provides a function, Directly transmit the application or software being implemented in processor 130 can to record particular event/specific information record Event command is to logout controller 110, so that logout controller 110 records the particular event/specific information extremely Battery backed RAM 120.In addition, logout controller 110, which also can record, is more relevant to the particular event/specific The information of information is to battery backed RAM 120.
In one embodiment, event detection unit 111 judges whether the first object address of main memory 150 is written into spy Definite value.Specifically, event detection unit 111 can initiatively monitor the particular section (first object address) of main memory 150 Whether specific data is written into.Determine that the particular value is written into the first object address, the event if so, reacting on Detection unit 111 determines that the 5th particular event in the multiple particular event occurs.It reacts on and detects that the described 5th is specific Event occurs, which sends the 5th recording instruction of corresponding 5th particular event to the logout list Member 112 (if the value that the first object address is written into not is the particular value, will not determine that the 5th particular event occurs). That is, manufacturer can set above-mentioned first object address and corresponding spy according to special event or the demand of itself Definite value, and the content of the 5th recording instruction can also be set.Then, whether occur (to monitor by the 5th particular event of detection The event of this particular aspects has occurred), logout controller 110 can record relevant according to the 5th set recording instruction Information is to battery backed RAM 120.It should be noted that in another embodiment, the 5th recording instruction can be used to indicate to continue Ground operates as the time repeats one or more above-mentioned records, has reached and similar has made video recording to the scene of special event Effect (conversely, the record operation being only performed once can be considered the effect of " taking pictures ").
In one embodiment, whether the second target address that event detection unit 111 detects main memory 150 is accessed. It reacts on and detects that the second target address is accessed, which determines in the multiple particular event Six particular events occur.It is similar to the mode that above-mentioned the 6th particular event of judgement occurs, event detection unit 111 can also go to detect The particular section (the second target address) of main memory 150, but the difference is that, event detection unit 111 only needs to detect that Whether the second target address is accessed, and does not need to have checked whether to be written into particular value.It reacts on and detects the 6th Particular event occurs, and the 6th recording instruction to the event which sends corresponding 6th particular event is remembered Record unit 112.Manufacturer can set the content of above-mentioned the second target address and the 6th recording instruction.It should be noted that another In embodiment, the 6th recording instruction also can be used to indicate constantly to grasp as the time repeats one or more above-mentioned records Make, has reached the similar effect made video recording to the scene of special event.
In one embodiment, event detection unit 111 detects whether busbar connector 170 occurs mistake.It reacts on and detects remittance Mistake occurs for stream row 170, which determines that the 7th particular event in the multiple particular event occurs.Instead Ying Yu detects that the 7th particular event occurs, and event detection unit 11 sends the 7th note of corresponding 7th particular event Record is instructed to the event recording unit 112.That is, event detection unit 111 is detectable to connect electronic device Whether the busbar connector 170 of all elements occurs mistake.That is, whether occurring by the 7th particular event of detection, event note Relevant information can also be recorded to battery backed RAM 120 while mistake occurs for busbar connector by recording controller 110.
In one embodiment, when one or more above-mentioned particular events in the multiple particular event occur, processor 130 may occur can not normal operation situation.That is, in this embodiment, when a particular event occurs or more A particular event simultaneously/when occurring in succession, processor 130 can not normal operation (e.g., stop operating or operate extremely).Example Such as, processor 130 cannot carry out operation or processing according to original performed program.In another example the operation of processor 130 itself is collapsed Routed or overdue and unredeemable pawn.In the case, logout controller 110 provided by the embodiment of the present invention, can be not against processor 130, the generation of one or more particular events itself is initiatively detected, and corresponding recording instruction can be automatically generated, with Corresponding record operation is executed, and then records one or more corresponding described specific things under the case where not needing processor 130 The event information of part.
It should be noted that in one embodiment, event detection unit 111 persistently detects the therein more of multiple particular events Whether a particular event occurs (S21), to react on the generation of the detected multiple particular events occurred, to send pair The recording instruction answered event recording unit 112 can be referred to according to one or more records to event recording unit 112 (S23) It enables, not via the control of processor 130, executes one or more above-mentioned record operation, and then reach and automatically sent out correspondence The event information of raw the multiple particular event from the multiple element of electronic device 10 indicated by the recording instruction One or more elements record to battery backed RAM 120 (S25).In other words, the sustainable detection the of event detection unit 111 Whether one or more in the one~the 7th particular event occur (while occurring, or occur together within a scheduled period), and And corresponding recording instruction is produced accordingly and records relevant event information to indicate event recording unit 112.
It is noted that in the present embodiment, it, can be direct when the available space deficiency of battery backed RAM 120 The stored oldest data of overriding.In addition, in one embodiment, when the available space deficiency of battery backed RAM 120, (manufacturer can set the important of the above-mentioned first~the 7th particular event to most unessential data in data stored by directly overriding Degree).
However, in another embodiment, the data for being stored in battery backed RAM 120 will not be written.Until being stored up The data deposited all properly read (e.g., by user or related personnel via corresponding logout controller software backup to its In his reliable storage device) and when being given specific reset indication, the data for being stored in battery backed RAM 120 can be clear It is empty.In this another embodiment, when battery backed RAM 120 does not have any available space, logout controller 110 Capable of emitting alert notification.
In addition, if logout controller 110 also can be by old standby to will newly be stored in battery when electronic device 10 leaves unused The data of part memory 120 moves (backup) to the hidden area (or non-concealed region) in the storage device of electronic device 10. It will receive limit to store the space for the data that moved script is stored in battery backed RAM 120 in storage device System.
In addition, in one embodiment, logout controller 110 can also be uploaded in specific opportunity point by network line Cloud server of the data recorded set by manufacturer.The specific opportunity point is, for example, that electronic device 10 is safeguarded When, when actively inquiring user and obtaining permission, when updating system (or operating system) used in electronic device 10.
It is noted that in one embodiment, event recording unit 112 can be according to corresponding recording instruction, in a note One or more performed record operations are repeatedly carried out during record.It specifically, can be in order to upon the occurrence of a particular incident Continuously relevant information/data, record caused by event detection unit 111 are recorded at multiple time points instantly and then Instruction can indicate repeatedly to execute one or more record operations during record, or each note to be executed is set separately The time point of the execution number and execution of record operation.It is that can be set to one or more periods or not limited during the record Time span processed.
In the present embodiment, be uploaded to cloud server, back up in storage device or be recorded in battery back storage The data of device 120 can be used to the hardware of one or more elements when corresponding particular event occurs for identification electronic device 10 instantly Situation, the content of the logger of various elements, performed various programs and related content (footprint of formula, memory it is interior Hold, the positive program for executing and executing), the relevant information instantly such as the sensor data, the time that are sensed, occurred with analysis special The reason of determining event, so can solve the reason of these cause particular event to occur and improve electronic device 10 overall architecture and The function of each element.
In conclusion logout controller provided by the embodiment of the present invention, can react on specific thing detected The generation of part (error event) is automatically occurred corresponding not via the control of the processor of the electronic device belonging to it The event information of the particular event is recorded from one or more elements in the multiple element of the electronic device to battery back Memory, with the processor can not normal operation in the case where, still can promptly record the letter for being relevant to particular event Breath, and understand that related personnel can by the information recorded and correct the reason of leading to particular event occurred, into And improve the overall efficiency of electronic device.
Although the present invention has been disclosed by way of example above, it is not intended to limit the present invention., any technical field Technical staff, without departing from the spirit and scope of the present invention, when can make some changes and embellishment, therefore protection model of the invention It encloses subject to attached claim institute defender before view.

Claims (10)

1. a kind of logout controller is suitable for an electronic device, which is characterized in that the electronic device includes multiple element, Wherein the element includes a processor, comprising:
One event detection unit is coupled to the element of the electronic device, wherein to the lasting multiple particular events of detection One or more whether occur;And
One event recording unit is coupled to the event detection unit,
Wherein the event detection unit detects that one or more particular events described in the particular event occur to react on, To send a recording instruction of one or more particular events described in corresponding occurred to the event recording unit,
Wherein the event recording unit to react on the received recording instruction, not via the control of the processor, automatically Ground is by the event information of one or more particular events described in corresponding occurred indicated by the recording instruction in the element One or more elements record to a battery backed RAM.
2. logout controller as described in claim 1, which is characterized in that the event detection unit includes a counter, Wherein after the electronic device opens electricity, counter keeping count since a predetermined value, wherein coming when the counter receives When from the more new signal of the processor, which counts again from the predetermined value, wherein when the counter counts up to a mesh When marking numerical value, which sends a reset signal and resets the electronic device to the processor, and wherein the processor is via this Event detection unit sends the more new signal to the counter by a predetermined period with every by formula, and wherein the predetermined period is small The time of the target value is counted up to from the predetermined value in the counter,
Wherein persistently detected in one of described particular event or multiple runnings whether occurred above-mentioned,
The event detection unit detects whether the counter sends the reset signal,
It wherein reacts on the event detection unit and detects that the counter sends the reset signal, which determines institute One first particular event stated in particular event occurs,
It wherein reacts on and detects that first particular event occurs, which sends corresponding first particular event One first recording instruction is to the event recording unit.
3. logout controller as claimed in claim 2, which is characterized in that persistently detect the particular event above-mentioned In one of them or multiple runnings whether occurred,
The event detection unit persistently detects the respective voltage value of the element and voltage change,
It wherein reacts on and detects that the voltage value changing value of an object component of the element is greater than a predetermined variation threshold value, The event detection unit determines that one second particular event in the particular event occurs,
It wherein reacts on and detects that second particular event occurs, which sends corresponding second particular event One second recording instruction is to the event recording unit.
4. logout controller as claimed in claim 3, which is characterized in that the element further includes an interrupt control unit, Wherein persistently detected in one of described particular event or multiple runnings whether occurred above-mentioned,
It reacts on from the received interrupt event of interrupt control unit institute, which determines in the particular event One third particular event occurs,
It wherein reacts on and detects that the third particular event occurs, which sends the corresponding third particular event One third recording instruction is to the event recording unit.
5. logout controller as claimed in claim 4, which is characterized in that the processor executes an application, wherein It is persistently detected in one of described particular event or multiple runnings whether occurred above-mentioned,
The processor sends a record event command according to the application and gives the event detection unit,
The received record event command of institute is wherein reacted on, which determines one the 4th in the particular event Particular event occurs,
It wherein reacts on and detects that the 4th particular event occurs, which sends corresponding 4th particular event One the 4th recording instruction is to the event recording unit.
6. logout controller as claimed in claim 5, which is characterized in that the element includes a main memory, wherein It is persistently detected in one of described particular event or multiple runnings whether occurred above-mentioned,
The event detection unit judges whether a first object address of the main memory is written into a particular value,
It wherein reacts on and determines that the particular value is written into the first object address, which determines the specific thing One the 5th particular event in part occurs,
It wherein reacts on and detects that the 5th particular event occurs, which sends corresponding 5th particular event One the 5th recording instruction is to the event recording unit.
7. logout controller as claimed in claim 6, which is characterized in that persistently detect the particular event above-mentioned In one of them or multiple runnings whether occurred,
Whether the one second target address that the event detection unit detects the main memory is accessed,
It wherein reacts on and detects that the second target address is accessed, which determines one in the particular event 6th particular event occurs,
It wherein reacts on and detects that the 6th particular event occurs, which sends corresponding 6th particular event One the 6th recording instruction is to the event recording unit.
8. logout controller as claimed in claim 7, which is characterized in that the electronic device further includes described to connect One busbar connector of element, wherein persistently detecting one of described particular event or multiple runnings whether occurred above-mentioned In,
The event detection unit detects whether the busbar connector occurs mistake,
It wherein reacts on and detects that mistake occurs for the busbar connector, which determines one the 7th in the particular event Particular event occurs,
It wherein reacts on and detects that the 7th particular event occurs, which sends corresponding 7th particular event One the 7th recording instruction is to the event recording unit.
9. a kind of electronic device characterized by comprising
One processor;
One battery backed RAM;And
One logout controller, is coupled to the processor and the battery backed RAM;
Wherein the logout controller to one of multiple particular events of lasting detection or it is multiple whether occur,
Wherein the logout controller more to react on detect in the particular event described in one or more specific things Part occurs, and not via the control of the processor, automatically the event by one or more particular events described in corresponding occurred is believed Breath is recorded from an element of the electronic device to the battery backed RAM.
10. electronic device as claimed in claim 9, which is characterized in that
When one or more particular events described in the particular event occur, which can not normal operation.
CN201811617681.0A 2017-12-29 2018-12-28 Event recording controller and electronic device Active CN110018921B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW106146389A TWI657337B (en) 2017-12-29 2017-12-29 Event recording controller and electronic device
TW106146389 2017-12-29

Publications (2)

Publication Number Publication Date
CN110018921A true CN110018921A (en) 2019-07-16
CN110018921B CN110018921B (en) 2022-11-11

Family

ID=66996002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811617681.0A Active CN110018921B (en) 2017-12-29 2018-12-28 Event recording controller and electronic device

Country Status (2)

Country Link
CN (1) CN110018921B (en)
TW (1) TWI657337B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000293273A (en) * 1999-04-05 2000-10-20 Toshiba Corp Data recording device and control method for data recording device
TW200519659A (en) * 2003-12-02 2005-06-16 Benq Corp Automatic data collection method and data collection system
JP2009205213A (en) * 2008-02-26 2009-09-10 Epson Toyocom Corp Event recorder and electronic device therewith
CN101896236A (en) * 2007-12-05 2010-11-24 生命力有限公司 System for reporting recorded video preceding system failures
JP2014081700A (en) * 2012-10-15 2014-05-08 Fuji Electric Co Ltd Programmable controller, data backup method of programmable controller, and starting method of programmable controller
WO2015152648A1 (en) * 2014-04-03 2015-10-08 재단법인 다차원 스마트 아이티 융합시스템 연구단 Apparatus and method for managing files using buffer in storage space of video event recorder
US20160180925A1 (en) * 2014-12-22 2016-06-23 Qualcomm Incorporated Volatile/non-volatile sram device
CN105938450A (en) * 2015-03-06 2016-09-14 广达电脑股份有限公司 Automatic debug information collection method and system
CN106561018A (en) * 2015-10-02 2017-04-12 纬创资通股份有限公司 Server monitoring method, monitoring device and monitoring system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000293273A (en) * 1999-04-05 2000-10-20 Toshiba Corp Data recording device and control method for data recording device
TW200519659A (en) * 2003-12-02 2005-06-16 Benq Corp Automatic data collection method and data collection system
CN101896236A (en) * 2007-12-05 2010-11-24 生命力有限公司 System for reporting recorded video preceding system failures
JP2009205213A (en) * 2008-02-26 2009-09-10 Epson Toyocom Corp Event recorder and electronic device therewith
JP2014081700A (en) * 2012-10-15 2014-05-08 Fuji Electric Co Ltd Programmable controller, data backup method of programmable controller, and starting method of programmable controller
WO2015152648A1 (en) * 2014-04-03 2015-10-08 재단법인 다차원 스마트 아이티 융합시스템 연구단 Apparatus and method for managing files using buffer in storage space of video event recorder
US20160180925A1 (en) * 2014-12-22 2016-06-23 Qualcomm Incorporated Volatile/non-volatile sram device
CN105938450A (en) * 2015-03-06 2016-09-14 广达电脑股份有限公司 Automatic debug information collection method and system
CN106561018A (en) * 2015-10-02 2017-04-12 纬创资通股份有限公司 Server monitoring method, monitoring device and monitoring system

Also Published As

Publication number Publication date
CN110018921B (en) 2022-11-11
TW201931120A (en) 2019-08-01
TWI657337B (en) 2019-04-21

Similar Documents

Publication Publication Date Title
CN110069810B (en) Battery failure prediction method, device, equipment and readable storage medium
US10153521B2 (en) Systems and methods for detecting a battery pack having an operating issue or defect
US11721993B1 (en) Battery management system
CN101833497A (en) Computer fault management system based on expert system method
CN106537351B (en) Method for the power failure in diagnostic wireless communication equipment
CN108549591A (en) A kind of black box device and its implementation of embedded system
EP3214548A1 (en) Systems and methods for operating a virtual power environment
CN106033384A (en) System for retrieving console messages and method thereof and non-transitory computer-readable medium
CN110377136A (en) A kind of PSU original value log recording method and device
CN108563166B (en) FPGA-based small satellite on-orbit health comprehensive management terminal and management method
CN103809502A (en) Controller and program
US20140172366A1 (en) Techniques for Encapsulating Metadata in Contextual Data Streams
CN110018921A (en) Logout controller and electronic device
JP2012051551A (en) Device with power electronics control circuits
TW201633125A (en) Data backup
CN103049069B (en) End cell process for temperature indication and device and terminal
CN103019907B (en) A kind of end cell temperature monitoring method and device and terminal
CN102750234B (en) The control method of memorizer and controller
US11733689B2 (en) Control system, programmable logic controller, and information processing method
CN108123829A (en) The charged fortune inspection multiplex roles intelligence platform of substation
JP2018528531A (en) SD card based RTU
CN105681516A (en) Terminal control method and device
CN111445598A (en) Optical fiber attitude and heading reference system information processing method, device, equipment and storage medium
RU147249U1 (en) MEASURING TERMINAL FOR ELECTRICAL PARAMETERS MEASUREMENT SYSTEMS WITH FLEXIBLE DYNAMIC REDISTRIBUTION OF FUNCTIONS BETWEEN TERMINALS
Siwan et al. Machine Learning in AWS for IoT-based Oil Pipeline Monitoring System

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