TWI657337B - Event recording controller and electronic device - Google Patents
Event recording controller and electronic device Download PDFInfo
- Publication number
- TWI657337B TWI657337B TW106146389A TW106146389A TWI657337B TW I657337 B TWI657337 B TW I657337B TW 106146389 A TW106146389 A TW 106146389A TW 106146389 A TW106146389 A TW 106146389A TW I657337 B TWI657337 B TW I657337B
- Authority
- TW
- Taiwan
- Prior art keywords
- event
- specific
- recording
- detection unit
- processor
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/0703—Error 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/0766—Error or fault reporting or storing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
- G06F13/1668—Details of memory controller
- G06F13/1673—Details 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)
- Automation & Control Theory (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
用於電子裝置的一種事件記錄控制器。所述事件記錄控制器包括事件偵測單元與事件記錄單元。所述事件偵測單元用以持續偵測多個特定事件的其中之一是否發生。此外,所述事件偵測單元用以反應於偵測到所述多個特定事件的其中之一個特定事件發生,以發送對應所發生的所述特定事件的記錄指令至所述事件記錄單元。所述事件記錄單元用以反應於所接收之所述記錄指令,不經由所述電子裝置的處理器的控制,自動地根據所述記錄指令的指示將對應所發生的所述特定事件之事件資訊從所述電子裝置的多個元件中的一或多個元件記錄至電池備份記憶體。An event recording controller for an electronic device. The event recording controller includes an event detection unit and an event recording unit. The event detection unit is configured to continuously detect whether one of a plurality of specific events occurs. In addition, the event detection unit is configured to respond to detecting a specific event occurrence of the plurality of specific events to send a recording instruction corresponding to the specific event that occurred to the event recording unit. The event recording unit is configured to respond to the received recording instruction without automatically controlling the processor of the electronic device, and automatically according to the instruction of the recording instruction, will correspond to the event information of the specific event that occurred. Recording from one or more of a plurality of components of the electronic device to a battery backup memory.
Description
本發明是有關於一種控制器,且特別是有關於一種事件記錄控制器與電子裝置。The invention relates to a controller, and in particular to an event recording controller and an electronic device.
當一個系統(電子裝置/電腦主機/伺服器)產生致命錯誤(Fatal error)的時候,最難除錯的情況是,不知何時會發生,不知發生在何處(哪個元件)。所以,當事發之後往往已事過境遷,發生的主因早已不在。目前習知的除錯技術,都是以處理器作為核心,以處理器的角度來設計的,其藉由處理器的控制來紀錄程式走過的足跡與記憶體的使用歷程。若處理器本身發生問題或出錯時,往往導致無法記錄出錯的原因或是相關的資訊。When a system (electronic device / computer host / server) generates a fatal error, the most difficult situation to debug is when you do n’t know when it will happen and where (which component) it will happen. Therefore, after the incident, things have often changed, and the main cause of the incident is long gone. At present, the conventional debugging technologies are designed with the processor as the core and the processor's perspective. The processor's control records the footprint of the program and the memory usage history. If there is a problem or error in the processor itself, the cause of the error or related information often cannot be recorded.
此外,一般的除錯技術僅僅只能被用在開發系統或開發相關應用程式的階段,並且必須配合處理器來執行除錯工具(Debug Tool)軟體。但是,當一個系統一經開發完成且導入量產進入市面之後,這些脫離開發階段(除錯工具不再被使用)的系統依然會有出錯的可能,並且此時所發生的錯誤會直接影響到使用者,導致使用者對系統的觀感不佳,並且也導致了工作效率的降低。In addition, general debugging techniques can only be used at the stage of developing a system or developing related applications, and must cooperate with the processor to execute the debug tool software. However, once a system has been developed and mass production has entered the market, these systems that are out of development (debugging tools are no longer used) may still have errors, and the errors that occur at this time will directly affect the use This results in poor user perception of the system, and also reduces work efficiency.
基此,如何不經由處理器的控制,也可有效率地記錄系統的錯誤,為本領域人員致力解決的問題。Based on this, how to efficiently record the errors of the system without the control of the processor is a problem that people in the art are committed to solving.
本發明提供一種事件記錄控制器及具有所述事件記錄控制器的電子裝置,可偵測特定事件的發生,並且發送對應所述特定事件的記錄指令,以不經由所述電子裝置的處理器的控制來記錄對應所述特定事件的事件資訊。The invention provides an event recording controller and an electronic device having the event recording controller, which can detect the occurrence of a specific event and send a recording instruction corresponding to the specific event so as not to pass through the processor of the electronic device. Control to record event information corresponding to the specific event.
本發明的一實施例提供適用於電子裝置的一種事件記錄控制器。所述電子裝置包括多個元件,其中所述多個元件包括處理器。所述事件記錄控制器包括事件偵測單元與事件記錄單元。所述事件偵測單元耦接至所述電子裝置的所述多個元件,並且用以持續偵測多個特定事件的其中之一是否發生。所述事件記錄單元耦接至所述事件偵測單元。此外,所述事件偵測單元用以反應於偵測到所述多個特定事件的其中之一個特定事件發生,以發送對應所發生的所述特定事件的記錄指令至所述事件記錄單元。所述事件記錄單元用以反應於所接收之所述記錄指令,不經由所述處理器的控制,自動地將對應所發生的所述特定事件之事件資訊從所述多個元件中的所述記錄指令所指示的一或多個元件記錄至電池備份記憶體。An embodiment of the present invention provides an event recording controller suitable for an electronic device. The electronic device includes a plurality of elements, wherein the plurality of elements include a processor. The event recording controller includes an event detection unit and an event recording unit. The event detection unit is coupled to the plurality of components of the electronic device, and is configured to continuously detect whether one of a plurality of specific events occurs. The event recording unit is coupled to the event detection unit. In addition, the event detection unit is configured to respond to detecting a specific event occurrence of the plurality of specific events to send a recording instruction corresponding to the specific event that occurred to the event recording unit. The event recording unit is used to automatically receive event information corresponding to the specific event that has occurred from the plurality of elements in response to the received recording instruction without the control of the processor. One or more components indicated by the recording instruction are recorded in the battery backup memory.
本發明的一實施例提供一種電子裝置。所述電子裝置包括處理器、電池備份記憶體與事件記錄控制器。所述事件記錄控制器耦接至所述處理器與所述電池備份記憶體。事件記錄控制器用以持續偵測多個特定事件的其中之一是否發生,其中當所述多個特定事件發生時,所述處理器不可正常運作。所述事件記錄控制器更用以反應於偵測到所述多個特定事件的其中之一個特定事件發生,不經由所述處理器的控制,自動地將對應所發生的所述特定事件之事件資訊從所述電子裝置的一元件記錄至所述電池備份記憶體An embodiment of the invention provides an electronic device. The electronic device includes a processor, a battery backup memory, and an event recording controller. The event recording controller is coupled to the processor and the battery backup memory. The event recording controller is configured to continuously detect whether one of a plurality of specific events occurs, wherein the processor cannot operate normally when the plurality of specific events occur. The event recording controller is further configured to automatically detect an event corresponding to the specific event that has occurred without detecting the occurrence of a specific event of the plurality of specific events, without the control of the processor. Information is recorded from a component of the electronic device to the battery backup memory
基於上述,本發明的實施例所提供的事件記錄控制器,可反應於所偵測的特定事件(錯誤事件)的發生,不經由其所屬的電子裝置的處理器的控制,自動地將對應所發生的所述特定事件之事件資訊從所述電子裝置的多個元件中的一或多個元件記錄至電池備份記憶體,以在所述處理器無法正常運作的情況下,依然可迅速地記錄相關於特定事件的資訊,並且使相關人員可藉由所記錄的資訊來了解且修正導致所發生的特定事件的原因,進而改善電子裝置的整體效能。Based on the above, the event recording controller provided by the embodiment of the present invention can automatically respond to the occurrence of a specific event (error event) detected without the control of the processor of the electronic device to which it belongs. Event information of the specific event that occurred is recorded from one or more components of the plurality of components of the electronic device to a battery backup memory so that the processor can still record quickly if the processor fails to operate normally Information related to a specific event, and related personnel can use the recorded information to understand and correct the cause of a specific event, thereby improving the overall performance of the electronic device.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above features and advantages of the present invention more comprehensible, embodiments are hereinafter described in detail with reference to the accompanying drawings.
本發明的精神在於,在偵測到系統(電子裝置)的致命錯誤/錯誤事件發生時,將此時間點作為執行快照(Snapshot)的時間點。接著,分別對應所發生的多種致命錯誤,至多個地點(系統/電子裝置的不同元件)來執行快照,以拍照或攝影該地點的影像(對應於該致命錯誤所述系統/電子裝置的所述不同元件的相關資訊),並且將影像存放至可快速儲存的記憶體。應注意的是,為了在所述特定致命錯誤/錯誤事件發生時可以快速地儲存相關資訊,本實施例所採用的記憶體為存取速度相較於一般非揮發性記憶體還高的揮發性記憶體,並且利用了(可充電式的)電池來供給電源,以使此揮發性記憶體可以長時間儲存資料。The spirit of the present invention is that, when a fatal error / error event of a system (electronic device) is detected, this time point is used as a time point for performing a snapshot. Then, corresponding to a variety of fatal errors that occur, perform snapshots to multiple locations (different components of the system / electronic device) to take pictures or photograph images of the location (corresponding to the system / electronic device described in the fatal error) Information about the different components), and store the image in fast-storable memory. It should be noted that, in order to quickly store related information when the specific fatal error / error event occurs, the memory used in this embodiment has a higher access speed than the general non-volatile memory. Memory, and uses (rechargeable) batteries to supply power, so that this volatile memory can store data for a long time.
圖1是根據本發明的一實施例所繪示的事件記錄控制器及其所屬之電子裝置的方塊示意圖。FIG. 1 is a block diagram illustrating an event recording controller and an electronic device to which the event recording controller belongs according to an embodiment of the present invention.
請參照圖1,具有事件記錄控制器110的電子裝置10還包括電池備份記憶體(Battery backup memory)120、處理器130、中斷控制器140、主記憶體150及週邊裝置160。Referring to FIG. 1, the electronic device 10 having the event recording controller 110 further includes a battery backup memory 120, a processor 130, an interrupt controller 140, a main memory 150 and a peripheral device 160.
在本實施例中,所述事件記錄控制器110包括事件偵測單元111與事件記錄單元112。所述事件偵測單元111用以(在背景中)偵測特定事件的發生,並且所述事件記錄單元112用以(在背景中)記錄對應所發生之特定事件的事件資訊。具有事件記錄控制器110的所述電子裝置可因為所述事件記錄控制器而具有(在背景中)偵測且記錄對應所發生之特定事件的事件資訊的功能。應注意的是,當系統(電子裝置)的發生致命錯誤時,處理器130不能正常地運作。In this embodiment, the event recording controller 110 includes an event detection unit 111 and an event recording unit 112. The event detection unit 111 is used to detect the occurrence of a specific event (in the background), and the event recording unit 112 is used to record the event information (in the background) corresponding to the specific event that occurred. The electronic device having the event recording controller 110 may have a function (in the background) of detecting and recording event information corresponding to a specific event that occurs due to the event recording controller. It should be noted that when a fatal error occurs in the system (electronic device), the processor 130 cannot operate normally.
在本實施例中,電池備份記憶體120包括一電池與耦接至所述電池的一揮發性記憶體。所述揮發性記憶體例如是靜態隨機存取記憶體(SRAM)或其他具有相同速度或更高速度的揮發性記憶體。因為所述電池可提供電力至所述靜態隨機存取記憶體,所述靜態隨機存取記憶體所記錄的資料可長時間的保存且不因為電子裝置停止供電而消失。當電子裝置10開電時,所述電池可進行充電。換言之,所述電池備份記憶體120亦可視為不需要外部電源且可長時間儲存資料的高速的揮發性記憶體。所述電池例如是可充電式的鋰電池或其他適合的可充電式電池。In this embodiment, the battery backup memory 120 includes a battery and a volatile memory coupled to the battery. The volatile memory is, for example, a static random access memory (SRAM) or other volatile memory having the same speed or higher. Because the battery can provide power to the static random access memory, the data recorded by the static random access memory can be stored for a long time and will not disappear because the electronic device stops supplying power. When the electronic device 10 is powered on, the battery can be charged. In other words, the battery backup memory 120 can also be regarded as a high-speed volatile memory that does not require external power and can store data for a long time. The battery is, for example, a rechargeable lithium battery or other suitable rechargeable batteries.
處理器130包括登錄器(Register)與執行控制、運算等電路單元。處理器130為具備運算能力的硬體(例如晶片組、處理器等),用以管理電子裝置10的整體運作。在本實施例中,處理器130,例如是一核心或多核心的中央處理單元(Central Processing Unit,CPU)、微處理器(micro-processor)、或是其他可程式化之處理單元(Programmable processor)、數位訊號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝置(Programmable Logic Device,PLD)或其他類似裝置。應注意的是,在本實施例中,事件記錄控制器110可在處理器130之外,獨立地運作。The processor 130 includes a register (register) and circuit units such as execution control and calculation. The processor 130 is hardware (for example, a chipset, a processor, and the like) having computing capabilities, and is used to manage the overall operation of the electronic device 10. In this embodiment, the processor 130 is, for example, a core or multi-core Central Processing Unit (CPU), a microprocessor (micro-processor), or other programmable processor (Programmable processor). ), Digital Signal Processor (DSP), Programmable Controller, Application Specific Integrated Circuits (ASIC), Programmable Logic Device (PLD), or other similar devices . It should be noted that, in this embodiment, the event recording controller 110 can operate independently of the processor 130.
中斷控制器140,用以監控處理器130與每個週邊裝置160(1)~160(N)所發生的例外狀況,並且根據不同的例外狀況,產生中斷事件,以進一步地處理所述例外狀況。The interrupt controller 140 is used to monitor the exception status of the processor 130 and each of the peripheral devices 160 (1) to 160 (N), and generate an interrupt event according to the different exception status to further process the exception status .
主記憶體150用以暫存來自於處理器130的資料與指令,或者主記憶體150亦可暫存來自於週邊裝置160的資料。主記憶體150例如為隨機存取記憶體(random access memory,RAM)。The main memory 150 is used to temporarily store data and instructions from the processor 130, or the main memory 150 may also temporarily store data from the peripheral device 160. The main memory 150 is, for example, a random access memory (random access memory, RAM).
週邊裝置160包括多個週邊裝置160(1)~160(N)。所述週邊裝置160(1)~160(N)例如可為類比數位轉換器(ADC)、數位類比轉換器(DAC)、序列週邊介面(SPI)、積體電路匯流排(I2C)等週邊控制電路單元,並且也例如可為電源管理裝置、儲存裝置、通訊裝置、感測器。The peripheral device 160 includes a plurality of peripheral devices 160 (1) to 160 (N). The peripheral devices 160 (1) to 160 (N) may be peripheral controls such as analog digital converter (ADC), digital analog converter (DAC), serial peripheral interface (SPI), integrated circuit bus (I2C), etc. The circuit unit may also be, for example, a power management device, a storage device, a communication device, or a sensor.
在本實施例中,上述元件110~160可經由系統匯流排(System bus)170來連接與傳遞資料/訊號。In this embodiment, the above-mentioned components 110 to 160 can be connected and transmitted through a system bus 170 (system bus) 170.
圖2是根據本發明的一實施例所繪示的事件記錄控制器的運作流程圖。請同時參照圖1與圖2,在步驟S21中,事件偵測單元111持續偵測多個特定事件的其中之一或多個是否發生。若偵測到發生一或多個特定事件,反應於所偵測到所述多個特定事件中的一或多個特定事件發生(步驟S21à是),在步驟S23中,事件偵測單元111發送對應所發生的所述一或多個特定事件的記錄指令至事件記錄單元。反之(步驟S21à否),整個運作流程重新執行步驟S21,即,事件偵測單元111繼續持續地偵測是否有一特定事件發生。以下利用多個例子來說明事件偵測單元111可偵測的多種特定事件及對應的偵測方法/標準。即,說明執行快照的多種時機點(步驟S21àS23的符合條件)。FIG. 2 is an operation flowchart of the event recording controller according to an embodiment of the present invention. Please refer to FIG. 1 and FIG. 2 at the same time. In step S21, the event detection unit 111 continuously detects whether one or more of a plurality of specific events occur. If the occurrence of one or more specific events is detected, in response to the detection of the occurrence of one or more specific events among the plurality of specific events (step S21àY), in step S23, the event detection unit 111 sends A recording instruction corresponding to the occurrence of the one or more specific events to an event recording unit. Otherwise (step S21 à No), the entire operation flow re-executes step S21, that is, the event detection unit 111 continues to continuously detect whether a specific event occurs. The following uses multiple examples to describe various specific events that can be detected by the event detection unit 111 and corresponding detection methods / standards. That is, a variety of timing points for executing a snapshot (the conditions of steps S21 to S23) are described.
在一實施例中,事件偵測單元111(或電子裝置10)包括一計數器。在所述電子裝置10開電後,所述計數器從預定數值開始持續計數(可被設定為倒數或是累計的方式來計數),其中當所述計數器接收來自處理器130的更新訊號時,所述計數器從預定數值重新計數,其中當所述計數器計數至目標數值時,所述計數器發送重置訊號給所述處理器130以重置電子裝置10(或處理器10)。其中,所述處理器經由所述事件偵測單元111被程式(programmed),以每經過一預定週期發送所述更新訊號至所述計數器,其中所述預定週期小於所述計數器從所述預定數值計數至所述目標數值的時間。所述計數器及相關的機制亦可稱為看門狗(Watch dog)機制。In one embodiment, the event detection unit 111 (or the electronic device 10) includes a counter. After the electronic device 10 is powered on, the counter continues to count from a predetermined value (can be set to count down or count up), wherein when the counter receives an update signal from the processor 130, all counters The counter recounts from a predetermined value, wherein when the counter counts to a target value, the counter sends a reset signal to the processor 130 to reset the electronic device 10 (or the processor 10). Wherein, the processor is programmed via the event detection unit 111 to send the update signal to the counter every time a predetermined period elapses, wherein the predetermined period is smaller than the counter from the predetermined value Time counting to the target value. The counter and related mechanism may also be referred to as a watch dog mechanism.
例如,假設預定數值為3000,目標數值為0,並且計數器以每1毫秒倒數1的速率來倒數預定數值至目標數值。所述預定週期例如可被設定(程式)為2800毫秒。也就是說,每次在計數器倒數至0之前,因為預定週期小於從預定數值倒數至目標數值的時間(3000毫秒)。因此,在正常情況下,計數器都會根據來自處理器130的更新訊號一直不斷地重新倒數。然而,在一些處理器130發生錯誤的情況下,處理器130本身會進入死循環或是死當。此時,處理器130無法發送更新訊號至計數器,在此情況下,計數器會倒數至目標數值,並且發送重置訊號至處理器130以強制性地重置處理器130。在另一實施例中,當計數器計數至目標數值時,計數器會發送重置訊號至多個預定元件以強制執行所述多個預定元件。For example, suppose the predetermined value is 3000, the target value is 0, and the counter counts down the predetermined value to the target value at a rate of 1 countdown every 1 millisecond. The predetermined period may be set (programmed) to 2800 milliseconds, for example. That is, each time before the counter counts down to 0, because the predetermined period is less than the time (3,000 milliseconds) from the countdown to the target value. Therefore, under normal circumstances, the counter will count down continuously according to the update signal from the processor 130. However, in the event that an error occurs in some processors 130, the processor 130 itself may enter an infinite loop or die. At this time, the processor 130 cannot send an update signal to the counter. In this case, the counter counts down to the target value and sends a reset signal to the processor 130 to forcibly reset the processor 130. In another embodiment, when the counter counts to a target value, the counter sends a reset signal to a plurality of predetermined components to enforce the plurality of predetermined components.
在本實施例中,事件偵測單元111會持續在背景偵測計數器是否發送重置訊號(即,事件偵測單元111會持續聆聽計數器)。當事件偵測單元111偵測到計數器發送重置訊號時,事件偵測單元111會認為處理器130發生致命錯誤/死當/死循環,並且判定所述多個特定事件中的第一特定事件發生。接著,反應於偵測到所述第一特定事件發生,所述事件偵測單元111發送對應所述第一特定事件的第一記錄指令至所述事件記錄單元112。In this embodiment, the event detection unit 111 continues to send a reset signal on the background detection counter (ie, the event detection unit 111 continuously listens to the counter). When the event detection unit 111 detects that the counter sends a reset signal, the event detection unit 111 will consider that a fatal error / dead / dead loop occurs in the processor 130, and determine the first specific event among the specific events. occur. Then, in response to detecting the occurrence of the first specific event, the event detection unit 111 sends a first recording instruction corresponding to the first specific event to the event recording unit 112.
請在回到圖2,在步驟S25中,所述事件記錄單元112不經由處理器130的控制,自動地將對應所發生的所述一或多個特定事件之事件資訊從電子裝置的多個元件中的所述記錄指令所指示的一或多個元件記錄至電池備份記憶體。Please return to FIG. 2. In step S25, the event recording unit 112 automatically transfers event information corresponding to the one or more specific events that have occurred from a plurality of electronic devices without the control of the processor 130. One or more components indicated by the recording instruction in the component are recorded to the battery backup memory.
舉例來說,事件偵測單元111不經由處理器130的控制(即,處理器130無法干涉或得知事件記錄控制器所執行的記錄操作),自動地於背景中產生對應第一特定事件的第一記錄指令且將所產生的第一記錄指令傳送至事件記錄單元112,以使事件記錄單元112於背景中根據第一記錄指令來執行一或多個記錄操作。For example, the event detection unit 111 automatically generates a corresponding event in the background corresponding to the first specific event without the control of the processor 130 (that is, the processor 130 cannot interfere with or learn the recording operation performed by the event recording controller). The first recording instruction is transmitted to the event recording unit 112, so that the event recording unit 112 performs one or more recording operations according to the first recording instruction in the background.
所述第一記錄指令的內容包括指示事件記錄單元112執行下列多種記錄操作(Snapshot operations)(第一~第八記錄操作)的其中之一或其組合:(1) 第一記錄操作,從處理器130中複製指定資料(所述事件資訊)至電池備份記憶體120。具體來說,所述指令資料可包括特定的處理器130的登錄器(Register)所儲存的資料/數值。更詳細來說,所述登錄器例如是程式計數器(Program counter,PC),其所儲存的資料/數值包括用以指示處理器下一步要執行的指令序列的資訊。依照特定處理器的硬體細節而不同,程式計數器可能保存著正在被執行的指令,也可能是下一個要執行指令的地址。程式計數器在每個指令週期會自動地增加,所以指令會正常地從登錄器中連續地被取出。所述登錄器也可為堆疊指標(Stack pointer),其將最後一個程序請求的地址存儲在堆疊中。一個堆疊是一個專門的緩衝登錄器,從上到下存儲數據。最新輸入的程序請求的地址會駐留在堆疊的頂部。換言之,藉由堆疊指標中的多個地址,可知道處理器130執行了哪些程序。應注意的是,本發明並不限定於第一記錄操作所複製的處理器的登錄器的內容。廠商可根據需求來設定對應不同的記錄指令來設定相應的第一記錄操作的目的地(要複製的登錄器的資料)。The content of the first recording instruction includes instructing the event recording unit 112 to perform one or a combination of the following types of snapshot operations (first to eighth recording operations): (1) the first recording operation, from processing The designated data (the event information) is copied to the battery backup memory 120 in the device 130. Specifically, the instruction data may include data / values stored in a register of a specific processor 130. More specifically, the register is, for example, a program counter (PC), and the stored data / values include information used to instruct the processor to execute a sequence of instructions in the next step. Depending on the hardware details of a particular processor, the program counter may hold the instruction being executed or the address of the next instruction to be executed. The program counter is automatically incremented every instruction cycle, so instructions are normally fetched continuously from the register. The registrar may also be a stack pointer, which stores the address requested by the last program in the stack. A stack is a dedicated buffered registrar that stores data from top to bottom. The address of the most recently entered program request resides at the top of the stack. In other words, it is possible to know which programs are executed by the processor 130 by stacking multiple addresses in the index. It should be noted that the present invention is not limited to the contents of the register of the processor copied by the first recording operation. The manufacturer can set different recording instructions according to requirements to set the corresponding destination of the first recording operation (the data of the registrar to be copied).
(2) 第二記錄操作,複製儲存在主記憶體150的指定區段的所有資料至電池備份記憶體120。具體來說,在第二記錄操作中,事件記錄單元112會根據用以指示執行第二記錄操作的記錄指令來至主記憶體150中對應的所述記錄指令所指定的一或多個記憶體位址區段來複製儲存於該記憶體區段的資料(數值)至電池備份記憶體120。(2) The second recording operation copies all the data stored in the designated section of the main memory 150 to the battery backup memory 120. Specifically, in the second recording operation, the event recording unit 112 will go to one or more memory locations specified by the corresponding recording instruction in the main memory 150 according to the recording instruction used to instruct the second recording operation. Address section to copy the data (value) stored in the memory section to the battery backup memory 120.
(3) 第三記錄操作,複製電子裝置10的所述多個元件(如元件130、140、150、160)中的一或多個被指定元件的登錄器的資料至電池備份記憶體120。具體來說,相似於第一記錄操作,在第二記錄操作中,事件記錄單元112會根據用以指示執行第三記錄操作的記錄指令來至所述記錄指令所指示的元件的登錄器中複製該登錄器所儲存的資料至電池備份記憶體120。(3) The third recording operation is to copy the data of the register of one or more designated components among the plurality of components (such as components 130, 140, 150, 160) of the electronic device 10 to the battery backup memory 120. Specifically, similar to the first recording operation, in the second recording operation, the event recording unit 112 will copy to the register of the component indicated by the recording instruction according to the recording instruction for instructing the third recording operation to be performed. The data stored in the register is stored in the battery backup memory 120.
(4) 第四記錄操作,記錄電子裝置10的多個感測器分別所感測的多個感測資料至電池備份記憶體120。具體來說,電子裝置10(或其包含的元件)可具有多個感測器,此些感測器例如可感測溫度、電壓值、電流值等等。事件記錄單元112可根據用以指示執行第四記錄操作的記錄指令來至所述記錄指令所指示的感測器中複製該感測器所感測到的感測資料至電池備份記憶體120。(4) A fourth recording operation, recording a plurality of sensing data respectively sensed by a plurality of sensors of the electronic device 10 to the battery backup memory 120. Specifically, the electronic device 10 (or its components) may have multiple sensors, such as sensors that can sense temperature, voltage, current, and the like. The event recording unit 112 can copy the sensing data sensed by the sensor to the battery backup memory 120 to the sensor indicated by the recording instruction according to the recording instruction for instructing the fourth recording operation to be performed.
(5) 第五記錄操作,記錄對應所發生的特定事件的電子裝置10的當前時間至電池備份記憶體120。具體來說,用以指示執行第五記錄操作的記錄指令,其目的在於,使事件記錄單元112可經由電子裝置10的內部時鐘來記錄當下發生對應的該特定事件的時間。(5) The fifth recording operation records the current time of the electronic device 10 corresponding to the specific event that has occurred to the battery backup memory 120. Specifically, the recording instruction for instructing the fifth recording operation is performed so that the event recording unit 112 can record the time when the corresponding specific event currently occurs through the internal clock of the electronic device 10.
(6) 第六記錄操作,複製電子裝置10的所述多個元件中對應所發生的特定事件的元件的事件日誌(Event log)至該電池備份記憶體120。具體來說,在第六記錄操作中,事件記錄單元112會根據用以指示執行第六記錄操作的記錄指令來至所述記錄指令所指示的元件(或用以其他儲存該元件的事件日誌的儲存單元/儲存裝置)中複製當下該元件的事件日誌至電池備份記憶體120。(6) In a sixth recording operation, an event log of an element corresponding to a specific event that occurred in the plurality of elements of the electronic device 10 is copied to the battery backup memory 120. Specifically, in the sixth recording operation, the event recording unit 112 will go to the component indicated by the recording instruction (or other event log storing the component according to the recording instruction used to instruct the sixth recording operation). The storage unit / storage device) copies the current event log of the component to the battery backup memory 120.
(7) 第七記錄操作,複製記錄指令所具有的資訊至電池備份記憶體120。具體來說,事件記錄單元112會根據用以指示執行第七記錄操作的記錄指令,將所述記錄指令中的全部或部份指定的資料/資訊直接複製至電池備份記憶體120。例如,作業系統或執行在處理器130中的應用程式,可在特定時機點,傳送具有特定訊息的記錄事件指令給事件記錄控制器110,以記錄特定訊息於所述電池備份記憶體120中。事件偵測單元111在接收到此記錄事件指令後,會轉傳此記錄事件指令至事件記錄單元112(作為給事件記錄單元執行第七記錄操作的記錄指令)或是產生包含記錄事件指令的內容與其他記錄操作的記錄指令給事件記錄單元112。(7) In the seventh recording operation, the information in the recording instruction is copied to the battery backup memory 120. Specifically, the event recording unit 112 directly copies all or part of the specified data / information in the recording instruction to the battery backup memory 120 according to a recording instruction for instructing the seventh recording operation to be performed. For example, the operating system or an application program running in the processor 130 may transmit a recording event instruction with a specific message to the event recording controller 110 at a specific timing point to record the specific message in the battery backup memory 120. After receiving the recording event instruction, the event detection unit 111 forwards the recording event instruction to the event recording unit 112 (as a recording instruction for performing the seventh recording operation for the event recording unit) or generates a content containing the recording event instruction Recording instructions with other recording operations are given to the event recording unit 112.
(8) 第八記錄操作,複製對應中斷事件的資訊至電池備份記憶體120。具體來說,中斷控制器140會根據所偵測到的例外事件來執行中斷事件。此時,在第八記錄操作中,事件記錄單元112可記錄所述中斷事件的全部或部份指令的資訊/資料至電池備份記憶體120。(8) The eighth recording operation copies the information corresponding to the interruption event to the battery backup memory 120. Specifically, the interrupt controller 140 executes an interrupt event according to the detected exceptional event. At this time, in the eighth recording operation, the event recording unit 112 may record information or data of all or part of the instructions of the interruption event to the battery backup memory 120.
值得一提的是,例如,反應於所發生的第一特定事件,廠商可設定事件偵測單元111所產生的第一記錄指令會指示執行哪些記錄操作,或是依照上述所述多個記錄操作的特定順序來依序執行。It is worth mentioning that, for example, in response to the first specific event that occurs, the manufacturer can set which recording operations the first recording instruction generated by the event detection unit 111 instructs to perform, or according to the above-mentioned multiple recording operations In a specific order.
應注意的是,事件記錄單元112會根據不同的記錄指令的指示來執行上述的一或多種記錄操作,從不同的地點來複製相關的資訊。除了上述對應於看門狗機制的特定事件,以下繼續說明事件偵測單元111可偵測的其他多種特定事件及對應的偵測方法/標準。It should be noted that the event recording unit 112 executes one or more of the above-mentioned recording operations according to the instructions of different recording instructions, and copies related information from different locations. In addition to the above specific events corresponding to the watchdog mechanism, the following continues to describe a variety of other specific events that can be detected by the event detection unit 111 and corresponding detection methods / standards.
在一實施例中,事件偵測單元111會持續偵測電子裝置10的所述多個元件各自的電壓值及電壓變化值,其中反應於偵測到所述多個元件的目標元件的電壓值變化值大於預定變化門檻值,事件偵測單元111判定所述多個特定事件中的第二特定事件發生。反應於偵測到所述第二特定事件發生,事件偵測單元111發送對應第二特定事件的第二記錄指令至該事件記錄單元。具體來說,當事件偵測單元111偵測到電子裝置10的一元件具有異常的電壓變化(事件偵測單元111可針對不同的元件來設定對應不同元件的預定變化門檻值)時,事件偵測單元111會判定第二特定事件發生。特別是,針對處理器130的電壓驟降(Voltage Drop)至過低電壓所導致的處理器錯誤,或整體電子裝置10的崩潰,藉由偵測第二特定事件是否發生,可即時地在處理器130發生錯誤之前將相關的資訊/資料記錄至電池備份記憶體120。In an embodiment, the event detection unit 111 will continuously detect the respective voltage values and voltage change values of the plurality of components of the electronic device 10, wherein the voltage values of the target components in response to detecting the plurality of components are detected. The change value is greater than a predetermined change threshold, and the event detection unit 111 determines that a second specific event among the plurality of specific events occurs. In response to detecting the occurrence of the second specific event, the event detection unit 111 sends a second recording instruction corresponding to the second specific event to the event recording unit. Specifically, when the event detection unit 111 detects that an element of the electronic device 10 has an abnormal voltage change (the event detection unit 111 can set predetermined change thresholds corresponding to different components for different components), the event detection The measurement unit 111 determines that a second specific event occurs. In particular, for a processor error caused by a voltage drop of the processor 130 to a too low voltage, or a crash of the overall electronic device 10, by detecting whether a second specific event occurs, it can be processed in real time. The device 130 records related information / data to the battery backup memory 120 before an error occurs.
在一實施例中,事件偵測單元111會持續聆聽中斷控制器140,以判斷第三特定事件是否發生。具體來說,當中斷控制器140發送中斷事件時,事件偵測單元111可接收到此中斷事件,並且反應於從該中斷控制器所接收的中斷事件,該事件偵測單元111判定所述多個特定事件中的第三特定事件發生。反應於偵測到所述第三特定事件發生,事件偵測單元111發送對應該第三特定事件的第三記錄指令至該事件記錄單元112。所述第三記錄指令例如可用以指示事件記錄單元112執行上述的第八記錄操作(或更執行其他記錄操作)。也就是說,藉由偵測第三特定事件是否發生,事件記錄控制器110可在中斷事件發生的同時,也記錄相關的資訊至電池備份記憶體120。In one embodiment, the event detection unit 111 continuously listens to the interrupt controller 140 to determine whether a third specific event occurs. Specifically, when the interrupt controller 140 sends an interrupt event, the event detection unit 111 may receive the interrupt event, and in response to the interrupt event received from the interrupt controller, the event detection unit 111 determines the multiple A third specific event of the specific events occurs. In response to detecting the occurrence of the third specific event, the event detection unit 111 sends a third recording instruction corresponding to the third specific event to the event recording unit 112. The third recording instruction may be used, for example, to instruct the event recording unit 112 to perform the aforementioned eighth recording operation (or perform other recording operations). That is, by detecting whether a third specific event occurs, the event recording controller 110 can record related information to the battery backup memory 120 while the interrupt event occurs.
在一實施例中,處理器130根據所執行的應用程式發送記錄事件指令給事件偵測單元111。反應於所接收的記錄事件指令,事件偵測單元111判定所述多個特定事件中的第四特定事件發生。反應於偵測到第四特定事件發生,事件偵測單元發送對應所述第四特定事件的第四記錄指令至事件記錄單元112。也就是說,事件記錄控制器110提供了一個功能,使執行於處理器130中的應用程式或軟體可直接發送用以記錄特定事件/特定訊息的記錄事件指令給事件記錄控制器110,以使事件記錄控制器110記錄所述特定事件/特定訊息至電池備份記憶體120。此外,事件記錄控制器110亦可記錄更多的相關於所述特定事件/特定訊息的資訊至電池備份記憶體120。In one embodiment, the processor 130 sends a record event instruction to the event detection unit 111 according to the executed application program. In response to the received recording event instruction, the event detection unit 111 determines that a fourth specific event of the plurality of specific events occurs. In response to detecting the occurrence of the fourth specific event, the event detection unit sends a fourth recording instruction corresponding to the fourth specific event to the event recording unit 112. That is, the event recording controller 110 provides a function, so that an application program or software executed in the processor 130 can directly send a recording event instruction to record a specific event / specific message to the event recording controller 110, so that The event recording controller 110 records the specific event / specific message to the battery backup memory 120. In addition, the event recording controller 110 can also record more information related to the specific event / specific message to the battery backup memory 120.
在一實施例中,事件偵測單元111判斷主記憶體150的第一目標位址是否被寫入特定值。具體來說,事件偵測單元111可主動地監測主記憶體150的特定區段(第一目標位址)是否被寫入特定的資料。若是,則反應於判定所述特定值被寫入至該第一目標位址,該事件偵測單元111判定所述多個特定事件中的第五特定事件發生。反應於偵測到所述第五特定事件發生,該事件偵測單元發送對應所述第五特定事件的第五記錄指令至所述事件記錄單元112(若所述第一目標位址被寫入的值並非所述特定值,則不會判定第五特定事件發生)。也就是說,廠商可根據特殊的事件或是自身的需求來設定上述的第一目標位址及對應的特定值,並且也可設定第五記錄指令的內容。接著,藉由偵測第五特定事件是否發生(監測到此特殊態樣的事件發生了),事件記錄控制器110可根據所設定的第五記錄指令記錄相關的資訊至電池備份記憶體120。應注意的是,在另一實施例中,第五記錄指令可用以指示持續地隨著時間重複執行上述的一或多個記錄操作,已達成類似對特殊事件的發生地點錄影的效果(反之,僅執行一次的記錄操作可視為“拍照”的效果)。In one embodiment, the event detection unit 111 determines whether the first target address of the main memory 150 is written into a specific value. Specifically, the event detection unit 111 may actively monitor whether a specific section (first target address) of the main memory 150 is written with specific data. If yes, in response to determining that the specific value is written to the first target address, the event detection unit 111 determines that a fifth specific event among the plurality of specific events occurs. In response to detecting the occurrence of the fifth specific event, the event detection unit sends a fifth recording instruction corresponding to the fifth specific event to the event recording unit 112 (if the first target address is written If the value of is not the specific value, a fifth specific event is not determined to have occurred). That is, the manufacturer may set the first target address and the corresponding specific value according to a special event or its own needs, and may also set the content of the fifth recording instruction. Then, by detecting whether or not a fifth specific event has occurred (monitoring that this particular aspect of the event has occurred), the event recording controller 110 can record related information to the battery backup memory 120 according to the set fifth recording instruction. It should be noted that, in another embodiment, the fifth recording instruction may be used to indicate that one or more of the above-mentioned recording operations are performed repeatedly and continuously over time, and the effect similar to the recording of the place where the special event occurs (or vice versa, A recording operation that is performed only once can be regarded as a "photographing effect").
在一實施例中,事件偵測單元111偵測主記憶體150的第二目標位址是否被存取。反應於偵測到該第二目標位址被存取,該事件偵測單元111判定所述多個特定事件中的第六特定事件發生。相似於上述判斷第六特定事件發生的方式,事件偵測單元111也會去偵測主記憶體150的特定區段(第二目標位址),但不同之處在於,事件偵測單元111僅需要偵測是否所述第二目標位址有被存取,不需要去檢驗是否有被寫入特定值。反應於偵測到第六特定事件發生,該事件偵測單元111發送對應該第六特定事件的第六記錄指令至該事件記錄單元112。廠商可設定上述的第二目標位址及第六記錄指令的內容。應注意的是,在另一實施例中,第六記錄指令亦可用以指示持續地隨著時間重複執行上述的一或多個記錄操作,已達成類似對特殊事件的發生地點錄影的效果。In one embodiment, the event detection unit 111 detects whether the second target address of the main memory 150 is accessed. In response to detecting that the second target address is accessed, the event detection unit 111 determines that a sixth specific event among the plurality of specific events occurs. Similar to the above-mentioned method for judging the occurrence of the sixth specific event, the event detection unit 111 will also detect a specific section (second target address) of the main memory 150, but the difference is that the event detection unit 111 only It is necessary to detect whether the second target address is accessed, and it is not necessary to check whether a specific value is written. In response to detecting the occurrence of the sixth specific event, the event detection unit 111 sends a sixth recording instruction corresponding to the sixth specific event to the event recording unit 112. The manufacturer can set the contents of the second target address and the sixth recording instruction. It should be noted that, in another embodiment, the sixth recording instruction may also be used to instruct the above-mentioned one or more recording operations to be repeatedly performed over time, which has achieved a similar effect to recording the location of a special event.
在一實施例中,事件偵測單元111偵測匯流排170是否發生錯誤。反應於偵測到匯流排170發生錯誤,該事件偵測單元111判定所述多個特定事件中的第七特定事件發生。反應於偵測到所述第七特定事件發生,事件偵測單元11發送對應所述第七特定事件的第七記錄指令至所述事件記錄單元112。也就是說,事件偵測單元111可偵測用以連接電子裝置的所有元件的匯流排170是否發生錯誤。也就是說,藉由偵測第七特定事件是否發生,事件記錄控制器110可在匯流排發生錯誤的同時,也記錄相關的資訊至電池備份記憶體120。In one embodiment, the event detection unit 111 detects whether an error occurs in the bus 170. In response to detecting an error in the bus 170, the event detection unit 111 determines that a seventh specific event among the specific events occurs. In response to detecting the occurrence of the seventh specific event, the event detection unit 11 sends a seventh recording instruction corresponding to the seventh specific event to the event recording unit 112. That is, the event detection unit 111 can detect whether an error occurs in the bus 170 used to connect all components of the electronic device. That is, by detecting whether a seventh specific event occurs, the event recording controller 110 can record related information to the battery backup memory 120 at the same time as an error occurs in the bus.
在一實施例中,當所述多個特定事件中的上述一或多個特定事件發生時,處理器130可能會發生不可正常運作的狀況。也就是說,在此實施例中,當一個特定事件發生或多個特定事件同時/接連發生時,處理器130會不可正常運作(如,停止運作或是運作異常)。例如,處理器130不能按照原來所執行的程序進行運算或處理。又例如,處理器130本身運算崩潰或死當。在此情況下,本發明之實施例所提供的事件記錄控制器110,可不依靠處理器130,自身主動地偵測所述一或多個特定事件的發生,而可自動地產生對應的記錄指令,以執行對應的記錄操作,進而在不需要處理器130的情況下來記錄對應所述一或多個特定事件的事件資訊。In an embodiment, when the one or more specific events among the multiple specific events occur, the processor 130 may fail to operate normally. That is, in this embodiment, when a specific event occurs or multiple specific events occur simultaneously / in succession, the processor 130 may not operate normally (for example, stop operation or abnormal operation). For example, the processor 130 cannot perform operations or processing according to a program originally executed. As another example, the processor 130 itself crashes or dies. In this case, the event recording controller 110 provided by the embodiment of the present invention can automatically detect the occurrence of the one or more specific events without relying on the processor 130, and can automatically generate corresponding recording instructions. To perform a corresponding recording operation, and further record event information corresponding to the one or more specific events without requiring the processor 130.
應注意的是,在一實施例中,事件偵測單元111持續偵測多個特定事件的其中之多個特定事件是否發生(S21),以反應於所偵測到之所發生的多個特定事件的發生,來發送對應的記錄指令至事件記錄單元112(S23),進而讓事件記錄單元112可根據一或多個記錄指令,不經由處理器130的控制,執行上述一或多種的記錄操作,進而達成自動地將對應所發生的所述多個特定事件的事件資訊從電子裝置10的多個元件中的被所述記錄指令所指示的一或多個元件記錄至電池備份記憶體120(S25)。換言之,事件偵測單元111可持續偵測第一~第七特定事件中的一或多個是否發生(同時發生,或是在一預定期間內一起發生),並且據此產生出對應的記錄指令以指示事件記錄單元112來記錄相關的事件資訊。It should be noted that, in an embodiment, the event detection unit 111 continuously detects whether a plurality of specific events of the plurality of specific events occur (S21), in response to the detected multiple specific events that occur. When an event occurs, a corresponding recording instruction is sent to the event recording unit 112 (S23), so that the event recording unit 112 can perform one or more of the above-mentioned recording operations according to one or more recording instructions without the control of the processor 130. , Thereby achieving automatic recording of event information corresponding to the plurality of specific events that have occurred from one or more of the components of the electronic device 10 indicated by the recording instruction to the battery backup memory 120 ( S25). In other words, the event detecting unit 111 can continuously detect whether one or more of the first to seventh specific events occur (simultaneously or together within a predetermined period), and generate corresponding recording instructions accordingly. The event recording unit 112 is instructed to record related event information.
值得一提的是,在本實施例中,當電池備份記憶體120的可用空間不足時,會直接覆寫所儲存的最舊的資料。此外,在一實施例中,當電池備份記憶體120的可用空間不足時,會直接覆寫所儲存的資料中最不重要的資料(廠商可設定上述第一~第七特定事件的重要度)。It is worth mentioning that, in this embodiment, when the available space of the battery backup memory 120 is insufficient, the oldest data stored will be directly overwritten. In addition, in an embodiment, when the available space of the battery backup memory 120 is insufficient, the least important data in the stored data is directly overwritten (the manufacturer may set the importance of the first to seventh specific events described above) .
然而,在另一實施例中,儲存在電池備份記憶體120的資料不會被覆寫。直到所儲存的資料都被妥善讀取(如,被用戶或相關人員經由對應事件記錄控制器的軟體備份至其他可靠的儲存裝置中)且被下達特定重置指令時,儲存在電池備份記憶體120的資料會被清空。在此另一實施例中,當電池備份記憶體120不具有任何可用空間時,事件記錄控制器110可發出警示通知。However, in another embodiment, the data stored in the battery backup memory 120 is not overwritten. Until the stored data is properly read (for example, backed up by the user or related personnel to other reliable storage devices through the software of the corresponding event recording controller) and a specific reset command is issued, it is stored in the battery backup memory 120 data will be cleared. In another embodiment, when the battery backup memory 120 does not have any available space, the event recording controller 110 may issue a warning notification.
此外,若在電子裝置10閒置時,事件記錄控制器110亦可由舊到新將儲存於電池備份記憶體120的資料移動(備份)到電子裝置10的儲存裝置中的隱藏區域(或非隱藏區域)。在儲存裝置中用以儲存所移動的原本儲存在電池備份記憶體120的資料的空間會受到限制。In addition, if the electronic device 10 is idle, the event recording controller 110 can also move (back up) the data stored in the battery backup memory 120 from the old to the new to a hidden area (or a non-hidden area) in the storage device of the electronic device 10 ). A space in the storage device for storing the moved data originally stored in the battery backup memory 120 may be limited.
此外,在一實施例中,事件記錄控制器110還可在特定時機點,透過網路連線,上傳所記錄的資料於廠商所設置的雲端伺服器。所述特定時機點例如是電子裝置10進行維護時,主動詢問用戶且獲得允許時,更新電子裝置10所使用的系統(或作業系統)時。In addition, in an embodiment, the event recording controller 110 may also upload the recorded data to a cloud server set by the manufacturer through a network connection at a specific timing. The specific timing point is, for example, when the electronic device 10 performs maintenance, actively asks a user and obtains permission, and updates a system (or operating system) used by the electronic device 10.
值得一提的是,在一實施例中,事件記錄單元112可根據對應的記錄指令,在一記錄期間內重複地執行所執行的一或多個記錄操作。具體來說,為了在特定事件發生後,可以連續地在當下及隨後的多個時間點記錄相關的資訊/資料,事件偵測單元111所產生的記錄指令可指示重複地在記錄期間內執行一或多個記錄操作,或是分別設定每個所欲執行的記錄操作的執行次數與執行的時間點。所述記錄期間是可被設定為一或多個時間段或不被限制時間長度。It is worth mentioning that, in an embodiment, the event recording unit 112 may repeatedly perform one or more recording operations performed during a recording period according to a corresponding recording instruction. Specifically, in order to continuously record relevant information / data at the present and subsequent multiple time points after a specific event occurs, the recording instruction generated by the event detection unit 111 may instruct to repeatedly execute a Or multiple recording operations, or setting the execution times and time points of each recording operation to be performed separately. The recording period may be set to one or more time periods or an unlimited time period.
在本實施例中,所上傳至雲端伺服器、所備份於儲存裝置或記錄於電池備份記憶體120的資料可被用來辨識電子裝置10發生對應的特定事件時當下的一或多個元件的硬件狀況、各種元件的登錄器的內容、所執行的各種程序及相關內容(程式的足跡、記憶體的內容、正執行與執行過的程序)、感測器所感測的資料、時間等當下的相關資訊,以分析發生特定事件的原因,進而可解決這些導致特定事件發生的原因且改良電子裝置10的整體架構及各元件的功能。In this embodiment, the data uploaded to the cloud server, backed up in the storage device, or recorded in the battery backup memory 120 can be used to identify the current one or more components of the electronic device 10 when a corresponding specific event occurs. The hardware status, the contents of the register of various components, the various programs executed and related content (the footprint of the program, the contents of the memory, the programs being executed and executed), the data sensed by the sensor, the time, etc. Relevant information to analyze the causes of specific events, which can then resolve these causes of specific events and improve the overall structure of the electronic device 10 and the functions of each component.
綜上所述,本發明的實施例所提供的事件記錄控制器,可反應於所偵測的特定事件(錯誤事件)的發生,不經由其所屬的電子裝置的處理器的控制,自動地將對應所發生的所述特定事件之事件資訊從所述電子裝置的多個元件中的一或多個元件記錄至電池備份記憶體,以在所述處理器無法正常運作的情況下,依然可迅速地記錄相關於特定事件的資訊,並且使相關人員可藉由所記錄的資訊來了解且修正導致所發生的特定事件的原因,進而改善電子裝置的整體效能。In summary, the event recording controller provided by the embodiment of the present invention can automatically respond to the occurrence of a specific event (error event) detected without automatically controlling the processor of the electronic device to which it belongs. Event information corresponding to the specific event that has occurred is recorded from one or more of the multiple components of the electronic device to a battery backup memory, so that the processor can still quickly respond to the situation that the processor cannot operate normally. The information related to a specific event is recorded, and related personnel can use the recorded information to understand and correct the cause of the specific event, thereby improving the overall performance of the electronic device.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above with the examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some modifications and retouching without departing from the spirit and scope of the present invention. The protection scope of the present invention shall be determined by the scope of the attached patent application.
10‧‧‧電子裝置 10‧‧‧ electronic device
110‧‧‧事件記錄控制器 110‧‧‧Event Record Controller
111‧‧‧事件偵測單元 111‧‧‧Event Detection Unit
112‧‧‧事件記錄單元 112‧‧‧Event Recording Unit
120‧‧‧電池備份記憶體 120‧‧‧ battery backup memory
130‧‧‧處理器 130‧‧‧ processor
140‧‧‧中斷控制器 140‧‧‧ Interrupt Controller
150‧‧‧主記憶體 150‧‧‧ main memory
160、160(1)、160(2)~160(N)‧‧‧週邊裝置 160, 160 (1), 160 (2) ~ 160 (N) ‧‧‧ Peripherals
170‧‧‧系統匯流排/匯流排 170‧‧‧System Bus / Bus
S21、S23、S25‧‧‧事件記錄控制器的運作步驟 Operation steps of S21, S23, S25 ‧‧‧ event record controller
圖1是根據本發明的一實施例所繪示的事件記錄控制器及其所屬之電子裝置的方塊示意圖。 圖2是根據本發明的一實施例所繪示的事件記錄控制器的運作流程圖。FIG. 1 is a block diagram illustrating an event recording controller and an electronic device to which the event recording controller belongs according to an embodiment of the present invention. FIG. 2 is an operation flowchart of the event recording controller according to an embodiment of the present invention.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106146389A TWI657337B (en) | 2017-12-29 | 2017-12-29 | Event recording controller and electronic device |
| CN201811617681.0A CN110018921B (en) | 2017-12-29 | 2018-12-28 | Event logging controller and electronics |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW106146389A TWI657337B (en) | 2017-12-29 | 2017-12-29 | Event recording controller and electronic device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI657337B true TWI657337B (en) | 2019-04-21 |
| TW201931120A TW201931120A (en) | 2019-08-01 |
Family
ID=66996002
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW106146389A TWI657337B (en) | 2017-12-29 | 2017-12-29 | Event recording controller and electronic device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110018921B (en) |
| TW (1) | TWI657337B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI885517B (en) * | 2023-10-06 | 2025-06-01 | 新唐科技股份有限公司 | Microcontroller circuit, analysis system, and control method |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| 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 prior to system failure |
| TW201633133A (en) * | 2015-03-06 | 2016-09-16 | 廣達電腦股份有限公司 | Method and system of automatic debug information collection |
| TW201714085A (en) * | 2015-10-02 | 2017-04-16 | 緯創資通股份有限公司 | Method for monitoring server, monitoring device and monitoring system |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000293273A (en) * | 1999-04-05 | 2000-10-20 | Toshiba Corp | Data recording device and data recording device control method |
| JP2009205213A (en) * | 2008-02-26 | 2009-09-10 | Epson Toyocom Corp | Event recorder and electronic device therewith |
| JP6145987B2 (en) * | 2012-10-15 | 2017-06-14 | 富士電機株式会社 | Programmable controller, programmable controller data backup method, programmable controller activation method |
| KR101502725B1 (en) * | 2014-04-03 | 2015-03-16 | 재단법인 다차원 스마트 아이티 융합시스템 연구단 | Apparatus and method for using buffer to manage files in storage of video event data recorder |
| US9431097B2 (en) * | 2014-12-22 | 2016-08-30 | Qualcomm Incorporated | Volatile/non-volatile SRAM device |
-
2017
- 2017-12-29 TW TW106146389A patent/TWI657337B/en active
-
2018
- 2018-12-28 CN CN201811617681.0A patent/CN110018921B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| 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 prior to system failure |
| TW201633133A (en) * | 2015-03-06 | 2016-09-16 | 廣達電腦股份有限公司 | Method and system of automatic debug information collection |
| TW201714085A (en) * | 2015-10-02 | 2017-04-16 | 緯創資通股份有限公司 | Method for monitoring server, monitoring device and monitoring system |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI885517B (en) * | 2023-10-06 | 2025-06-01 | 新唐科技股份有限公司 | Microcontroller circuit, analysis system, and control method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110018921A (en) | 2019-07-16 |
| CN110018921B (en) | 2022-11-11 |
| TW201931120A (en) | 2019-08-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108549591B (en) | Black box device of embedded system and implementation method thereof | |
| KR102656509B1 (en) | Improved durability for systems on chips (SOCs) | |
| CN104137077B (en) | Processor system | |
| CN112462920B (en) | Method, device, server and storage medium for power control | |
| CN117055718B (en) | System, method, device, equipment and storage medium for detecting power consumption of server | |
| US8880860B2 (en) | Methods and apparatus for saving conditions prior to a reset for post reset evaluation | |
| US20060242517A1 (en) | Monitoring a data processor to detect abnormal operation | |
| TWI657337B (en) | Event recording controller and electronic device | |
| JP2001318807A (en) | Method and device for controlling task switching | |
| US20110107072A1 (en) | Method for self-diagnosing system management interrupt handler | |
| CN119668923A (en) | A memory monitoring method, device, system, equipment and medium | |
| TW202132982A (en) | System and method for monitoring and recovering heterogeneous components | |
| CN114327972B (en) | Data processing method and device based on solid-state drive | |
| TWI832188B (en) | Computer system and method implemented in computer system | |
| JPWO2014112039A1 (en) | Information processing apparatus, information processing apparatus control method, and information processing apparatus control program | |
| CN120429122B (en) | Thread debugging method, device, control system and electronic equipment | |
| CN102053907A (en) | Self-diagnosis method of system management interrupt handler | |
| CN112099980A (en) | Server and control method of error event record loading function | |
| JPH06214831A (en) | Abnormality detector for central processing unit | |
| JPH0869593A (en) | Plant performance monitoring system | |
| CN121501564A (en) | Chip reset methods, devices, chips, equipment, network interface cards, storage media, and software products | |
| WO2025194942A1 (en) | Memory detection method and apparatus | |
| JPH041831A (en) | Monitor system for program runaway | |
| JPH0149975B2 (en) | ||
| CN120704937A (en) | Information collection system, method, device, medium and program product |