TWI764342B - Startup status detection system and method thereof - Google Patents

Startup status detection system and method thereof

Info

Publication number
TWI764342B
TWI764342B TW109137259A TW109137259A TWI764342B TW I764342 B TWI764342 B TW I764342B TW 109137259 A TW109137259 A TW 109137259A TW 109137259 A TW109137259 A TW 109137259A TW I764342 B TWI764342 B TW I764342B
Authority
TW
Taiwan
Prior art keywords
activation
state detection
potential
processing module
logic processing
Prior art date
Application number
TW109137259A
Other languages
Chinese (zh)
Other versions
TW202217554A (en
Inventor
王彥庚
Original Assignee
英業達股份有限公司
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 英業達股份有限公司 filed Critical 英業達股份有限公司
Priority to TW109137259A priority Critical patent/TWI764342B/en
Publication of TW202217554A publication Critical patent/TW202217554A/en
Application granted granted Critical
Publication of TWI764342B publication Critical patent/TWI764342B/en

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A startup status detection system and method are provided in the present invention. The startup status detection system includes a first logic processing module, a storing module, and a second logic processing module. The first logic processing module provides a startup-control signal to the second logic processing module to make the second logic processing module load a startup program stored in the storing module. The second logic processing module is configured to provide an idle signal which is a first electrical level and provide a successful signal which is a second electrical level when the second logic processing module loads the startup program successfully. The first logic processing module is configured to make the second logic processing module reloads the startup program when the first logic processing module is not received the successful signal within a status detection time.

Description

啟動狀態偵測系統及其方法Startup state detection system and method thereof

本發明係有關於一種啟動狀態偵測系統及其方法,尤其是指一種應用於通信裝置之啟動狀態偵測系統及其方法。The present invention relates to an activation state detection system and a method thereof, and more particularly, to an activation state detection system and a method thereof applied to a communication device.

隨著科技的進步,網路卡已經成為現有連接網路設備不可或缺之通信裝置,例如伺服器主機、監控設備、不斷電系統(Uninterruptible Power Supply, USP)、閘道器(Gateway)等,使用者可透過上述裝置的獨立網頁介面進行管理,也為了因應使用者的需求,現今業者也在網路卡上增加了許多功能,因而設計出了智慧網路卡,其中以增加現場可程式化邏輯閘陣列(Field Programmable Gate Array, FPGA,以下簡稱FPGA)功能的網卡(即FPGA增強型網路卡)成為市場主流。With the advancement of technology, network cards have become an indispensable communication device for existing network equipment, such as server hosts, monitoring equipment, Uninterruptible Power Supply (USP), gateways, etc. , the user can manage through the independent web interface of the above-mentioned device. In order to meet the needs of users, the industry has also added many functions to the network card, so they have designed a smart network card, which can increase the field programmable The network card with the function of Field Programmable Gate Array (FPGA, hereinafter referred to as FPGA) (ie FPGA-enhanced network card) has become the mainstream of the market.

其中,FPGA增強型智慧網路卡可以提供了向後相容性,特別是對於超級管理程式的相容性,也因為其與現有網路應用程式介面和介面協定相容,因此可以使用現有的應用程式介面和驅動程式而不需再另行設計。Among them, the FPGA-enhanced smart network card can provide backward compatibility, especially for hypervisor compatibility, and because it is compatible with existing network APIs and interface protocols, existing applications can be used. Programming interface and driver without further design.

一般來說,FPGA增強型智慧網路卡在啟動時,內部的FPGA需要載入外部儲存模組所儲存大約1GigaByte(GB)大小的韌體(Firmware)檔,而在讀取執行韌體檔的過程中,若失敗的話,系統會識別不出此張智慧網路卡而導致系統出問題,即使關閉系統再重新啟動也無法啟動此張網路卡,而是必須完全斷電再重新啟動才可順利重新啟動此張網路卡,當使用者在機房內大量遇到這些問題的話,即造成使用者非常大的不便利,因此目前現有技術仍具備改善之空間。Generally speaking, when the FPGA-enhanced smart network card is started, the internal FPGA needs to load a firmware file of about 1 GigaByte (GB) size stored in the external storage module, and read and execute the firmware file. During the process, if it fails, the system will not recognize the smart network card and cause system problems. Even if the system is shut down and restarted, the network card cannot be activated, but it must be completely powered off and then restarted to be successful. Restarting the network card will cause great inconvenience to users when a large number of users encounter these problems in the computer room. Therefore, the existing technology still has room for improvement.

有鑒於在先前技術中,如智慧網路卡之通信裝置普遍存在有需要斷電才能成功重新啟動而造成使用者不方便之問題。本發明之一主要目的係提供一種啟動狀態偵測系統及其方法,透過兩個邏輯處理模組之間的信號傳輸以解決先前技術中所述之問題。In view of the fact that in the prior art, communication devices such as smart network cards generally need to be powered off to restart successfully, which causes inconvenience to users. One of the main objectives of the present invention is to provide an activation state detection system and a method thereof, which solve the problems mentioned in the prior art through signal transmission between two logic processing modules.

本發明為解決先前技術之問題,所採用之必要技術手段為提供一種啟動狀態偵測系統,係應用於一通信裝置,並包含一第一邏輯處理模組、一儲存模組以及一第二邏輯處理模組。第一邏輯處理模組係包含一啟動控制單元以及一啟動狀態偵測單元,啟動控制單元用以發送出一啟動控制信號。啟動狀態偵測單元係電性連接於啟動控制單元,並設有一狀態偵測時間。In order to solve the problems of the prior art, the necessary technical means adopted by the present invention is to provide a startup state detection system, which is applied to a communication device and includes a first logic processing module, a storage module and a second logic module. Processing modules. The first logic processing module includes an activation control unit and an activation state detection unit, and the activation control unit is used for sending an activation control signal. The activation state detection unit is electrically connected to the activation control unit and has a state detection time.

儲存模組係儲存有一啟動程式,第二邏輯處理模組係通信連接於啟動控制單元、啟動狀態偵測單元與儲存模組,用以在一閒置狀態下發送出一為一第一電位之閒置信號,並用以在接收到啟動控制信號時,讀取並執行啟動程式,藉以在一執行成功狀態時發送出一為一相異於第一電位之第二電位之執行成功信號。The storage module stores a start-up program, and the second logic processing module is communicatively connected to the start-up control unit, the start-up state detection unit and the storage module, and is used for sending an idle state of a first potential in an idle state The signal is used to read and execute the activation program when receiving the activation control signal, so as to send an execution success signal of a second potential different from the first potential in an execution success state.

其中,啟動狀態偵測單元在狀態偵測時間內接收到為第二電位之執行成功信號時,係判斷第二邏輯處理模組成功執行啟動程式,並判斷出通信裝置為一啟動成功狀態;啟動狀態偵測單元在狀態偵測時間外仍接收到為第一電位之閒置信號時,係判斷出第二邏輯處理模組為一啟動失敗狀態,並將一為一第三電位之重新啟動信號發送至啟動控制單元,藉以使啟動控制單元重新發送出啟動控制信號,據以使第二邏輯處理模組重新讀取並執行啟動程式。Wherein, when the activation state detection unit receives an execution success signal of the second potential within the state detection time, it determines that the second logic processing module successfully executes the activation program, and determines that the communication device is in a successful activation state; When the state detection unit still receives the idle signal of the first potential outside the state detection time, it determines that the second logic processing module is in a failure state of activation, and sends a restart signal of a third potential to the start-up control unit, so that the start-up control unit re-sends the start-up control signal, so that the second logic processing module re-reads and executes the start-up program.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為通信裝置為一網路卡,第一邏輯處理模組為一複雜可程式邏輯裝置(Complex Programmable Logic Device, CPLD)與一系統單晶片(System on a Chip, SOC)中之一者,第二邏輯處理模組為一現場可程式化邏輯閘陣列(Field Programmable Gate Array, FPGA)。第一電位與第三電位為標記為0之低電位,第二電位為標記為1之高電位,狀態偵測時間為1200毫秒。On the basis of the above necessary technical means, an auxiliary technical means derived from the present invention is that the communication device is a network card, the first logic processing module is a Complex Programmable Logic Device (CPLD) and a One of the System on a Chip (SOC), the second logic processing module is a Field Programmable Gate Array (Field Programmable Gate Array, FPGA). The first potential and the third potential are a low potential marked as 0, the second potential is a high potential marked as 1, and the state detection time is 1200 milliseconds.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為第二邏輯處理模組更包含一處理單元以及一執行狀態判斷單元。處理單元通信連接於啟動控制單元、啟動控制單元與儲存模組,用以在一閒置狀態下發送出閒置信號,並用以在接收到啟動控制信號時,讀取並執行啟動程式,藉以在執行成功狀態時發送出執行成功信號。執行狀態判斷單元係電性連接於處理單元與啟動狀態偵測單元,設有一包含有閒置狀態與第一電位之對應關係以及包含有執行成功狀態與第二電位之對應關係之狀態判斷表,用以在接收到執行成功信號時,依據狀態判斷表將為第二電位之執行成功信號發送至啟動狀態偵測單元,並用以在接收到閒置信號時,依據狀態判斷表將為第一電位之閒置信號發送至啟動狀態偵測單元。On the basis of the above necessary technical means, an auxiliary technical means derived from the present invention is that the second logic processing module further includes a processing unit and an execution state judgment unit. The processing unit is communicatively connected to the activation control unit, the activation control unit and the storage module, and is used for sending an idle signal in an idle state, and is used to read and execute the activation program when the activation control signal is received, so that the execution is successful. In the state, a successful execution signal is sent. The execution state judgment unit is electrically connected to the processing unit and the activation state detection unit, and is provided with a state judgment table including the corresponding relationship between the idle state and the first potential and the corresponding relationship between the execution successful state and the second potential. When receiving the execution success signal, according to the state judgment table, the execution success signal of the second level is sent to the start-up state detection unit, and when the idle signal is received, according to the state judgment table, the first level is idle according to the state judgment table. The signal is sent to the activation state detection unit.

本發明為解決先前技術之問題,所採用之必要技術手段為另外提供一種啟動狀態偵測方法,係利用上述之啟動狀態偵測系統加以實施,其主要係先利用第一邏輯處理模組之啟動控制單元發送出啟動控制信號;接著再利用第二邏輯處理模組接收啟動控制信號,藉以讀取並執行啟動程式;然後再利用啟動狀態偵測單元判斷是否在狀態偵測時間內接收到第二邏輯處理模組在執行成功狀態時所發送出之為第二電位之執行成功信號,在判斷結果為是時,再利用啟動狀態偵測單元判斷第二邏輯處理模組成功執行啟動程式,並判斷出通信裝置為啟動成功狀態;在判斷結果為否時,利用啟動狀態偵測單元將為第三電位之重新啟動信號發送至啟動控制單元,藉以使啟動控制單元重新發送出啟動控制信號,據以使第二邏輯處理模組重新讀取並執行啟動程式。In order to solve the problem of the prior art, the necessary technical means adopted by the present invention is to provide an activation state detection method, which is implemented by using the above-mentioned activation state detection system. The control unit sends an activation control signal; then the second logic processing module is used to receive the activation control signal, so as to read and execute the activation program; When the logic processing module is in the successful execution state, the execution success signal of the second potential is sent. When the judgment result is yes, the activation state detection unit is used to determine that the second logic processing module has successfully executed the activation program, and determine The communication device is in a successful startup state; when the determination result is no, the startup state detection unit is used to send the restart signal of the third potential to the startup control unit, so that the startup control unit re-sends the startup control signal, and accordingly Make the second logic processing module re-read and execute the startup program.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為通信裝置為一網路卡,第一邏輯處理模組為一複雜可程式邏輯裝置(Complex Programmable Logic Device, CPLD)與一系統單晶片(System on a Chip, SOC)中之一者,第二邏輯處理模組為一現場可程式化邏輯閘陣列(Field Programmable Gate Array, FPGA)。第一電位與第三電位為標記為0之低電位,第二電位為標記為1之高電位,狀態偵測時間為1200毫秒。On the basis of the above necessary technical means, an auxiliary technical means derived from the present invention is that the communication device is a network card, the first logic processing module is a Complex Programmable Logic Device (CPLD) and a One of the System on a Chip (SOC), the second logic processing module is a Field Programmable Gate Array (Field Programmable Gate Array, FPGA). The first potential and the third potential are a low potential marked as 0, the second potential is a high potential marked as 1, and the state detection time is 1200 milliseconds.

承上所述,本發明所提供之啟動狀態偵測系統及其方法,由於是在狀態偵測時間內未接收到為相異於第一電位之第二電位之執行成功信號,因而第一邏輯處理模組可直接觸發第二邏輯處理模組再重新讀取並執行啟動程式,使得使用者不需要再透過斷電的手段才能使通信裝置重新啟動,因而可大幅提升使用者在使用上的便利性,並能提升通信裝置的工作穩定度。Continuing from the above, in the startup state detection system and method provided by the present invention, since the execution success signal of the second potential different from the first potential is not received within the state detection time, the first logic The processing module can directly trigger the second logic processing module to read and execute the startup program again, so that the user does not need to power off the communication device to restart the communication device, thus greatly improving the convenience of the user. and can improve the working stability of the communication device.

下面將結合示意圖對本發明的具體實施方式進行更詳細的描述。根據下列描述和申請專利範圍,本發明的優點和特徵將更清楚。需說明的是,圖式均採用非常簡化的形式且均使用非精準的比例,僅用以方便、明晰地輔助說明本發明實施例的目的。The specific embodiments of the present invention will be described in more detail below with reference to the schematic diagrams. The advantages and features of the present invention will become more apparent from the following description and the scope of the claims. It should be noted that the drawings are all in a very simplified form and use inaccurate scales, and are only used to facilitate and clearly assist the purpose of explaining the embodiments of the present invention.

請參閱第一圖,第一圖係顯示本發明較佳實施例所提供之啟動狀態偵測系統之方塊圖。如圖所示,本發明所提供之啟動狀態偵測系統1係應用於一通信裝置2,通信裝置2例如是一網路卡,但不限於此,前述之網路卡例如是現有之智慧網卡。另外,本發明較佳實施例中所述之通信連接係指有線通信連接,但在其他實施例中可為無線通信連接,其係視實務上之設計而定。Please refer to the first figure. The first figure is a block diagram of a startup state detection system provided by a preferred embodiment of the present invention. As shown in the figure, the activation state detection system 1 provided by the present invention is applied to a communication device 2. The communication device 2 is, for example, a network card, but is not limited to this. The aforementioned network card is, for example, an existing smart network card. . In addition, the communication connection described in the preferred embodiment of the present invention refers to a wired communication connection, but in other embodiments, it can be a wireless communication connection, which depends on practical design.

啟動狀態偵測系統1包含一第一邏輯處理模組11、一儲存模組12以及一第二邏輯處理模組13,第一邏輯處理模組11例如可為一複雜可程式邏輯裝置(Complex Programmable Logic Device, CPLD,以下簡稱CPLD)與一系統單晶片(System on a Chip, SOC)中之一者,本發明較佳實施例中為CPLD,但其他實施利中不限於此。第一邏輯處理模組11包含一啟動控制單元111以及一啟動狀態偵測單元112,其中,啟動控制單元111以及啟動狀態偵測單元112可為現有之處理器,啟動狀態偵測單元112係電性連接於啟動控制單元111,並且設有一狀態偵測時間,此狀態偵測時間例如為1200毫秒,但其他實施例中不限於此。The startup state detection system 1 includes a first logic processing module 11 , a storage module 12 and a second logic processing module 13 . The first logic processing module 11 may be, for example, a complex programmable logic device (Complex Programmable Logic Device). One of Logic Device, CPLD, hereinafter referred to as CPLD) and a system on a chip (System on a Chip, SOC) is a CPLD in a preferred embodiment of the present invention, but other implementations are not limited to this. The first logic processing module 11 includes an activation control unit 111 and an activation state detection unit 112, wherein the activation control unit 111 and the activation state detection unit 112 may be existing processors, and the activation state detection unit 112 is an electrical It is connected to the activation control unit 111 and has a state detection time, for example, the state detection time is 1200 milliseconds, but other embodiments are not limited to this.

