TW201719401A - Booting method and booting system - Google Patents

Booting method and booting system Download PDF

Info

Publication number
TW201719401A
TW201719401A TW104138401A TW104138401A TW201719401A TW 201719401 A TW201719401 A TW 201719401A TW 104138401 A TW104138401 A TW 104138401A TW 104138401 A TW104138401 A TW 104138401A TW 201719401 A TW201719401 A TW 201719401A
Authority
TW
Taiwan
Prior art keywords
request message
booting
communication device
identification information
server device
Prior art date
Application number
TW104138401A
Other languages
Chinese (zh)
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 TW104138401A priority Critical patent/TW201719401A/en
Publication of TW201719401A publication Critical patent/TW201719401A/en

Links

Abstract

A booting method and a booting system are provided. The method includes: detecting a booting signal by a communication device; sending a request message including identification information by a network interface unit of the communication device in response to the booting signal; receiving the request message by a server device storing group information; sending a first response message corresponding to the request message by the server device if the identification information included in the received request message matches the group information; performing a booting procedure based on a first system of a plurality of systems by the communication device if the network interface unit receives the first response message during a default time range after the request message is sent. Therefore, the communication device could determine to boot based on which system automatically.

Description

開機方法與開機系統Boot method and boot system

本發明是有關於一種開機程序,且特別是有關於一種開機方法與開機系統。The invention relates to a booting procedure, and in particular to a booting method and a booting system.

隨著電腦裝置的儲存容量增加,部分的電腦裝置可能會儲存有兩個或兩個以上的作業系統。當其中的一個主作業系統損壞時,另一個作業系統則可以作為備援或用以修復主作業系統,從而維持電腦系統的正常運作。在某些應用中,使用者也可以自行在其電腦系統中安裝兩個以上不同的作業系統,從而根據自身需求來選擇將電腦系統操作於不同的作業系統。另外,在某些電腦裝置的生產或測試階段,除了電腦裝置本身預設作業系統外,屬於製造商的測試系統也會被安裝在電腦系統中,從而可在電腦裝置出廠前透過此測試系統來對其零組件進行測試。As the storage capacity of computer devices increases, some computer devices may store two or more operating systems. When one of the main operating systems is damaged, the other operating system can be used as a backup or to repair the main operating system to maintain the normal operation of the computer system. In some applications, users can also install more than two different operating systems in their computer systems, so that they can choose to operate the computer system in different operating systems according to their needs. In addition, in the production or testing stage of some computer devices, in addition to the computer operating system itself, the test system belonging to the manufacturer is also installed in the computer system, so that the test device can be used before the computer device leaves the factory. Test its components.

然而,現階段要讓待測電腦裝置進入測試系統往往需要在電腦裝置開機時以人工方式來按壓裝置上一個特定的按鍵,例如,重置(reset)鍵;否則待測電腦裝置會自動進入預設作業系統。這樣人工控制的方式雖然可以讓電腦裝置順利進入測試系統,但是也會造成額外的人力資源浪費。However, at this stage, it is often necessary to manually press a specific button on the device when the computer device is turned on, for example, a reset button; otherwise, the device to be tested will automatically enter the pre-test. Set up the operating system. Such a manual control method can make the computer device smoothly enter the test system, but it also causes additional waste of human resources.

本發明提供一種開機方法與開機系統,可使通訊裝置自動決定要基於哪一種系統來開機,從而減少人工控制造成的人力資源浪費。The invention provides a booting method and a booting system, which enable the communication device to automatically decide which system to boot based on, thereby reducing the waste of human resources caused by manual control.

本發明的一實施例提供一種開機方法,其包括:由通訊裝置偵測開機訊號,其中所述通訊裝置包括網路介面單元與儲存單元,其中所述儲存單元用以儲存第一系統與第二系統;反應於所述開機訊號,由所述網路介面單元發送一請求訊息,其中所述請求訊息包括識別資訊;由伺服器裝置接收所述請求訊息,其中所述伺服器裝置用以儲存群組資訊;若所述請求訊息中的所述識別資訊與所述群組資訊吻合,由所述伺服器裝置發送對應於所述請求訊息的第一回應訊息;以及若在發送所述請求訊息之後的一預設時間範圍內所述網路介面單元接收到所述第一回應訊息,由所述通訊裝置基於所述第一系統執行開機程序。An embodiment of the present invention provides a booting method, including: detecting, by a communication device, a booting signal, wherein the communications device includes a network interface unit and a storage unit, wherein the storage unit is configured to store the first system and the second System, in response to the boot signal, sending, by the network interface unit, a request message, wherein the request message includes identification information; and the request message is received by a server device, wherein the server device is configured to store a group Group information; if the identification information in the request message matches the group information, the server device sends a first response message corresponding to the request message; and if the request message is sent The network interface unit receives the first response message within a preset time range, and the communication device performs a boot process based on the first system.

本發明的另一實施例提供一種開機系統,其包括通訊裝置與伺服器裝置,其中所述通訊裝置包括處理器、網路介面單元與儲存單元,其中所述處理器耦接至所述網路介面單元與所述儲存單元,其中所述儲存單元用以儲存第一系統與第二系統,其中所述伺服器裝置用以儲存群組資訊,其中所述處理器用以偵測開機訊號,其中反應於所述開機訊號,所述網路介面單元用以發送請求訊息,其中所述請求訊息包括識別資訊,其中所述伺服器裝置更用以接收所述請求訊息,其中若所述請求訊息中的所述識別資訊與所述群組資訊吻合,所述伺服器裝置更用以發送對應於所述請求訊息的第一回應訊息,其中若在發送所述請求訊息之後的預設時間範圍內所述網路介面單元接收到所述第一回應訊息,所述處理器更用以基於所述第一系統執行開機程序。Another embodiment of the present invention provides a booting system including a communication device and a server device, wherein the communication device includes a processor, a network interface unit, and a storage unit, wherein the processor is coupled to the network An interface unit and the storage unit, wherein the storage unit is configured to store a first system and a second system, wherein the server device is configured to store group information, wherein the processor is configured to detect a boot signal, wherein the response The network interface unit is configured to send a request message, where the request message includes identification information, where the server device is further configured to receive the request message, where The identification information is consistent with the group information, and the server device is further configured to send a first response message corresponding to the request message, where the predetermined time range after sending the request message is The network interface unit receives the first response message, and the processor is further configured to perform a boot process based on the first system.

基於上述,在偵測到開機訊號之後,通訊裝置會發送帶有識別資訊的一個請求訊息。然後,伺服器裝置會接收此請求訊息並且對其進行分析。若伺服器裝置判定請求訊息中的識別資訊與儲存的群組資訊吻合,則伺服器裝置會回傳對應的回應訊息。若在發送請求訊息之後的一預設時間範圍內通訊裝置接收到來自伺服器裝置的回應訊息,則通訊裝置會自動地基於多個系統中的第一系統來執行開機程序。藉此,可減少人工控制造成的人力資源浪費。Based on the above, after detecting the power-on signal, the communication device sends a request message with the identification information. The server device then receives the request message and analyzes it. If the server device determines that the identification information in the request message matches the stored group information, the server device returns a corresponding response message. If the communication device receives the response message from the server device within a predetermined time range after transmitting the request message, the communication device automatically performs the boot process based on the first system of the plurality of systems. Thereby, the waste of human resources caused by manual control can be reduced.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the invention will be apparent from the following description.

圖1是根據本發明的一實施例所繪示的開機系統的示意圖。請參照圖1,開機系統10包括伺服器裝置11與通訊裝置12_1~12_n。伺服器裝置11包括一或多台伺服器主機。例如,伺服器主機可以是個人電腦、工業用電腦、基地台主機或任意用以提供網路服務的電腦主機。FIG. 1 is a schematic diagram of a booting system according to an embodiment of the invention. Referring to FIG. 1, the booting system 10 includes a server device 11 and communication devices 12_1~12_n. The server device 11 includes one or more server hosts. For example, the server host can be a personal computer, an industrial computer, a base station host, or any computer host that provides network services.

