TWI502922B - Method and server for keeping apparatuses in alive state - Google Patents

Method and server for keeping apparatuses in alive state Download PDF

Info

Publication number
TWI502922B
TWI502922B TW102105565A TW102105565A TWI502922B TW I502922 B TWI502922 B TW I502922B TW 102105565 A TW102105565 A TW 102105565A TW 102105565 A TW102105565 A TW 102105565A TW I502922 B TWI502922 B TW I502922B
Authority
TW
Taiwan
Prior art keywords
electronic devices
groups
server
processing unit
connection information
Prior art date
Application number
TW102105565A
Other languages
Chinese (zh)
Other versions
TW201434289A (en
Inventor
Ming Chun Wu
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to TW102105565A priority Critical patent/TWI502922B/en
Publication of TW201434289A publication Critical patent/TW201434289A/en
Application granted granted Critical
Publication of TWI502922B publication Critical patent/TWI502922B/en

Links

Description

維持裝置隨時可喚醒狀態的方法及伺服器Method and server for maintaining the device to wake up at any time

本發明是有關於一種維持裝置狀態的方法及裝置,且特別是有關於一種維持多個裝置於隨時可喚醒狀態的方法及伺服器。The present invention relates to a method and apparatus for maintaining a state of a device, and more particularly to a method and server for maintaining a plurality of devices in a ready-to-awake state.

隨著電腦科技及網際網路的蓬勃發展,雲端運算(cloud computing)應用也日趨普遍。在雲端運算網路中,使用者不需要知道用於計算的基礎結構(infrastructure)的地點以及其他細節,即可以使用雲端運算所提供用來計算、資料存取以及儲存的資源。透過使用位於雲端網路之中的其他電腦的資源,可以讓運算能力較低的裝置(例如手機)使用這些資源來處理資料,進而使得其可以使用高運算能力的電腦(例如伺服器)才能執行的功能。With the rapid development of computer technology and the Internet, cloud computing applications are becoming more common. In a cloud computing network, the user does not need to know the location of the infrastructure used for the calculation and other details, that is, the resources provided for computing, data access, and storage provided by the cloud computing. By using the resources of other computers located in the cloud network, devices with lower computing power (such as mobile phones) can use these resources to process data, so that they can use high-performance computers (such as servers) to execute. The function.

在雲端運算的瞬間喚醒全時線上(instant on always connect,IOAC)技術中,伺服器需透過發送持續(keep-alive)訊息至電子裝置來維持電子裝置於可喚醒狀態(alive-state),以便使用者隨時可透過伺服器的連結,喚醒電子裝置以存取資料。然而,當電子裝置超過一預設時間仍未收到持續訊息時,即會進入待機或睡眠狀態,從而切斷其與伺服器的連線。如此,除非使用者重新在本地端喚醒或啟動電子裝置以與伺服器建立連線,否則使用者將無法使用伺服器所提供的遠端存取服務。In the instant on always connect (IOAC) technology of the cloud computing, the server needs to maintain the electronic device in an awkward state by sending a keep-alive message to the electronic device. The user can wake up the electronic device to access the data at any time through the connection of the server. However, when the electronic device does not receive the persistent message for more than a predetermined time, it enters the standby or sleep state, thereby cutting off its connection with the server. As such, unless the user wakes up or activates the electronic device at the local end to establish a connection with the server, the user will not be able to use the remote access service provided by the server.

一般而言,伺服器每隔一固定時間即會發送一次持續訊息至所有的電子裝置。當電子裝置的數量增加時,伺服器發送持續訊息的數量也隨之增加,而當裝置的數量過多時,伺服器即有可能因為發送訊息過多而導致過載的情形。In general, the server sends a continuous message to all electronic devices every fixed time. When the number of electronic devices increases, the number of persistent messages sent by the server also increases, and when the number of devices is too large, the server may be overloaded due to excessive message transmission.

有鑑於此,本發明提供一種維持電子裝置隨時可喚醒狀態的方法,可避免伺服器在發送持續訊息時出現過載的情形。In view of this, the present invention provides a method for maintaining an awake state of an electronic device at any time, which can avoid a situation in which the server is overloaded when transmitting a persistent message.

本發明提供一種維持裝置隨時可喚醒狀態的方法,適於由伺服器維持多個電子裝置於可喚醒狀態,各個電子裝置分別透過網路與伺服器連結。此方法首先取得與伺服器連結之電子裝置的連結資訊,並依據連結資訊計算用以將所述電子裝置區分為多個群組的群組數目。接著,依據連結資訊及群組數目,將所述電子裝置區分為多個群組。之後,循序發送持續訊息至各個群組中的電子裝置,以將所述電子裝置維持於可喚醒狀態。The invention provides a method for maintaining a wake-up state of a device at any time, which is suitable for maintaining a plurality of electronic devices in an awake state by a server, and each electronic device is respectively connected to a server through a network. The method first obtains connection information of the electronic device connected to the server, and calculates a number of groups for dividing the electronic device into a plurality of groups according to the connection information. Then, the electronic device is divided into a plurality of groups according to the connection information and the number of groups. Thereafter, the continuous message is sequentially sent to the electronic devices in the respective groups to maintain the electronic device in the awakeable state.

另一觀點而言,本發明提供一種伺服器,其包括通訊單元以及處理單元。其中,通訊單元透過網路與多個電子裝置連結,並取得這些電子裝置的連結資訊。處理單元依據連結資訊,計算用以將這些電子裝置區分為多個群組的群組數目,並依據連結資訊及群組數目,將電子裝置區分為多個群組。其中,處理單元依據所區分的群組,控制通訊單元循序發送持續訊息至各個群組中的電子裝置,以將 這些電子裝置維持於可喚醒狀態。In another aspect, the present invention provides a server that includes a communication unit and a processing unit. The communication unit is connected to a plurality of electronic devices through a network, and obtains connection information of the electronic devices. The processing unit calculates the number of groups for dividing the electronic devices into a plurality of groups according to the connection information, and divides the electronic device into a plurality of groups according to the connection information and the number of groups. The processing unit controls the communication unit to sequentially send the persistent message to the electronic devices in each group according to the differentiated group, so that These electronic devices are maintained in an awake state.

基於上述,本發明之伺服器及其維持裝置於隨時可喚醒狀態的方法透過將電子裝置分群的方式,使得伺服器在發送持續訊息時能夠以群組為單位來發送,而不需一次發送至所有的電子裝置。如此一來,可避免伺服器因一次發送過多訊息而導致過載的情形。Based on the above, the server of the present invention and the maintenance device thereof are in a ready-to-awake state by means of grouping the electronic devices, so that the server can transmit in a group unit when transmitting the persistent message, without sending to the primary device once. All electronic devices. In this way, the server can be prevented from being overloaded due to sending too many messages at a time.

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

圖1是依據本發明之一實施例繪示的網路伺服系統示意圖。在本實施例中,網路伺服系統100包括伺服器110、網路120以及電子裝置130_1~130_R(R為正整數)。伺服器包括通訊單元112及處理單元114。其中,通訊單元112係透過網路120與電子裝置130_1~130_R進行通訊;處理單元114例如是中央處理單元(central processing unit,CPU)、微控制器單元(micro controller unit,MCU)、處理晶片或電腦系統等硬體元件,或是具備訊號處理功能的軟體元件(例如訊號處理的應用程式),此外,處理器110也可以是硬體及軟體元件的組合。電子裝置130_1~130_R例如是筆記型電腦(laptop)、個人電腦或工作站等具有網路連結功能的電子裝置,但不限於此。1 is a schematic diagram of a network servo system according to an embodiment of the invention. In the present embodiment, the network servo system 100 includes a server 110, a network 120, and electronic devices 130_1~130_R (R is a positive integer). The server includes a communication unit 112 and a processing unit 114. The communication unit 112 communicates with the electronic devices 130_1~130_R through the network 120. The processing unit 114 is, for example, a central processing unit (CPU), a micro controller unit (MCU), a processing chip, or A hardware component such as a computer system or a software component (such as a signal processing application) having a signal processing function, and the processor 110 may also be a combination of a hardware and a software component. The electronic devices 130_1 to 130_R are, for example, electronic devices having a network connection function such as a laptop, a personal computer, or a workstation, but are not limited thereto.

在雲端運算的網路技術中,使用者可用可攜式裝置(例如智慧型手機)在外透過伺服器110存取位於使用者家中 的電子裝置(例如個人電腦,進而使用電腦進行多元化的操作。換言之,即便使用者不在家中,其仍可透過伺服器110來存取其家中電子裝置內的資料,或是使用電子裝置來進行較複雜的運算。In the cloud computing network technology, the user can access the user's home through the server 110 through a portable device (such as a smart phone). Electronic devices (such as personal computers, and then use a computer for a variety of operations. In other words, even if the user is not at home, they can still access the data in the electronic device of the home through the server 110, or use the electronic device to perform More complicated operations.

然而,一般而言,電子裝置130_1~130_R有可能因為使用者暫時不存取而進入休眠或是待機的狀態,進而中斷了其與伺服器110之間的連結。如此一來,使用者便無法再從外部連結這些電子裝置130_1~130_R。而為了使電子裝置130_1~130_R能夠即時地反應使用者的存取而被喚醒(wake-up)並切換為工作狀態,伺服器110中的通訊單元112會透過網路120定時發送持續(keep-alive)訊息KA至130_1~130_R,以將電子裝置130_1~130_R維持於可喚醒狀態(alive-state)。透過伺服器110對電子裝置130_1~130_R發送持續訊息KA,每當使用者透過伺服器110存取電子裝置時,電子裝置可即時地被喚醒而切換為工作狀態,以提供使用者例如資料存取的服務。However, in general, the electronic devices 130_1~130_R may enter a sleep or standby state because the user temporarily does not access, thereby interrupting the connection with the server 110. As a result, the user can no longer connect the electronic devices 130_1~130_R from the outside. In order to enable the electronic devices 130_1~130_R to be wake-up and switch to the working state in response to the user's access, the communication unit 112 in the server 110 transmits the time through the network 120 continuously (keep- The alive) messages KA to 130_1~130_R to maintain the electronic devices 130_1~130_R in an alive-state. The persistent message KA is sent to the electronic device 130_1~130_R through the server 110. When the user accesses the electronic device through the server 110, the electronic device can be instantly awake and switched to the working state to provide the user with access to the data. Service.

圖2是依據本發明之一實施例繪示的維持裝置隨時可喚醒狀態方法的流程圖。請同時參照圖1及圖2,在本實施例中的方法適用於圖1的伺服器110,以下即搭配圖1中的各項元件說明本發明伺服器110將電子裝置130_1~130_R維持於隨時可喚醒狀態之方法的詳細步驟: 首先,在步驟S210中,通訊單元112可取得電子裝置130_1~130_R的連結資訊,所述連結資訊例如是與伺服器110連結的電子裝置130_1~130_R的裝置數目(亦即R)。2 is a flow chart of a method for maintaining a ready-to-awake state of a device according to an embodiment of the invention. Referring to FIG. 1 and FIG. 2 simultaneously, the method in this embodiment is applicable to the server 110 of FIG. 1. Hereinafter, the server 110 of the present invention maintains the electronic devices 130_1~130_R at any time with the components in FIG. Detailed steps for the method of waking up the state: First, in step S210, the communication unit 112 can obtain the connection information of the electronic devices 130_1~130_R, for example, the number of devices (ie, R) of the electronic devices 130_1~130_R connected to the server 110.

在通訊單元112取得電子裝置130_1~130_R的裝置數目之後,在步驟S220中,處理單元114可依據伺服器110管理電子裝置130_1~130_R的某些準則來決定用以區分電子裝置130_1~130_R的群組數目。舉例而言,假若伺服器110的持續訊息KA的發送頻率需要每3秒發送一次方能將電子裝置130_1~130_R維持於可喚醒狀態,而每發一次持續訊息KA需要例如1秒的時間。處理單元114即可得知最多只能將電子裝置130_1~130_R區分為三組,以符合伺服器110管理電子裝置130_1~130_R的準則。因此,處理單元114可將電子裝置130_1~130_R區分為三個群組GP1~GP3。After the communication unit 112 obtains the number of devices of the electronic devices 130_1~130_R, in step S220, the processing unit 114 may determine the group for distinguishing the electronic devices 130_1~130_R according to certain criteria of the server 110 managing the electronic devices 130_1~130_R. The number of groups. For example, if the transmission frequency of the persistent message KA of the server 110 needs to be transmitted every 3 seconds, the electronic devices 130_1~130_R can be maintained in the awake state, and each time the persistent message KA is sent, for example, 1 second is required. The processing unit 114 can know that the electronic devices 130_1~130_R can be divided into three groups at most, so as to meet the criteria for the server 110 to manage the electronic devices 130_1~130_R. Therefore, the processing unit 114 can divide the electronic devices 130_1~130_R into three groups GP1 GP3.

換言之,處理單元114可基於例如上述伺服器110發送持續訊息KA的發送頻率(例如每3秒發送一次持續訊息KA),以及每發送一次持續訊息KA所需的時間(例如1秒)的管理準則來計算可用群組數目的最大值,用以將群組數目限制在不超過此最大值。也就是說,即使電子裝置130_1~130_R在圖1中被分為三個群組GP1~GP3,但是在其他實施例中,處理單元114亦可將電子裝置130_1~130_R區分為一個或兩個群組,而不會違反上述伺服器110管理電子裝置130_1~130_R的準則。In other words, the processing unit 114 can be based on, for example, the above-described server 110 transmitting a continuous message KA (eg, sending a persistent message KA every 3 seconds), and a management criterion for each time (eg, 1 second) required to send the persistent message KA. To calculate the maximum number of available groups to limit the number of groups to no more than this maximum. That is, even if the electronic devices 130_1~130_R are divided into three groups GP1~GP3 in FIG. 1, in other embodiments, the processing unit 114 may also divide the electronic devices 130_1~130_R into one or two groups. The group does not violate the criteria of the server 110 managing the electronic devices 130_1~130_R.

舉例而言,假若處理單元110將電子裝置130_1~130_R區分為兩個群組,則通訊單元112可用1.5秒作為間隔來輪流發送持續訊息KA至所述兩個群組,以將電子裝置130_1~130_R維持於可喚醒狀態。然而,本領 域具通常知識者應當知曉,上述的發送頻率、伺服器110對於電子裝置130_1~130_R的管理準則以及其他各個數目(例如群組數目)僅用以舉例說明,本發明的可實施方式不僅限於此。For example, if the processing unit 110 divides the electronic devices 130_1~130_R into two groups, the communication unit 112 may send the persistent message KA to the two groups in turn by using 1.5 seconds as an interval to connect the electronic device 130_1~ 130_R is maintained in a wakeable state. However, the ability Those skilled in the art should be aware that the above-mentioned transmission frequency, the management criteria of the server 110 for the electronic devices 130_1~130_R, and other various numbers (for example, the number of groups) are merely for illustration, and the embodiments of the present invention are not limited thereto. .

此外,在其他實施例中,處理單元114還可依據通訊單元112的多播能力來限制在各個群組中電子裝置的群組裝置數目。所述多播能力例如為通訊單元112一次所能夠發送的訊息量。舉例而言,當通訊單元112的多播能力只允許一次發送10個持續訊息KA時,處理單元114即可將R除以10來算出各個群組中所能容納的最大群組裝置數目值。舉例而言,當R=30且通訊單元112一次只能發送10個持續訊息KA時,處理單元114即可得知在區分群組時,每個群組中所能允許的最大群組裝置數目即為10。接著,處理單元114可進而算出最少需將電子裝置130_1~130_R區分為三個群組,方能使通訊單元112在發送持續訊息KA時能夠正常進行,而不會因群組中的電子裝置數目超出通訊單元112的多播能力而導致傳送時的錯誤(例如某些電子裝置因未即時接收持續訊息而導致與伺服器切斷連接)。Moreover, in other embodiments, the processing unit 114 may also limit the number of group devices of the electronic devices in the respective groups according to the multicast capability of the communication unit 112. The multicast capability is, for example, the amount of information that the communication unit 112 can transmit at a time. For example, when the multicast capability of the communication unit 112 is only allowed to transmit 10 persistent messages KA at a time, the processing unit 114 may divide R by 10 to calculate the maximum number of group devices that can be accommodated in each group. For example, when R=30 and the communication unit 112 can only send 10 persistent messages KA at a time, the processing unit 114 can know the maximum number of group devices that can be allowed in each group when distinguishing groups. That is 10. Then, the processing unit 114 can further calculate that the electronic devices 130_1~130_R need to be divided into three groups at least, so that the communication unit 112 can normally perform the sending of the persistent message KA without the number of electronic devices in the group. Exceeding the multicast capability of the communication unit 112 results in an error in transmission (for example, some electronic devices disconnect the server due to not receiving the continuous message immediately).

在得到群組數目(例如三個)之後,在步驟S230中,處理單元114即可據以將電子裝置130_1~130_R分配至群組GP1~GP3中。舉例而言,群組GP1例如包括電子裝置130_1~130_P(P為小於R的正整數),群組GP2例如包括電子裝置130_(P+1)~130_Q(Q為介於P和R之間的正整數), 而群組GP3則例如包括電子裝置130_(Q+1)~130_R。在一實施例中,處理單元114可將電子裝置130_1~130_R平均分配至群組GP1~GP3中。以R=30為例,群組GP1~GP3所包括的電子裝置數目即個別為10個(30/3=10),亦即,群組GP1包括電子裝置130_1~130_10(亦即130_1~130_P),群組GP2包括電子裝置130_11~130_20(亦即130_(P+1)~130_Q),而群組GP3則包括電子裝置130_21~130_30(亦即130_(Q+1)~130_R)。當R為其他數目時,處理單元114亦可適應性地平均分配電子裝置130_1~130_R至各個群組中。After the number of groups (for example, three) is obtained, in step S230, the processing unit 114 can allocate the electronic devices 130_1~130_R to the groups GP1 GP GP3. For example, the group GP1 includes, for example, electronic devices 130_1~130_P (P is a positive integer less than R), and the group GP2 includes, for example, electronic devices 130_(P+1)~130_Q (Q is between P and R) Positive integer), The group GP3 includes, for example, electronic devices 130_(Q+1)~130_R. In an embodiment, the processing unit 114 may evenly distribute the electronic devices 130_1~130_R to the groups GP1 GP3. Taking R=30 as an example, the number of electronic devices included in the group GP1~GP3 is 10 (30/3=10), that is, the group GP1 includes the electronic devices 130_1~130_10 (ie, 130_1~130_P). The group GP2 includes electronic devices 130_11~130_20 (ie, 130_(P+1)~130_Q), and the group GP3 includes electronic devices 130_21~130_30 (ie, 130_(Q+1)~130_R). When R is other numbers, the processing unit 114 can also adaptively distribute the electronic devices 130_1~130_R to the respective groups.

在步驟S240中,通訊單元112可循序發送持續訊息KA至群組GP1~GP3中的電子裝置130_1~130_R,以將電子裝置130_1~130_R維持於可喚醒狀態。在通訊單元112發送持續訊息KA時,可依據電子裝置130_1~130_R維持於可喚醒狀態所需要的持續訊息KA的發送頻率來進行。In step S240, the communication unit 112 can sequentially send the persistent message KA to the electronic devices 130_1~130_R in the groups GP1 GP3 to maintain the electronic devices 130_1~130_R in the awakeable state. When the communication unit 112 transmits the persistent message KA, it can be performed according to the transmission frequency of the persistent message KA required for the electronic devices 130_1~130_R to be maintained in the awake state.

舉例而言,當持續訊息KA的發送頻率為每3秒需發送一次至電子裝置130_1~130_R方能維持電子裝置130_1~130_R於可喚醒狀態時,處理單元114可控制通訊單元112在3秒中的第1秒發送持續訊息KA至群組GP1,在第2秒發送持續訊息KA至群組GP2,在第3秒發送持續訊息KA至群組GP3,但本發明的可實施方式不限於此。For example, when the transmission frequency of the persistent message KA is sent to the electronic device 130_1~130_R every 3 seconds to maintain the electronic device 130_1~130_R in the awakeable state, the processing unit 114 can control the communication unit 112 in 3 seconds. The first second sends a persistent message KA to the group GP1, the persistent message KA is sent to the group GP2 in the second second, and the persistent message KA is sent to the group GP3 in the third second, but the embodiment of the present invention is not limited thereto.

在其他實施例中,伺服器110可每隔一固定時間即重新取得電子裝置130_1~130_R的連結資訊,並依據更新後的連結資訊來對電子裝置130_1~130_R重新進行步驟 S220~S240。此外,當與伺服器110連接的電子裝置數目改變時,伺服器110亦可重新進行步驟S210~S240,以對目前與其連接的電子裝置進行更恰當的群組配置。In other embodiments, the server 110 may re-acquire the connection information of the electronic devices 130_1~130_R every fixed time, and re-step the electronic devices 130_1~130_R according to the updated connection information. S220~S240. In addition, when the number of electronic devices connected to the server 110 is changed, the server 110 may perform steps S210 to S240 again to perform more appropriate group configuration on the electronic devices currently connected thereto.

透過本發明提供的方法,伺服器110在發送持續訊息KA時可以不需一次發送至所有電子裝置130_1~130_R,而能夠以群組為單位來發送持續訊息KA。因此,由於伺服器110在發送持續訊息KA時的負載量減少,使得伺服器110不會因為一次需發送的持續訊息KA過多而產生過載的情形,因而可讓伺服器110的運作更有效率。Through the method provided by the present invention, the server 110 can transmit the persistent message KA in units of groups without sending to all the electronic devices 130_1~130_R once when transmitting the persistent message KA. Therefore, since the load amount of the server 110 when transmitting the persistent message KA is reduced, the server 110 does not generate an overload condition due to too many persistent messages KA to be transmitted at one time, thereby making the operation of the server 110 more efficient.

此外,在其他實施例中,在將與伺服器連接的電子裝置分為多個群組時,亦可依據各個電子裝置的地理位置來進行。詳細說明,伺服器可依據所取得的電子裝置連結資訊,判斷哪些電子裝置是位於鄰近的區域中,進而將鄰近的電子裝置分配至同一群組,使得同一群組中的電子裝置在接收持續訊息時的時間差可以減少,因而可以避免同一組內的電子裝置因接收持續訊息的時間差過大而導致伺服器在管理上的困難。In addition, in other embodiments, when the electronic devices connected to the server are divided into a plurality of groups, the electronic devices may be performed according to the geographical locations of the respective electronic devices. In detail, the server can determine which electronic devices are located in the adjacent area according to the obtained electronic device connection information, thereby assigning the adjacent electronic devices to the same group, so that the electronic devices in the same group receive the persistent message. The time difference can be reduced, so that the electronic device in the same group can avoid the management difficulty of the server due to the excessive time difference of receiving the persistent message.

圖3是依據本發明之一實施例繪示的網路伺服系統的示意圖。在本實施例中,網路伺服系統300包括伺服器310,其透過網路320與電子裝置330_1~330_a、340_1~340_b以及350_1~350_c連接。圖4是依據本發明之一實施例繪示的維持裝置隨時可喚醒狀態方法的流程圖。請同時參照圖3及圖4,在圖4實施例中的方法適用於圖3的伺服器310,以下即搭配圖1中的各項裝置說明 伺服器310維持電子裝置330_1~330_a、340_1~340_b以及350_1~350_c於隨時可喚醒狀態方法的詳細步驟: 首先,在步驟S410中,伺服器310可透過網路320取得電子裝置330_1~330_a、340_1~340_b以及350_1~350_c的連結資訊。所述連結資訊例如包括各個電子裝置的媒體存取控制(medium access address,MAC)位址。接著,在步驟S420中,伺服器310可依據電子裝置330_1~330_a、340_1~340_b以及350_1~350_c的MAC位址來判斷電子裝置330_1~330_a、340_1~340_b以及350_1~350_c所在位置分佈的區域,並以這些區域的數目做為群組數目。3 is a schematic diagram of a network servo system according to an embodiment of the invention. In the present embodiment, the network servo system 300 includes a server 310 connected to the electronic devices 330_1~330_a, 340_1~340_b, and 350_1~350_c via the network 320. 4 is a flow chart of a method for maintaining a ready-to-awake state of a device according to an embodiment of the invention. Referring to FIG. 3 and FIG. 4 simultaneously, the method in the embodiment of FIG. 4 is applicable to the server 310 of FIG. 3, and the following is a description of each device in FIG. The server 310 maintains the detailed steps of the electronic device 330_1~330_a, 340_1~340_b, and 350_1~350_c in the ready-to-awake state method: First, in step S410, the server 310 can obtain the connection information of the electronic devices 330_1~330_a, 340_1~340_b, and 350_1~350_c through the network 320. The link information includes, for example, a medium access address (MAC) address of each electronic device. Next, in step S420, the server 310 can determine the area where the electronic devices 330_1~330_a, 340_1~340_b, and 350_1~350_c are located according to the MAC addresses of the electronic devices 330_1~330_a, 340_1~340_b, and 350_1~350_c. And the number of these areas is used as the number of groups.

舉例而言,假若電子裝置330_1~330_a分佈在區域330中,電子裝置340_1~340_b分佈在區域340中,而電子裝置350_1~350_c分佈在區域350中時,伺服器310可透過對各個電子裝置的MAC位址分析而得知各個電子裝置所在位置的地理關係約略可分為三個區域(亦即區域330、340及350)。For example, if the electronic devices 330_1~330_a are distributed in the area 330, the electronic devices 340_1~340_b are distributed in the area 340, and the electronic devices 350_1~350_c are distributed in the area 350, the server 310 can transmit the information to the respective electronic devices. The MAC address analysis reveals that the geographic relationship of the location of each electronic device can be roughly divided into three regions (ie, regions 330, 340, and 350).

接著,在步驟S430中,伺服器310可依據區域330、340及350而將電子裝置330_1~330_a、340_1~340_b以及350_1~350_c分別分配至例如群組GP1’~GP3’。之後,在步驟S440中,伺服器310可循序發送持續訊息KA至群組GP1’~GP3’中的電子裝置,以將電子裝置330_1~330_a、340_1~340_b以及350_1~350_c維持於可喚醒狀態。關於步驟S440的細節可參考圖2中步驟S240的相關描述,在 此不再贅述。Next, in step S430, the server 310 can assign the electronic devices 330_1~330_a, 340_1~340_b, and 350_1~350_c to the groups GP1'~GP3', respectively, according to the areas 330, 340, and 350. Thereafter, in step S440, the server 310 can sequentially send the persistent message KA to the electronic devices in the groups GP1'~GP3' to maintain the electronic devices 330_1~330_a, 340_1~340_b, and 350_1~350_c in the awakeable state. For details of step S440, refer to the related description of step S240 in FIG. 2, This will not be repeated here.

綜上所述,在本發明實施例之維持裝置隨時可喚醒狀態的方法及伺服器中,藉由將電子裝置區分為數個群組,使得伺服器在對電子裝置發送持續訊息時,只需循序地對各個群組發送。如此一來,伺服器在發送持續訊息的工作量可以有效地減少,進而避免伺服器因一次發送的持續訊息過多而導致的過載情形。In summary, in the method and the server for maintaining the device waking state at any time in the embodiment of the present invention, by dividing the electronic device into a plurality of groups, the server only needs to sequentially send a continuous message to the electronic device. The ground is sent to each group. In this way, the workload of the server to send persistent messages can be effectively reduced, thereby avoiding the overload situation caused by the server having too many persistent messages sent at one time.

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

100‧‧‧網路伺服系統100‧‧‧Network Servo System

110、310‧‧‧伺服器110, 310‧‧‧ server

112‧‧‧通訊單元112‧‧‧Communication unit

114‧‧‧處理單元114‧‧‧Processing unit

120、320‧‧‧網路120, 320‧‧‧Network

130_1~130_P、130_(P+1)~130_Q、130_(Q+1)~130_R、330_1~330_a、340_1~340_b、350_1~350_c‧‧‧電子裝置130_1~130_P, 130_(P+1)~130_Q, 130_(Q+1)~130_R, 330_1~330_a, 340_1~340_b, 350_1~350_c‧‧‧electronic device

330、340、350‧‧‧區域330, 340, 350‧‧‧ areas

GP1~GP3、GP1’~GP3’‧‧‧群組GP1~GP3, GP1’~GP3’‧‧‧Group

KA‧‧‧持續訊息KA‧‧‧Continuous message

S210~S240、S410~S440‧‧‧步驟S210~S240, S410~S440‧‧‧ steps

圖1是依據本發明之一實施例繪示的網路伺服系統示意圖。1 is a schematic diagram of a network servo system according to an embodiment of the invention.

圖2是依據本發明之一實施例繪示的維持裝置隨時可喚醒狀態方法的流程圖。2 is a flow chart of a method for maintaining a ready-to-awake state of a device according to an embodiment of the invention.

圖3是依據本發明之一實施例繪示的網路伺服系統的示意圖。3 is a schematic diagram of a network servo system according to an embodiment of the invention.

圖4是依據本發明之一實施例繪示的維持裝置隨時可喚醒狀態方法的流程圖。4 is a flow chart of a method for maintaining a ready-to-awake state of a device according to an embodiment of the invention.

S210~S240‧‧‧步驟S210~S240‧‧‧Steps

Claims (20)

一種維持裝置隨時可喚醒狀態的方法,適於由一伺服器維持多個電子裝置於一可喚醒狀態,該些電子裝置分別透過網路與該伺服器連結,所述方法包括下列步驟:取得與該伺服器連結之該些電子裝置的一連結資訊;依據該連結資訊,計算用以區分該些電子裝置為多個群組的一群組數目;依據該連結資訊及該群組數目,區分該些電子裝置為該些群組;以及循序發送一持續訊息至各所述群組中的電子裝置,以維持該些電子裝置於該可喚醒狀態。 A method for maintaining a device waking state at any time is suitable for maintaining a plurality of electronic devices in a awake state by a server, wherein the electronic devices are respectively connected to the server through a network, and the method includes the following steps: obtaining and a link information of the electronic devices connected to the server; calculating, according to the link information, a number of groups for distinguishing the plurality of electronic devices into a plurality of groups; and distinguishing the plurality of groups according to the link information and the number of the groups The electronic devices are the groups; and sequentially send a continuous message to the electronic devices in each of the groups to maintain the electronic devices in the awake state. 如申請專利範圍第1項所述之方法,其中依據該連結資訊,計算用以區分該些電子裝置為該些群組的該群組數目的步驟包括:依據該連結資訊中該些電子裝置的一裝置數目,計算該些群組的該群組數目。 The method of claim 1, wherein the calculating the number of the groups for distinguishing the electronic devices into the groups according to the connection information comprises: determining, according to the connection information, the electronic devices The number of devices, the number of groups of the groups is calculated. 如申請專利範圍第1項所述之方法,其中依據該連結資訊,計算用以區分該些電子裝置為該些群組的該群組數目的步驟包括:依據該連結資訊中各該些電子裝置的一媒體存取控制位址,判斷該些電子裝置所在位置分佈的多個區域,並以該些區域的數目做為該群組數目。 The method of claim 1, wherein the calculating the number of the groups for distinguishing the electronic devices into the groups according to the link information comprises: determining the electronic devices according to the link information a media access control address, determining a plurality of regions in which the electronic devices are located, and using the number of the regions as the number of the groups. 如申請專利範圍第3項所述之方法,其中依據該連結資訊及該群組數目,區分該些電子裝置為該些群組的步 驟包括:依據各該些電子裝置所在位置所分佈的區域,分配該電子裝置給該些群組其中之一。 The method of claim 3, wherein the electronic devices are differentiated into steps of the groups according to the link information and the number of the groups. The method includes: assigning the electronic device to one of the groups according to an area where the locations of the electronic devices are distributed. 如申請專利範圍第1項所述之方法,其中依據該連結資訊,計算用以區分該些電子裝置為該些群組的該群組數目的步驟更包括:依據維持該些電子裝置於該可喚醒狀態所需發送該持續訊息的一發送頻率,計算用以區分該些群組之該群組數目的一最大值,用以限制該群組數目不超過該最大值。 The method of claim 1, wherein the step of calculating the number of the groups of the electronic devices for the groups according to the link information further comprises: maintaining the electronic devices according to the The waking state is required to send a transmission frequency of the persistent message, and a maximum value of the number of the groups used to distinguish the groups is calculated to limit the number of the groups from exceeding the maximum value. 如申請專利範圍第1項所述之方法,其中依據該連結資訊及該群組數目,區分該些電子裝置為該些群組的步驟包括:依據該連結資訊中該些電子裝置的一裝置數目以及所計算的該群組數目,平均分配該些電子裝置至所述群組。 The method of claim 1, wherein the step of distinguishing the electronic devices into the groups according to the connection information and the number of the groups comprises: determining a number of devices of the electronic devices according to the connection information And calculating the number of the groups, and distributing the electronic devices to the group on average. 如申請專利範圍第1項所述之方法,其中循序發送該持續訊息至各所述群組中的電子裝置,以維持該些電子裝置於該可喚醒狀態的步驟包括:依據各該些電子裝置維持於該可喚醒狀態所需要之該持續訊息的一發送頻率,循序發送該持續訊息至各所述群組中的電子裝置。 The method of claim 1, wherein the step of sequentially transmitting the persistent message to the electronic devices in each of the groups to maintain the electronic devices in the awake state comprises: according to each of the electronic devices Maintaining a transmission frequency of the persistent message required for the awake state, sequentially transmitting the persistent message to the electronic devices in each of the groups. 如申請專利範圍第1項所述之方法,其中在循序發送該持續訊息至各所述群組中的電子裝置,以維持該些電子裝置於該可喚醒狀態的步驟之後,更包括:每隔一固定時間重新取得與該伺服器連結之該些電 子裝置的該連結資訊,據以計算該群組數目,並區分該些電子裝置為該些群組。 The method of claim 1, wherein the step of sequentially transmitting the persistent message to the electronic devices in each of the groups to maintain the electronic devices in the awake state further comprises: Retrieving the electricity connected to the server at a fixed time The connection information of the child device is used to calculate the number of the group and distinguish the electronic devices from the groups. 如申請專利範圍第1項所述之方法,其中在循序發送該持續訊息至各所述群組中的電子裝置,以維持該些電子裝置於該可喚醒狀態的步驟之後,更包括:判斷與該伺服器連結之該些電子裝置的數目是否改變;以及當該些電子裝置的數目改變時,重新取得與該伺服器連結之該些電子裝置的該連結資訊,據以計算該群組數目,並區分該些電子裝置為該些群組。 The method of claim 1, wherein the step of sequentially transmitting the persistent message to the electronic devices in each of the groups to maintain the electronic devices in the awake state further comprises: determining Whether the number of the electronic devices connected to the server is changed; and when the number of the electronic devices changes, the connection information of the electronic devices connected to the server is re-acquired, and the number of the groups is calculated accordingly. And distinguishing the electronic devices into the groups. 如申請專利範圍第1項所述之方法,其中依據該連結資訊,計算用以區分該些電子裝置為該些群組的該群組數目的步驟更包括:依據該伺服器發送該持續訊息的一多播能力,限制各所述群組中之該些電子裝置之一群組裝置數目。 The method of claim 1, wherein the calculating the number of the groups for distinguishing the electronic devices into the groups according to the link information further comprises: sending the persistent message according to the server A multicast capability that limits the number of group devices of one of the electronic devices in each of the groups. 一種伺服器,包括:一通訊單元,透過網路與多個電子裝置連結,並取得該些電子裝置的一連結資訊;以及一處理單元,依據該連結資訊,計算用以區分該些電子裝置為多個群組的一群組數目,並依據該連結資訊及該群組數目,區分該些電子裝置為該些群組,其中,該處理單元依據所區分的該些群組,控制該通訊單元循序發送一持續訊息至各所述群組中的電子裝置,以維持該些電子裝置於一可喚醒狀態。 A server includes: a communication unit connected to a plurality of electronic devices via a network and obtaining a link information of the electronic devices; and a processing unit configured to distinguish the electronic devices according to the connection information The number of groups of the plurality of groups, and the electronic devices are divided into the groups according to the link information and the number of the groups, wherein the processing unit controls the communication unit according to the group that is distinguished A continuous message is sequentially sent to the electronic devices in each of the groups to maintain the electronic devices in an awake state. 如申請專利範圍第11項所述之伺服器,其中該處理單元包括依據該連結資訊中該些電子裝置的一裝置數目,計算該些群組的該群組數目。 The server of claim 11, wherein the processing unit comprises calculating the number of the groups of the groups according to the number of devices of the electronic devices in the connection information. 如申請專利範圍第11項所述之伺服器,其中該處理單元包括依據該連結資訊中各該些電子裝置的一媒體存取控制位址,判斷該些電子裝置所在位置分佈的多個區域,並以該些區域的數目做為該群組數目。 The server of claim 11, wherein the processing unit includes a plurality of areas for determining a location of the electronic devices according to a media access control address of each of the electronic devices in the connection information. And the number of the regions is used as the number of the group. 如申請專利範圍第13項所述之伺服器,其中該處理單元包括依據各該些電子裝置所在位置所分佈的區域,分配該電子裝置給該些群組其中之一。 The server of claim 13, wherein the processing unit includes an area allocated according to a location of each of the electronic devices, and the electronic device is assigned to one of the groups. 如申請專利範圍第11項所述之伺服器,其中該處理單元更依據維持該些電子裝置於該可喚醒狀態所需發送該持續訊息的一發送頻率,計算用以區分該些群組之該群組數目的一最大值,用以限制該群組數目不超過該最大值。 The server of claim 11, wherein the processing unit further calculates the frequency for distinguishing the groups according to a sending frequency for maintaining the electronic device to send the persistent message in the awake state. A maximum number of groups to limit the number of groups to not exceed the maximum. 如申請專利範圍第11項所述之伺服器,其中該處理單元包括依據該連結資訊中該些電子裝置的一裝置數目以及所計算的該群組數目,平均分配該些電子裝置至所述群組。 The server of claim 11, wherein the processing unit includes equally distributing the electronic devices to the group according to a number of devices of the electronic devices in the connection information and the calculated number of the groups group. 如申請專利範圍第11項所述之伺服器,其中該處理單元包括依據各該些電子裝置維持於該可喚醒狀態所需要之該持續訊息的一發送頻率,控制該通訊單元循序發送該持續訊息至各所述群組中的電子裝置。 The server of claim 11, wherein the processing unit includes a sending frequency of the persistent message required for each of the electronic devices to maintain the awake state, and the communication unit is controlled to sequentially send the persistent message. To the electronic devices in each of the groups. 如申請專利範圍第11項所述之伺服器,其中該通訊單元更每隔一固定時間重新取得與該伺服器連結之該些 電子裝置的該連結資訊,以提供該處理單元據以計算該群組數目,並區分該些電子裝置為該些群組。 The server of claim 11, wherein the communication unit regains the connection with the server every other fixed time. The connection information of the electronic device is provided to provide the processing unit to calculate the number of the groups, and to distinguish the electronic devices from the groups. 如申請專利範圍第11項所述之伺服器,其中該處理單元更判斷與該伺服器連結之該些電子裝置的數目是否改變,而在該些電子裝置的數目改變時,控制該通訊單元重新取得與該伺服器連結之該些電子裝置的該連結資訊,據以計算該群組數目,並區分該些電子裝置為該些群組。 The server of claim 11, wherein the processing unit further determines whether the number of the electronic devices connected to the server is changed, and when the number of the electronic devices changes, controlling the communication unit to be changed again. The connection information of the electronic devices connected to the server is obtained, and the number of the groups is calculated, and the electronic devices are distinguished into the groups. 如申請專利範圍第11項所述之伺服器,其中該處理單元更包括依據該通訊單元發送該持續訊息的一多播能力,限制各所述群組中之該些電子裝置之一群組裝置數目。 The server of claim 11, wherein the processing unit further comprises a multicast device that transmits the persistent message according to the communication unit, and limits one of the electronic devices in each of the groups. number.
TW102105565A 2013-02-18 2013-02-18 Method and server for keeping apparatuses in alive state TWI502922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102105565A TWI502922B (en) 2013-02-18 2013-02-18 Method and server for keeping apparatuses in alive state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102105565A TWI502922B (en) 2013-02-18 2013-02-18 Method and server for keeping apparatuses in alive state

Publications (2)

Publication Number Publication Date
TW201434289A TW201434289A (en) 2014-09-01
TWI502922B true TWI502922B (en) 2015-10-01

Family

ID=51943050

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102105565A TWI502922B (en) 2013-02-18 2013-02-18 Method and server for keeping apparatuses in alive state

Country Status (1)

Country Link
TW (1) TWI502922B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020169858A1 (en) * 2001-05-10 2002-11-14 Doug Bellinger Broadband network service delivery method and device
US20030035424A1 (en) * 2001-08-20 2003-02-20 Abdollahi Mahshid Ellie Controlling multiple nodes divided into groups
US20040073659A1 (en) * 2002-10-15 2004-04-15 Carl Rajsic Method and apparatus for managing nodes in a network
TW201233209A (en) * 2010-12-15 2012-08-01 Koninkl Philips Electronics Nv Control unit, node and method for addressing multicast transmissions in a wireless network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020169858A1 (en) * 2001-05-10 2002-11-14 Doug Bellinger Broadband network service delivery method and device
US20030035424A1 (en) * 2001-08-20 2003-02-20 Abdollahi Mahshid Ellie Controlling multiple nodes divided into groups
US20040073659A1 (en) * 2002-10-15 2004-04-15 Carl Rajsic Method and apparatus for managing nodes in a network
TW201233209A (en) * 2010-12-15 2012-08-01 Koninkl Philips Electronics Nv Control unit, node and method for addressing multicast transmissions in a wireless network

Also Published As

Publication number Publication date
TW201434289A (en) 2014-09-01

Similar Documents

Publication Publication Date Title
CN109660607B (en) Service request distribution method, service request receiving method, service request distribution device, service request receiving device and server cluster
CN110198275B (en) Flow control method, system, server and storage medium
WO2020199487A1 (en) Method, apparatus and device for responding to access request, and storage medium
US20110029659A1 (en) Method and System for Network Proxy Services for Energy Efficient Networking
CN110602156A (en) Load balancing scheduling method and device
CN109150738B (en) Industrial internet resource management method and system, readable storage medium and terminal
US10581697B2 (en) SDN controlled PoE management system
JP2011022920A (en) Plant monitoring system, plant monitoring device, data aggregating device thereof, and terminal device
WO2017181890A1 (en) Data processing system and method based on server cluster
WO2013169258A1 (en) Network routing based on resource availability
CN109769029B (en) Communication connection method based on electricity consumption information acquisition system and terminal equipment
CN109327335A (en) A kind of cloud monitoring solution system and method
CN108924203B (en) Data copy self-adaptive distribution method, distributed computing system and related equipment
US9992140B2 (en) Electronic apparatus, server, and control method of system
CN112600761A (en) Resource allocation method, device and storage medium
WO2022116849A1 (en) Service allocation method, apparatus, electronic device, and storage medium
CN100508468C (en) Self-adapting exchange method for dynamic management data of distributed node
JP2001202318A (en) Data distribution system
JP2006260059A (en) Server device
CN105515844A (en) System for improving software defined network reliability
KR20220039530A (en) Method, device, electronic equipment for adjusting the number of instances and readble storage medium
TWI774934B (en) Server system, server device and power management method for server device
WO2023020432A1 (en) Computing power request method, computing power allocation method, computing power execution method, and terminal and network-side device
TWI502922B (en) Method and server for keeping apparatuses in alive state
CN107729141B (en) Service distribution method, device and server