儲存模組12係儲存有一啟動程式121,儲存模組12例如是一唯讀型記憶體,前述唯讀型記憶體例如可為一快閃記憶體(Flash Read-Only Memory, Flash ROM),而啟動程式121例如是韌體,但其他實施例中不限於此。The storage module 12 stores a startup program 121. The storage module 12 is, for example, a read-only memory. The read-only memory may be, for example, a flash memory (Flash Read-Only Memory, Flash ROM), and The startup program 121 is, for example, firmware, but other embodiments are not limited thereto.

第二邏輯處理模組13係通信連接於啟動控制單元111、啟動狀態偵測單元112與儲存模組12,並且例如可為一現場可程式化邏輯閘陣列(Field Programmable Gate Array, FPGA,以下簡稱為FPGA),但其他實施例中不限於此。The second logic processing module 13 is communicatively connected to the startup control unit 111 , the startup state detection unit 112 and the storage module 12 , and may be, for example, a Field Programmable Gate Array (FPGA, hereinafter abbreviated as FPGA) FPGA), but other embodiments are not limited to this.

具體來說,本發明較佳實施例之第二邏輯處理模組13還包含一處理單元131以及一執行狀態判斷單元132,處理單元131通信連接於啟動控制單元111、啟動狀態偵測單元112與儲存模組12。執行狀態判斷單元132係電性連接於處理單元131與啟動狀態偵測單元112,並設有一包含有一閒置(Idle)狀態與一第一電位之對應關係以及包含有一執行成功狀態與一第二電位之對應關係之狀態判斷表1321。另外,處理單元131以及執行狀態判斷單元132例如可為現有之處理器。Specifically, the second logic processing module 13 of the preferred embodiment of the present invention further includes a processing unit 131 and an execution state determination unit 132. The processing unit 131 is communicatively connected to the activation control unit 111, the activation state detection unit 112 and the Storage module 12 . The execution state determination unit 132 is electrically connected to the processing unit 131 and the activation state detection unit 112, and is provided with a corresponding relationship including an idle (Idle) state and a first level, and an execution success state and a second level The state judgment table 1321 of the corresponding relationship. In addition, the processing unit 131 and the execution state determination unit 132 can be, for example, existing processors.