通訊裝置12_1~12_n的數目可以是一或多台。例如,在一實施例中,開機系統10中僅包含通訊裝置12_1。或者,在另一實施例中,開機系統10則包含通訊裝置12_1~12_100。n的數目可以視實務上的需求而定。通訊裝置12_1~12_n中的每一者可以是個人電腦、工業用電腦、行動通訊裝置(例如,手機、平板電腦或遊戲機等)、基地台主機、路由器(router)、存取點(Access Point, AP)裝置、交換機(switch)或橋接器(bridge)等各式支援網路通訊功能的裝置。在一實施例中,所述網路通訊功能包括網路連線與網路封包的收發功能。在另一實施例中,所述網路通訊功能還包括路由(routing)、網路位址轉譯(Network Address Translation, NAT)、域名系統(Domain Name System, DNS)查詢及防火牆等各式網管功能中的一或多種。The number of communication devices 12_1~12_n may be one or more. For example, in one embodiment, the boot system 10 includes only the communication device 12_1. Alternatively, in another embodiment, the booting system 10 includes communication devices 12_1~12_100. The number of n can be determined according to actual needs. Each of the communication devices 12_1~12_n may be a personal computer, an industrial computer, a mobile communication device (for example, a mobile phone, a tablet or a game console, etc.), a base station host, a router, and an access point (Access Point). , AP) devices such as devices, switches, or bridges that support network communication functions. In an embodiment, the network communication function includes a network connection and a network packet transmission and reception function. In another embodiment, the network communication function further includes various network management functions such as routing, network address translation (NAT), domain name system (DNS) query, and firewall. One or more of them.

圖2是根據本發明的一實施例所繪示的通訊裝置的示意圖。值得一提的是,圖2之實施例是以通訊裝置12_1為例,但其硬體架構亦可以部分或全部套用至圖1中其餘的通訊裝置或伺服器裝置。FIG. 2 is a schematic diagram of a communication device according to an embodiment of the invention. It should be noted that the embodiment of FIG. 2 is exemplified by the communication device 12_1, but the hardware structure may also be partially or completely applied to the remaining communication devices or server devices in FIG.

請參照圖2,通訊裝置12_1至少包括處理器21、儲存單元22及網路介面單元23。處理器21、儲存單元22及網路介面單元23彼此電性連接。例如,處理器21、儲存單元22及網路介面單元23皆電性連接至通訊裝置12_1的主機板(未繪示)。Referring to FIG. 2, the communication device 12_1 includes at least a processor 21, a storage unit 22, and a network interface unit 23. The processor 21, the storage unit 22, and the network interface unit 23 are electrically connected to each other. For example, the processor 21, the storage unit 22, and the network interface unit 23 are all electrically connected to a motherboard (not shown) of the communication device 12_1.

處理器21是中央處理單元(Central Processing unit, CPU)、微處理器(mirco-processor)、嵌入式控制器(embedded controller)、圖形處理單元(Graphics Processing Unit, GPU)等各式提供資料處理、運算及/或硬體控制功能的晶片或晶片組。The processor 21 is a central processing unit (CPU), a microprocessor (mirco-processor), an embedded controller, a graphics processing unit (GPU), and the like, and provides data processing. A wafer or wafer set that operates and/or controls hardware.

儲存單元22包括非揮發性儲存單元與揮發性儲存單元。例如,儲存單元22可包括唯讀記憶體(Read Only Memory, ROM)、動態隨機存取記憶體(Dynamic Random Access Memory, DRAM)、靜態隨機存取記憶體(Static Random Access Memory, SRAM)及硬碟(Hard disc drive, HDD)等各式資料儲存電路的其中之一或其組合。The storage unit 22 includes a non-volatile storage unit and a volatile storage unit. For example, the storage unit 22 may include a read only memory (ROM), a dynamic random access memory (DRAM), a static random access memory (SRAM), and a hard memory. One of or a combination of various data storage circuits such as a disc disc drive (HDD).

網路介面單元23包括網路介面卡(Network Interface Card, NIC)及/或無線網路介面卡(wireless NIC)等各式有線/無線通訊電路。其中,網路介面卡例如是指乙太網路(ethernet)介面卡並且可以藉由實體線路發送網路封包至網際網路(Internet)或從網際網路接收網路封包。無線網路介面卡包括射頻(radio frequency)晶片與天線(antenna)並且可以被用來收發無線訊號。例如,無線網路介面卡可支援全球移動通信(Global System for Mobile Communication,GSM)系統、個人手持式電話系統(Personal Handy-phone System,PHS)、碼分多址接入(Code Division Multiple Access,CDMA)系統、無線兼容認證(Wireless Fidelity,Wi-Fi)系統、全球互通微波接入(Worldwide Interoperability for Microwave Access,WiMAX)系統、長期演進技術(Long Term Evolution, LTE)系統等各式無線通訊協定中的一或多種。The network interface unit 23 includes various wired/wireless communication circuits such as a network interface card (NIC) and/or a wireless network interface card (wireless NIC). The network interface card is, for example, an ethernet interface card and can send a network packet to the Internet or receive a network packet from the Internet through a physical line. The wireless network interface card includes a radio frequency chip and an antenna and can be used to transmit and receive wireless signals. For example, the wireless network interface card can support Global System for Mobile Communication (GSM) systems, Personal Handy-phone System (PHS), Code Division Multiple Access (Code Division Multiple Access). CDMA) systems, Wireless Fidelity (Wi-Fi) systems, Worldwide Interoperability for Microwave Access (WiMAX) systems, Long Term Evolution (LTE) systems, and other wireless communication protocols One or more of them.

在本實施例中,通訊裝置12_1還包括燈號元件24與實體連接介面元件25的至少其中之一。燈號元件24可以是指LED燈或其他類型的發光元件。實體連接介面元件25可以是指各種類型的通用連接序列匯流排(USB)介面、視訊圖形陣列(Video Graphics Array, VGA)介面、高畫質晰度多媒體介面(High Definition Multimedia Interface, HDMI)介面或RS-232等各式用來連接各種周邊電子裝置的實體介面。燈號元件24與實體連接介面元件25也電性連接至通訊裝置12_1的主機板。燈號元件24與實體連接介面元件25各別的數目皆可以是一或多個。In the present embodiment, the communication device 12_1 further includes at least one of the signal component 24 and the physical connection interface component 25. The light element 24 can refer to an LED light or other type of light emitting element. The physical connection interface component 25 can refer to various types of universal connection sequence bus (USB) interfaces, a video graphics array (VGA) interface, a high definition multimedia interface (HDMI) interface, or Various forms such as RS-232 are used to connect the physical interfaces of various peripheral electronic devices. The signal component 24 and the physical connection interface component 25 are also electrically connected to the motherboard of the communication device 12_1. The number of each of the signal element 24 and the physical connection interface element 25 may be one or more.

在一實施例中,通訊裝置12_1還可以包括其他類型的硬體元件26。例如,硬體元件26可以是指任何電性連接至通訊裝置12_1之主機板的電子元件或硬體裝置。硬體元件26的數目也可以是一或多個。In an embodiment, the communication device 12_1 may also include other types of hardware components 26. For example, the hardware component 26 can refer to any electronic component or hardware device that is electrically coupled to the motherboard of the communication device 12_1. The number of hardware elements 26 can also be one or more.

在一實施例中,通訊裝置12_1還可以包括各種類型的輸入/輸出(I/O)介面單元27與電源供應電路(未繪示)。例如,處理器21可以經由輸入/輸出介面單元27來傳輸訊號至電性連接至通訊裝置12_1之主機板的部份或全部電子元件或從此些電子元件接收訊號。例如,電源供應電路可以是指電池(battery)及/或電源適配器(power adapter)。In an embodiment, the communication device 12_1 may further include various types of input/output (I/O) interface units 27 and power supply circuits (not shown). For example, the processor 21 can transmit signals to or receive signals from some or all of the electronic components of the motherboard that is electrically connected to the communication device 12_1 via the input/output interface unit 27. For example, the power supply circuit can refer to a battery and/or a power adapter.

