TW201327191A - Device expanding system and device expanding method thereof - Google Patents

Device expanding system and device expanding method thereof Download PDF

Info

Publication number
TW201327191A
TW201327191A TW100149826A TW100149826A TW201327191A TW 201327191 A TW201327191 A TW 201327191A TW 100149826 A TW100149826 A TW 100149826A TW 100149826 A TW100149826 A TW 100149826A TW 201327191 A TW201327191 A TW 201327191A
Authority
TW
Taiwan
Prior art keywords
expansion
count value
counter
expansion device
main control
Prior art date
Application number
TW100149826A
Other languages
Chinese (zh)
Other versions
TWI480737B (en
Inventor
Ming-Wei Hsieh
Original Assignee
Pegatron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Pegatron Corp filed Critical Pegatron Corp
Priority to TW100149826A priority Critical patent/TWI480737B/en
Priority to CN2012105865649A priority patent/CN103279071A/en
Publication of TW201327191A publication Critical patent/TW201327191A/en
Application granted granted Critical
Publication of TWI480737B publication Critical patent/TWI480737B/en

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Bus Control (AREA)

Abstract

A device expanding system and a device expanding method thereof are disclosed. The device expanding system includes a main control device, a bus and a first expand device. The first expand device is used for electrically connecting to the main control device. The first expand device includes a first processing module and a first counter. When the first expand device is electrically connected to the main control device via the bus, the main control device assigns a first serial number to the first processing module of the first expand device to be a bus address of the first expand device. The first counter is electrically connected to the first processing module; wherein when the first expand device series connects to a second expand device via the bus, the first counter generates a second serial number by calculated the first serial number and transfers to the second expand device.

Description

裝置擴充系統及其裝置擴充之方法Device expansion system and method for expanding the same

本發明係關於一種裝置擴充系統及其裝置擴充之方法,特別是一種可自動設定擴充裝置之匯流排位址之裝置擴充系統及其裝置擴充之方法。The present invention relates to a device expansion system and a method for expanding the same, and more particularly to a device expansion system and a device expansion method thereof for automatically setting a busbar address of an expansion device.

隨著科技的發展,各式的控制系統已經被廣泛地應用於各式場合,例如用於監控環境的控制系統或是用於儲存或讀取資料之控制系統。在控制系統之內部可能具有單一的控制裝置與許多擴充裝置,該些擴充裝置可能為相同或是不同的裝置,用來增加控制裝置的功能或應用的範圍。一般而言,控制裝置與擴充裝置係經由匯流排作連接。每一擴充裝置都要有其代表之位址(Address),且同一條匯流排上不同的擴充裝置不能有相同的位址,否則控制裝置會無法辨識出同一條匯流排上不同的擴充裝置。With the development of technology, various control systems have been widely used in various applications, such as control systems for monitoring the environment or control systems for storing or reading data. There may be a single control device and a number of expansion devices within the control system, which may be the same or different devices used to increase the functionality or range of applications of the control device. In general, the control device and the expansion device are connected via a busbar. Each expansion device must have its own address, and different expansion devices on the same bus bar cannot have the same address. Otherwise, the control device cannot recognize different expansion devices on the same bus bar.

在先前技術中,控制裝置可能經由不同的匯流排來連接不同的擴充裝置。但如此一來就必須建構許多的匯流排,會造成成本的增加及電路佈局上的複雜度,同時控制裝置也可能受限於其硬體規格而無法支援過多的匯流排。因此在先前技術中也揭示一種利用跳線(Jumper)設定的方式來調整擴充裝置之位址,如此一來不同位址的擴充裝置就可連接同一條匯流排。但對使用者而言就必須要自行調整跳線,對使用者來說會造成不便。同時也可能設定到相同的跳線或是不知道目前擴充裝置之設定狀況,使得擴充裝置無法正常運作。因此便利性仍然不足。In the prior art, the control device may connect different expansion devices via different bus bars. However, it is necessary to construct a large number of bus bars, which will increase the cost and complexity of the circuit layout, and the control device may be limited by its hardware specifications and cannot support too many bus bars. Therefore, in the prior art, a jumper setting method is also used to adjust the address of the expansion device, so that the expansion devices of different addresses can be connected to the same bus bar. However, it is necessary for the user to adjust the jumper by himself, which is inconvenient for the user. At the same time, it is also possible to set the same jumper or not know the setting status of the current expansion device, so that the expansion device cannot operate normally. Therefore, convenience is still insufficient.

本發明之主要目的係在提供一種裝置擴充系統,其具有可自動設定擴充裝置之匯流排位址之效果。SUMMARY OF THE INVENTION A primary object of the present invention is to provide a device expansion system having the effect of automatically setting the busbar address of the expansion device.

本發明之另一主要目的係在提供一種用於裝置擴充系統之裝置擴充之方法。Another primary object of the present invention is to provide a method of apparatus expansion for a device expansion system.

為達成上述之目的,本發明實施例之裝置擴充系統包括主控裝置、匯流排及第一擴充裝置。匯流排係電性連接於該主控裝置。第一擴充裝置包括第一處理模組及第一計數器。當第一擴充裝置經由匯流排電性連接於主控裝置時,主控裝置係指定第一計數值予擴充裝置之第一處理模組,以設定為第一擴充裝置之第一匯流排位址。第一計數器係電性連接於第一處理模組;其中當第一擴充裝置再經由匯流排串接第二擴充裝置時,第一計數器計算第一計數值以產生第二計數值,該第一擴充裝置傳輸第二計數值至第二擴充裝置。To achieve the above objective, the device expansion system of the embodiment of the present invention includes a main control device, a bus bar and a first expansion device. The busbar is electrically connected to the main control device. The first expansion device includes a first processing module and a first counter. When the first expansion device is electrically connected to the main control device via the busbar, the main control device assigns the first count value to the first processing module of the expansion device to be set as the first busbar address of the first expansion device. . The first counter is electrically connected to the first processing module; wherein when the first expansion device is connected to the second expansion device via the bus bar, the first counter calculates the first count value to generate a second count value, the first The expansion device transmits the second count value to the second expansion device.

本發明實施例之裝置擴充方法係用於第一擴充裝置以設置於裝置擴充系統,包括以下步驟:經由匯流排電性連接於主控裝置;接收主控裝置指定的第一計數值以設定為第一匯流排位址;經由匯流排電性連接第二擴充裝置;藉由第一計數器計算第一計數值以產生第二計數值;以及傳輸第二計數值至第二擴充裝置,以設定為第二擴充裝置的第二匯流排位址。The device expansion method of the embodiment of the present invention is used for the first expansion device to be disposed in the device expansion system, comprising the steps of: electrically connecting to the main control device via the bus bar; receiving the first count value specified by the main control device to be set to a first bus address; electrically connecting the second expansion device via the bus; calculating a first count value by the first counter to generate a second count value; and transmitting the second count value to the second expansion device to set The second busbar address of the second expansion device.

為讓本發明之上述和其他目的、特徵和優點能更明顯易懂,下文特舉出本發明之具體實施例,並配合所附圖式,作詳細說明如下。The above and other objects, features and advantages of the present invention will become more <

請先參考圖1係本發明之裝置擴充系統具有單一擴充裝置之架構圖。Please refer to FIG. 1 for the architecture diagram of the device expansion system of the present invention having a single expansion device.

本發明之裝置擴充系統1可為一電腦系統或是一監控系統,或是其他可用以安裝多數個擴充裝置之系統,本發明並不特別限定裝置擴充系統1之用途。在本實施例中,裝置擴充系統1包括主控裝置10、第一擴充裝置21與匯流排61。主控裝置10係由硬體、硬體結合軟體或硬體結合韌體等方式架構而成,但本發明並不限於此。主控裝置10係經由匯流排61以連接於第一擴充裝置21,使得主控裝置10與第一擴充裝置21之間可經由匯流排61來傳輸命令或資料等訊號,以進一步控制第一擴充裝置21。其中匯流排61可為符合內部整合電路(Inter-Integrated Circuit,I2C)規格之匯流排,但本發明並不以此為限。由於匯流排61之作用已經被本發明熟知所屬技術領域者所廣泛應用,故在此不再贅述。The device expansion system 1 of the present invention can be a computer system or a monitoring system, or other system that can be used to install a plurality of expansion devices. The invention does not particularly limit the use of the device expansion system 1. In the present embodiment, the device expansion system 1 includes a main control device 10, a first expansion device 21, and a bus bar 61. The main control device 10 is constructed by a hardware, a hard body bonding software or a hardware bonding firmware, but the invention is not limited thereto. The main control device 10 is connected to the first expansion device 21 via the bus bar 61, so that commands such as commands or data can be transmitted between the main control device 10 and the first expansion device 21 to further control the first expansion. Device 21. The bus bar 61 can be a bus bar that conforms to the Inter-Integrated Circuit (I 2 C) specification, but the invention is not limited thereto. Since the function of the bus bar 61 has been widely used by those skilled in the art, it will not be described herein.

第一擴充裝置21可用作偵測、監控、儲存或是讀取等相同或不同用途之裝置,但本發明並不以上述所列舉的項目為限。第一擴充裝置21包括第一處理模組31、第一計數器41及第一發光模組51。第一處理模組31係由硬體、硬體結合軟體或硬體結合韌體等方式架構而成,但本發明並不限於此。第一處理模組31用以處理第一擴充裝置21所具有之功能。同時在主控裝置10連接第一處理模組31時,主控裝置10係指定一第一計數值N1作為第一擴充裝置21之匯流排位址。因此第一處理模組31係根據接收之第一計數值N1以設定為第一擴充裝置21之匯流排位址。第一計數器41係與主控裝置10電性連接,用以計算從主控裝置10所接收第一計數值N1以產生新的第二計數值N2。當連接新的第二擴充裝置22(如圖3所示)時,第一計數器41再將此新的第二計數值N2傳輸到下一個第二擴充裝置22。第一發光模組51係同樣與主控裝置10電性連接,用以顯示所接收第一計數值N1為何。The first expansion device 21 can be used as a device for detecting, monitoring, storing, or reading the same or different purposes, but the present invention is not limited to the items listed above. The first expansion device 21 includes a first processing module 31, a first counter 41, and a first lighting module 51. The first processing module 31 is constructed by a hardware, a hardware bonding software or a hardware bonding firmware, but the invention is not limited thereto. The first processing module 31 is configured to process the functions of the first expansion device 21. At the same time, when the main control device 10 is connected to the first processing module 31, the main control device 10 specifies a first count value N1 as the bus bar address of the first expansion device 21. Therefore, the first processing module 31 is set as the bus address of the first expansion device 21 according to the received first count value N1. The first counter 41 is electrically connected to the main control device 10 for calculating the first count value N1 received from the main control device 10 to generate a new second count value N2. When a new second expansion device 22 (shown in FIG. 3) is connected, the first counter 41 transmits the new second count value N2 to the next second expansion device 22. The first lighting module 51 is also electrically connected to the main control device 10 for displaying the received first count value N1.

而關於第一計數器41與第一發光模組51的詳細作用方式請參考圖2係本發明之其中一實施方式中之擴充裝置具有的計數器之架構圖。For the detailed operation mode of the first counter 41 and the first lighting module 51, please refer to FIG. 2, which is a structural diagram of a counter provided by the expansion device in one embodiment of the present invention.

在本發明之一實施方式中,第一計數器41可為包括減法器411及反向(NOT)邏輯閘412之下數式模組,但本發明並不以此為限,第一計數器41亦可為加法器及反向邏輯閘412所組成之上數式模組。反向邏輯閘412之數量可根據第一計數值N1之位元數而定。需注意的是,計數值較佳者為利用二進位數值來表示,但本發明並不限於此。在本發明之一實施方式中,係以主控裝置10輸入3位元之第一計數值N1,以產生3位元之第二計數值N2為例進行說明,而其中第一計數值N1所具有之數值可分別為計數值A0、A1、A2,第二計數值N2所具有之數值可分別為計數值S0、S1、S2。首先主控裝置10係指定計數值A0、A1、A2為000。當計數值A0、A1、A2為000時,會先通過反向邏輯閘412以成為111。再通過減法器411後,係減少為110。最後輸出再經由反向邏輯閘412,則得到計數值S0、S1、S2為001。如此一來,第一計數器41係可得到新的計數值S0、S1、S2。In an embodiment of the present invention, the first counter 41 may be a sub-module including a subtractor 411 and a reverse (NOT) logic gate 412, but the invention is not limited thereto, and the first counter 41 is also The upper module can be formed by the adder and the reverse logic gate 412. The number of reverse logic gates 412 may be based on the number of bits of the first count value N1. It should be noted that the count value is preferably expressed by the binary value, but the present invention is not limited thereto. In an embodiment of the present invention, the first counting value N1 of 3 bits is input by the main control device 10, and the second counting value N2 of 3 bits is generated as an example, wherein the first counting value N1 is used. The values may be count values A0, A1, and A2, respectively, and the second count value N2 may have count values S0, S1, and S2, respectively. First, the master device 10 specifies that the count values A0, A1, and A2 are 000. When the count values A0, A1, and A2 are 000, they are first passed through the reverse logic gate 412 to become 111. After passing through the subtractor 411, it is reduced to 110. The final output is then passed through the reverse logic gate 412, resulting in a count value S0, S1, S2 of 001. In this way, the first counter 41 can obtain new count values S0, S1, S2.

同時計數值A0、A1、A2亦傳輸至第一發光模組51。在本發明之一實施方式中,第一發光模組51包括三組發光二極體L1、L2、L3,以分別代表3位元之計數值A0、A1、A2,但本發明並不限定需為發光二極體。當計數值A0、A1、A2為000時,發光二極體L1、L2、L3可皆為熄滅的狀態。同樣地,若計數值A0、A1、A2為001時,發光二極體L1、L2可為熄滅的狀態而發光二極體L3則為點亮的狀態。如此一來,使用者即可藉由發光二極體L1、L2、L3的8組不同的亮暗組合以清楚得知第一擴充裝置21之匯流排位址。At the same time, the count values A0, A1, and A2 are also transmitted to the first light emitting module 51. In an embodiment of the present invention, the first light emitting module 51 includes three sets of light emitting diodes L1, L2, and L3 to represent the count values A0, A1, and A2 of the three bits, respectively, but the present invention is not limited to the need. It is a light-emitting diode. When the count values A0, A1, and A2 are 000, the light-emitting diodes L1, L2, and L3 may all be in an extinguished state. Similarly, when the count values A0, A1, and A2 are 001, the light-emitting diodes L1 and L2 can be turned off, and the light-emitting diode L3 can be turned on. In this way, the user can clearly know the busbar address of the first expansion device 21 by using 8 different bright and dark combinations of the LEDs L1, L2, and L3.

接著請參考圖3係本發明之裝置擴充系統具有複數之擴充裝置之架構圖。Next, please refer to FIG. 3, which is a structural diagram of a device expansion system of the present invention having a plurality of expansion devices.

由上述的架構可知,裝置擴充系統1可以同時設置複數個擴充裝置。當主控裝置10電性連接第一擴充裝置21時,係指定第一計數值N1給第一擴充裝置21之第一處理模組31,設定為第一擴充裝置21之第一匯流排位址。同時第一發光模組51係顯示出此第一計數值N1。接著第一計數值N1再通過第一計數器41,以利用減法器411及反向邏輯閘412計算為第二計數值N2。As can be seen from the above architecture, the device expansion system 1 can simultaneously provide a plurality of expansion devices. When the main control device 10 is electrically connected to the first expansion device 21, the first counting value N1 is designated to the first processing module 31 of the first expansion device 21, and is set as the first bus address of the first expansion device 21. . At the same time, the first lighting module 51 displays the first count value N1. The first count value N1 is then passed through the first counter 41 to be calculated as the second count value N2 by the subtractor 411 and the reverse logic gate 412.

當第一擴充裝置21再電性連接第二擴充裝置22時,第二計數值N2再傳輸至第二擴充裝置22之第二處理模組32,作為第二擴充裝置22之第二匯流排位址。同樣地,第二發光模組52係顯示出此第二計數值N2,且第二計數值N2再通過第二計數器42,以計算為第三計數值N3以傳輸到新連接的第三擴充裝置23。第三擴充裝置23之第三處理模組33、第三計數器43與第三發光模組53的作用係與上述的各處理模組、計數器及發光模組的作用相同。因此當第三擴充裝置23串接新的擴充裝置時,係執行相同的程序。如此一來,當裝置擴充系統1再串接新的擴充裝置時,新的擴充裝置可自動得到其匯流排位址。每一擴充裝置之匯流排位址皆不同,讓主控裝置10可經由單一的匯流排61控制不同的擴充裝置。需注意的是,計數值之位元數係配合主控裝置10可連接擴充裝置的數量。亦即當計數值為3位元時,主控裝置10可連接8組擴充裝置。When the first expansion device 21 is electrically connected to the second expansion device 22, the second count value N2 is transmitted to the second processing module 32 of the second expansion device 22 as the second bus arrangement of the second expansion device 22. site. Similarly, the second lighting module 52 displays the second counting value N2, and the second counting value N2 is further passed through the second counter 42 to be calculated as the third counting value N3 for transmission to the newly connected third expansion device. twenty three. The functions of the third processing module 33, the third counter 43, and the third lighting module 53 of the third expansion device 23 are the same as those of the processing modules, counters, and lighting modules described above. Therefore, when the third expansion device 23 is connected in series with the new expansion device, the same procedure is executed. In this way, when the device expansion system 1 is connected in series with the new expansion device, the new expansion device can automatically obtain its bus address. The busbar addresses of each expansion device are different, so that the main control device 10 can control different expansion devices via a single bus bar 61. It should be noted that the number of bits of the count value is matched with the number of expansion devices that the main control device 10 can connect. That is, when the count value is 3 bits, the main control device 10 can connect 8 sets of expansion devices.

最後請參考圖4係本發明之裝置擴充之方法之步驟流程圖。此處需注意的是,以下雖以具有第一擴充裝置21之裝置擴充系統1為例,亦即以圖3為例說明本發明之裝置擴充之方法,但本發明之裝置擴充之方法並不以使用在裝置擴充系統1為限。Finally, please refer to FIG. 4, which is a flow chart of the steps of the method for expanding the device of the present invention. It should be noted that, in the following, the device expansion system 1 having the first expansion device 21 is taken as an example, that is, the method for expanding the device of the present invention is illustrated by using FIG. 3, but the method for expanding the device of the present invention is not It is limited to use in the device expansion system 1.

首先進行步驟401:經由匯流排電性連接於主控裝置。First, step 401 is performed: electrically connected to the main control device via the bus bar.

首先第一擴充裝置21先經由匯流排61與主控裝置10電性連接。First, the first expansion device 21 is first electrically connected to the main control device 10 via the bus bar 61.

其次進行步驟402:接收主控裝置指定的一第一計數值以設定為一第一匯流排位址。Next, proceed to step 402: receiving a first count value specified by the master device to be set as a first bus address.

其次主控裝置10係先指定第一計數值N1,以傳輸到第一擴充裝置21之第一處理模組31,以設定為第一擴充裝置21之第一匯流排位址。此第一計數值N1亦傳輸到第一計數器41。Next, the main control device 10 first specifies the first count value N1 for transmission to the first processing module 31 of the first expansion device 21 to be set as the first bus address of the first expansion device 21. This first count value N1 is also transmitted to the first counter 41.

接著進行步驟403:顯示該第一計數值。Then proceed to step 403: display the first count value.

由於第一計數器41與第一發光模組51電性連接,因此接著第一擴充裝置21之第一發光模組51係顯示出第一計數值N1,以告知使用者第一擴充裝置21之第一匯流排位址為何。Since the first counter 41 is electrically connected to the first lighting module 51, the first lighting module 51 of the first expansion device 21 displays the first count value N1 to inform the user of the first expansion device 21 What is the address of a bus?

接著進行步驟404:經由匯流排電性連接第二擴充裝置。Then proceed to step 404: electrically connecting the second expansion device via the bus.

接著第一擴充裝置21再經由同一匯流排61電性連接第二擴充裝置22。Then, the first expansion device 21 is electrically connected to the second expansion device 22 via the same bus bar 61.

再進行步驟405:藉由計數器計算第一計數值以產生第二計數值。Step 405 is further performed: calculating a first count value by a counter to generate a second count value.

此時第一擴充裝置21之第一計數器41會計算第一計數值N1以產生第二計數值N2。第一計數器41可利用減法器411及反向邏輯閘412或是利用加法器及反向邏輯閘412來計算得到第二計數值N2。At this time, the first counter 41 of the first expansion device 21 calculates the first count value N1 to generate the second count value N2. The first counter 41 can calculate the second count value N2 by using the subtractor 411 and the reverse logic gate 412 or by using the adder and the reverse logic gate 412.

最後進行步驟406:傳輸第二計數值至第二擴充裝置,以設定為第二擴充裝置的第二匯流排位址。Finally, step 406 is performed: transmitting the second count value to the second expansion device to be set as the second bus address of the second expansion device.

當第一計數器41計算得到第二計數值N2後,再將此第二計數值N2傳輸到第二擴充裝置22,設定為第二擴充裝置22之第二匯流排位址。After the first counter 41 calculates the second count value N2, the second count value N2 is transmitted to the second expansion device 22, and is set as the second bus address of the second expansion device 22.

重複上述的流程後,裝置擴充系統1係可增加連接複數之擴充裝置。此處需注意的是,本發明之裝置擴充之方法並不以上述之步驟次序為限,只要能達成本發明之目的,上述之步驟次序亦可加以改變。After repeating the above process, the device expansion system 1 can increase the number of expansion devices. It should be noted that the method of expanding the apparatus of the present invention is not limited to the order of the above steps, and the order of the above steps may be changed as long as the object of the present invention can be achieved.

由上述的說明可知,本發明之裝置擴充系統1可使主控裝置10經由單一的匯流排61來連接多個擴充裝置,且使用者不須手動調整擴充裝置之設定,使得擴充裝置可自動得到新的匯流排位址。It can be seen from the above description that the device expansion system 1 of the present invention can connect the main control device 10 to a plurality of expansion devices via a single bus bar 61, and the user does not need to manually adjust the settings of the expansion device, so that the expansion device can be automatically obtained. The new bus address.

綜上所陳,本發明無論就目的、手段及功效,在在均顯示其迥異於習知技術之特徵,懇請 貴審查委員明察,早日賜准專利,俾嘉惠社會,實感德便。惟應注意的是,上述諸多實施例僅係為了便於說明而舉例而已,本發明所主張之權利範圍自應以申請專利範圍所述為準,而非僅限於上述實施例。To sum up, the present invention, regardless of its purpose, means and efficacy, shows its distinctive features of the prior art. You are requested to review the examination and express the patent as soon as possible. It should be noted that the various embodiments described above are merely illustrative for ease of explanation, and the scope of the invention is intended to be limited by the scope of the claims.

1...裝置擴充系統1. . . Device expansion system

10...主控裝置10. . . Master control unit

21...第一擴充裝置twenty one. . . First expansion device

22...第二擴充裝置twenty two. . . Second expansion device

23...第三擴充裝置twenty three. . . Third expansion device

31...第一處理模組31. . . First processing module

32...第二處理模組32. . . Second processing module

33...第三處理模組33. . . Third processing module

41...第一計數器41. . . First counter

411...減法器411. . . Subtractor

412...反向邏輯閘412. . . Reverse logic gate

42...第二計數器42. . . Second counter

43...第三計數器43. . . Third counter

51...第一發光模組51. . . First lighting module

52...第二發光模組52. . . Second lighting module

53...第三發光模組53. . . Third lighting module

61...匯流排61. . . Busbar

A0、A1、A2、S0、S1、S2...計數值A0, A1, A2, S0, S1, S2. . . Count value

N1...第一計數值N1. . . First count value

N2...第二計數值N2. . . Second count value

N3...第三計數值N3. . . Third count value

L1、L2、L3...發光二極體L1, L2, L3. . . Light-emitting diode

圖1係本發明之裝置擴充系統具有單一擴充裝置之架構圖。1 is an architectural diagram of a device expansion system of the present invention having a single expansion device.

圖2係本發明之其中一實施方式中之擴充裝置具有的計數器之架構圖。2 is a block diagram of a counter provided by an expansion device in one embodiment of the present invention.

圖3係本發明之裝置擴充系統具有複數之擴充裝置之架構圖。3 is a block diagram of a device expansion system of the present invention having a plurality of expansion devices.

圖4係本發明之裝置擴充之方法之步驟流程圖。Figure 4 is a flow chart showing the steps of the method of the apparatus of the present invention.

1...裝置擴充系統1. . . Device expansion system

10...主控裝置10. . . Master control unit

21...第一擴充裝置twenty one. . . First expansion device

31...第一處理模組31. . . First processing module

41...第一計數器41. . . First counter

51...第一發光模組51. . . First lighting module

61...匯流排61. . . Busbar

Claims (10)

一種裝置擴充系統,包括:一主控裝置;一匯流排,係電性連接於該主控裝置;以及一第一擴充裝置,包括:一第一處理模組,當該擴充裝置經由該匯流排電性連接於該主控裝置時,該主控裝置係指定一第一計數值予該擴充裝置之該第一處理模組,以設定為該第一擴充裝置之一第一匯流排位址;以及一第一計數器,係電性連接於該第一處理模組;其中當該第一擴充裝置經由該匯流排串接一第二擴充裝置時,該第一計數器計算該第一計數值以產生一第二計數值,該第一擴充裝置傳輸該第二計數值至該第二擴充裝置以設定為該第二擴充裝置的一第二匯流排位址。A device expansion system includes: a main control device; a bus bar electrically connected to the main control device; and a first expansion device, comprising: a first processing module, when the expansion device passes through the bus bar When the main control device is electrically connected to the main control device, the main control device assigns a first count value to the first processing module of the expansion device to be set as a first bus address of the first expansion device; And the first counter is electrically connected to the first processing module; wherein when the first expansion device is connected to the second expansion device via the bus bar, the first counter calculates the first count value to generate a second count value, the first expansion device transmits the second count value to the second expansion device to be set as a second bus address of the second expansion device. 如申請專利範圍第1項所述之裝置擴充系統,其中該第二擴充裝置包括一第二計數器,其中當該第二擴充裝置經由該匯流排串接一第三擴充裝置時,該第二計數值通過該第二計數器產生一第三計數值並傳輸至該第三擴充裝置以做為該第三擴充裝置的一第三匯流排位址。The device expansion system of claim 1, wherein the second expansion device comprises a second counter, wherein the second expansion device is connected to a third expansion device via the busbar The value generates a third count value through the second counter and transmits the third count value to the third expansion device as a third bus address of the third expansion device. 如申請專利範圍第1項所述之裝置擴充系統,其中該第一擴充裝置更包括一發光模組,係電性連接於該計數器,用以顯示該第一計數值。The device expansion system of claim 1, wherein the first expansion device further comprises a lighting module electrically connected to the counter for displaying the first count value. 如申請專利範圍第1項所述之裝置擴充系統,其中該計數器包括一加法器及一反向邏輯閘。The device expansion system of claim 1, wherein the counter comprises an adder and a reverse logic gate. 如申請專利範圍第1項所述之裝置擴充系統,其中該計數器包括一減法器及一反向邏輯閘。The device expansion system of claim 1, wherein the counter comprises a subtractor and a reverse logic gate. 如申請專利範圍第1項所述之裝置擴充系統,其中該第一計數值及該第二計數值係為一二進位數值。The device expansion system of claim 1, wherein the first count value and the second count value are a binary value. 一種裝置擴充方法,係用於一第一擴充裝置以設置於一裝置擴充系統,該裝置擴充系統包括一主控裝置及一匯流排,該方法包括以下步驟:經由該匯流排電性連接於該主控裝置;接收該主控裝置指定的一第一計數值以設定為一第一匯流排位址;經由該匯流排電性連接一第二擴充裝置;藉由一第一計數器計算該第一計數值以產生一第二計數值;以及傳輸該第二計數值至該第二擴充裝置,以設定為該第二擴充裝置的一第二匯流排位址。A device expansion method is provided for a first expansion device for being disposed in a device expansion system, the device expansion system comprising a main control device and a bus bar, the method comprising the steps of: electrically connecting to the busbar via the busbar Receiving a first count value specified by the main control device to be set as a first bus address; electrically connecting a second expansion device via the bus bar; calculating the first by a first counter Counting the value to generate a second count value; and transmitting the second count value to the second expansion device to be set as a second bus address of the second expansion device. 如申請專利範圍第7項所述之裝置擴充方法,更包括顯示該第一計數值之步驟。The device expansion method of claim 7, further comprising the step of displaying the first count value. 如申請專利範圍第7項所述之裝置擴充方法,其中該計算該第一計數值的步驟包括藉由一加法器以產生該第二計數值。The device expansion method of claim 7, wherein the calculating the first count value comprises generating the second count value by an adder. 如申請專利範圍第7項所述之裝置擴充方法,其中該計算該第一計數值的步驟包括藉由一減法器以產生該第二計數值。The device expansion method of claim 7, wherein the calculating the first count value comprises generating a second count value by a subtractor.
TW100149826A 2011-12-30 2011-12-30 Device expanding system and device expanding method thereof TWI480737B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW100149826A TWI480737B (en) 2011-12-30 2011-12-30 Device expanding system and device expanding method thereof
CN2012105865649A CN103279071A (en) 2011-12-30 2012-12-28 Device expansion system and device expansion method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100149826A TWI480737B (en) 2011-12-30 2011-12-30 Device expanding system and device expanding method thereof

Publications (2)

Publication Number Publication Date
TW201327191A true TW201327191A (en) 2013-07-01
TWI480737B TWI480737B (en) 2015-04-11

Family

ID=49061635

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100149826A TWI480737B (en) 2011-12-30 2011-12-30 Device expanding system and device expanding method thereof

Country Status (2)

Country Link
CN (1) CN103279071A (en)
TW (1) TWI480737B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9108269B2 (en) * 2010-07-26 2015-08-18 Hamamatsu Photonics K. K. Method for manufacturing light-absorbing substrate and method for manufacturing mold for making same
CN104639690B (en) * 2015-02-17 2017-09-15 中磊电子(苏州)有限公司 The expansion module of electronic installation and the method for setting expansion module

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5745493A (en) * 1995-11-20 1998-04-28 International Business Machines Corporation Method and system for addressing multiple components on a communication bus
CN1287316A (en) * 2000-10-10 2001-03-14 上海龙林通讯技术开发有限公司 Automatic network equipment address allocating method
JP2004213064A (en) * 2002-12-26 2004-07-29 Fujitsu Ltd Raid device and logic device expansion method therefor
TW200743923A (en) * 2006-05-30 2007-12-01 Delta Electronics Inc Controller apparatus with shared expansion connection and method for the same
CN100451889C (en) * 2006-10-20 2009-01-14 艾默生网络能源有限公司 Programmable logical controller, its expanded module and its hardware expanding method

Also Published As

Publication number Publication date
CN103279071A (en) 2013-09-04
TWI480737B (en) 2015-04-11

Similar Documents

Publication Publication Date Title
US8898358B2 (en) Multi-protocol communication on an I2C bus
JP2017068345A5 (en)
US20110179211A1 (en) Bios architecture
US20080301344A1 (en) System for expandably connecting electronic devices
TW201624297A (en) Hot-pluggable computing system, computer-implemented method and system
CN112599082A (en) Adaptive addressing and addressing method, device, equipment and storage medium
US20150058482A1 (en) System insight display
US20150130441A1 (en) Detection device and method for electronic device
US20170115996A1 (en) Reboot system and method for baseboard management controller
TWI480737B (en) Device expanding system and device expanding method thereof
US20140019648A1 (en) Keyboard, video and mouse (kvm) switch indicator and kvm switch system using the same
US10528109B2 (en) System and method for determining power loads
CN205334465U (en) PCIE signal extend system based on PCIESwitch
TW201604679A (en) Computer system
JP7146824B2 (en) A graphical user interface tool for configuring a system to detect vehicle intrusions
TWI482017B (en) Apparatus for displaying hard disc state
TW201344450A (en) Electronic systems, host electronic devices, electronic devices and communication methods
US20130144457A1 (en) Server system for updating heat dissipation solution
TW201327149A (en) Electronic device and display method
US20180004697A1 (en) Control system and control method thereof
JP2013105284A (en) Communication control method for bidirectional serial bus and bidirectional serial bus switch
CN105260335A (en) Data processing system and method for extending optical interface
WO2017177448A1 (en) Communication method and apparatus, and electronic device
TW202022613A (en) Indicator lamp control system of server hard disk drive and control method thereof including an expansion card unit that is small in size with increased aperture ratio to install on the back board without a complicated layout design
US10140232B2 (en) Peripheral component interface (PCI) system and method for expanding PCI nodes in an information handling system