其中,需要一提的是,本發明所述之閒置狀態也可為待機狀態,而執行成功狀態將於下進行詳述,上述第一電位為標記為0之低電位,上述第二電位為標記為1之高電位,因此,狀態判斷表1321例如可為下表: 狀態 電位 閒置狀態 0 執行成功狀態 1 It should be mentioned that the idle state of the present invention can also be a standby state, and the successful execution state will be described in detail below. The first potential is a low potential marked as 0, and the second potential is marked as a low potential. is a high potential of 1, therefore, the state judgment table 1321 can be, for example, the following table: state potential idle state 0 execution success status 1

第一邏輯處理模組11之啟動控制單元111用以發送出一啟動控制信號S1,第二邏輯處理模組13用以在閒置狀態下發送出為第一電位之閒置信號S3,舉例來說,第二邏輯處理模組13由於是FPGA,實務上FPGA設有一設定腳位(例如是CONFIG_DONE),在閒置狀態下此設定腳位所發送出的信號皆為標記為0的低電位信號。The activation control unit 111 of the first logic processing module 11 is used to send an activation control signal S1, and the second logic processing module 13 is used to send an idle signal S3 of a first potential in an idle state. For example, Since the second logic processing module 13 is an FPGA, in practice, the FPGA has a setting pin (eg CONFIG_DONE), and the signals sent by the setting pin are all low-level signals marked as 0 in an idle state.