請再次參照圖1,伺服器裝置11與通訊裝置12_1~12_n被連接至網路13。依據傳輸型態,網路13可以是指有線網路、無線網路或其組合。此外,依據網路拓墣(network topology),網路13則可以是指公有(public)網路、私有(private)網路或其組合。在網路13為公有網路的實施例中,網路13例如是指整個網際網路。而在網路13為私有網路的實施例中,網路13例如是指本地區域網路(Local Area Network, LAN)。伺服器裝置11與通訊裝置12_1~12_n中的每一者皆是網路13中的一個節點(node)。若伺服器裝置11包括多台伺服器主機,則此些伺服器主機可以視為一個整合節點或多個獨立節點。Referring again to FIG. 1, the server device 11 and the communication devices 12_1~12_n are connected to the network 13. Depending on the type of transmission, network 13 may refer to a wired network, a wireless network, or a combination thereof. Further, depending on the network topology, the network 13 may refer to a public network, a private network, or a combination thereof. In an embodiment where the network 13 is a public network, the network 13 refers to, for example, the entire Internet. In the embodiment where the network 13 is a private network, the network 13 refers to, for example, a local area network (LAN). Each of the server device 11 and the communication devices 12_1~12_n is a node in the network 13. If the server device 11 includes a plurality of server hosts, the server hosts can be regarded as one integrated node or multiple independent nodes.

在本實施例中,開機系統10是應用於通訊裝置12_1~12_n出廠前的硬體測試階段,而伺服器裝置11則可視為測試主機。例如,在硬體測試階段,通訊裝置12_1~12_n會自動地基於一個測試系統來執行開機程序,藉以對部分的硬體元件進行測試。然而,在另一實施例中,開機系統10亦可以應用於任何需要讓通訊裝置12_1~12_n自動地決定基於某一個作業系統來執行開機程序的情境中。In this embodiment, the booting system 10 is applied to the hardware testing phase before the communication devices 12_1~12_n are shipped, and the server device 11 can be regarded as the test host. For example, during the hardware testing phase, the communication devices 12_1~12_n automatically execute a boot process based on a test system to test portions of the hardware components. However, in another embodiment, the boot system 10 can also be applied to any situation where the communication devices 12_1~12_n are automatically determined to perform a boot process based on a certain operating system.

以下將以圖1與圖2中的通訊裝置12_1與伺服器裝置11作為範例進行說明,而通訊裝置12_1的相關操作亦可以應用於通訊裝置12_2~12_n。Hereinafter, the communication device 12_1 and the server device 11 in FIGS. 1 and 2 will be described as an example, and the related operations of the communication device 12_1 can also be applied to the communication devices 12_2 to 12_n.

在本實施例中,通訊裝置12_1的儲存單元22會儲存多個系統。為了說明方便,以下假設儲存單元22儲存有第一系統與第二系統。在本實施例中,第一系統與第二系統分別是一個作業系統。例如,第一系統是硬體測試階段所使用的測試系統,而第二系統為通訊裝置12_1的預設作業系統(亦稱為客製化作業系統)。其中,測試系統用以測試通訊裝置12_1的至少一硬體元件。例如,在測試系統中,燈號元件24、實體連接介面元件25或其餘硬體元件26可以被測試,而相關的測試結果可以被儲存。在一實施例中,相關的測試結果還可以被傳送至伺服器裝置11進行儲存。預設作業系統則是指通訊裝置12_1在一般情況下所使用的作業系統。例如,在通訊裝置12_1出貨後,使用者都是基於預設作業系統來操作通訊裝置12_1。In this embodiment, the storage unit 22 of the communication device 12_1 stores a plurality of systems. For convenience of explanation, it is assumed below that the storage unit 22 stores the first system and the second system. In this embodiment, the first system and the second system are respectively an operating system. For example, the first system is the test system used in the hardware testing phase, and the second system is the default operating system (also known as the customized operating system) of the communication device 12_1. The test system is used to test at least one hardware component of the communication device 12_1. For example, in a test system, the signal component 24, the physical connection interface component 25, or the remaining hardware components 26 can be tested and the associated test results can be stored. In an embodiment, the relevant test results may also be transmitted to the server device 11 for storage. The preset operating system refers to the operating system used by the communication device 12_1 in general. For example, after the communication device 12_1 is shipped, the user operates the communication device 12_1 based on the preset operating system.

在另一實施例中,第一系統與第二系統也可以是指相同作業系統下的不同的操作模式。例如,在一實施例中,第一系統是指某一個作業系統中的硬體測試模式,而第二系統則是指此作業系統中的正常操作模式。在進入硬體測試模式之後,燈號元件24、實體連接介面元件25或其餘硬體元件26可以被測試。而在正常操作模式下,則可以正常執行此作業系統。In another embodiment, the first system and the second system may also refer to different modes of operation under the same operating system. For example, in one embodiment, the first system refers to the hardware test mode in one of the operating systems, and the second system refers to the normal operating mode in the operating system. After entering the hardware test mode, the signal element 24, the physical connection interface element 25 or the remaining hardware elements 26 can be tested. In normal operation mode, this operating system can be executed normally.

請同時參照圖1與圖2,在本實施例中,處理器21會偵測一個開機訊號。例如,此開機訊號是經由輸入/輸出介面單元27傳送給處理器21。例如,此開機訊號可藉由觸發(例如,按壓)通訊裝置12_1上的一個實體開機按鈕而產生。例如,在偵測到此開機訊號之前,通訊裝置12_1會處於關機、待機、睡眠、休眠或省電等工作模式的其中之一。值得一提的是,在本實施例中,當偵測到開機訊號時,處理器21並不會立即基於儲存單元22中的第一系統或第二系統來執行完整的開機程序。Referring to FIG. 1 and FIG. 2 simultaneously, in this embodiment, the processor 21 detects a power-on signal. For example, the boot signal is transmitted to the processor 21 via the input/output interface unit 27. For example, the power-on signal can be generated by triggering (eg, pressing) a physical power-on button on the communication device 12_1. For example, before detecting the boot signal, the communication device 12_1 may be in one of working modes such as shutdown, standby, sleep, hibernation or power saving. It should be noted that, in this embodiment, when the boot signal is detected, the processor 21 does not immediately execute the complete boot process based on the first system or the second system in the storage unit 22.

在本實施例中,反應於所偵測到的開機訊號,處理器21會先暫停部分的開機程序並且指示網路介面單元23經由網路13來發送一個請求訊息至伺服器裝置11。在一實施例中,反應於此開機訊號,處理器21會先初始化(initialize)網路介面單元23。然後,被初始化的網路介面單元23會發送上述請求訊息。被送出的請求訊息會包括識別資訊。此識別資訊是用來識別此請求訊息是由通訊裝置12_1所發送的。In this embodiment, in response to the detected power-on signal, the processor 21 first suspends part of the boot process and instructs the network interface unit 23 to send a request message to the server device 11 via the network 13. In an embodiment, in response to the boot signal, the processor 21 initializes the network interface unit 23. The initialized network interface unit 23 then sends the request message. The requested message sent will include the identification information. This identification information is used to identify that the request message was sent by the communication device 12_1.

伺服器裝置11會從網路13接收來自通訊裝置12_1的請求訊息並且分析所接收到的請求訊息以取得請求訊息中的識別資訊。然後,伺服器裝置11會將所接收到的請求訊息中的識別資訊與伺服器裝置11所預先儲存的群組資訊進行比對並且判斷所接收到的請求訊息中的識別資訊與儲存的群組資訊是否吻合。若所接收到的請求訊息中的識別資訊與儲存的群組資訊吻合,則伺服器裝置11會經由網路13發送對應於所接收到之請求訊息的一第一回應訊息給通訊裝置12_1。在此,第一回應訊息是用以指示通訊裝置12_1基於第一系統來執行開機程序。反之,若所接收到的請求訊息中的識別資訊與儲存的群組資訊不吻合,則伺服器裝置11可能會發送對應於所接收到之請求訊息的一第二回應訊息或者直接捨棄所接收到的請求訊息而不作回應。在發送第二回應訊息的實施例中,第二回應訊息是用以指示通訊裝置12_1基於第二系統來執行開機程序。The server device 11 receives the request message from the communication device 12_1 from the network 13 and analyzes the received request message to obtain the identification information in the request message. Then, the server device 11 compares the identification information in the received request message with the group information pre-stored by the server device 11 and determines the identification information and the stored group in the received request message. Whether the information is consistent. If the identification information in the received request message matches the stored group information, the server device 11 sends a first response message corresponding to the received request message to the communication device 12_1 via the network 13. Here, the first response message is used to instruct the communication device 12_1 to execute the boot process based on the first system. On the other hand, if the identification information in the received request message does not match the stored group information, the server device 11 may send a second response message corresponding to the received request message or directly discard the received message. Request message without responding. In the embodiment of transmitting the second response message, the second response message is used to instruct the communication device 12_1 to execute the boot process based on the second system.