第二邏輯處理模組13在接收到啟動控制信號S1時,讀取並執行啟動程式121,藉以在一執行成功狀態時發送出一為相異於第一電位之第二電位之執行成功信號S2。其中,需要一提的是,本案所定義的執行成功狀態即是FPGA成功載入啟動程式121並完成執行而使得通信裝置2成功啟動,且發送出執行成功信號S2的即是位於上述的設定腳位,但其他實施例中不限於此。When receiving the activation control signal S1, the second logic processing module 13 reads and executes the activation program 121, so as to send an execution success signal S2 with a second potential different from the first potential in an execution success state . Among them, it should be mentioned that the execution success state defined in this case is that the FPGA successfully loads the startup program 121 and completes the execution, so that the communication device 2 is successfully started, and the execution success signal S2 is sent out. bit, but not limited to this in other embodiments.

啟動狀態偵測單元112在狀態偵測時間內接收到為第二電位之執行成功信號S2時,係判斷第二邏輯處理模組13成功執行啟動程式121,並判斷出通信裝置2為一啟動成功狀態。其中啟動成功狀態即為上述通信裝置2成功啟動並運作之狀態。When the activation state detection unit 112 receives the execution success signal S2 of the second potential within the state detection time, it determines that the second logic processing module 13 successfully executes the activation program 121, and determines that the communication device 2 is a successful activation state. The successful activation state is the state in which the communication device 2 is successfully activated and operated.

啟動狀態偵測單元112在狀態偵測時間外仍接收到為第一電位之閒置信號S3時,係判斷出第二邏輯處理模組13為一啟動失敗狀態,並將一為一第三電位之重新啟動信號S4發送至啟動控制單元111,藉以使啟動控制單元111重新發送出啟動控制信號S1,據以使第二邏輯處理模組13重新讀取並執行啟動程式121。When the activation state detection unit 112 still receives the idle signal S3 of the first potential outside the state detection time, it determines that the second logic processing module 13 is in a failure state of activation, and sets one to a third potential. The restart signal S4 is sent to the start-up control unit 111 , so that the start-up control unit 111 re-sends the start-up control signal S1 , so that the second logic processing module 13 re-reads and executes the start-up program 121 .

其中,需要一提的是,上述第三電位為標記為0之低電位,且一般來說,啟動狀態偵測單元112若是在狀態偵測時間內還沒接收到執行成功信號S2時,即是在狀態偵測時間內未偵測到上述的設定接腳未從低電位轉換為高電位(標記由0轉換為1),在此狀況中即判定第二邏輯處理模組13在執行啟動程式121時遭遇錯誤而為啟動失敗狀態。Among them, it should be mentioned that the above-mentioned third potential is a low potential marked as 0, and generally speaking, if the activation state detection unit 112 has not received the execution success signal S2 within the state detection time, it is During the state detection time, it is not detected that the above-mentioned setting pin is not converted from low level to high level (the flag is converted from 0 to 1), in this state, it is determined that the second logic processing module 13 is executing the startup program 121 An error was encountered and the startup failed status.

在其他實施例中,第二邏輯處理模組13也可設定為在執行啟動程式121發生錯誤時,主動將為低電位的回饋信號發送至啟動狀態偵測單元112,使得啟動狀態偵測單元112將重新啟動信號S4傳送至啟動控制單元111而觸發第二邏輯處理模組13重新載入啟動程式121。In other embodiments, the second logic processing module 13 can also be set to actively send a low-level feedback signal to the activation state detection unit 112 when an error occurs in the execution of the activation program 121 , so that the activation state detection unit 112 The restart signal S4 is sent to the startup control unit 111 to trigger the second logic processing module 13 to reload the startup program 121 .

此外,本發明較佳實施例中,第二邏輯處理模組13係進一步透過處理單元131與執行狀態判斷單元132進行處理,以具體確認送出何種電位之信號。舉例來說,處理單元131在閒置狀態下發送出閒置信號S3,並在接收到啟動控制信號S1時,讀取並執行啟動程式121,藉以在執行成功狀態時發送出執行成功信號S2。In addition, in the preferred embodiment of the present invention, the second logic processing module 13 is further processed by the processing unit 131 and the execution state judging unit 132 to specifically confirm which potential signal is sent. For example, the processing unit 131 sends the idle signal S3 in the idle state, and reads and executes the activation program 121 when receiving the activation control signal S1, thereby sending the execution success signal S2 in the execution success state.

執行狀態判斷單元132在接收到執行成功信號S2時,依據狀態判斷表1321比對出執行成功信號S2為第二電位(即為標記為1之高電位),並將為第二電位之執行成功信號S2發送至啟動狀態偵測單元112,其餘運作皆相同,不再贅述。When the execution status determination unit 132 receives the execution success signal S2, it compares the execution success signal S2 as the second potential (ie, the high potential marked as 1) according to the status determination table 1321, and will be the execution success of the second potential. The signal S2 is sent to the activation state detection unit 112, and other operations are the same, and will not be repeated here.

執行狀態判斷單元132並在接收到閒置信號S3時,依據狀態判斷表1321比對出閒置信號S3為第一電位(即為0之低電位),並將為第一電位之閒置信號S3發送至啟動狀態偵測單元112,使得啟動狀態偵測單元112將重新啟動信號S4傳送至啟動控制單元111而觸發第二邏輯處理模組13重新載入啟動程式121。The state determination unit 132 is executed and when the idle signal S3 is received, it is compared according to the state determination table 1321 that the idle signal S3 is the first level (ie, the low level of 0), and the idle signal S3 of the first level is sent to the The activation state detection unit 112 enables the activation state detection unit 112 to transmit the restart signal S4 to the activation control unit 111 to trigger the second logic processing module 13 to reload the activation program 121 .

請參閱第二圖,第二圖係顯示本發明較佳實施例所提供之啟動狀態偵測方法之流程圖。本發明較佳實施例係還提供一種啟動狀態偵測方法,並且是利用第一圖所示之啟動狀態偵測系統加以實施,並包含以下步驟S101至步驟S105。Please refer to the second figure. The second figure is a flow chart of the startup state detection method provided by the preferred embodiment of the present invention. A preferred embodiment of the present invention also provides a startup state detection method, which is implemented by using the startup state detection system shown in the first figure, and includes the following steps S101 to S105.

步驟S101:利用第一邏輯處理模組11之啟動控制單元111發送出啟動控制信號S1。Step S101 : using the activation control unit 111 of the first logic processing module 11 to send the activation control signal S1 .

步驟S102:利用第二邏輯處理模組13接收啟動控制信號S1,藉以讀取並執行啟動程式121。Step S102 : using the second logic processing module 13 to receive the activation control signal S1 , so as to read and execute the activation program 121 .

步驟S103:利用啟動狀態偵測單元112判斷是否在狀態偵測時間內接收到第二邏輯處理模組13在執行成功狀態時所發送出之為第二電位之執行成功信號S2。Step S103: Use the activation state detection unit 112 to determine whether the execution success signal S2 of the second potential sent by the second logic processing module 13 in the execution success state is received within the state detection time.