在本實施例中,伺服器裝置11回傳給通訊裝置12_1的回應訊息中也會包含通訊裝置12_1的識別資訊。例如,伺服器裝置11會複製接收到的請求訊息中的識別資訊並且將所複製的識別資訊加入至對應的回應訊息中。當通訊裝置12_1接收到來自伺服器裝置11的某一回應訊息時,通訊裝置12_1可根據此回應訊息中的識別資訊來決定是否要執行後續處理。例如,若所接收到的回應訊息為第一回應訊息且此回應訊息中的識別資訊為通訊裝置12_1的識別資訊,則通訊裝置12_1會基於第一系統來執行開機程序;若所接收到的回應訊息為第一回應訊息但是此回應訊息中的識別資訊不是通訊裝置12_1的識別資訊(例如,此回應訊息中的識別資訊是通訊裝置12_2的識別資訊),則通訊裝置12_1會視為沒有接收到第一回應訊息並且不會基於第一系統來執行開機程序。藉此,通訊裝置12_1可根據接收到的回應訊息中的識別資訊對此回應訊息進行驗證。然而,在另一實施例中,伺服器裝置11回傳給通訊裝置12_1的回應訊息中則不會包含通訊裝置12_1的識別資訊及/或通訊裝置12_1不會分析接收到的第一回應訊息中的上述識別資訊,以加快開機速度。In this embodiment, the response message sent back to the communication device 12_1 by the server device 11 also includes the identification information of the communication device 12_1. For example, the server device 11 copies the identification information in the received request message and adds the copied identification information to the corresponding response message. When the communication device 12_1 receives a certain response message from the server device 11, the communication device 12_1 can decide whether to perform subsequent processing according to the identification information in the response message. For example, if the received response message is the first response message and the identification information in the response message is the identification information of the communication device 12_1, the communication device 12_1 performs the boot process based on the first system; if the received response is received The message is the first response message, but the identification information in the response message is not the identification information of the communication device 12_1 (for example, the identification information in the response message is the identification information of the communication device 12_2), the communication device 12_1 is deemed not to receive the message. The first response message does not execute the boot process based on the first system. Thereby, the communication device 12_1 can verify the response message according to the identification information in the received response message. However, in another embodiment, the response message sent back to the communication device 12_1 by the server device 11 does not include the identification information of the communication device 12_1 and/or the communication device 12_1 does not analyze the received first response message. The above identification information to speed up the boot.

在本實施例中,群組資訊會事先被儲存於伺服器裝置11中。例如,伺服器裝置11會具有一個資料庫,並且此群組資訊會被記錄在此資料庫中的一或多個查找表內。例如,此群組資訊包括需要基於第一系統來開機之通訊裝置的相關資訊。例如,在第一系統為測試系統的實施例中,需要基於第一系統來開機的通訊裝置為需要被執行硬體測試之通訊裝置。當接收到來自通訊裝置12_1的請求訊息時,伺服器裝置11會根據請求訊息中的識別資訊來查詢此查找表中的群組資訊並且根據查詢結果來決定是否發送上述第一回應訊息給通訊裝置12_1。In the present embodiment, the group information is stored in the server device 11 in advance. For example, server device 11 will have a database and this group information will be recorded in one or more lookup tables in this database. For example, the group information includes information about a communication device that needs to be powered on based on the first system. For example, in an embodiment where the first system is a test system, the communication device that needs to be powered on based on the first system is a communication device that needs to be subjected to hardware testing. When receiving the request message from the communication device 12_1, the server device 11 queries the group information in the lookup table according to the identification information in the request message and determines whether to send the first response message to the communication device according to the query result. 12_1.

在本實施例中,在送出上述請求訊息之後,處理器21會判斷在發送上述請求訊息之後的一預設時間範圍內網路介面單元23是否接收到來自伺服器裝置11的第一回應訊息。若在此預設時間範圍內網路介面單元23接收到了來自伺服器裝置11的第一回應訊息,處理器21會基於儲存單元22中的第一系統來執行開機程序。反之,若在此預設時間範圍內網路介面單元23未接收到此第一回應訊息,則處理器21會基於儲存單元22中的第二系統來執行開機程序。在本實施例中,此預設時間範圍例如是3~5秒。例如,在指示網路介面單元23送出上述請求訊息之後,處理器21會啟動一個計數器(counter)並且根據這個計數器的值來判斷等待回應的時間是否超過上述預設時間範圍。In this embodiment, after sending the request message, the processor 21 determines whether the network interface unit 23 receives the first response message from the server device 11 within a predetermined time range after transmitting the request message. If the network interface unit 23 receives the first response message from the server device 11 within the preset time range, the processor 21 executes the boot process based on the first system in the storage unit 22. On the other hand, if the first interface message is not received by the network interface unit 23 within the preset time range, the processor 21 executes the boot process based on the second system in the storage unit 22. In this embodiment, the preset time range is, for example, 3 to 5 seconds. For example, after instructing the network interface unit 23 to send the request message, the processor 21 starts a counter and determines whether the time waiting for the response exceeds the preset time range according to the value of the counter.

此外,在伺服器裝置11發送第二回應訊息的一實施例中,若在上述預設時間範圍內網路介面單元23接收到第二回應訊息,則處理器21會反應於此第二回應訊息而基於儲存單元22中的第二系統來執行開機程序。或者,在伺服器裝置11發送第二回應訊息的另一實施例中,若在上述預設時間範圍內網路介面單元23僅接收到第二回應訊息而未接收到第一回應訊息,則處理器21仍然判定未接收到第一回應訊息從而基於儲存單元22中的第二系統來執行開機程序。In addition, in an embodiment in which the server device 11 sends the second response message, if the network interface unit 23 receives the second response message within the preset time range, the processor 21 responds to the second response message. The booting process is executed based on the second system in the storage unit 22. Alternatively, in another embodiment in which the server device 11 sends the second response message, if the network interface unit 23 receives only the second response message and does not receive the first response message within the preset time range, the process is processed. The device 21 still determines that the first response message has not been received to perform the boot process based on the second system in the storage unit 22.

圖3是根據本發明的一實施例所繪示的請求訊息與回應訊息的示意圖。FIG. 3 is a schematic diagram of a request message and a response message according to an embodiment of the invention.

請參照圖3,請求訊息31的封包結構是由標頭(header)欄位311、訊息類型欄位312、識別資訊欄位313及負載(payload)欄位314組成。標頭欄位311用以記載與封包傳遞有關的資訊,例如,來源網際網路協定(source IP)位址、目的網際網路協定(destination IP)位址、來源埠(source port)號碼、目的埠(destination port)號碼及媒體存取控制位址等。訊息類型欄位312用以記載當前封包是屬於請求訊息或回應訊息。例如,訊息類型欄位312中的位元“0”表示當前封包是屬於請求訊息。識別資訊欄位313用以記載發送此封包的通訊裝置之識別資訊“ID”。負載欄位314用以記載其他的封包內容,在此不對其中的內容進行限制。此外,在另一實施例中,請求訊息31中的各個欄位的排列順序可以被改變。Referring to FIG. 3, the packet structure of the request message 31 is composed of a header field 311, a message type field 312, an identification information field 313, and a payload field 314. Header field 311 is used to record information related to packet delivery, such as source internet protocol (source IP) address, destination internet protocol (destination IP) address, source port number, purpose Destination port number and media access control address. The message type field 312 is used to record whether the current packet belongs to a request message or a response message. For example, a bit "0" in the message type field 312 indicates that the current packet belongs to the request message. The identification information field 313 is used to record the identification information "ID" of the communication device that transmitted the packet. The load field 314 is used to record other packet contents, and the content thereof is not limited herein. Moreover, in another embodiment, the order in which the various fields in the request message 31 are arranged may be changed.

在本實施例中,回應訊息32的封包結構與請求訊息31類似或相互對應。在此需注意的是,訊息類型欄位322中的位元“1”表示當前封包是屬於回應訊息。識別資訊欄位323用以記載發送此封包的通訊裝置之識別資訊“ID”。此外,標頭欄位321用以記載與封包傳遞有關的資訊,負載欄位324用以記載其他的封包內容,在此不對其中的內容進行限制。In this embodiment, the packet structure of the response message 32 is similar to or corresponding to the request message 31. It should be noted here that the bit "1" in the message type field 322 indicates that the current packet belongs to the response message. The identification information field 323 is used to record the identification information "ID" of the communication device that transmitted the packet. In addition, the header field 321 is used to record information related to packet delivery, and the load field 324 is used to record other package contents, and the content is not limited herein.