步驟S104:利用啟動狀態偵測單元112判斷第二邏輯處理模組13成功執行啟動程式121,並判斷出通信裝置2為啟動成功狀態。Step S104 : Use the activation state detection unit 112 to determine that the second logic processing module 13 has successfully executed the activation program 121 , and determine that the communication device 2 is in a successful activation state.

步驟S105:利用啟動狀態偵測單元112將為第三電位之重新啟動信號S4發送至啟動控制單元111,藉以使啟動控制單元111重新發送出啟動控制信號S1,據以使第二邏輯處理模組13重新讀取並執行啟動程式121。Step S105: Using the activation state detection unit 112 to send the restart signal S4 for the third potential to the activation control unit 111, so that the activation control unit 111 re-sends the activation control signal S1, so that the second logic processing module 13 Read and execute the startup program 121 again.

其中,上述步驟S102至S105有關第二邏輯處理模組13之運作,係還可進一步由處理單元131與執行狀態判斷單元132分別進行運作,而各步驟的詳細說明皆已在上述數個段落中提及,故不多加贅述。The operations of the second logic processing module 13 in the above steps S102 to S105 can be further performed by the processing unit 131 and the execution state determination unit 132 respectively, and the detailed description of each step has been described in the above paragraphs mentioned, so I won't go into details.

綜上所述,在採用本發明所提供之啟動狀態偵測及其方法後,第一邏輯處理模組在狀態偵測時間內未接收到為相異於第一電位之第二電位之執行成功信號時,可直接觸發第二邏輯處理模組再重新讀取並執行啟動程式,使得使用者不需要再透過斷電的手段才能使通信裝置重新啟動,因而可大幅提升使用者在使用上的便利性,並能提升通信裝置的工作穩定度。To sum up, after using the startup state detection and the method provided by the present invention, the first logic processing module does not receive the second potential that is different from the first potential within the state detection time and the execution is successful When the signal occurs, the second logic processing module can be directly triggered to read and execute the startup program again, so that the user does not need to power off the communication device to restart the communication device, thus greatly improving the convenience of the user. and can improve the working stability of the communication device.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。Through the detailed description of the preferred embodiments above, it is hoped that the features and spirit of the present invention can be described more clearly, and the scope of the present invention is not limited by the preferred embodiments disclosed above. On the contrary, the intention is to cover various modifications and equivalent arrangements within the scope of the claimed scope of the present invention.

1:啟動狀態偵測系統 11:第一邏輯處理模組 111:啟動控制單元 112:啟動狀態偵測單元 12:儲存模組 121:啟動程式 13:第二邏輯處理模組 131:處理單元 132:執行狀態判斷單元 1321:狀態判斷表 2:通信裝置 S1:啟動控制信號 S2:執行成功信號 S3:閒置信號 S4:重新啟動信號 S101-S105:步驟 1: Start the state detection system 11: The first logic processing module 111: Start the control unit 112: Start state detection unit 12: Storage Module 121: start the program 13: The second logic processing module 131: Processing unit 132: Execution state judgment unit 1321: Status judgment table 2: Communication device S1: start control signal S2: Execution success signal S3: Idle signal S4: restart signal S101-S105: Steps

第一圖係顯示本發明較佳實施例所提供之啟動狀態偵測系統之方塊圖;以及 第二圖係顯示本發明較佳實施例所提供之啟動狀態偵測方法之流程圖。 The first figure is a block diagram showing a start-up state detection system provided by a preferred embodiment of the present invention; and The second figure is a flow chart of the startup state detection method provided by the preferred embodiment of the present invention.

1:啟動狀態偵測系統 11:第一邏輯處理模組 111:啟動控制單元 112:啟動狀態偵測單元 12:儲存模組 121:啟動程式 13:第二邏輯處理模組 131:處理單元 132:執行狀態判斷單元 1321:狀態判斷表 2:通信裝置 S1:啟動控制信號 S2:執行成功信號 S3:閒置信號 S4:重新啟動信號 1: Start the state detection system 11: The first logic processing module 111: Start the control unit 112: Start state detection unit 12: Storage Module 121: start the program 13: The second logic processing module 131: Processing unit 132: Execution state judgment unit 1321: Status judgment table 2: Communication device S1: start control signal S2: Execution success signal S3: Idle signal S4: restart signal

Claims (10)

一種啟動狀態偵測系統,係應用於一通信裝置,並包含:一第一邏輯處理模組,係包含:一啟動控制單元,用以發送出一啟動控制信號;以及一啟動狀態偵測單元,係電性連接於該啟動控制單元,並設有一狀態偵測時間;一儲存模組,係儲存有一啟動程式;以及一第二邏輯處理模組,係通信連接於該啟動控制單元、該啟動狀態偵測單元與該儲存模組,用以在一閒置狀態下發送出一為一第一電位之閒置信號,並用以在接收到該啟動控制信號時,讀取並執行該儲存模組所儲存之該啟動程式,藉以在一執行成功狀態時發送出一為一相異於該第一電位之第二電位之執行成功信號;其中,該啟動狀態偵測單元在該狀態偵測時間內接收到為該第二電位之該執行成功信號時,係判斷該第二邏輯處理模組成功執行該啟動程式,並判斷出該通信裝置為一啟動成功狀態;該啟動狀態偵測單元在該狀態偵測時間外仍接收到為該第一電位之該閒置信號時,係判斷出該第二邏輯處理模組為一啟動失敗狀態,並將一為一第三電位之重新啟動信號發送至該啟動控制單元,藉以使該啟動控制單元重新發送出該啟動控制信號,據以使該第二邏輯處理模組重新讀取並執行該啟動程式。 An activation state detection system is applied to a communication device, and includes: a first logic processing module, including: an activation control unit for sending an activation control signal; and an activation state detection unit, It is electrically connected to the activation control unit and has a state detection time; a storage module stores a activation program; and a second logic processing module is communicatively connected to the activation control unit and the activation state The detection unit and the storage module are used for sending an idle signal of a first potential in an idle state, and for reading and executing the data stored in the storage module when receiving the activation control signal The activation program is used to send out an execution success signal of a second potential different from the first potential in an execution success state; wherein, the activation state detection unit receives an execution success signal within the state detection time When the execution success signal of the second potential is used, it is judged that the second logic processing module has successfully executed the activation program, and the communication device is judged to be in a successful activation state; the activation state detection unit is in the state detection time When the idle signal of the first potential is still received outside, it is determined that the second logic processing module is in a startup failure state, and a restart signal of a third potential is sent to the startup control unit, Thereby, the activation control unit re-sends the activation control signal, so that the second logic processing module re-reads and executes the activation program. 如請求項1所述之啟動狀態偵測系統,其中,該通信裝置為一網路卡。 The activation state detection system according to claim 1, wherein the communication device is a network card. 如請求項1所述之啟動狀態偵測系統,其中,該第一邏輯處理模組為一複雜可程式邏輯裝置(Complex Programmable Logic Device,CPLD)與一系統單晶片(System on a Chip,SOC)中之一者,該第二邏輯處理模組為一現場可程式化邏輯閘陣列(Field Programmable Gate Array,FPGA)。 The startup state detection system of claim 1, wherein the first logic processing module is a Complex Programmable Logic Device (CPLD) and a System on a Chip (SOC) In one of them, the second logic processing module is a Field Programmable Gate Array (FPGA). 如請求項1所述之啟動狀態偵測系統,其中,該第二邏輯處理模組更包含:一處理單元,通信連接於該啟動控制單元、該啟動控制單元與該儲存模組,用以在該閒置狀態下發送出該閒置信號,並用以在接收到該啟動控制信號時,讀取並執行該啟動程式,藉以在該執行成功狀態時發送出該執行成功信號;以及一執行狀態判斷單元,係電性連接於該處理單元與該啟動狀態偵測單元,設有一包含有該閒置狀態與該第一電位之對應關係以及包含有該執行成功狀態與該第二電位之對應關係之狀態判斷表,用以在接收到該執行成功信號時,依據該狀態判斷表將為該第二電位之該執行成功信號發送至該啟動狀態偵測單元,並用以在接收到該閒置信號時,依據該狀態判斷表將為該第一電位之該閒置信號發送至該啟動狀態偵測單元。 The startup state detection system according to claim 1, wherein the second logic processing module further comprises: a processing unit, communicatively connected to the startup control unit, the startup control unit and the storage module, for storing The idle signal is sent out in the idle state, and is used to read and execute the activation program when the activation control signal is received, so as to send the execution success signal in the execution success state; and an execution state judgment unit, It is electrically connected to the processing unit and the activation state detection unit, and is provided with a state judgment table including the corresponding relationship between the idle state and the first potential and the corresponding relationship between the execution successful state and the second potential , for sending the execution success signal of the second potential to the startup state detection unit according to the state judgment table when the execution success signal is received, and for receiving the idle signal according to the state The judgment table sends the idle signal of the first potential to the activation state detection unit. 如請求項4所述之啟動狀態偵測系統,其中,該第一電位與該第三電位為標記為0之低電位,該第二電位為標記為1之高電位。The startup state detection system of claim 4, wherein the first potential and the third potential are low potentials marked as 0, and the second potential is a high potential marked as 1. 如請求項1所述之啟動狀態偵測系統,其中,該狀態偵測時間為1200毫秒。The startup state detection system according to claim 1, wherein the state detection time is 1200 milliseconds. 一種啟動狀態偵測方法,係利用如請求項1所述之該啟動狀態偵測系統加以實施,並包含以下步驟: (a)利用該第一邏輯處理模組之該啟動控制單元發送出該啟動控制信號; (b)利用該第二邏輯處理模組接收該啟動控制信號,藉以讀取並執行該啟動程式; (c)利用該啟動狀態偵測單元判斷是否在該狀態偵測時間內接收到該第二邏輯處理模組在該執行成功狀態時所發送出之為該第二電位之該執行成功信號; (d)在該步驟(c)之判斷結果為是時,利用該啟動狀態偵測單元判斷該第二邏輯處理模組成功執行該啟動程式,並判斷出該通信裝置為該啟動成功狀態;以及 (e)在該步驟(c)之判斷結果為否時,利用該啟動狀態偵測單元將為該第三電位之該重新啟動信號發送至該啟動控制單元,藉以使該啟動控制單元重新發送出該啟動控制信號,據以使該第二邏輯處理模組重新讀取並執行該啟動程式。 A startup state detection method is implemented using the startup state detection system as described in claim 1, and includes the following steps: (a) using the activation control unit of the first logic processing module to send the activation control signal; (b) using the second logic processing module to receive the activation control signal to read and execute the activation program; (c) using the activation state detection unit to determine whether the execution success signal of the second potential sent by the second logic processing module in the execution success state is received within the state detection time; (d) when the determination result of the step (c) is yes, use the activation state detection unit to determine that the second logic processing module successfully executes the activation program, and determine that the communication device is in the activation success state; and (e) When the determination result of the step (c) is no, use the activation state detection unit to send the restart signal for the third potential to the activation control unit, so that the activation control unit re-sends the The activation control signal causes the second logic processing module to re-read and execute the activation program. 如請求項7所述之啟動狀態偵測方法,其中,該通信裝置為一網路卡,該第一邏輯處理模組為一複雜可程式邏輯裝置(Complex Programmable Logic Device, CPLD)與一系統單晶片(System on a Chip, SOC)中之一者,該第二邏輯處理模組為一現場可程式化邏輯閘陣列(Field Programmable Gate Array, FPGA)。The startup state detection method according to claim 7, wherein the communication device is a network card, the first logic processing module is a Complex Programmable Logic Device (CPLD) and a system unit. One of the chips (System on a Chip, SOC), the second logic processing module is a Field Programmable Gate Array (Field Programmable Gate Array, FPGA). 如請求項7所述之啟動狀態偵測方法,其中,該第一電位與該第三電位為標記為0之低電位,該第二電位為標記為1之高電位。The startup state detection method as claimed in claim 7, wherein the first potential and the third potential are low potentials marked as 0, and the second potential is a high potential marked as 1. 如請求項7所述之啟動狀態偵測方法,其中,該狀態偵測時間為1200毫秒。The activation state detection method according to claim 7, wherein the state detection time is 1200 milliseconds.
TW109137259A 2020-10-27 2020-10-27 Startup status detection system and method thereof TWI764342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109137259A TWI764342B (en) 2020-10-27 2020-10-27 Startup status detection system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109137259A TWI764342B (en) 2020-10-27 2020-10-27 Startup status detection system and method thereof