值得一提的是,在圖3的另一實施例中,亦可以在負載324中增加至少一個欄位,以在新增的欄位中註記當前的回應封包32是第一回應封包或第二回應封包。或者,亦可以在訊息類型欄位322中增加一或多個位元以代表回應封包32為第一回應封包或第二回應封包。It is worth mentioning that in another embodiment of FIG. 3, at least one field may also be added to the load 324 to note that the current response packet 32 is the first response packet or the second in the newly added field. Respond to the packet. Alternatively, one or more bits may be added to the message type field 322 to represent the response packet 32 as a first response packet or a second response packet.

在本實施例中,請求訊息及對應的回應訊息中的識別資訊可以包括一或多種屬性的資訊。例如,此識別資訊可以包括序列號碼、媒體存取控制位址(Media Access Control address, MAC address)及專案名稱資訊的至少其中之一。伺服器裝置11可將識別資訊從請求訊息中讀取出來並且將其與儲存的群組資訊進行比對。In this embodiment, the identification information in the request message and the corresponding response message may include information of one or more attributes. For example, the identification information may include at least one of a sequence number, a Media Access Control address (MAC address), and a project name information. The server device 11 can read the identification information from the request message and compare it with the stored group information.

值得一提的是,在識別資訊包括多種屬性之資訊(例如,序列號碼、媒體存取控制位址及專案名稱資訊的至少其中兩者)的實施例中,當欲將請求訊息中的識別資訊與儲存的群組資訊進行比對時,伺服器裝置11會先識別出識別資訊中的每一筆資料的屬性。然後,再根據不同屬性的識別資訊分別與群組資訊中對應的項目(entry)進行比對。例如,在一實施例中,若請求訊息中的識別資訊包含兩種以上的資訊,則此些資訊在識別資訊及對應的回應訊息中的排序與資料大小會被預先定義。藉此,在接收到請求訊息之後,伺服器裝置11可以很容易地根據預先定義的封包格式來在封包中的特定位置讀取特定屬性的識別資訊。It is worth mentioning that in the embodiment in which the identification information includes information of a plurality of attributes (for example, at least two of a serial number, a media access control address, and a project name information), when the identification information in the request message is to be used When comparing with the stored group information, the server device 11 first identifies the attribute of each piece of information in the identification information. Then, according to the identification information of different attributes, the corresponding items in the group information are compared. For example, in an embodiment, if the identification information in the request message includes two or more types of information, the order and size of the information in the identification information and the corresponding response message are predefined. Thereby, after receiving the request message, the server device 11 can easily read the identification information of the specific attribute at a specific position in the packet according to the predefined packet format.

在另一實施例中,也可以是利用類型長度值(Type-Length-Value, TLV)等機制來設計封包。藉此,即使沒有預先定義不同屬性之識別資訊在封包中的排序與資料大小,伺服器裝置11仍然可以從封包中識別出當前要分析的資訊是屬於哪一種屬性的識別資訊。In another embodiment, the packet may also be designed by using a mechanism such as a Type-Length-Value (TLV). Thereby, even if the order of the identification information of different attributes in the packet and the data size are not defined in advance, the server device 11 can still identify, from the packet, the identification information of which attribute the information to be analyzed belongs to.

圖4是根據本發明的一實施例所繪示的基於TLV來分析封包中的識別資訊的示意圖。FIG. 4 is a schematic diagram of analyzing identification information in a packet based on a TLV according to an embodiment of the invention.

請參照圖4,假設接收到的請求訊息中的識別資訊欄位包括欄位401~403與411~413,則伺服器裝置11會先分析欄位401中的資訊(例如,“01”)。根據欄位401中的資訊,伺服器裝置11會得知欄位403中的資訊為序列號碼以及其是用來與群組資訊中對應於序列號碼之項目進行比對。然後,伺服器裝置11會接續分析欄位402中的資訊(例如,“4”)。根據欄位402中的資訊,伺服器裝置11會得知要從欄位403中讀取幾個位元(例如,4個位元)以取得對應的序列號碼“SN”。Referring to FIG. 4, if the identification information field in the received request message includes fields 401~403 and 411~413, the server device 11 first analyzes the information in the field 401 (for example, "01"). Based on the information in field 401, server device 11 will know that the information in field 403 is the serial number and that it is used to compare the items in the group information that correspond to the serial number. The server device 11 then continues to analyze the information in the field 402 (e.g., "4"). Based on the information in field 402, server device 11 will learn to read a few bits (e.g., 4 bits) from field 403 to obtain the corresponding sequence number "SN."

然後,伺服器裝置11會接續分析欄位411中的資訊(例如,“02”)。根據欄位411中的資訊,伺服器裝置11會得知欄位413中的資訊為媒體存取控制位址以及其是用來與群組資訊中對應於媒體存取控制位址之項目進行比對。然後,伺服器裝置11會接續分析欄位412中的資訊(例如,“8”)。根據欄位412中的資訊,伺服器裝置11會得知要從欄位413中讀取幾個位元(例如,8個位元)以取得對應的媒體存取控制位址“MAC”。The server device 11 then continues to analyze the information in the field 411 (e.g., "02"). Based on the information in field 411, server device 11 will know that the information in field 413 is the media access control address and that it is used to compare with the item corresponding to the media access control address in the group information. Correct. The server device 11 then continues to analyze the information in the field 412 (e.g., "8"). Based on the information in field 412, server device 11 will learn to read a few bits (e.g., 8 bits) from field 413 to obtain the corresponding media access control address "MAC."

值得一提的是,圖4的實施例是以包括序列號碼與媒體存取控制位址的識別資訊作為範例;然而,在另一實施例中,其他屬性的識別資訊(例如,專案名稱資訊)亦可以被採用作為識別資訊。此外,識別資訊欄位中各欄位的配置亦可以基於實務上的需求而調整。It is worth mentioning that the embodiment of FIG. 4 is exemplified by the identification information including the sequence number and the medium access control address; however, in another embodiment, the identification information of other attributes (for example, the project name information). It can also be used as identification information. In addition, the configuration of the fields in the identification information field can also be adjusted based on actual needs.

請再次參照圖1,在一實施例中,若所採用的識別資訊包括序列號碼,則分配給通訊裝置12_1~12_n中的每一者的序列號碼皆不相同。例如,對應於某一個硬體測試程序所分配給通訊裝置12_1~12_n中的每一者的序列號碼都是唯一的,不會有任兩台通訊裝置具有相同的序列號碼。在一實施例中,序列號碼與媒體存取控制位址可以作為識別資訊之雙重認證。在不同的硬體測試程序中,亦可以分配相同或不同的序列號碼給同一台通訊裝置。此外,在一實施例中,除了通訊裝置12_1~12_n各別的媒體存取控制位址是對應於所配置的網路介面單元而必然不相同之外,所提及的序列號碼、專案名稱資訊或者其他屬性的資訊都可以視實務上需求來進行設定,從而增加使用上的彈性。Referring again to FIG. 1, in an embodiment, if the identification information used includes the sequence number, the sequence numbers assigned to each of the communication devices 12_1~12_n are different. For example, the serial number assigned to each of the communication devices 12_1~12_n corresponding to a certain hardware test program is unique, and no two communication devices have the same serial number. In an embodiment, the sequence number and the media access control address may be used as dual authentication for identifying information. In the different hardware test procedures, the same or different serial numbers can also be assigned to the same communication device. In addition, in an embodiment, except that the respective media access control addresses of the communication devices 12_1~12_n are necessarily different from the configured network interface unit, the serial number and the project name information mentioned are mentioned. Or the information of other attributes can be set according to the actual needs, thereby increasing the flexibility of use.

圖5是根據本發明的另一實施例所繪示的開機系統的示意圖。請參照圖5,開機系統50包括伺服器裝置51_1~51_2、通訊裝置52_1~52_n及53_1~53_m。其中,伺服器裝置51_1與51_2皆相同或相似於圖1的伺服器裝置11,並且通訊裝置52_1~52_n及53_1~53_m皆相同或相似於圖1的通訊裝置12_1,故在此便不贅述。此外,伺服器裝置51_1~51_2、通訊裝置52_1~52_n及53_1~53_m皆連接至網路54。FIG. 5 is a schematic diagram of a booting system according to another embodiment of the invention. Referring to FIG. 5, the booting system 50 includes server devices 51_1~51_2, communication devices 52_1~52_n, and 53_1~53_m. The server devices 51_1 and 51_2 are the same or similar to the server device 11 of FIG. 1, and the communication devices 52_1~52_n and 53_1~53_m are the same or similar to the communication device 12_1 of FIG. 1, and thus will not be described herein. Further, the server devices 51_1 to 51_2, the communication devices 52_1 to 52_n, and 53_1 to 53_m are all connected to the network 54.