Publications (2)

Publication Number Publication Date
TW202217554A TW202217554A (en) 2022-05-01
TWI764342B true TWI764342B (en) 2022-05-11

Family

ID=82558565

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109137259A TWI764342B (en) 2020-10-27 2020-10-27 Startup status detection system and method thereof

Country Status (1)

Country Link
TW (1) TWI764342B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5321819A (en) * 1992-02-28 1994-06-14 Texas Instruments Incorporated Interface for coupling a host device having a network interface to a computer network having a predetermined communications medium and a predetermined communications physical layer
CN102460393A (en) * 2009-05-01 2012-05-16 思杰系统有限公司 Systems and methods for establishing a cloud bridge between virtual storage resources
CN104380660A (en) * 2012-04-13 2015-02-25 思杰系统有限公司 Systems and methods for trap monitoring in multi-core and cluster systems
TWI529624B (en) * 2015-03-19 2016-04-11 Univ Nat Central Method and system of fault tolerance for multiple servers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5321819A (en) * 1992-02-28 1994-06-14 Texas Instruments Incorporated Interface for coupling a host device having a network interface to a computer network having a predetermined communications medium and a predetermined communications physical layer
CN102460393A (en) * 2009-05-01 2012-05-16 思杰系统有限公司 Systems and methods for establishing a cloud bridge between virtual storage resources
CN104380660A (en) * 2012-04-13 2015-02-25 思杰系统有限公司 Systems and methods for trap monitoring in multi-core and cluster systems
TWI529624B (en) * 2015-03-19 2016-04-11 Univ Nat Central Method and system of fault tolerance for multiple servers

Also Published As

Publication number Publication date
TW202217554A (en) 2022-05-01

Similar Documents

Publication Publication Date Title
EP3037967B1 (en) Fault-tolerant startup method and apparatus and computer system
US10303459B2 (en) Electronic system with update control mechanism and method of operation thereof
US20110283274A1 (en) Firmware image update and management
ES2409882T3 (en) Component configuration mechanism for restart
WO2019129022A1 (en) Error processing method, apparatus and system for device
CN113553081A (en) FPGA loading method based on ZYNQ chip
WO2023109880A1 (en) Service recovery method, data processing unit and related device
WO2023147748A1 (en) Method and apparatus for initializing smart network interface card by server, device, and medium
CN112231005A (en) Method for managing FPGA (field programmable Gate array) version based on UBOOT (Universal boot on Board)
CN111338698A (en) Method and system for accurately booting server by BIOS (basic input output System)
CN111124749A (en) Method and system for automatically repairing BMC (baseboard management controller) system of tightly-coupled high-performance computer system
TWI764342B (en) Startup status detection system and method thereof
TWI801730B (en) Server with system setting data synchronization function
WO2018121351A1 (en) Interface card status detection method, interface card, and line card
JP2017078998A (en) Information processor, log management method, and computer program
CN109445984B (en) Service recovery method, device, arbitration server and storage system
US11740969B2 (en) Detecting and recovering a corrupted non-volatile random-access memory
JP2009176232A (en) Starting device, starting method, and starting program
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN115904831A (en) Starting method of server firmware and terminal
WO2023279875A1 (en) Bootloader startup procedure monitoring method and apparatus, embedded device, and storage medium
CN109684134B (en) Method and server for rapidly deploying firmware settings among multiple devices
JPH11265283A (en) Correction method for firmware in storage device, and storage device
CN112350888B (en) Starting state detection system and method thereof
CN114594995A (en) Electronic device and starting method thereof