在本實施例中,假設伺服器裝置51_1是對應於通訊裝置52_1~52_n的測試主機並且伺服器裝置51_2是對應於通訊裝置53_1~53_m的測試主機,因此,伺服器裝置51_1會儲存有對應於通訊裝置52_1~52_n的群組資訊並且伺服器裝置51_2會儲存有對應於通訊裝置53_1~53_m的群組資訊。In this embodiment, it is assumed that the server device 51_1 is a test host corresponding to the communication devices 52_1~52_n and the server device 51_2 is a test host corresponding to the communication devices 53_1~53_m. Therefore, the server device 51_1 stores the corresponding The group information of the communication devices 52_1~52_n and the server device 51_2 store the group information corresponding to the communication devices 53_1~53_m.

在此實施例中,識別資訊被設定為包括專案名稱資訊。例如,第一專案名稱會被分配給通訊裝置52_1~52_n並儲存於伺服器裝置51_1的資料庫中作為所儲存之群組資訊中的至少部份資訊,而第二專案名稱被分配給通訊裝置53_1~53_m並儲存於伺服器裝置51_2的資料庫中作為所儲存之群組資訊中的至少部份資訊。藉此,在通訊裝置52_1~52_n及53_1~53_m中的至少其中之一發送出包含對應之識別資訊的請求訊息之後,伺服器裝置51_1可以很容易地僅針對識別資訊中包含第一專案名稱的請求訊息進行回應(例如,發送相對應的第一回應訊息給通訊裝置52_1~52_n),並且伺服器裝置51_2可以很容易地僅針對識別資訊中包含第二專案名稱的請求訊息進行回應(例如,發送相對應的第一回應訊息給通訊裝置53_1~53_m)。此外,在圖5的另一實施例中,其他屬性的識別資訊(例如,序列號碼與媒體存取控制位址)亦可以被採用作為是否回應第一回應訊息之依據,在此便不贅述。In this embodiment, the identification information is set to include the project name information. For example, the first project name is assigned to the communication devices 52_1~52_n and stored in the database of the server device 51_1 as at least part of the stored group information, and the second project name is assigned to the communication device. 53_1~53_m is stored in the database of the server device 51_2 as at least part of the stored group information. Therefore, after at least one of the communication devices 52_1~52_n and 53_1~53_m sends the request message including the corresponding identification information, the server device 51_1 can easily include only the first project name for the identification information. The request message is replied (for example, the corresponding first response message is sent to the communication device 52_1~52_n), and the server device 51_2 can easily respond only to the request message containing the second project name in the identification information (for example, The corresponding first response message is sent to the communication devices 53_1~53_m). In addition, in another embodiment of FIG. 5, identification information of other attributes (for example, a sequence number and a media access control address) may also be adopted as a basis for responding to the first response message, and details are not described herein.

圖6是根據本發明的一實施例所繪示的性儲存單元的示意圖。值得一提的是,本實施例是以圖2的通訊裝置12_1之儲存單元22作為範例,但相關說明亦可以套用至圖1與圖5中任一通訊裝置中。FIG. 6 is a schematic diagram of a sexual storage unit according to an embodiment of the invention. It should be noted that the present embodiment is exemplified by the storage unit 22 of the communication device 12_1 of FIG. 2, but the related description can also be applied to any of the communication devices of FIG. 1 and FIG.

請參照圖6,在本實施例中,通訊裝置12_1之儲存單元22的儲存區被劃分為開機讀取區61、第一系統儲存區62、第二系統儲存區63及開機資料儲存區64。開機讀取區61用以儲存開機碼(boot code)。在一實施例中,開機碼亦稱為開機讀取器(boot loader)。第一系統儲存區62用以儲存第一系統的程式碼。第二系統儲存區63用以儲存第二系統的程式碼。開機資料儲存區64則用以儲存屬於通訊裝置12_1的識別資訊。Referring to FIG. 6, in the embodiment, the storage area of the storage unit 22 of the communication device 12_1 is divided into a boot reading area 61, a first system storage area 62, a second system storage area 63, and a boot data storage area 64. The boot read area 61 is used to store a boot code. In an embodiment, the boot code is also referred to as a boot loader. The first system storage area 62 is used to store the code of the first system. The second system storage area 63 is used to store the code of the second system. The boot data storage area 64 is used to store the identification information belonging to the communication device 12_1.

請同時參照圖2與圖6,在一實施例中,反應於所偵測到的開機訊號,處理器21會從開機讀取區61中讀取並且運行開機碼。根據開機碼,處理器21會初始化網路介面單元23並且從開機資料儲存區64中讀取識別資訊。在取得識別資訊之後,處理器21會將此識別資訊加入至請求訊息中並且指示網路介面單元23發送請求訊息。然後,若在上述預設時間範圍內有接收到相對應的回應訊息(即,第一回應訊息),則處理器21會從第一系統儲存區62中載入第一系統並且基於第一系統來執行開機程序。此外,若在上述預設時間範圍內未接收到相對應的回應訊息,則處理器21會從第二系統儲存區63中載入第二系統並且基於第二系統來執行開機程序。Referring to FIG. 2 and FIG. 6 simultaneously, in an embodiment, in response to the detected boot signal, the processor 21 reads and runs the boot code from the boot read area 61. Based on the boot code, the processor 21 initializes the network interface unit 23 and reads the identification information from the boot data storage area 64. After obtaining the identification information, the processor 21 adds the identification information to the request message and instructs the network interface unit 23 to send the request message. Then, if a corresponding response message (ie, the first response message) is received within the preset time range, the processor 21 loads the first system from the first system storage area 62 and is based on the first system. To execute the boot process. In addition, if the corresponding response message is not received within the preset time range, the processor 21 loads the second system from the second system storage area 63 and executes the booting process based on the second system.

在一實施例中,在偵測到開機訊號時,開機資料儲存區64並沒有儲存所需的識別資訊。因此,在此實施例中,在偵測到開機訊號之後,處理器21會經由輸入/輸出介面單元27接收輸入訊號並且根據此輸入訊號將所需的識別資訊儲存至開機資料儲存區64。例如,在一實施例中,輸入/輸出介面單元27會連接至一條碼讀取器(未繪示)。此條碼讀取器會被用來讀取黏貼在通訊裝置12_1上(例如,通訊裝置12_1的主機板上)的條碼並且將讀取到的條碼資訊轉換為輸入訊號傳送給輸入/輸出介面單元27。根據此輸入訊號,處理器21即可獲得通訊裝置12_1的識別資訊並且將其加入至欲發送的請求訊息中。或者,在另一實施例中,條碼讀取器亦可以用任意的輸入裝置(例如,影像擷取裝置或鍵盤等)來取代。此外,在另一實施例中,亦可以在執行相關的硬體測試之前就預先透過上述條碼讀取器等輸入裝置來將識別資訊儲存至開機資料儲存區64中,從而後續的硬體測試程序可以順利進行。In an embodiment, when the boot signal is detected, the boot data storage area 64 does not store the required identification information. Therefore, in this embodiment, after detecting the power-on signal, the processor 21 receives the input signal via the input/output interface unit 27 and stores the required identification information into the boot data storage area 64 according to the input signal. For example, in one embodiment, the input/output interface unit 27 is coupled to a code reader (not shown). The bar code reader is used to read the bar code pasted on the communication device 12_1 (for example, the motherboard of the communication device 12_1) and convert the read bar code information into an input signal for transmission to the input/output interface unit 27 . Based on the input signal, the processor 21 can obtain the identification information of the communication device 12_1 and add it to the request message to be transmitted. Alternatively, in another embodiment, the barcode reader may be replaced with any input device (eg, an image capture device or a keyboard, etc.). In addition, in another embodiment, the identification information may be stored in the boot data storage area 64 through the input device such as the barcode reader before the related hardware test is performed, so that the subsequent hardware test program is performed. Can go smoothly.

圖7是根據本發明的一實施例所繪示的開機方法的流程圖。此實施例所提及的步驟S701~S706適用於圖1或圖5中的任一通訊裝置。FIG. 7 is a flow chart of a booting method according to an embodiment of the invention. Steps S701 to S706 mentioned in this embodiment are applicable to any of the communication devices in FIG. 1 or 5.

請參照圖7,在步驟S701中,偵測開機訊號。在步驟S702中,初始化網路介面單元。在步驟S703中,發送包括識別資訊的請求訊息。在步驟S704中,判斷在發送所述請求訊息之後的一預設時間範圍內是否接收到對應於所發送之請求訊息的第一回應訊息。若在此預設時間範圍內有接收到所述第一回應訊息,在步驟S705中,基於第一系統執行開機程序。反之,若在此預設時間範圍內未接收到所述第一回應訊息,在步驟S706中,基於第二系統執行開機程序。Referring to FIG. 7, in step S701, a power-on signal is detected. In step S702, the network interface unit is initialized. In step S703, a request message including identification information is transmitted. In step S704, it is determined whether a first response message corresponding to the transmitted request message is received within a preset time range after transmitting the request message. If the first response message is received within the preset time range, in step S705, the booting process is executed based on the first system. On the other hand, if the first response message is not received within the preset time range, in step S706, the booting process is executed based on the second system.

圖8是根據本發明的另一實施例所繪示的開機方法的流程圖。此實施例所提及的步驟S801~S805適用於圖1或圖5中的任一伺服器裝置。FIG. 8 is a flow chart of a booting method according to another embodiment of the invention. Steps S801 to S805 mentioned in this embodiment are applicable to any of the server devices of FIG. 1 or 5.

請參照圖8,在步驟S801中,運行伺服器模組。在步驟S802中,接收來自通訊裝置的請求訊息。在步驟S803中,判斷接收到的請求訊息中的識別資訊與事先儲存的群組資訊是否吻合。若接收到的請求訊息中的識別資訊與儲存的群組資訊吻合,在步驟S804中,發送對應的第一回應訊息。反之,若接收到的請求訊息中的識別資訊與儲存的群組資訊不吻合,在步驟S805中,發送對應的第二回應訊息或者直接捨棄所接收到的請求訊息。Referring to FIG. 8, in step S801, the server module is operated. In step S802, a request message from the communication device is received. In step S803, it is determined whether the identification information in the received request message matches the previously stored group information. If the identification information in the received request message matches the stored group information, in step S804, the corresponding first response message is sent. On the other hand, if the identification information in the received request message does not match the stored group information, in step S805, the corresponding second response message is sent or the received request message is directly discarded.

在本實施例中,所述伺服器模組用以執行上述實施例中提及的分析來自通訊裝置之請求訊息、將請求訊息中的識別資訊與儲存的群組資訊進行比對以及根據比對結果決定是否回傳第一回應訊息等操作。所述伺服器模組可以實作為軟體模組或硬體電路,本發明不加以限制。In this embodiment, the server module is configured to perform the analysis of the request message from the communication device mentioned in the foregoing embodiment, compare the identification information in the request message with the stored group information, and compare the data according to the comparison. The result determines whether to return the first response message and so on. The server module can be implemented as a software module or a hardware circuit, and the invention is not limited.

綜上所述,在偵測到開機訊號之後,通訊裝置會發送帶有識別資訊的請求訊息至伺服器裝置。然後,伺服器裝置會接收此請求訊息並且對其進行分析。若伺服器裝置判定請求訊息中的識別資訊與儲存的群組資訊吻合,則伺服器裝置回傳對應的回應訊息。若在發送請求訊息之後的一預設時間範圍內通訊裝置接收到來自伺服器裝置的特定回應訊息,則通訊裝置會自動地基於多個系統中的第一系統來執行開機程序。藉此,可減少人工控制要進入哪一個系統所造成的人力資源浪費。In summary, after detecting the boot signal, the communication device sends a request message with the identification information to the server device. The server device then receives the request message and analyzes it. If the server device determines that the identification information in the request message matches the stored group information, the server device returns a corresponding response message. If the communication device receives a specific response message from the server device within a predetermined time range after transmitting the request message, the communication device automatically executes the boot process based on the first system of the plurality of systems. Thereby, it is possible to reduce the waste of human resources caused by manual control of which system to enter.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

10、50‧‧‧開機系統
11、51_1、51_2‧‧‧伺服器裝置
12_1~12_n、52_1~52_n、53_1~53_m‧‧‧通訊裝置
13、54‧‧‧網路
21‧‧‧處理器
22‧‧‧儲存單元
23‧‧‧網路介面單元
24‧‧‧燈號元件
25‧‧‧實體連接介面元件
26‧‧‧硬體元件
27‧‧‧輸入/輸出介面單元
31‧‧‧請求訊息
32‧‧‧回應訊息
311、321‧‧‧標頭欄位
312、322‧‧‧訊息類型欄位
313、323‧‧‧識別資訊欄位
314、324‧‧‧負載欄位
401~403、411~413‧‧‧欄位
61‧‧‧開機讀取區
62‧‧‧第一系統儲存區
63‧‧‧第二系統儲存區
64‧‧‧開機資料儲存區
S701~S706、S801~S805‧‧‧步驟
10, 50‧‧‧ boot system
11, 51_1, 51_2‧‧‧ server devices
12_1~12_n, 52_1~52_n, 53_1~53_m‧‧‧ communication devices
13, 54‧‧‧Network
21‧‧‧ Processor
22‧‧‧ storage unit
23‧‧‧Network Interface Unit
24‧‧‧Light components
25‧‧‧Physical connection interface components
26‧‧‧ hardware components
27‧‧‧Input/output interface unit
31‧‧‧Request message
32‧‧‧Response message
311, 321‧‧‧ header field
312, 322‧‧‧ message type field
313, 323‧‧‧ Identify information fields
314, 324‧‧‧ load field
401~403, 411~413‧‧‧ fields
61‧‧‧Start reading area
62‧‧‧First system storage area
63‧‧‧Second system storage area
64‧‧‧ boot data storage area
S701~S706, S801~S805‧‧‧ steps

圖1是根據本發明的一實施例所繪示的開機系統的示意圖。 圖2是根據本發明的一實施例所繪示的通訊裝置的示意圖。 圖3是根據本發明的一實施例所繪示的請求訊息與回應訊息的示意圖。 圖4是根據本發明的一實施例所繪示的基於類型長度值(Type-Length-Value, TLV)來分析封包中的識別資訊的示意圖。 圖5是根據本發明的另一實施例所繪示的開機系統的示意圖。 圖6是根據本發明的一實施例所繪示的儲存單元的示意圖。 圖7是根據本發明的一實施例所繪示的開機方法的流程圖。 圖8是根據本發明的另一實施例所繪示的開機方法的流程圖。FIG. 1 is a schematic diagram of a booting system according to an embodiment of the invention. FIG. 2 is a schematic diagram of a communication device according to an embodiment of the invention. FIG. 3 is a schematic diagram of a request message and a response message according to an embodiment of the invention. FIG. 4 is a schematic diagram of analyzing identification information in a packet based on a Type-Length-Value (TLV) according to an embodiment of the invention. FIG. 5 is a schematic diagram of a booting system according to another embodiment of the invention. FIG. 6 is a schematic diagram of a storage unit according to an embodiment of the invention. FIG. 7 is a flow chart of a booting method according to an embodiment of the invention. FIG. 8 is a flow chart of a booting method according to another embodiment of the invention.

S701~S706‧‧‧步驟 S701~S706‧‧‧Steps

Claims (12)

一種開機方法,包括: 由一通訊裝置偵測一開機訊號,其中該通訊裝置包括一網路介面單元與一儲存單元,其中該儲存單元用以儲存一第一系統與一第二系統; 反應於該開機訊號,由該網路介面單元發送一請求訊息,其中該請求訊息包括一識別資訊; 由一伺服器裝置接收該請求訊息,其中該伺服器裝置用以儲存一群組資訊; 若該請求訊息中的該識別資訊與該群組資訊吻合,由該伺服器裝置發送對應於該請求訊息的一第一回應訊息;以及 若在發送該請求訊息之後的一預設時間範圍內該網路介面單元接收到該第一回應訊息,由該通訊裝置基於該第一系統執行一開機程序。A booting method includes: detecting, by a communication device, a boot signal, wherein the communication device includes a network interface unit and a storage unit, wherein the storage unit is configured to store a first system and a second system; The boot signal is sent by the network interface unit, wherein the request message includes an identification message; the request message is received by a server device, wherein the server device is configured to store a group of information; The identification information in the message is consistent with the group information, and the server device sends a first response message corresponding to the request message; and if the network interface is within a preset time range after sending the request message The unit receives the first response message, and the communication device executes a booting procedure based on the first system. 如申請專利範圍第1項所述的開機方法,其中反應於該開機訊號而由該網路介面單元發送該請求訊息的步驟包括: 反應於該開機訊號,初始化該網路介面單元。The booting method of claim 1, wherein the step of transmitting the request message by the network interface unit in response to the boot signal comprises: initializing the network interface unit in response to the boot signal. 如申請專利範圍第1項所述的開機方法,更包括: 若該請求訊息中的該識別資訊與該群組資訊不吻合,由該伺服器裝置發送對應於該請求訊息的一第二回應訊息或捨棄該請求訊息。The booting method of claim 1, further comprising: if the identification information in the request message does not match the group information, sending, by the server device, a second response message corresponding to the request message Or discard the request message. 如申請專利範圍第1項所述的開機方法,更包括: 若在該預設時間範圍內未接收到該第一回應訊息,由該通訊裝置基於該第二系統執行該開機程序。The booting method of claim 1, further comprising: if the first response message is not received within the preset time range, the communication device executes the booting procedure based on the second system. 如申請專利範圍第1項所述的開機方法,其中該第一系統為一測試系統,其中該測試系統用以測試該通訊裝置的至少一硬體元件,其中該第二系統為一預設作業系統。The booting method of claim 1, wherein the first system is a test system, wherein the test system is configured to test at least one hardware component of the communication device, wherein the second system is a preset operation system. 如申請專利範圍第1項所述的開機方法,其中該識別資訊包括一序列號碼、一媒體存取控制位址及一專案名稱資訊的至少其中之一。The booting method of claim 1, wherein the identification information comprises at least one of a serial number, a media access control address, and a project name information. 如申請專利範圍第1項所述的開機方法,其中該通訊裝置更包括一輸入/輸出介面單元,該開機方法更包括: 在偵測到該開機訊號之後,由該輸入/輸出介面單元接收一輸入訊號;以及 根據該輸入訊號將該識別資訊儲存至該儲存單元的一開機資料儲存區。The booting method of claim 1, wherein the communication device further comprises an input/output interface unit, the booting method further comprising: receiving, after detecting the boot signal, receiving, by the input/output interface unit Inputting a signal; and storing the identification information according to the input signal to a boot data storage area of the storage unit. 一種開機系統,包括: 一通訊裝置,其包括一處理器、一網路介面單元與一儲存單元,其中該處理器耦接至該網路介面單元與該儲存單元,其中該儲存單元用以儲存一第一系統與一第二系統;以及 一伺服器裝置,儲存一群組資訊,其中該伺服器裝置可與該通訊裝置進行溝通; 其中該處理器用以偵測一開機訊號, 其中反應於該開機訊號,該網路介面單元用以發送一請求訊息,其中該請求訊息包括一識別資訊, 其中該伺服器裝置用以接收該請求訊息, 其中若該請求訊息中的該識別資訊與該群組資訊吻合,該伺服器裝置更用以發送對應於該請求訊息的一第一回應訊息, 其中若在發送該請求訊息之後的一預設時間範圍內該網路介面單元接收到該第一回應訊息,該處理器更用以基於該第一系統執行一開機程序。A booting system, comprising: a communication device, comprising: a processor, a network interface unit and a storage unit, wherein the processor is coupled to the network interface unit and the storage unit, wherein the storage unit is configured to store a first system and a second system; and a server device for storing a group of information, wherein the server device can communicate with the communication device; wherein the processor is configured to detect a boot signal, wherein the a booting signal, the network interface unit is configured to send a request message, where the request message includes an identification message, wherein the server device is configured to receive the request message, wherein the identification information in the request message and the group The information is matched, and the server device is further configured to send a first response message corresponding to the request message, where the network interface unit receives the first response message within a preset time range after sending the request message. The processor is further configured to perform a boot process based on the first system. 如申請專利範圍第8項所述的開機系統,其中若該請求訊息中的該識別資訊與該群組資訊不吻合,該伺服器裝置更用以發送對應於該請求訊息的一第二回應訊息或捨棄該請求訊息。The booting system of claim 8, wherein if the identification information in the request message does not match the group information, the server device is further configured to send a second response message corresponding to the request message. Or discard the request message. 如申請專利範圍第8項所述的開機系統,其中若在該預設時間範圍內未接收到該第一回應訊息,該處理器更用以基於該第二系統執行該開機程序。The booting system of claim 8, wherein the processor is further configured to execute the booting process based on the second system if the first response message is not received within the preset time range. 如申請專利範圍第8項所述的開機系統,其中該第一系統為一測試系統,其中該測試系統用以測試該通訊裝置的至少一硬體元件,其中該第二系統為一預設作業系統。The booting system of claim 8, wherein the first system is a test system, wherein the test system is configured to test at least one hardware component of the communication device, wherein the second system is a preset operation system. 如申請專利範圍第8項所述的開機系統,其中該識別資訊包括一序列號碼、一媒體存取控制位址及一專案名稱資訊的至少其中之一。The booting system of claim 8, wherein the identification information comprises at least one of a serial number, a media access control address, and a project name information.
TW104138401A 2015-11-20 2015-11-20 Booting method and booting system TW201719401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW104138401A TW201719401A (en) 2015-11-20 2015-11-20 Booting method and booting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104138401A TW201719401A (en) 2015-11-20 2015-11-20 Booting method and booting system

Publications (1)

Publication Number Publication Date
TW201719401A true TW201719401A (en) 2017-06-01

Family

ID=59687563

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104138401A TW201719401A (en) 2015-11-20 2015-11-20 Booting method and booting system

Country Status (1)

Country Link
TW (1) TW201719401A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI672704B (en) * 2018-08-14 2019-09-21 華邦電子股份有限公司 Memory device and memory control method thereof
TWI778320B (en) * 2020-01-15 2022-09-21 立端科技股份有限公司 Method and system of automatically launch a secure of the operating system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI672704B (en) * 2018-08-14 2019-09-21 華邦電子股份有限公司 Memory device and memory control method thereof
TWI778320B (en) * 2020-01-15 2022-09-21 立端科技股份有限公司 Method and system of automatically launch a secure of the operating system

Similar Documents

Publication Publication Date Title
TWI638260B (en) An operable system when standby power of psu fails and computer-implemented method, non-transitory computer-readable storage medium thereof
US20180324139A1 (en) Communication apparatus and communication method therefor
US20070101323A1 (en) Automatic virtual machine adjustments to network changes
TWI652562B (en) System, method and non-transitory computer-readable storage medium for voltage regulator self-burn-in test
US7886139B2 (en) Method to enable firmware to boot a system from an ISCSI device
US10194371B2 (en) Communication apparatus and control method of communication apparatus
CN108536476B (en) Computer-implemented method and system for dynamically optimizing operating frequency of server system
CN108924274B (en) Domain name system DNS processing method and device, storage medium and electronic equipment
US20150026322A1 (en) Configuring a network device
US20150139243A1 (en) System and Method for Utilizing a Unique Identifier while Registering a Device in a Network
US10630542B2 (en) Method for automatically initializing network device, remote server and network system using the same
JP2010147553A (en) Information management device, and identification information collecting method and program
WO2019071800A1 (en) Electronic device and network sharing method and device
WO2016119623A1 (en) Method and device for realizing network sharing
TW201719401A (en) Booting method and booting system
KR20160130457A (en) Determination method and corresponding terminal, computer program product and storage medium
TWI501090B (en) Server system and node detection method
CN100448202C (en) Method and device for detecting conflict of IP addresses in networked computers
US20230126360A1 (en) Wifi network access method, communication method, peripheral apparatus, and storage medium
US20240154874A1 (en) Bare metal detection method and system, and related component
US10862849B2 (en) Address resolution system
US20170019270A1 (en) Communication apparatus, server, communication system, and communication method
JP2007257266A (en) Information processor, device display processing method, storage medium and program
US11050860B2 (en) Method and apparatus for network address analysis
WO2020018113A1 (en) Assigning power sources